diff options
author | Karl Berry <karl@freefriends.org> | 2011-09-20 23:17:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-09-20 23:17:34 +0000 |
commit | 20f75ec12940c7f82403c21e2eb2963f44046ad0 (patch) | |
tree | 3340785956a7a0150761ccc7304d8dffd19bfa00 /Master/texmf-dist/tex/xelatex/xepersian | |
parent | b365756a15418a79c86c923d32c12d50f3e01b3a (diff) |
xepersian (20sep11)
git-svn-id: svn://tug.org/texlive/trunk@24048 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index d8d9ba65701..e2d401b23de 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -13,7 +13,7 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v1.2.1} +\def\xepersianversion{v1.2.2} \def\xepersiandate{2011/10/01} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] @@ -303,7 +303,9 @@ Location on CTAN: /macros/xetex/latex/xepersian} } \let\adadinumeral\@adadi% \def\xepersian@numberoutofrange#1#2{% -\number#1#2% +\PackageError{xepersian}{The number `#1' is too large % +to be formatted using xepersian}{The largest possible % +number is 999,999,999.}% } \def\xepersian@numberstring#1#2#3#4{% \ifnum\number#1<\@ne% @@ -472,7 +474,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \ifnum#2#3>\z@\ و \fi% \fi% \ifnum#2#3<20% -\ifnum#5#2#3>\@ne#6{#2#3}\fi% +\ifnum#5#2#3>\@ne\ifnum#1#2#3#4#5=10001 اول\else#6{#2#3}\fi\fi% \else% \xepersian@dahgan#2% \ifnum#3>\z@\ و \xepersian@yekanv#3\fi% @@ -480,7 +482,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \fi% } \def\xepersian@tartibi#1{% -\ifcase#1م\or اول\or دوم\or سوم\or چهارم% +\ifcase#1م\or یکم\or دوم\or سوم\or چهارم% \or پنجم\or ششم\or هفتم\or هشتم\or نهم% \or دهم\or یازدهم\or دوازدهم\or سیزدهم% \or چهاردهم\or پانزدهم\or شانزدهم% |