diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/devanagaridigits.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/devanagaridigits.sty | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/devanagaridigits.sty b/Master/texmf-dist/tex/xelatex/polyglossia/devanagaridigits.sty new file mode 100644 index 00000000000..bbd83f2314c --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/polyglossia/devanagaridigits.sty @@ -0,0 +1,13 @@ +\ProvidesPackage{devanagaridigits} + [2010/04/01 v0.1 % + Formatting of Devanagari digits] + +\def\devanagaridigits#1{\expandafter\@devanagari@digits #1@} +\def\@devanagari@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1०\else\ifx1#1१\else\ifx2#1२\else\ifx3#1३\else\ifx4#1४\else\ifx5#1५\else\ifx6#1६\else\ifx7#1७\else\ifx8#1८\else\ifx9#1९\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@devanagari@digits + \fi +} +\endinput |