lang-def.mkiv /size: 26 Kb    last modification: 2023-12-21 09:44
1%D \module
2%D   [       file=lang-def,
3%D        version=2011.01.24, % merge of language files
4%D          title=\CONTEXT\ Language Macros,
5%D       subtitle=Languages Definitions,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Language Macros / Definitions}
15
16%D See \type {lang-*.tex} for some historic notes.
17
18\unprotect
19
20% Germanic Languages: Danish, Faeroese, Icelandic, Norwegian,
21% Swedish, German, Yiddish, Afrikaans, Dutch, English, Flemush,
22% Frisian, Plattdeutsch
23
24\installlanguage
25  [\s!en]
26  [\c!spacing=\v!broad,
27   \c!leftsentence=\emdash,
28   \c!rightsentence=\emdash,
29   \c!leftsubsentence=\emdash,
30   \c!rightsubsentence=\emdash,
31   \c!leftquote=\upperleftsinglesixquote,
32   \c!rightquote=\upperrightsingleninequote,
33   \c!leftquotation=\upperleftdoublesixquote,
34   \c!rightquotation=\upperrightdoubleninequote,
35   \c!date={\v!month,\space,\v!day,{,\space},\v!year},
36   \s!patterns=\s!us,
37   \s!lefthyphenmin=2,
38   \s!righthyphenmin=3]
39
40\installlanguage
41  [\s!nl]
42  [\c!spacing=\v!packed,
43   \c!leftsentence=\emdash,
44   \c!rightsentence=\emdash,
45   \c!leftsubsentence=\emdash,
46   \c!rightsubsentence=\emdash,
47   \c!leftquote=\lowerleftsingleninequote,
48   \c!rightquote=\upperrightsingleninequote,
49   \c!leftquotation=\lowerleftdoubleninequote,
50   \c!rightquotation=\upperrightdoubleninequote,
51   \c!date={\v!day,\space,\v!month,\space,\v!year}]
52
53\installlanguage
54  [\s!de]
55  [\c!spacing=\v!packed,
56   \s!lefthyphenmin=3,
57   \s!righthyphenmin=3,
58   \c!leftsentence=\hbox{\endash\space},
59   \c!rightsentence=\hbox{\space\endash},
60   \c!leftsubsentence=\endash,
61   \c!rightsubsentence=\endash,
62   \c!leftquote=\lowerleftsingleninequote,
63   \c!rightquote=\upperrightsinglesixquote,
64   \c!leftquotation=\lowerleftdoubleninequote,
65   \c!rightquotation=\upperrightdoublesixquote,
66   \c!date={\v!day,{.\space},\v!month,\space,\v!year}]
67
68\installlanguage
69  [\s!da]
70  [\c!spacing=\v!packed,
71   \c!leftsentence={\hbox{\endash\enskip}},
72   \c!rightsentence={\hbox{\enskip\endash}},
73   \c!leftsubsentence=\endash,
74   \c!rightsubsentence=\endash,
75   \c!leftquote=\lowerleftsingleninequote,
76   \c!rightquote=\upperrightsinglesixquote,
77   \c!leftquotation=\lowerleftdoubleninequote,
78   \c!rightquotation=\upperrightdoublesixquote,
79   \c!date={\v!day,{.\space},\v!month,\space,\v!year}]
80
81\installlanguage
82  [\s!sv]
83  [\c!spacing=\v!packed,
84   \c!leftsentence=\hbox{\endash\space},
85   \c!rightsentence=\hbox{\space\endash},
86   \c!leftsubsentence=\endash,
87   \c!rightsubsentence=\endash,
88   \c!leftquote=\upperrightsingleninequote,
89   \c!rightquote=\upperrightsingleninequote,
90   \c!leftquotation=\upperrightdoubleninequote,
91   \c!rightquotation=\upperrightdoubleninequote,
92   \c!date={\v!day,\space,\v!month,\space,\v!year}]
93
94\installlanguage
95  [\s!af]
96  [\c!spacing=\v!packed,
97   \c!leftsentence=\emdash,
98   \c!rightsentence=\emdash,
99   \c!leftsubsentence=\emdash,
100   \c!rightsubsentence=\emdash,
101   \c!leftquote=\upperleftsinglesixquote,
102   \c!rightquote=\upperrightsingleninequote,
103   \c!leftquotation=\upperleftdoublesixquote,
104   \c!rightquotation=\upperrightdoubleninequote,
105   \c!date={\v!year,\space,\v!month,\space,\v!day}]
106
107\installlanguage
108  [\s!nb]
109  [\c!spacing=\v!packed,
110   \s!lefthyphenmin=2,
111   \s!righthyphenmin=2,
112   \c!leftsentence=\emdash,
113   \c!rightsentence=\emdash,
114   \c!leftsubsentence=\emdash,
115   \c!rightsubsentence=\emdash,
116   \c!leftquote=\upperleftsinglesixquote,
117   \c!rightquote=\upperrightsingleninequote,
118   \c!leftquotation=\leftguillemot,
119   \c!rightquotation=\rightguillemot,
120   \c!date={\v!day,{.},\space,\v!month,\space,\v!year}]
121
122\installlanguage
123  [\s!nn]
124  [\c!spacing=\v!packed,
125   \s!lefthyphenmin=2,
126   \s!righthyphenmin=2,
127   \c!leftsentence=\emdash,
128   \c!rightsentence=\emdash,
129   \c!leftsubsentence=\emdash,
130   \c!rightsubsentence=\emdash,
131   \c!leftquote=\upperleftsinglesixquote,
132   \c!rightquote=\upperrightsingleninequote,
133   \c!leftquotation=\leftguillemot,
134   \c!rightquotation=\rightguillemot,
135   \c!date={\v!day,{.},\space,\v!month,\space,\v!year}]
136
137\installlanguage [\s!no]        [\s!nb]
138\installlanguage [\s!norwegian] [\s!nb]
139\installlanguage [\s!bokmal]    [\s!nb]
140\installlanguage [\s!nynorsk]   [\s!nn]
141
142\installlanguage % old german
143  [deo]
144  [\c!spacing=\v!packed,
145   \c!default=\s!de]
146
147\installlanguage
148  [de-de]
149  [\c!spacing=\v!packed,
150   \c!default=\s!de]
151
152\installlanguage
153  [de-at]
154  [\c!spacing=\v!packed,
155   \c!default=\s!de,
156   \c!leftquote=\leftguillemot,
157   \c!rightquote=\rightguillemot,
158   \c!leftquotation=\leftguillemot,
159   \c!rightquotation=\rightguillemot]
160
161\installlanguage
162  [de-ch]
163  [\c!spacing=\v!packed,
164   \c!default=\s!de]
165
166%D And some alternative (but very real) english patterns:
167
168\installlanguage
169  [en-gb]
170  [\c!default=\s!en,
171   \s!patterns=\s!gb,
172   \s!lefthyphenmin=3,
173   \s!righthyphenmin=3,
174   % the reverse of american (or maybe the american did it the reverse)
175   \c!leftquote=\upperleftdoublesixquote,
176   \c!rightquote=\upperrightdoubleninequote,
177   \c!leftquotation=\upperleftsinglesixquote,
178   \c!rightquotation=\upperrightsingleninequote]
179
180\installlanguage
181  [en-us]
182  [\c!default=\s!en,
183   \s!patterns=\s!us]
184
185\installlanguage [\s!uk] [\s!en-\s!gb]
186\installlanguage [\s!us] [\s!en-\s!us]
187
188\installlanguage [usenglish]   [\s!en-\s!us]
189\installlanguage [ukenglish]   [\s!en-\s!gb]
190\installlanguage [english]     [\s!en]
191\installlanguage [dutch]       [\s!nl]
192\installlanguage [german]      [\s!de]
193\installlanguage [danish]      [\s!da]
194\installlanguage [swedish]     [\s!sv]
195\installlanguage [afrikaans]   [\s!af]
196
197% Slavic Languages: Belarussian, Russian, Ukrainian, Bulgarian,
198% Macedonian, Serbian, Croatian, Slovenian, Czech, Kushubian,
199% Lusatian/Sorbian/Wendish, Polish, Slovak, Albanian, Illyrian,
200% Armenian
201
202\installlanguage
203  [\s!pl]
204  [\c!spacing=\v!packed,
205   \c!leftsentence=\emdash,
206   \c!rightsentence=\emdash,
207   \c!leftsubsentence=\emdash,
208   \c!rightsubsentence=\emdash,
209   \c!leftquote=\lowerleftsingleninequote,
210   \c!rightquote=\upperrightsingleninequote,
211   \c!leftquotation=\lowerleftdoubleninequote,
212   \c!rightquotation=\upperrightdoubleninequote,
213   \c!date={\v!day,{.\space},\v!month,\space,\v!year}]
214
215\installlanguage
216  [\s!cs]
217  [\c!spacing=\v!packed,
218   \c!leftsentence={\nobreakspace\endash\thickglue\penalty\zerocount\relax},
219   \c!rightsentence=\c!leftsentence,
220   \c!leftsubsentence=\c!leftsentence,
221   \c!rightsubsentence=\c!rightsentence,
222   \c!leftquote=\lowerleftsingleninequote,
223   \c!rightquote=\upperrightsinglesixquote,
224   \c!leftquotation=\lowerleftdoubleninequote,
225   \c!rightquotation=\upperrightdoublesixquote,
226   \c!date={\v!day,{.\fourperemspace},\v!month,\space,\v!year},
227   \s!lefthyphenmin=2,
228   \s!righthyphenmin=3]
229
230\installlanguage
231  [\s!sk]
232  [\c!spacing=\v!packed,
233   \c!leftsentence={\nobreakspace\endash\thickglue\penalty\zerocount\relax},
234   \c!rightsentence=\c!leftsentence,
235   \c!leftsubsentence=\c!leftsentence,
236   \c!rightsubsentence=\c!rightsentence,
237   \c!leftquote=\lowerleftsingleninequote,
238   \c!rightquote=\upperrightsinglesixquote,
239   \c!leftquotation=\lowerleftdoubleninequote,
240   \c!rightquotation=\upperrightdoublesixquote,
241   \c!date={\v!day,{.\fourperemspace},\v!month,\space,\v!year},
242   \s!lefthyphenmin=2,
243   \s!righthyphenmin=3]
244
245\installlanguage
246  [\s!hr]
247  [\c!spacing=\v!packed,
248   \c!leftsentence=\hbox{\endash\space},
249   \c!rightsentence=\hbox{\space\endash},
250   \c!leftsubsentence=\endash,
251   \c!rightsubsentence=\endash,
252   \c!leftquote=\lowerleftsingleninequote,
253   \c!rightquote=\upperrightsingleninequote,
254   \c!leftquotation=\lowerleftdoubleninequote,
255   \c!rightquotation=\upperrightdoubleninequote,
256   \c!date={\v!day,{.},\space,\v!month,\space,\v!year}]
257
258\installlanguage
259  [\s!sl]
260  [\c!command=\v!no,
261   \c!spacing=\v!packed,
262   \c!leftsentence=\hbox{\endash\space},
263   \c!rightsentence=\hbox{\space\endash},
264   \c!leftsubsentence=\endash,
265   \c!rightsubsentence=\endash,
266   \c!leftquote=\guilsingleright,
267   \c!rightquote=\guilsingleleft,
268   \c!leftquotation=\rightguillemot,
269   \c!rightquotation=\leftguillemot,
270   \c!date={\v!day,{.},\space,\v!month,\space,\v!year}]
271
272\installlanguage
273  [\s!hy]
274  [\c!spacing=\v!packed,
275   \c!leftsentence=\endash, % *sentences not confirmed
276   \c!rightsentence=\endash,
277   \c!leftsubsentence=\endash,
278   \c!rightsubsentence=\endash,
279   \c!leftquote=\guilsingleleft,
280   \c!rightquote=\guilsingleright,
281   \c!leftquotation=\leftguillemot
282   \c!rightquotation=\rightguillemot
283   \c!date={\v!day,\space,\v!month,\space,\v!year}, % word
284 % \c!date={\v!day,{.},\v!month,{.},\v!year}, % numbers
285   \s!patterns=\s!hy,
286   \s!lefthyphenmin=2,
287   \s!righthyphenmin=2]
288
289\installlanguage [\s!polish]    [\s!pl]
290\installlanguage [\s!czech]     [\s!cs]
291\installlanguage [\s!slovak]    [\s!sk]
292\installlanguage [\s!croatian]  [\s!hr]
293\installlanguage [\s!slovenian] [\s!sl]
294\installlanguage [slovene]      [\s!sl] % both possible (mojca: still needed?)
295
296\installlanguage [\s!armenian]  [\s!hy]
297\installlanguage [\s!hye]  [\s!hy]	% Eastern Armenian
298\installlanguage [\s!hyw]  [\s!hy]  % Western Armenian
299
300% Cyrillic Languages
301
302\installlanguage
303  [\s!ru]
304  [\s!lefthyphenmin=2,
305   \s!righthyphenmin=2,
306   \c!spacing=\v!packed,
307   \c!leftsentence=\leftguillemot,
308   \c!rightsentence=\rightguillemot,
309   \c!leftsubsentence=\lowerleftdoubleninequote,
310   \c!rightsubsentence=\upperrightdoubleninequote,
311   \c!leftquote=\lowerleftdoubleninequote,
312   \c!rightquote=\upperrightdoubleninequote,
313   \c!leftquotation=\leftguillemot,
314   \c!rightquotation=\rightguillemot,
315   \c!date={\v!day,\space,\v!month,\space,\v!year}]
316
317\installlanguage
318  [\s!ua]
319  [\s!lefthyphenmin=2,
320   \s!righthyphenmin=2,
321   \c!spacing=\v!packed,
322   \c!leftsentence=\leftguillemot,
323   \c!rightsentence=\rightguillemot,
324   \c!leftsubsentence=\lowerleftdoubleninequote,
325   \c!rightsubsentence=\upperrightdoubleninequote,
326   \c!leftquote=\lowerleftdoubleninequote,
327   \c!rightquote=\upperrightdoubleninequote,
328   \c!leftquotation=\leftguillemot,
329   \c!rightquotation=\rightguillemot,
330   \c!date={\v!day,\space,\v!month,\space,\v!year},
331   \s!patterns=\s!uk]
332
333\installlanguage
334  [\s!be]
335  [\s!lefthyphenmin=2,
336   \s!righthyphenmin=2,
337   \c!spacing=\v!packed,
338   \c!leftsentence=\leftguillemot,
339   \c!rightsentence=\rightguillemot,
340   \c!leftsubsentence=\lowerleftdoubleninequote,
341   \c!rightsubsentence=\upperrightdoublesixquote,
342   \c!leftquote=\lowerleftdoubleninequote,
343   \c!rightquote=\upperrightdoublesixquote,
344   \c!leftquotation=\leftguillemot,
345   \c!rightquotation=\rightguillemot,
346   \c!date={\v!day,\space,\v!month,\space,\v!year}]
347
348 \installlanguage
349  [\s!sr]
350  [\c!spacing=\v!packed,
351   \c!leftsentence=\hbox{\endash\space},
352   \c!rightsentence=\hbox{\space\endash},
353   \c!leftsubsentence=\endash,
354   \c!rightsubsentence=\endash,
355   \c!leftquote=\upperrightsingleninequote,
356   \c!rightquote=\upperrightsingleninequote,
357   \c!leftquotation=\lowerleftdoubleninequote,
358   \c!rightquotation=\upperleftdoubleninequote,
359   \c!date={\v!day,{.},\space,\v!month,\space,\v!year}]
360
361\installlanguage
362  [\s!mk]
363  [\c!spacing=\v!packed,
364   \c!leftsentence=\endash,
365   \c!rightsentence=\endash,
366   \c!leftsubsentence=\endash,
367   \c!rightsubsentence=\endash,
368   \c!leftquote=\upperleftsingleninequote,
369   \c!rightquote=\upperrightsinglesixquote,
370   \c!leftquotation=\lowerleftdoubleninequote,
371   \c!rightquotation=\upperrightdoublesixquote,
372   \c!date={\v!day,\space,\v!month,\space,\v!year}]
373
374\installlanguage
375  [\s!bg]
376  [\s!lefthyphenmin=2,
377   \s!righthyphenmin=2,
378   \c!spacing=\v!packed,
379   \c!leftsentence=\leftguillemot,
380   \c!rightsentence=\rightguillemot,
381   \c!leftsubsentence=\lowerleftdoubleninequote,
382   \c!rightsubsentence=\upperrightdoubleninequote,
383   \c!leftquote=\lowerleftsingleninequote,
384   \c!rightquote=\upperrightsinglesixquote,
385   \c!leftquotation=\lowerleftdoubleninequote,
386   \c!rightquotation=\upperrightdoublesixquote,
387   \c!date={\v!day,\space,\v!month,\space,\v!year}]
388
389\installlanguage [\s!russian]    [\s!ru]
390\installlanguage [\s!ukrainian]  [\s!ua]
391\installlanguage [\s!belarussian][\s!be]
392\installlanguage [\s!serbian]    [\s!sr]
393\installlanguage [\s!sr-latn]    [\s!sr]
394\installlanguage [\s!sr-cyrl]    [\s!sr]
395\installlanguage [\s!macedonian] [\s!mk]
396\installlanguage [\s!bulgarian]  [\s!bg]
397
398
399% Uralic Languages: Cheremiss, Estonian, Finnish, Karelian, Laap,
400% Mordvinian, Permian tongues, Hungarian, Ostyak, Vogul, Samoyed
401
402\installlanguage
403  [\s!fi]
404  [\c!spacing=\v!packed,
405   \c!leftsentence=\emdash,
406   \c!rightsentence=\emdash,
407   \c!leftsubsentence=\emdash,
408   \c!rightsubsentence=\emdash,
409   \c!leftquote=\upperleftsinglesixquote,
410   \c!rightquote=\upperrightsingleninequote,
411   \c!leftquotation=\upperleftdoublesixquote,
412   \c!rightquotation=\upperrightdoubleninequote,
413   \c!date={\v!year,\space,\v!month,\space,\v!day}]
414
415\installlanguage
416  [\s!et]
417  [\c!default=\s!en,
418   \c!spacing=\v!packed,
419   \c!leftsentence=\emdash,
420   \c!rightsentence=\emdash,
421   \c!leftsubsentence=\emdash,
422   \c!rightsubsentence=\emdash,
423   \c!leftquote=\leftguillemot,
424   \c!rightquote=\rightguillemot,
425   \c!leftquotation=\lowerrightdoubleninequote,
426   \c!rightquotation=\upperrightdoublesixquote,
427   \c!time={h,{.},m},
428   \c!date={\v!day,.,\space,\v!month,\space,\v!year},
429   \s!patterns=\s!et]
430
431\installlanguage
432  [\s!hu]
433  [\c!spacing=\v!packed,
434   \c!leftsentence=\emdash,
435   \c!rightsentence=\emdash,
436   \c!leftsubsentence=\emdash,
437   \c!rightsubsentence=\emdash,
438   \c!leftquote=\lowerleftsingleninequote,
439   \c!rightquote=\upperrightsingleninequote,
440   \c!leftquotation=\lowerleftdoubleninequote,
441   \c!rightquotation=\upperrightdoubleninequote,
442   \c!date={\v!year,.,\space,\v!month,\space,\v!day,.}]
443
444\installlanguage [\s!finnish]   [\s!fi]
445\installlanguage [\s!estonian]  [\s!et]
446\installlanguage [\s!hungarian] [\s!hu]
447
448% Altaic Languages: Uigur, Uzbek, Azeri/Azerbaijani, Chuvash,
449% Turkish, Turkmen, Kazakh, Kazar, Kireghiz, Noghay, Talar,
450% Buryat, Kalmuck, Khalkha
451
452\installlanguage
453  [\s!tr]
454  [\c!spacing=\v!packed,
455   \c!leftsentence=\emdash,
456   \c!rightsentence=\emdash,
457   \c!leftsubsentence=\emdash,
458   \c!rightsubsentence=\emdash,
459   \c!leftquote=\upperleftsinglesixquote,
460   \c!rightquote=\upperrightsingleninequote,
461   \c!leftquotation=\upperleftdoublesixquote,
462   \c!rightquotation=\upperrightdoubleninequote,
463   \c!date={\v!year,\space,\v!month,\space,\v!day}]
464
465\installlanguage
466  [\s!tk]
467  [\c!spacing=\v!broad,
468   \c!leftsentence=\emdash,
469   \c!rightsentence=\emdash,
470   \c!leftsubsentence=\emdash,
471   \c!rightsubsentence=\emdash,
472   \c!leftquote=\upperleftsinglesixquote,
473   \c!rightquote=\upperrightsingleninequote,
474   \c!leftquotation=\upperleftdoublesixquote,
475   \c!rightquotation=\upperrightdoubleninequote,
476   \c!date={\v!year,\space,\v!month,\space,\v!day},
477   \s!patterns=\s!tk,
478   \s!lefthyphenmin=1,
479   \s!righthyphenmin=2]
480
481\installlanguage [\s!turkish] [\s!tr]
482\installlanguage [\s!turkmen] [\s!tk]
483
484% Anatolian Languages
485
486% Hebrew
487
488\installlanguage % same as arabic now .. someone needs to fix this
489  [\s!he]
490  [\c!spacing=\v!broad,
491   \c!leftsentence=\emdash,
492   \c!rightsentence=\emdash,
493   \c!leftsubsentence=\emdash,
494   \c!rightsubsentence=\emdash,
495   \c!leftquote=\upperleftsinglesixquote,
496   \c!rightquote=\upperrightsingleninequote,
497   \c!leftquotation=\upperleftdoublesixquote,
498   \c!rightquotation=\upperrightdoubleninequote,
499   \c!date={\v!day,\space,\v!month,{،\space},\v!year}]
500
501\installlanguage % same as arabic now .. someone needs to fix this
502  [\s!yi]
503  [\s!he]
504
505\installlanguage [\s!hebrew]  [\s!he]
506\installlanguage [\s!yiddish] [\s!yi]
507
508% Arabic Languages
509
510\installlanguage
511  [\s!ar]
512  [\c!spacing=\v!broad,
513   \c!leftsentence=\emdash,
514   \c!rightsentence=\emdash,
515   \c!leftsubsentence=\emdash,
516   \c!rightsubsentence=\emdash,
517   \c!leftquote=\upperleftsinglesixquote,
518   \c!rightquote=\upperrightsingleninequote,
519   \c!leftquotation=\upperleftdoublesixquote,
520   \c!rightquotation=\upperrightdoubleninequote,
521   \c!date={\v!day,\space,\v!month,{،\space},\v!year}]
522
523\installlanguage [\s!arabic] [\s!ar]
524
525\installlanguage
526  [\s!farsi]
527  [\c!spacing=\v!broad,
528   \c!leftsentence=\emdash,
529   \c!rightsentence=\emdash,
530   \c!leftsubsentence=\emdash,
531   \c!rightsubsentence=\emdash,
532   \c!leftquote=\leftguillemot,
533   \c!rightquote=\rightguillemot,
534   \c!leftquotation=\leftguillemot,
535   \c!rightquotation=\rightguillemot,
536   \c!date={\v!day,\space,\v!month,\space,\v!year}]
537
538\installlanguage [\s!fa]      [\s!farsi]
539\installlanguage [\s!persian] [\s!farsi]
540\installlanguage [\s!pe]      [\s!farsi]
541
542% Just aliases to "ar" for now
543
544\installlanguage[\s!ar-ae][\c!default=\s!ar]    % U.A.E.
545\installlanguage[\s!ar-bh][\c!default=\s!ar]    % Bahrain
546\installlanguage[\s!ar-eg][\c!default=\s!ar]    % Egypt
547\installlanguage[\s!ar-in][\c!default=\s!ar]    % India?
548\installlanguage[\s!ar-kw][\c!default=\s!ar]    % Kuwait
549\installlanguage[\s!ar-ly][\c!default=\s!ar]    % Libya
550\installlanguage[\s!ar-om][\c!default=\s!ar]    % Oman
551\installlanguage[\s!ar-qa][\c!default=\s!ar]    % Qatar
552\installlanguage[\s!ar-sa][\c!default=\s!ar]    % Saudi Arabia
553\installlanguage[\s!ar-sd][\c!default=\s!ar]    % Sudan
554\installlanguage[\s!ar-tn][\c!default=\s!ar]    % Tunisia
555\installlanguage[\s!ar-ye][\c!default=\s!ar]    % Yemen
556
557% Farsi (Persian)
558
559\installlanguage[\s!ar-ir][\c!default=\s!pe]
560%installlanguage[\s!pe-ir][\c!default=\s!pe]
561%installlanguage[\s!fa-ir][\c!default=\s!fa]
562
563% Syriac months
564
565\installlanguage[\s!ar-sy][\c!default=\s!ar]    % Syria
566\installlanguage[\s!ar-iq][\c!default=\s!ar-sy] % Iraq
567\installlanguage[\s!ar-jo][\c!default=\s!ar-sy] % Jordan
568\installlanguage[\s!ar-lb][\c!default=\s!ar-sy] % Lebanon
569
570% Maghribi months
571
572\installlanguage[\s!ar-dz][\c!default=\s!ar]    % Algeria
573\installlanguage[\s!ar-ma][\c!default=\s!ar]    % Morocco
574
575% Artificial Languages: Esperanto
576
577\installlanguage
578  [\s!eo]
579  [\c!spacing=\v!packed,
580   \c!leftsentence=\endash,
581   \c!rightsentence=\endash,
582   \c!leftsubsentence=\endash,
583   \c!rightsubsentence=\endash,
584   \c!leftquote=\upperleftsinglesixquote,         %U+2018,
585   \c!rightquote=\upperrightsingleninequote,      %U+2019,
586   \c!leftquotation=\upperleftdoublesixquote,     %U+201C,
587   \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
588   \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
589   \s!patterns=eo,
590   \s!lefthyphenmin=2,
591   \s!righthyphenmin=2]
592
593\installlanguage[\s!esperanto][\c!default=\s!eo]
594
595% Baltic Languages: Lettish/Latvian, Lietuvių/Lithuanian
596
597\installlanguage
598  [\s!lt]
599  [\c!command=\v!no,
600   \c!spacing=\v!packed,
601   \c!leftsentence=\emdash,
602   \c!rightsentence=\emdash,
603   \c!leftsubsentence=\emdash,
604   \c!rightsubsentence=\emdash,
605   \c!leftquote=\lowerleftdoubleninequote,
606   \c!rightquote=\upperrightdoublesixquote,
607   \c!leftquotation=\lowerleftdoubleninequote,
608   \c!rightquotation=\upperrightdoublesixquote,
609   \c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
610   \s!patterns=\s!lt,
611   \s!lefthyphenmin=2,
612   \s!righthyphenmin=2]
613
614\installlanguage [\s!lithuanian] [\s!lt]
615
616% Celtic: Breton, Welsh, Irish, Manx, Scottish Gaelic
617
618% CJK: Chinese, Japanese, Korean
619
620\installlanguage
621  [\s!cn]
622  [\c!leftsentence=——,
623   \c!rightsentence=——,
624   \c!leftsubsentence=——,
625   \c!rightsubsentence=——,
626   \c!leftquote=,
627   \c!rightquote=,
628   \c!leftquotation=,
629   \c!rightquotation=,
630   \c!date={\v!year,,\space,\v!month,\v!day,}]
631
632\installlanguage
633  [\s!ja]
634  [\c!leftsentence=——,
635   \c!rightsentence=——,
636   \c!leftsubsentence=——,
637   \c!rightsubsentence=——,
638   \c!leftquote=,
639   \c!rightquote=,
640   \c!leftquotation=,
641   \c!rightquotation=,
642   \c!date={西暦,\v!year,,\v!month,,\v!day,}]
643
644\installlanguage
645  [\s!kr]
646  [\c!leftsentence=——,
647   \c!rightsentence=——,
648   \c!leftsubsentence=——,
649   \c!rightsubsentence=——,
650   \c!leftquote=,
651   \c!rightquote=,
652   \c!leftquotation=,
653   \c!rightquotation=,
654 % \c!date={서기,\space,\v!year,\labeltext{\v!year},\space,\v!month,\labeltext{\v!month},\space,\v!day,\labeltext{\v!day}}]
655   \c!date={\v!year,\labeltext{\v!year},\space,\v!month,\labeltext{\v!month},\space,\v!day,\labeltext{\v!day}}]
656
657\installlanguage [\s!chinese]  [\s!cn]
658\installlanguage [\s!japanese] [\s!ja]
659\installlanguage [\s!korean]   [\s!kr]
660
661% Greek
662
663\installlanguage
664  [\s!gr]
665  [\c!spacing=\v!packed,
666   \c!leftsentence=\emdash,
667   \c!rightsentence=\emdash,
668   \c!leftsubsentence=\emdash,
669   \c!rightsubsentence=\emdash,
670   \c!leftquote=,
671   \c!rightquote=,
672   \c!leftquotation=«,
673   \c!rightquotation=»,
674   \c!date={\v!day\space\v!month\space\v!year},
675   \s!patterns=\s!agr] % ok?
676
677\installlanguage [\s!greek] [\s!gr]
678
679\installlanguage
680  [\s!agr]
681  [\s!default=\s!gr,
682   \c!leftquote=\upperleftsinglesixquote,
683   \c!rightquote=\upperrightsingleninequote,
684   \c!leftquotation=\upperleftdoublesixquote,
685   \c!rightquotation=\upperrightdoubleninequote]
686
687\installlanguage [\s!ancientgreek] [\s!agr]
688
689% Indo-Iranian Languages: 34.
690
691% Italic Languages: Latin, Italian, Rhaeto-Romanic, Rumanian,
692% Sardian, Catalan, French, Ladino, Portuguese, Proven\c{c}al,
693% Spanish
694
695\installlanguage
696  [\s!fr]
697  [\c!spacing=\v!packed,
698   \c!leftsentence=\emdash,
699   \c!rightsentence=\emdash,
700   \c!leftsubsentence=\emdash,
701   \c!rightsubsentence=\emdash,
702   \c!leftquote=\leftguillemot,
703   \c!rightquote=\rightguillemot,
704   \c!leftquotation=\leftguillemot,
705   \c!rightquotation=\rightguillemot,
706   \c!time={h,{\Uchar104 },m},% we need to cheat in order to get the h
707   \c!date={\v!day:mnem,\v!space,\v!month,\v!space,\v!year}]
708
709\installlanguage
710  [\s!es]
711  [\c!spacing=\v!packed,
712   \c!leftsentence=\emdash,
713   \c!rightsentence=\emdash,
714   \c!leftsubsentence=\emdash,
715   \c!rightsubsentence=\emdash,
716   \c!leftquote=\upperleftsinglesixquote,
717   \c!rightquote=\upperrightsingleninequote,
718   \c!leftquotation=\upperleftdoublesixquote,
719   \c!rightquotation=\upperrightdoubleninequote,
720   \c!date={\v!day,{ de },\v!month,{ de },\v!year}]
721
722\installlanguage [sp] [\s!es] % old times context
723
724\installlanguage
725  [\s!ca]
726  [\c!spacing=\v!packed,
727   \c!leftsentence=\emdash,
728   \c!rightsentence=\emdash,
729   \c!leftsubsentence=\emdash,
730   \c!rightsubsentence=\emdash,
731   \c!leftquote=\upperleftsinglesixquote,
732   \c!rightquote=\upperrightsingleninequote,
733   \c!leftquotation=\upperleftdoublesixquote,
734   \c!rightquotation=\upperrightdoubleninequote,
735   \c!date={\v!day,\space,\v!month,\space,\v!year}]
736
737% Note GB left|/|right (sub)sentences are for \quote {incisi}.
738
739\installlanguage
740  [\s!it]
741  [\c!command=\v!no,
742   \c!spacing=\v!packed,
743   \c!leftsentence=\emdash,
744   \c!rightsentence=\emdash,
745   \c!leftsubsentence=\endash,
746   \c!rightsubsentence=\endash,
747   \c!leftquote=\upperleftsinglesixquote,
748   \c!rightquote=\upperrightsingleninequote,
749   \c!leftquotation=\upperleftdoublesixquote,
750   \c!rightquotation=\upperrightdoubleninequote,
751   \c!leftspeech=\leftguillemot,
752   \c!middlespeech=\leftguillemot,
753   \c!rightspeech=\rightguillemot,
754   \c!date={\v!day,\space,\v!month,\space,\v!year}]
755
756\installlanguage % the same as italian
757  [\s!la]
758  [\c!spacing=\v!packed,
759   \c!leftsentence=\emdash,
760   \c!rightsentence=\emdash,
761   \c!leftsubsentence=\emdash,
762   \c!rightsubsentence=\emdash,
763   \c!leftquote=\upperleftsinglesixquote,
764   \c!rightquote=\upperrightsingleninequote,
765   \c!leftquotation=\upperleftdoublesixquote,
766   \c!rightquotation=\upperrightdoubleninequote,
767   \c!date={\v!day,\space,\v!month,\space,\v!year}]
768
769\installlanguage % ancient latin
770  [\s!ala]
771  [\c!default=\s!la]
772
773\installlanguage
774  [\s!pt]
775  [\c!spacing=\v!packed,
776   \c!leftsentence=\emdash,
777   \c!rightsentence=\emdash,
778   \c!leftsubsentence=\emdash,
779   \c!rightsubsentence=\emdash,
780   \c!leftquote=\upperleftsinglesixquote,
781   \c!rightquote=\upperrightsingleninequote,
782   \c!leftquotation=\upperleftdoublesixquote,
783   \c!rightquotation=\upperrightdoubleninequote,
784   \c!date={\v!day,\space,\v!month,\space,\v!year}]
785
786
787\installlanguage[\s!pt-br][\c!default=\s!pt]    % Brazil
788\installlanguage[\s!es-es][\c!default=\s!es]    % Spain
789\installlanguage[\s!es-la][\c!default=\s!es]    % Latin America
790
791\installlanguage
792  [\s!ro]
793  [\c!spacing=\v!packed,
794   \c!leftsentence=\emdash,
795   \c!rightsentence=\emdash,
796   \c!leftsubsentence=\emdash,
797   \c!rightsubsentence=\emdash,
798   \c!leftquote=\leftguillemot,
799   \c!rightquote=\rightguillemot,
800   \c!leftquotation=\lowerrightdoubleninequote,
801   \c!rightquotation=\upperleftdoublesixquote,
802   \c!date={\v!day,\space,\v!month,\space,\v!year}]
803
804%D For compatibility reasons we also define:
805
806\installlanguage [\s!french]      [\s!fr]
807\installlanguage [\s!spanish]     [\s!es]
808\installlanguage [\s!catalan]     [\s!ca]
809\installlanguage [\s!italian]     [\s!it]
810\installlanguage [\s!latin]       [\s!la]
811\installlanguage [\s!portuguese]  [\s!pt]
812\installlanguage [\s!romanian]    [\s!ro]
813
814% Vietnamese Language
815
816\installlanguage
817  [\s!vi]
818  [\c!spacing=\v!packed,
819   \c!leftsentence=\emdash,
820   \c!rightsentence=\emdash,
821   \c!leftsubsentence=\emdash,
822   \c!rightsubsentence=\emdash,
823   \c!leftquote=\quoteleft,
824   \c!rightquote=\quoteright,
825   \c!leftquotation=\quotedblleft,
826   \c!rightquotation=\quotedblright,
827   \c!date={{ },dd,{/},mm,{/},yy}]
828
829\installlanguage [\s!vietnamese] [\s!vi]
830
831% Thai (teaser for Mojca)
832
833\installlanguage
834  [\s!th]
835  [\c!spacing=\v!broad,
836   \c!leftsentence=\emdash,
837   \c!rightsentence=\emdash,
838   \c!leftsubsentence=\emdash,
839   \c!rightsubsentence=\emdash,
840   \c!leftquote=\upperleftsinglesixquote,
841   \c!rightquote=\upperrightsingleninequote,
842   \c!leftquotation=\upperleftdoublesixquote,
843   \c!rightquotation=\upperrightdoubleninequote,
844   \c!date={\v!month,\space,\v!day,{,\space},\v!year},
845   \s!patterns=\s!th,
846   \s!lefthyphenmin=2,
847   \s!righthyphenmin=3]
848
849\installlanguage [\s!thai] [\s!th]
850
851%D Malayalam (needs to be checked)
852
853\installlanguage
854  [\s!ml]
855  [\c!spacing=\v!broad,
856   \c!leftsentence=\emdash,
857   \c!rightsentence=\emdash,
858   \c!leftsubsentence=\emdash,
859   \c!rightsubsentence=\emdash,
860   \c!leftquote=\upperleftsinglesixquote,
861   \c!rightquote=\upperrightsingleninequote,
862   \c!leftquotation=\upperleftdoublesixquote,
863   \c!rightquotation=\upperrightdoubleninequote,
864   \c!date={\v!month,\space,\v!day,{,\space},\v!year},
865   \s!patterns=\s!ml,
866   \s!lefthyphenmin=2,
867   \s!righthyphenmin=3]
868
869\installlanguage [\s!malayalam] [\s!ml]
870
871%D Todo: generate this one from languages.data
872
873\installlanguage[nld][\s!nl]
874\installlanguage[deu][\s!de]
875\installlanguage[eng][\s!en]
876\installlanguage[fra][\s!fr]
877%installlanguage[grk][\s!agr]
878
879%D This might go:
880
881\installlanguage[cz][\s!cs]
882%installlanguage[fa][\s!fr] % for dutchies only
883
884\protect \endinput
885