| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-greek.ldf}[polyglossia: module for Greek] |
| 4 |
|
| 5 |
\PolyglossiaSetup{greek}{ |
| 6 |
bcp47=el-monoton, |
| 7 |
bcp47-language=el, |
| 8 |
bcp47-variant=monoton, |
| 9 |
bcp47-script=Grek, |
| 10 |
bcp47-extension-u=nu-grek, |
| 11 |
bcp47-casing=el, |
| 12 |
script=Greek, |
| 13 |
scripttag=grek, |
| 14 |
langtag=ELL, |
| 15 |
frenchspacing=true, |
| 16 |
indentfirst=true, |
| 17 |
localnumeral=greeknumerals, |
| 18 |
Localnumeral=Greeknumerals |
| 19 |
%TODO localalph={greek@alph,greek@Alph} |
| 20 |
} |
| 21 |
|
| 22 |
% BCP-47 compliant aliases |
| 23 |
\setlanguagealias*[variant=ancient]{greek}{grc} |
| 24 |
\setlanguagealias*[variant=polytonic]{greek}{el-polyton} |
| 25 |
\setlanguagealias*[variant=monotonic]{greek}{el-monoton} |
| 26 |
\setlanguagealias*{greek}{el} |
| 27 |
|
| 28 |
% Babel aliases |
| 29 |
\setlanguagealias[variant=polytonic]{greek}{polutonikogreek} |
| 30 |
|
| 31 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 32 |
%% The code in this file was initially adapted from the antomega |
| 33 |
%% module for greek. Currently large parts of it derive from the |
| 34 |
%% package xgreek.sty (c) Apostolos Syropoulos |
| 35 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 36 |
% this file imported from xgreek fixes the \lccode and \uccode of Greek letters: |
| 37 |
\input{xgreek-fixes.def} |
| 38 |
|
| 39 |
\def\greek@variant{monogreek} |
| 40 |
|
| 41 |
\newif\if@greek@ancient\@greek@ancientfalse |
| 42 |
\newif\if@greek@poly\@greek@polyfalse |
| 43 |
|
| 44 |
\def\greek@set@langdata{% |
| 45 |
\if@greek@ancient |
| 46 |
\IfLanguageDefinedF{ancientgreek}% |
| 47 |
{\xpg@warning{No hyphenation patterns were loaded for Ancient Greek\MessageBreak |
| 48 |
I will use the patterns loaded for \string\l@greek\space instead}% |
| 49 |
\adddialect\l@ancientgreek\l@greek\relax}% |
| 50 |
\def\greek@variant{ancientgreek}% |
| 51 |
\def\captionsgreek{\ancientgreekcaptions}% |
| 52 |
\def\dategreek{\dateancientgreek}% |
| 53 |
\SetLanguageKeys{greek}{babelname=greek,bcp47=grc,bcp47-language=grc,bcp47-variant={}}% |
| 54 |
\else |
| 55 |
\if@greek@poly |
| 56 |
\IfLanguageDefinedF{polygreek}% |
| 57 |
{\xpg@warning{No hyphenation patterns were loaded for Polytonic Greek\MessageBreak |
| 58 |
I will use the patterns loaded for \string\l@greek\space instead}% |
| 59 |
\adddialect\l@polygreek\l@greek\relax}% |
| 60 |
\def\greek@variant{polygreek}% |
| 61 |
\def\captionsgreek{\polygreekcaptions}% |
| 62 |
\def\dategreek{\datepolygreek}% |
| 63 |
\SetLanguageKeys{greek}{babelname=polutonikogreek,bcp47=el-polyton,bcp47-language=el,bcp47-variant=polyton}% |
| 64 |
\else% monotonic greek |
| 65 |
\IfLanguageDefinedF{monogreek}% |
| 66 |
{\xpg@warning{No hyphenation patterns were loaded for Monotonic Greek\MessageBreak |
| 67 |
I will use the patterns loaded for \string\l@greek\space instead}% |
| 68 |
\adddialect\l@monogreek\l@greek\relax}% |
| 69 |
\def\greek@variant{monogreek}% monotonic |
| 70 |
\def\captionsgreek{\monogreekcaptions}% |
| 71 |
\def\dategreek{\datemonogreek}% |
| 72 |
\SetLanguageKeys{greek}{babelname=greek,bcp47=el-monoton,bcp47-language=el,bcp47-variant=monoton}% |
| 73 |
\fi% |
| 74 |
\fi% |
| 75 |
} |
| 76 |
|
| 77 |
|
| 78 |
\def\greek@language{% |
| 79 |
\SetupPolyglossiaLangPatterns{\greek@variant}% |
| 80 |
} |
| 81 |
|
| 82 |
|
| 83 |
\newif\if@greek@numerals |
| 84 |
\newif\if@greek@archaickoppa |
| 85 |
|
| 86 |
\DeclareKeys[polyglossia/gloss/greek] |
| 87 |
{ |
| 88 |
variant.choices:nn = { monotonic, mono,polytonic, poly,ancient, ancientgreek } |
| 89 |
{% |
| 90 |
\CheckHyphenationPatterns{greek}% |
| 91 |
\ifcase\UseName{l_keys_choice_int}\or |
| 92 |
% monotonic: |
| 93 |
\@greek@polyfalse |
| 94 |
\@greek@ancientfalse |
| 95 |
\or |
| 96 |
% mono: |
| 97 |
\@greek@polyfalse |
| 98 |
\@greek@ancientfalse |
| 99 |
\or |
| 100 |
% polytonic: |
| 101 |
\@greek@polytrue |
| 102 |
\@greek@ancientfalse |
| 103 |
\or |
| 104 |
% poly: |
| 105 |
\@greek@polytrue |
| 106 |
\@greek@ancientfalse |
| 107 |
\or |
| 108 |
% ancient: |
| 109 |
\@greek@polyfalse |
| 110 |
\@greek@ancienttrue |
| 111 |
\or |
| 112 |
% ancientgreek: |
| 113 |
\@greek@polyfalse |
| 114 |
\@greek@ancienttrue |
| 115 |
\fi |
| 116 |
\greek@set@langdata |
| 117 |
}, |
| 118 |
variant.default:n = monotonic, |
| 119 |
variant/unknown.code = \xpg@warning{Unknown Greek variant `#1'}, |
| 120 |
numerals.choice:, |
| 121 |
numerals / greek.code = |
| 122 |
{% |
| 123 |
\@greek@numeralstrue |
| 124 |
\SetLanguageKeys{greek}{bcp47-extension-u=nu-grek}% |
| 125 |
}, |
| 126 |
numerals / arabic.code = |
| 127 |
{% |
| 128 |
\@greek@numeralsfalse |
| 129 |
\SetLanguageKeys{greek}{bcp47-extension-u=nu-latn}% |
| 130 |
}, |
| 131 |
numerals.default:n = greek, |
| 132 |
numerals/unknown.code = \xpg@warning{Unknown Greek numerals value `#1'}, |
| 133 |
koppa.choice:, |
| 134 |
koppa / archaic.code = |
| 135 |
{% |
| 136 |
\@greek@archaickoppatrue |
| 137 |
}, |
| 138 |
koppa / modern.code = |
| 139 |
{% |
| 140 |
\@greek@archaickoppafalse |
| 141 |
}, |
| 142 |
koppa.default:n = modern, |
| 143 |
koppa/unknown.code = \xpg@warning{Unknown Greek koppa value `#1'}, |
| 144 |
capitaliota.choice:, |
| 145 |
capitaliota / true.code = |
| 146 |
{% |
| 147 |
\@greek@capitaliotatrue |
| 148 |
% \MakeUppercase converts the ypogegrammeni (subscript muted iota) to capital iota |
| 149 |
\SetLanguageKeys{greek}{bcp47-casing=el-x-iota,bcp47-extension-x=iota}% |
| 150 |
}, |
| 151 |
capitaliota / false.code = |
| 152 |
{% |
| 153 |
\@greek@capitaliotafalse |
| 154 |
% \MakeUppercase retains the subscript versions (default) |
| 155 |
\SetLanguageKeys{greek}{bcp47-casing=el,bcp47-extension-x={}}% |
| 156 |
}, |
| 157 |
capitaliota.default:n = true, |
| 158 |
attic.choices:nn = { true, false } |
| 159 |
{% |
| 160 |
\xpg@warning{Greek option `attic' is no longer required.} |
| 161 |
}, |
| 162 |
} |
| 163 |
|
| 164 |
% Register default options |
| 165 |
\InitializeGlossOptions{greek}{variant=monotonic,numerals=greek,koppa=modern} |
| 166 |
% Register alias options |
| 167 |
\SetLanguageAliasValues{greek}{variant}{monotonic,mono} |
| 168 |
\SetLanguageAliasValues{greek}{variant}{polytonic,poly} |
| 169 |
|
| 170 |
\def\monogreekcaptions{% |
| 171 |
\def\refname{Αναφορές}% |
| 172 |
\def\abstractname{Περίληψη}% |
| 173 |
\def\bibname{Βιβλιογραφία}% |
| 174 |
\def\prefacename{Πρόλογος}% |
| 175 |
\def\chaptername{Κεφάλαιο}% |
| 176 |
\def\appendixname{Παράρτημα}% |
| 177 |
\def\contentsname{Περιεχόμενα}% |
| 178 |
\def\listfigurename{Κατάλογος σχημάτων}% |
| 179 |
\def\listtablename{Κατάλογος πινάκων}% |
| 180 |
\def\indexname{Ευρετήριο}% |
| 181 |
\def\figurename{Σχήμα}% |
| 182 |
\def\tablename{Πίνακας}% |
| 183 |
\def\partname{Μέρος}% |
| 184 |
\def\pagename{Σελίδα}% |
| 185 |
\def\seename{βλέπε}% |
| 186 |
\def\alsoname{βλέπε επίσης}% |
| 187 |
\def\enclname{Συνημμένα}% |
| 188 |
\def\ccname{Κοινοποίηση}% |
| 189 |
\def\headtoname{Προς}% |
| 190 |
\def\proofname{Απόδειξη}% |
| 191 |
\def\glossaryname{Γλωσσάρι}}% |
| 192 |
|
| 193 |
\def\datemonogreek{% |
| 194 |
\def\today{\number\day\space% |
| 195 |
\greek@month% |
| 196 |
\space\number\year}% |
| 197 |
\def\greektoday{\greeknumber\day\space% |
| 198 |
\greek@month% |
| 199 |
\space\greeknumber\year}% |
| 200 |
\def\Greektoday{\Greeknumber\day\space% |
| 201 |
\greek@month% |
| 202 |
\space\Greeknumber\year}% |
| 203 |
\def\greek@month{\ifcase\month\or% |
| 204 |
Ιανουαρίου\or |
| 205 |
Φεβρουαρίου\or |
| 206 |
Μαρτίου\or |
| 207 |
Απριλίου\or |
| 208 |
Μαΐου\or |
| 209 |
Ιουνίου\or |
| 210 |
Ιουλίου\or |
| 211 |
Αυγούστου\or |
| 212 |
Σεπτεμβρίου\or |
| 213 |
Οκτωβρίου\or |
| 214 |
Νοεμβρίου\or |
| 215 |
Δεκεμβρίου\fi}}% |
| 216 |
|
| 217 |
\def\polygreekcaptions{% |
| 218 |
\def\refname{Ἀναφορές}% |
| 219 |
\def\abstractname{Περίληψη}% |
| 220 |
\def\bibname{Βιβλιογραφία}% |
| 221 |
\def\prefacename{Πρόλογος}% |
| 222 |
\def\chaptername{Κεφάλαιο}% |
| 223 |
\def\appendixname{Παράρτημα}% |
| 224 |
\def\contentsname{Περιεχόμενα}% |
| 225 |
\def\listfigurename{Κατάλογος σχημάτων}% |
| 226 |
\def\listtablename{Κατάλογος πινάκων}% |
| 227 |
\def\indexname{Εὑρετήριο}% |
| 228 |
\def\figurename{Σχῆμα}% |
| 229 |
\def\tablename{Πίνακας}% |
| 230 |
\def\partname{Μέρος}% |
| 231 |
\def\pagename{Σελίδα}% |
| 232 |
\def\seename{βλέπε}% |
| 233 |
\def\alsoname{βλέπε ἐπίσης}% |
| 234 |
\def\enclname{Συνημμένα}% |
| 235 |
\def\ccname{Κοινοποίηση}% |
| 236 |
\def\headtoname{Πρὸς}% |
| 237 |
\def\proofname{Ἀπόδειξη}}% |
| 238 |
|
| 239 |
\def\datepolygreek{% |
| 240 |
\def\today{\number\day\space% |
| 241 |
\greek@month% |
| 242 |
\space\number\year}% |
| 243 |
\def\greektoday{\greeknumber\day\space% |
| 244 |
\greek@month% |
| 245 |
\space\greeknumber\year}% |
| 246 |
\def\Greektoday{\Greeknumber\day\space% |
| 247 |
\greek@month% |
| 248 |
\space\Greeknumber\year}% |
| 249 |
\def\greek@month{\ifcase\month\or% |
| 250 |
Ἰανουαρίου\or |
| 251 |
Φεβρουαρίου\or |
| 252 |
Μαρτίου\or |
| 253 |
Ἀπριλίου\or |
| 254 |
Μαΐου\or |
| 255 |
Ἰουνίου\or |
| 256 |
Ἰουλίου\or |
| 257 |
Αὐγούστου\or |
| 258 |
Σεπτεμβρίου\or |
| 259 |
Ὀκτωβρίου\or |
| 260 |
Νοεμβρίου\or |
| 261 |
Δεκεμβρίου\fi}}% |
| 262 |
|
| 263 |
% this is copied verbatim from xgreek.sty: |
| 264 |
\def\ancientgreekcaptions{% |
| 265 |
\def\prefacename{Προοίμιον}% |
| 266 |
\def\refname{Αναφοραί}% |
| 267 |
\def\abstractname{Περίληψις}% |
| 268 |
\def\bibname{Βιβλιογραφία}% |
| 269 |
\def\chaptername{Κεφάλαιον}% |
| 270 |
\def\appendixname{Παράρτημα}% |
| 271 |
\def\contentsname{Περιεχόμενα}% |
| 272 |
\def\listfigurename{Κατάλογος σχημάτων}% |
| 273 |
\def\listtablename{Κατάλογος πινάκων}% |
| 274 |
\def\indexname{Εὑρετήριον}% |
| 275 |
\def\figurename{Σχήμα}% |
| 276 |
\def\tablename{Πίναξ}% |
| 277 |
\def\partname{Μέρος}% |
| 278 |
\def\enclname{Συνημμένως}% |
| 279 |
\def\ccname{Κοινοποίησις}% |
| 280 |
\def\headtoname{Πρὸς}% |
| 281 |
\def\pagename{Σελὶς}% |
| 282 |
\def\seename{ὅρα}% |
| 283 |
\def\alsoname{ὅρα ὡσαύτως}% |
| 284 |
\def\proofname{Ἀπόδειξις}% |
| 285 |
\def\glossaryname{Γλωσσάριον}% |
| 286 |
\def\refname{Ἀναφοραὶ}% |
| 287 |
\def\indexname{Εὑρετήριο}% |
| 288 |
\def\figurename{Σχῆμα}% |
| 289 |
\def\headtoname{Πρὸς}}% |
| 290 |
|
| 291 |
\def\dateancientgreek{% |
| 292 |
\def\today{\number\day\space% |
| 293 |
\greek@month% |
| 294 |
\space\number\year}% |
| 295 |
\def\greektoday{\greeknumber\day\space% |
| 296 |
\greek@month% |
| 297 |
\space\greeknumber\year}% |
| 298 |
\def\Greektoday{\Greeknumber\day\space% |
| 299 |
\greek@month% |
| 300 |
\space\Greeknumber\year}% |
| 301 |
\def\greek@month{\ifcase\month\or% |
| 302 |
Ἰανουαρίου\or |
| 303 |
Φεβρουαρίου\or |
| 304 |
Μαρτίου\or |
| 305 |
Ἀπριλίου\or |
| 306 |
Μαΐου\or |
| 307 |
Ἰουνίου\or |
| 308 |
Ἰουλίου\or |
| 309 |
Αὐγούστου\or |
| 310 |
Σεπτεμβρίου\or |
| 311 |
Ὀκτωβρίου\or |
| 312 |
Νοεμβρίου\or |
| 313 |
Δεκεμβρίου\fi}} |
| 314 |
|
| 315 |
% the code for alphabetic numbers and attic numerals |
| 316 |
\newrobustcmd\anw@print{} |
| 317 |
\newrobustcmd\anw@false{% |
| 318 |
\renewrobustcmd\anw@print{}} |
| 319 |
\newrobustcmd\anw@true{% |
| 320 |
\renewrobustcmd\anw@print{ʹ}} |
| 321 |
\anw@true |
| 322 |
|
| 323 |
% Use \providecommand here as the ldf file might |
| 324 |
% be reloaded via politunikogreek. |
| 325 |
\providecommand{\greeknumerals}[2]{\greeknumber{#2}} |
| 326 |
\providecommand{\Greeknumerals}[2]{\Greeknumber{#2}} |
| 327 |
|
| 328 |
% Placeholder for customizable numbers 6 and 90 |
| 329 |
\providecommand*{\greeknumeralsix}{ϛ} |
| 330 |
\providecommand*{\greeknumeralSix}{Ϛ} |
| 331 |
\providecommand*{\greeknumeralninety}{ϟ} |
| 332 |
\providecommand*{\greeknumeralNinety}{\MakeUppercase{ϟ}} |
| 333 |
\if@greek@archaickoppa |
| 334 |
\renewcommand*{\greeknumeralninety}{ϙ} |
| 335 |
\renewcommand*{\greeknumeralNinety}{Ϙ} |
| 336 |
\fi |
| 337 |
|
| 338 |
\protected\def\greeknumber#1{\expandafter\@greeknumber\expandafter{\number#1}{}} |
| 339 |
\def\@greeknumber#1{% |
| 340 |
\ifnum#1<\@ne\space\gr@ill@value{#1}% |
| 341 |
\else |
| 342 |
\ifnum#1<10\expandafter\gr@num@i\number#1% |
| 343 |
\else |
| 344 |
\ifnum#1<100\expandafter\gr@num@ii\number#1% |
| 345 |
\else |
| 346 |
\ifnum#1<\@m\expandafter\gr@num@iii\number#1% |
| 347 |
\else |
| 348 |
\ifnum#1<\@M\expandafter\gr@num@iv\number#1% |
| 349 |
\else |
| 350 |
\ifnum#1<100000\expandafter\gr@num@v\number#1% |
| 351 |
\else |
| 352 |
\ifnum#1<1000000\expandafter\gr@num@vi\number#1% |
| 353 |
\else |
| 354 |
\space\gr@ill@value{#1}% |
| 355 |
\fi |
| 356 |
\fi |
| 357 |
\fi |
| 358 |
\fi |
| 359 |
\fi |
| 360 |
\fi |
| 361 |
\fi |
| 362 |
} |
| 363 |
\protected\def\Greeknumber#1{\expandafter\@Greeknumber\expandafter{\number#1}{}} |
| 364 |
\def\@Greeknumber#1{% |
| 365 |
\ifnum#1<\@ne\space\gr@ill@value{#1}% |
| 366 |
\else |
| 367 |
\ifnum#1<10\expandafter\gr@Num@i\number#1% |
| 368 |
\else |
| 369 |
\ifnum#1<100\expandafter\gr@Num@ii\number#1% |
| 370 |
\else |
| 371 |
\ifnum#1<\@m\expandafter\gr@Num@iii\number#1% |
| 372 |
\else |
| 373 |
\ifnum#1<\@M\expandafter\gr@Num@iv\number#1% |
| 374 |
\else |
| 375 |
\ifnum#1<100000\expandafter\gr@Num@v\number#1% |
| 376 |
\else |
| 377 |
\ifnum#1<1000000\expandafter\gr@Num@vi\number#1% |
| 378 |
\else |
| 379 |
\space\gr@ill@value{#1}% |
| 380 |
\fi |
| 381 |
\fi |
| 382 |
\fi |
| 383 |
\fi |
| 384 |
\fi |
| 385 |
\fi |
| 386 |
\fi |
| 387 |
} |
| 388 |
\let\greeknumeral=\greeknumber |
| 389 |
\let\Greeknumeral=\Greeknumber |
| 390 |
\def\gr@num@i#1{% |
| 391 |
\ifcase#1\or α\or β\or γ\or δ\or ε\or\greeknumeralsix\or ζ\or η\or θ\fi |
| 392 |
\ifnum#1=\z@\else\anw@true\fi\anw@print} |
| 393 |
\def\gr@num@ii#1{% |
| 394 |
\ifcase#1\or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or\greeknumeralninety\fi |
| 395 |
\ifnum#1=\z@\else\anw@true\fi\gr@num@i} |
| 396 |
\def\gr@num@iii#1{% |
| 397 |
\ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi |
| 398 |
\ifnum#1=\z@\anw@false\else\anw@true\fi\gr@num@ii} |
| 399 |
\def\gr@num@iv#1{% |
| 400 |
\ifnum#1=\z@\else ͵\fi |
| 401 |
\ifcase#1\or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi |
| 402 |
\gr@num@iii} |
| 403 |
\def\gr@num@v#1{% |
| 404 |
\ifnum#1=\z@\else ͵\fi |
| 405 |
\ifcase#1\or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi |
| 406 |
\gr@num@iv} |
| 407 |
\def\gr@num@vi#1{% |
| 408 |
͵\ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi |
| 409 |
\gr@num@v} |
| 410 |
\def\gr@Num@i#1{% |
| 411 |
\ifcase#1 \or Α\or Β\or Γ\or Δ\or Ε\or\greeknumeralSix\or Ζ\or Η\or θ\fi |
| 412 |
\ifnum#1=\z@\else\anw@true\fi\anw@print} |
| 413 |
\def\gr@Num@ii#1{% |
| 414 |
\ifcase#1 \or Ι\or Κ\or Λ\or Μ\or Ν\or Ξ\or Ο\or Π\or\greeknumeralNinety\fi |
| 415 |
\ifnum#1=\z@\else\anw@true\fi\gr@Num@i} |
| 416 |
\def\gr@Num@iii#1{% |
| 417 |
\ifcase#1 \or Ρ\or Σ\or Τ\or Υ\or Φ\or Χ\or Ψ\or Ω\or \MakeUppercase{ϡ}\fi |
| 418 |
\ifnum#1=\z@\anw@false\else\anw@true\fi\gr@Num@ii} |
| 419 |
\def\gr@Num@iv#1{% |
| 420 |
\ifnum#1=\z@\else ͵\fi |
| 421 |
\ifcase#1 \or Α\or Β\or Γ\or Δ\or Ε\or \MakeUppercase{Ϛ}\or Ζ\or Η\or θ\fi |
| 422 |
\gr@Num@iii} |
| 423 |
\def\gr@Num@v#1{% |
| 424 |
\ifnum#1=\z@\else ͵\fi |
| 425 |
\ifcase#1 \or Ι\or Κ\or Λ\or Μ\or Ν\or Ξ\or Ο\or Π\or \MakeUppercase{ϟ}\fi |
| 426 |
\gr@Num@iv} |
| 427 |
\def\gr@Num@vi#1{% |
| 428 |
͵ \ifcase#1 \or Ρ\or Σ\or Τ\or Υ\or Φ\or Χ\or Ψ\or Ω\or \MakeUppercase{ϡ}\fi |
| 429 |
\gr@Num@v} |
| 430 |
\def\gr@ill@value#1{\xpg@warning{Illegal value (#1) for Greek numeral}[$#1$]} |
| 431 |
|
| 432 |
%%%% Attic numerals (no longer optional) |
| 433 |
\newcount\@attic@num |
| 434 |
\DeclareRobustCommand*{\@@atticnum}[1]{% |
| 435 |
\@attic@num#1\relax |
| 436 |
\ifnum\@attic@num<\@ne% |
| 437 |
\space% |
| 438 |
\xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}% |
| 439 |
\else\ifnum\@attic@num>249999% |
| 440 |
\space% |
| 441 |
\xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}% |
| 442 |
\else |
| 443 |
\@whilenum\@attic@num>49999\do{% |
| 444 |
\char"10147\advance\@attic@num-50000}% |
| 445 |
\@whilenum\@attic@num>9999\do{% |
| 446 |
M\advance\@attic@num-\@M}% |
| 447 |
\ifnum\@attic@num>4999% |
| 448 |
\char"10146\advance\@attic@num-5000% |
| 449 |
\fi\relax |
| 450 |
\@whilenum\@attic@num>999\do{% |
| 451 |
Χ\advance\@attic@num-\@m}% |
| 452 |
\ifnum\@attic@num>499% |
| 453 |
\char"10145\advance\@attic@num-500% |
| 454 |
\fi\relax |
| 455 |
\@whilenum\@attic@num>99\do{% |
| 456 |
Η\advance\@attic@num-100}% |
| 457 |
\ifnum\@attic@num>49% |
| 458 |
\char"10144\advance\@attic@num-50% |
| 459 |
\fi\relax |
| 460 |
\@whilenum\@attic@num>9\do{% |
| 461 |
Δ\advance\@attic@num by-10}% |
| 462 |
\@whilenum\@attic@num>4\do{% |
| 463 |
Π\advance\@attic@num-5}% |
| 464 |
\ifcase\@attic@num\or Ι\or ΙΙ\or ΙΙΙ\or ΙΙΙΙ\fi% |
| 465 |
\fi\fi} |
| 466 |
\def\@atticnum#1{% |
| 467 |
\expandafter\@@atticnum\expandafter{\the#1}} |
| 468 |
\def\atticnumeral#1{% |
| 469 |
\@attic@num#1\relax |
| 470 |
\@atticnum{\@attic@num}} |
| 471 |
\let\atticnum=\atticnumeral |
| 472 |
|
| 473 |
\def\greek@numbers{% |
| 474 |
\if@greek@numerals |
| 475 |
\def\greek@alph##1{\expandafter\greeknumeral\expandafter{\the##1}}% |
| 476 |
\def\greek@Alph##1{\expandafter\Greeknumeral\expandafter{\the##1}}% |
| 477 |
\let\@alph\greek@alph% |
| 478 |
\let\@Alph\greek@Alph% |
| 479 |
\fi} |
| 480 |
|
| 481 |
\def\nogreek@numbers{% |
| 482 |
\let\@alph\latin@alph% |
| 483 |
\let\@Alph\latin@Alph% |
| 484 |
\let\greek@alph\@undefined% |
| 485 |
\let\greek@Alph\@undefined% |
| 486 |
} |
| 487 |
|
| 488 |
\endinput |
| 489 |
|