diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf index 31e998dede3..aa54226134a 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf @@ -16,9 +16,9 @@ and may look very wrong.} scripttag=arab, langtag=URD, hyphennames={urdu,nohyphenation}, - fontsetup=true + fontsetup=true, + localnumeral=urdunumerals %TODO localalph={abjad,abjad} - %TODO localnumber=urdunumber } \newif\if@western@numerals @@ -108,37 +108,41 @@ and may look very wrong.} \fi} \def\urdu@numbers{% - \let\@latinalph\@alph% - \let\@latinAlph\@Alph% \let\@alph\abjad% \let\@Alph\abjad% - } +} \def\nourdu@numbers{% - \let\@alph\@latinalph% - \let\@Alph\@latinAlph% - } + \let\@alph\latin@alph% + \let\@Alph\latin@Alph% +} + +\newcommand{\urdunumerals}[2]{\urdunumber{#2}} + +% Store original definition +\let\xpg@save@arabic\@arabic \def\urdu@globalnumbers{% - \let\orig@arabic\@arabic% \let\@arabic\urdunumber% % For some reason \thefootnote needs to be set separately: - \renewcommand\thefootnote{\protect\urdunumber{\c@footnote}}% - } + \renewcommand\thefootnote{\localnumeral*{footnote}}% +} \def\nourdu@globalnumbers{ - \let\@arabic\orig@arabic% - \renewcommand\thefootnote{\protect\number{\c@footnote}}% - } + \let\@arabic\xpg@save@arabic% +} + +% Save original \MakeUppercase definition +\let\xpg@save@MakeUppercase\MakeUppercase \def\blockextras@urdu{% - \let\@@MakeUppercase\MakeUppercase% \def\MakeUppercase##1{##1}% - } +} \def\noextras@urdu{% - \let\MakeUppercase\@@MakeUppercase% - } + % restore original \MakeUppercase definition + \let\MakeUppercase\xpg@save@MakeUppercase% +} \endinput |