diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-14 21:25:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-14 21:25:56 +0000 |
commit | c8bf4d6e3b7f242e8fe1b35af105823861abf303 (patch) | |
tree | 2907ed4eb9b20dec1135a9f54ca18ce0f626c2a4 /Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty | |
parent | 0ea286e3463916fed5d16178d39905cde8456969 (diff) |
polyglossia (14may15)
git-svn-id: svn://tug.org/texlive/trunk@37397 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty b/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty index c75b2f5faa9..bf50422c19b 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty +++ b/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty @@ -1,8 +1,8 @@ \ProvidesPackage{hebrewcal} - [2012/04/29 v2.5 % + [2015/04/17 v2.6 % Hebrew calendar for polyglossia (adapted from hebcal.sty in Babel)] \RequirePackage{xkeyval} -\RequirePackage{bidi} +\ifluatex\RequirePackage{luabidi}\else\RequirePackage{bidi}\fi \newif\if@xpg@hebrewcal@marcheshvan \DeclareOption{marcheshvan}{\@xpg@hebrewcal@marcheshvantrue} @@ -38,20 +38,20 @@ \def\HebrewYearName#1{{% \@tempcnta=#1\divide\@tempcnta by 1000\multiply\@tempcnta by 1000 \ifnum#1=\@tempcnta\relax % divisible by 1000: disambiguate - \hebrewnumeral{#1}\ (לפ"ג)% + \Hebrewnumeral{#1}\ (לפ"ג)% \else % not divisible by 1000 \ifnum#1<1000\relax % first millennium: disambiguate - \hebrewnumeral{#1}\ (לפ"ג)% + \Hebrewnumeral{#1}\ (לפ"ג)% \else \ifnum#1<5000 - \hebrewnumeral{#1}% + \Hebrewnumeral{#1}% \else \ifnum#1<6000 % current millenium, print without thousands \@tempcnta=#1\relax \if@hebrew@fullyear\else\advance\@tempcnta by -5000\fi - \hebrewnumeral{\@tempcnta}% + \Hebrewnumeral{\@tempcnta}% \else % #1>6000 - \hebrewnumeral{#1}% + \Hebrewnumeral{#1}% \fi \fi \fi @@ -81,7 +81,7 @@ \fi% \fi} \def\@FormatForHebrew#1#2#3{% - \hebrewnumeral{#1}~ב\HebrewMonthName{#2}{#3}~% + \Hebrewnumeral{#1}~ב\HebrewMonthName{#2}{#3}~% \HebrewYearName{#3}} \def\HebrewMonthNameInEnglish#1#2{% \ifnum #1 = 7% |