1

Relating to the following question I asked:

Does vref of varioref work with page numbers which are not built-in arabic?

I would like to know the consequences I might encounter if I do the following as a stopgap solution:

I will replace 0, 1, 2, ..., 9 with ၀, ၁, ၂, ၃, ..., ၉ as shown below using FontForge. And then I'll just use LaTex Arabic numbering as it is. My intention for doing this is I expect that LaTex and its packages will use some sort of internal calculation base on normal Arabic numbers. If I inject other unicodes characters in place of the original Arabic numbers, those calculation, most likely, will go wrong. For instance, vref does not behave as expected and has the problem I described in the above question. So, I am making changes at the font level.

In this pic,I've edited my unicode font, Padauk, to clarify what I means.

enter image description here

9
  • 1
    Using a modified custom font might not be the smartest way to approach this. Where do you need Myanmar digits? Page numbers? Chapters? Wouldn't it make more sense to have a macro do this? Have you seen this question? Also, check out the links there.
    – Ingmar
    Commented Jul 17, 2022 at 7:49
  • Hi @Ingmar, I could use all the numbering in Myanmar digits already using the following: %%% Auto numbering in Myanmar %%% %This macro is to produce myanmar numbering by adopting the thai numbering method \makeatletter \def\@mmnum#1{\expandafter\@@mmnum\number#1\@nil} \def\@@mmnum#1{% \ifx#1\@nil \else \char\numexpr#1+"1040\relax % 1040 is zero character for Burmese. \expandafter\@@mmnum\fi } \renewcommand\@arabic{\@mmnum} % to reset number in \arabic to \mmnum.
    – Pyi Soe
    Commented Jul 17, 2022 at 8:08
  • But I encountered the problem mentioned here. This question you mentioned above makes me think a new approach for auto numbering in Burmese. Thanks!
    – Pyi Soe
    Commented Jul 17, 2022 at 8:15
  • 1
    varioref doesn't care how your numbers look like, you could even put emoji in the positions if you want. But I would suggest to use one of the options in your other questions (and lualatex will work fine with your language, the days where xelatex were the better choice are long gone) Commented Jul 17, 2022 at 8:35
  • @UlrikeFischer, thanks for the suggestion. I am trying the second option in my other question using \usepackage{zref-vario} \usepackage{zref-abspage} \zvsetup{pageprop=abspage}
    – Pyi Soe
    Commented Jul 17, 2022 at 9:59

0

You must log in to answer this question.

Browse other questions tagged .