summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty16
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%