blob: b033867ad5a77782a00f22596e35f3f57d12c45e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
\ProvidesFile{gloss-hebrew.ldf}[polyglossia: module for hebrew]
\RequirePackage{bidi}
\RequirePackage{hebrewcal}
\makeatletter
\PolyglossiaSetup{hebrew}{
script=Hebrew,
direction=RL,
scripttag=hebr,
hyphennames={nohyphenation},
fontsetup=true,
%TODO localalph={hebrewnumeral,Hebrewnumeral}
%digits = hebrewnumber
}
\newif\if@calendar@hebrew
\def\tmp@hebrew{hebrew}
\define@key{hebrew}{calendar}[gregorian]{%
\def\@tmpa{#1}%
\ifx\@tmpa\tmp@hebrew%
\@calendar@hebrewtrue%
\else%
\@calendar@hebrewfalse%
\fi}
% hebrewcal.sty also defines the boolean key fullyear (default=false)
\newif\if@hebrew@numerals
\def\tmp@hebrew{hebrew}
\define@key{hebrew}{numerals}[arabic]{%
\def\@tmpa{#1}%
\ifx\@tmpa\tmp@hebrew%
\@hebrew@numeralstrue%
\else%
\@hebrew@numeralsfalse%
\fi}
\setkeys{hebrew}{numerals}
\def\captionshebrew{%
\def\prefacename{מבוא}%
\def\refname{מקורות}%
\def\abstractname{תקציר}%
\def\bibname{ביבליוגרפיה}%
\def\chaptername{פרק}%
\def\appendixname{נספח}%
\def\contentsname{תוכן העניינים}%
\def\listfigurename{רשימת האיורים}%
\def\listtablename{רשימת הטבלאות}%
\def\indexname{מפתח}%
\def\figurename{איור}%
\def\tablename{טבלה}%
\def\partname{חלק}%
\def\enclname{רצ"ב}%
\def\ccname{העתקים}%
\def\headtoname{אל}%
\def\pagename{עמוד}%
\def\psname{נ.ב.}%
\def\seename{ראה}%
\def\alsoname{ראה גם}% check
\def\proofname{הוכחה}
\def\glossaryname{מילון מונחים}% check
}
\def\datehebrew{%
\def\today{%
\if@calendar@hebrew%
\hebrewtoday%
\else%
\hebrewnumber\day%
\space ב\hebrewgregmonth{\month}\space%
\hebrewnumber\year%
\fi}%
}
\def\hebrewgregmonth#1{\ifcase#1%
\or ינואר% יאנואר
\or פברואר\or מרץ% מרס / מארס
\or אפריל\or מאי% מי
\or יוני\or יולי\or אוגוסט %אבגוסט
\or ספטמבר\or אוקטובר\or נובמבר\or דצמבר\fi}
\input{babel-hebrewalph.def}
\def\hebrewnumber#1{%
\if@hebrew@numerals
\protect\hebrewnumeral{#1}%
\else
\number#1%
\fi
}
\def\hebrew@numbers{%
\let\@origalph\@alph%
\let\@origAlph\@Alph%
\let\@alph\hebrewnumeral%
\let\@Alph\Hebrewnumeral%
}
\def\nohebrew@numbers{%
\let\@alph\@origalph%
\let\@Alph\@origAlph%
}
\def\hebrew@globalnumbers{%
\let\orig@arabic\@arabic%
\let\@arabic\hebrewnumber%
\renewcommand\thefootnote{\protect\hebrewnumber{\c@footnote}}%
}
\def\nohebrew@globalnumbers{%
\let\@arabic\orig@arabic%
\renewcommand\thefootnote{\protect\number{\c@footnote}}%
}
\def\blockextras@hebrew{%
\let\@@MakeUppercase\MakeUppercase%
\def\MakeUppercase##1{##1}%
}
\def\noextras@hebrew{%
\let\MakeUppercase\@@MakeUppercase%
}
\makeatother
\endinput
|