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

Pyi Soe
  • 310
  • 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 Jul 17 '22 at 07: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 Jul 17 '22 at 08: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 Jul 17 '22 at 08: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) – Ulrike Fischer Jul 17 '22 at 08: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 Jul 17 '22 at 09:59
  • @UlrikeFischer, I tried LuaLaTex as well for Burmese font rendering. If I don't need justification, LuaLaTex does work well. But as soon as I tried to justify paragraph, I got some stacked burmese are not correctly rendered. For instance it can't render ကမ္ဘာ့ correctly when paragraph are justified. – Pyi Soe Jul 17 '22 at 14:43
  • then ask a new question about that, with a proper example. – Ulrike Fischer Jul 17 '22 at 15:32
  • @UlrikeFischer, as suggested I've asked the question here with some examples. The rendering for ကမ္ဘာ့ is not related to LuaLaTex, but related to XeLaTex. If I remove \XeTeXinterwordspaceshaping=2 option in XeLaTex, the word is not rendered properly. – Pyi Soe Jul 17 '22 at 16:22
  • @Ingmar, I tried the method in this question for page numbering in Burmese. I could get the result I need. That method also works with varioref references as expected without any problem. Thue full code can be found here in my own answer to the question. Thanks for your info. – Pyi Soe Aug 09 '22 at 02:23

0 Answers0