blob: 3d3328393cc3a623fdeb12962a979f937c2acf4b (
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
\ProvidesFile{gloss-greek.ldf}[polyglossia: module for greek]
\makeatletter
\PolyglossiaSetup{greek}{
script=Greek,
scripttag=grek,
frenchspacing=true,
indentfirst=true,
fontsetup=true,
%TODO localalph={greek@alph,greek@Alph}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The code in this file was initially adapted from the antomega
%% module for greek. Currently large parts of it derive from the
%% package xgreek.sty (c) Apostolos Syropoulos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% this file imported from xgreek fixes the \lccode and \uccode of Greek letters:
\input{xgreek-fixes.def}
%TODO: set these in \define@key instead:
\ifx\l@greek\@undefined
\ifx\l@polygreek\@undefined
\xpg@nopatterns{Greek}%
\adddialect\l@greek\l@nohyphenation
\else
\let\l@greek\l@polygreek
\fi
\fi
\ifx\l@monogreek\@undefined
\xpg@warning{No hyphenation patterns were loaded for Monotonic Greek\MessageBreak
I will use the patterns loaded for \string\l@greek instead}
\adddialect\l@monogreek\l@greek
\fi
\ifx\l@ancientgreek\@undefined
\xpg@warning{No hyphenation patterns were loaded for Ancient Greek\MessageBreak
I will use the patterns loaded for \string\l@greek instead}
\adddialect\l@ancientgreek\l@greek
\fi
%set monotonic as default
\def\greek@variant{\l@monogreek}% monotonic
\def\captionsgreek{\monogreekcaptions}%
\def\dategreek{\datemonogreek}%
\def\tmp@mono{mono}
\def\tmp@monotonic{monotonic}
\def\tmp@poly{poly}
\def\tmp@polytonic{polytonic}
\def\tmp@ancient{ancient}
\def\tmp@ancientgreek{ancientgreek}
\define@key{greek}{variant}[monotonic]{%
\def\@tmpa{#1}%
\ifx\@tmpa\tmp@poly\def\@tmpa{polytonic}\fi
\ifx\@tmpa\tmp@ancientgreek\def\@tmpa{ancient}\fi
\ifx\@tmpa\tmp@polytonic%
\def\greek@variant{\l@polygreek}%
\def\captionsgreek{\polygreekcaptions}%
\def\dategreek{\datepolygreek}%
\xpg@info{Option: Polytonic Greek}%
\else
\ifx\@tmpa\tmp@ancient
\def\greek@variant{\l@ancientgreek}%
\def\captionsgreek{\ancientgreekcaptions}%
\def\dategreek{\dateancientgreek}%
\xpg@info{Option: Ancient Greek}%
\else %monotonic
\def\greek@variant{\l@monogreek}% monotonic
\def\captionsgreek{\monogreekcaptions}%
\def\dategreek{\datemonogreek}%
\xpg@info{Option: Monotonic Greek}%
\fi
\fi}
\def\greek@language{\language=\greek@variant}
\newif\if@greek@numerals
\define@key{greek}{numerals}[greek]{%
\ifstrequal{#1}{arabic}{\@greek@numeralsfalse}{\@greek@numeralstrue}}
\define@boolkey{greek}{attic}[true]{\xpg@warning{Greek option `attic' is no longer required.}}
% This sets the defaults
\setkeys{greek}{numerals}
\def\monogreekcaptions{%
\def\refname{Αναφορές}%
\def\abstractname{Περίληψη}%
\def\bibname{Βιβλιογραφία}%
\def\prefacename{Πρόλογος}%
\def\chaptername{Κεφάλαιο}%
\def\appendixname{Παράρτημα}%
\def\contentsname{Περιεχόμενα}%
\def\listfigurename{Κατάλογος σχημάτων}%
\def\listtablename{Κατάλογος πινάκων}%
\def\indexname{Ευρετήριο}%
\def\figurename{Σχήμα}%
\def\tablename{Πίνακας}%
\def\partname{Μέρος}%
\def\pagename{Σελίδα}%
\def\seename{βλέπε}%
\def\alsoname{βλέπε επίσης}%
\def\enclname{Συνημμένα}%
\def\ccname{Κοινοποίηση}%
\def\headtoname{Προς}%
\def\proofname{Απόδειξη}%
\def\glossaryname{Γλωσσάρι}}%
\def\datemonogreek{%
\def\today{\number\day\space%
\greek@month%
\space\number\year}%
\def\greektoday{\greeknumber\day\space%
\greek@month%
\space\greeknumber\year}%
\def\Greektoday{\Greeknumber\day\space%
\greek@month%
\space\Greeknumber\year}%
\def\greek@month{\ifcase\month\or%
Ιανουαρίου\or
Φεβρουαρίου\or
Μαρτίου\or
Απριλίου\or
Μαΐου\or
Ιουνίου\or
Ιουλίου\or
Αυγούστου\or
Σεπτεμβρίου\or
Οκτωβρίου\or
Νοεμβρίου\or
Δεκεμβρίου\fi}}%
\def\polygreekcaptions{%
\def\refname{Ἀναφορές}%
\def\abstractname{Περίληψη}%
\def\bibname{Βιβλιογραφία}%
\def\prefacename{Πρόλογος}%
\def\chaptername{Κεφάλαιο}%
\def\appendixname{Παράρτημα}%
\def\contentsname{Περιεχόμενα}%
\def\listfigurename{Κατάλογος σχημάτων}%
\def\listtablename{Κατάλογος πινάκων}%
\def\indexname{Εὑρετήριο}%
\def\figurename{Σχῆμα}%
\def\tablename{Πίνακας}%
\def\partname{Μέρος}%
\def\pagename{Σελίδα}%
\def\seename{βλέπε}%
\def\alsoname{βλέπε ἐπίσης}%
\def\enclname{Συνημμένα}%
\def\ccname{Κοινοποίηση}%
\def\headtoname{Πρὸς}%
\def\proofname{Ἀπόδειξη}}%
\def\datepolygreek{%
\def\today{\number\day\space%
\greek@month%
\space\number\year}%
\def\greektoday{\greeknumber\day\space%
\greek@month%
\space\greeknumber\year}%
\def\Greektoday{\Greeknumber\day\space%
\greek@month%
\space\Greeknumber\year}%
\def\greek@month{\ifcase\month\or%
Ἰανουαρίου\or
Φεβρουαρίου\or
Μαρτίου\or
Ἀπριλίου\or
Μαΐου\or
Ἰουνίου\or
Ἰουλίου\or
Αὐγούστου\or
Σεπτεμβρίου\or
Ὀκτωβρίου\or
Νοεμβρίου\or
Δεκεμβρίου\fi}}%
% this is copied verbatim from xgreek.sty:
\def\ancientgreekcaptions{%
\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\seename{ὃρα}%
\def\alsoname{ὃρα ὡσαύτως}%
\def\proofname{Ἀπόδειξις}%
\def\glossaryname{Γλωσσάριον}%
\def\refname{Ἀναφοραὶ}%
\def\indexname{Εὑρετήριο}%
\def\figurename{Σχῆμα}%
\def\headtoname{Πρὸς}}%
\def\dateancientgreek{%
\def\today{\number\day\space%
\greek@month%
\space\number\year}%
\def\greektoday{\greeknumber\day\space%
\greek@month%
\space\greeknumber\year}%
\def\Greektoday{\Greeknumber\day\space%
\greek@month%
\space\Greeknumber\year}%
\def\greek@month{\ifcase\month\or%
Ἰανουαρίου\or
Φεβρουαρίου\or
Μαρτίου\or
Ἀπριλίου\or
Μαΐου\or
Ἰουνίου\or
Ἰουλίου\or
Αὐγούστου\or
Σεπτεμβρίου\or
Ὀκτωβρίου\or
Νοεμβρίου\or
Δεκεμβρίου\fi}}
% the code for alphabetic numbers and attic numerals
% is copied verbatim from xgreek.sty
\DeclareRobustCommand\anw@false{%
\DeclareRobustCommand\anw@print{}}
\DeclareRobustCommand\anw@true{%
\DeclareRobustCommand\anw@print{ʹ}}
\anw@true
\def\greeknumber#1{%
\ifnum#1<\@ne\space\gr@ill@value{#1}%
\else
\ifnum#1<10\expandafter\gr@num@i\number#1%
\else
\ifnum#1<100\expandafter\gr@num@ii\number#1%
\else
\ifnum#1<\@m\expandafter\gr@num@iii\number#1%
\else
\ifnum#1<\@M\expandafter\gr@num@iv\number#1%
\else
\ifnum#1<100000\expandafter\gr@num@v\number#1%
\else
\ifnum#1<1000000\expandafter\gr@num@vi\number#1%
\else
\space\gr@ill@value{#1}%
\fi
\fi
\fi
\fi
\fi
\fi
\fi
}
\def\Greeknumber#1{%
\expandafter\MakeUppercase\expandafter{\greeknumber{#1}}}
\let\greeknumeral=\greeknumber
\let\Greeknumeral=\Greeknumber
\def\gr@num@i#1{%
\ifcase#1\or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi
\ifnum#1=\z@\else\anw@true\fi\anw@print}
\def\gr@num@ii#1{%
\ifcase#1\or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi
\ifnum#1=\z@\else\anw@true\fi\gr@num@i}
\def\gr@num@iii#1{%
\ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi
\ifnum#1=\z@\anw@false\else\anw@true\fi\gr@num@ii}
\def\gr@num@iv#1{%
\ifnum#1=\z@\else ͵\fi
\ifcase#1\or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi
\gr@num@iii}
\def\gr@num@v#1{%
\ifnum#1=\z@\else ͵\fi
\ifcase#1\or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi
\gr@num@iv}
\def\gr@num@vi#1{%
͵\ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi
\gr@num@v}
%%%% Attic numerals (no longer optional)
\newcount\@attic@num
\DeclareRobustCommand*{\@@atticnum}[1]{%
\@attic@num#1\relax
\ifnum\@attic@num<\@ne%
\space%
\xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}%
\else\ifnum\@attic@num>249999%
\space%
\xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}%
\else
\@whilenum\@attic@num>49999\do{%
\char"10147\advance\@attic@num-50000}%
\@whilenum\@attic@num>9999\do{%
M\advance\@attic@num-\@M}%
\ifnum\@attic@num>4999%
\char"10146\advance\@attic@num-5000%
\fi\relax
\@whilenum\@attic@num>999\do{%
Χ\advance\@attic@num-\@m}%
\ifnum\@attic@num>499%
\char"10145\advance\@attic@num-500%
\fi\relax
\@whilenum\@attic@num>99\do{%
Η\advance\@attic@num-100}%
\ifnum\@attic@num>49%
\char"10144\advance\@attic@num-50%
\fi\relax
\@whilenum\@attic@num>9\do{%
Δ\advance\@attic@num by-10}%
\@whilenum\@attic@num>4\do{%
Π\advance\@attic@num-5}%
\ifcase\@attic@num\or Ι\or ΙΙ\or ΙΙΙ\or ΙΙΙΙ\fi%
\fi\fi}
\def\@atticnum#1{%
\expandafter\@@atticnum\expandafter{\the#1}}
\def\atticnumeral#1{%
\@attic@num#1\relax
\@atticnum{\@attic@num}}
\let\atticnum=\atticnumeral
\def\greek@numbers{%
\let\latin@alph\@alph%
\let\latin@Alph\@Alph%
\if@greek@numerals
\def\greek@alph##1{\protect\greeknumber{##1}}%
\def\greek@Alph##1{\protect\Greeknumber{##1}}%
\let\@alph\greek@alph%
\let\@Alph\greek@Alph%
\fi}
\def\nogreek@numbers{%
\let\@alph\latin@alph%
\let\@Alph\latin@Alph%
\let\greek@alph\@undefined%
\let\greek@Alph\@undefined%
}
\endinput
|