lang-def.mkxl /size: 25 Kb    last modification: 2021-10-28 13:51
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 [\s!polish]    [\s!pl]
273\installlanguage [\s!czech]     [\s!cs]
274\installlanguage [\s!slovak]    [\s!sk]
275\installlanguage [\s!croatian]  [\s!hr]
276\installlanguage [\s!slovenian] [\s!sl]
277\installlanguage [slovene]      [\s!sl] % both possible (mojca: still needed?)
278
279% Cyrillic Languages
280
281\installlanguage
282  [\s!ru]
283  [\s!lefthyphenmin=2,
284   \s!righthyphenmin=2,
285   \c!spacing=\v!packed,
286   \c!leftsentence=\leftguillemot,
287   \c!rightsentence=\rightguillemot,
288   \c!leftsubsentence=\lowerleftdoubleninequote,
289   \c!rightsubsentence=\upperrightdoubleninequote,
290   \c!leftquote=\lowerleftdoubleninequote,
291   \c!rightquote=\upperrightdoubleninequote,
292   \c!leftquotation=\leftguillemot,
293   \c!rightquotation=\rightguillemot,
294   \c!date={\v!day,\space,\v!month,\space,\v!year}]
295
296\installlanguage
297  [\s!ua]
298  [\s!lefthyphenmin=2,
299   \s!righthyphenmin=2,
300   \c!spacing=\v!packed,
301   \c!leftsentence=\leftguillemot,
302   \c!rightsentence=\rightguillemot,
303   \c!leftsubsentence=\lowerleftdoubleninequote,
304   \c!rightsubsentence=\upperrightdoubleninequote,
305   \c!leftquote=\lowerleftdoubleninequote,
306   \c!rightquote=\upperrightdoubleninequote,
307   \c!leftquotation=\leftguillemot,
308   \c!rightquotation=\rightguillemot,
309   \c!date={\v!day,\space,\v!month,\space,\v!year},
310   \s!patterns=\s!uk]
311
312\installlanguage
313  [\s!be]
314  [\s!lefthyphenmin=2,
315   \s!righthyphenmin=2,
316   \c!spacing=\v!packed,
317   \c!leftsentence=\leftguillemot,
318   \c!rightsentence=\rightguillemot,
319   \c!leftsubsentence=\lowerleftdoubleninequote,
320   \c!rightsubsentence=\upperrightdoublesixquote,
321   \c!leftquote=\lowerleftdoubleninequote,
322   \c!rightquote=\upperrightdoublesixquote,
323   \c!leftquotation=\leftguillemot,
324   \c!rightquotation=\rightguillemot,
325   \c!date={\v!day,\space,\v!month,\space,\v!year}]
326
327 \installlanguage
328  [\s!sr]
329  [\c!spacing=\v!packed,
330   \c!leftsentence=\hbox{\endash\space},
331   \c!rightsentence=\hbox{\space\endash},
332   \c!leftsubsentence=\endash,
333   \c!rightsubsentence=\endash,
334   \c!leftquote=\upperrightsingleninequote,
335   \c!rightquote=\upperrightsingleninequote,
336   \c!leftquotation=\lowerleftdoubleninequote,
337   \c!rightquotation=\upperleftdoubleninequote,
338   \c!date={\v!day,{.},\space,\v!month,\space,\v!year}]
339
340\installlanguage
341  [\s!mk]
342  [\c!spacing=\v!packed,
343   \c!leftsentence=\endash,
344   \c!rightsentence=\endash,
345   \c!leftsubsentence=\endash,
346   \c!rightsubsentence=\endash,
347   \c!leftquote=\upperleftsingleninequote,
348   \c!rightquote=\upperrightsinglesixquote,
349   \c!leftquotation=\lowerleftdoubleninequote,
350   \c!rightquotation=\upperrightdoublesixquote,
351   \c!date={\v!day,\space,\v!month,\space,\v!year}]
352
353\installlanguage
354  [\s!bg]
355  [\s!lefthyphenmin=2,
356   \s!righthyphenmin=2,
357   \c!spacing=\v!packed,
358   \c!leftsentence=\leftguillemot,
359   \c!rightsentence=\rightguillemot,
360   \c!leftsubsentence=\lowerleftdoubleninequote,
361   \c!rightsubsentence=\upperrightdoubleninequote,
362   \c!leftquote=\lowerleftsingleninequote,
363   \c!rightquote=\upperrightsinglesixquote,
364   \c!leftquotation=\lowerleftdoubleninequote,
365   \c!rightquotation=\upperrightdoublesixquote,
366   \c!date={\v!day,\space,\v!month,\space,\v!year}]
367
368\installlanguage [\s!russian]    [\s!ru]
369\installlanguage [\s!ukrainian]  [\s!ua]
370\installlanguage [\s!belarussian][\s!be]
371\installlanguage [\s!serbian]    [\s!sr]
372\installlanguage [\s!sr-latn]    [\s!sr]
373\installlanguage [\s!sr-cyrl]    [\s!sr]
374\installlanguage [\s!macedonian] [\s!mk]
375\installlanguage [\s!bulgarian]  [\s!bg]
376
377
378% Uralic Languages: Cheremiss, Estonian, Finnish, Karelian, Laap,
379% Mordvinian, Permian tongues, Hungarian, Ostyak, Vogul, Samoyed
380
381\installlanguage
382  [\s!fi]
383  [\c!spacing=\v!packed,
384   \c!leftsentence=\emdash,
385   \c!rightsentence=\emdash,
386   \c!leftsubsentence=\emdash,
387   \c!rightsubsentence=\emdash,
388   \c!leftquote=\upperleftsinglesixquote,
389   \c!rightquote=\upperrightsingleninequote,
390   \c!leftquotation=\upperleftdoublesixquote,
391   \c!rightquotation=\upperrightdoubleninequote,
392   \c!date={\v!year,\space,\v!month,\space,\v!day}]
393
394\installlanguage
395  [\s!et]
396  [\c!default=\s!en,
397   \c!spacing=\v!packed,
398   \c!leftsentence=\emdash,
399   \c!rightsentence=\emdash,
400   \c!leftsubsentence=\emdash,
401   \c!rightsubsentence=\emdash,
402   \c!leftquote=\leftguillemot,
403   \c!rightquote=\rightguillemot,
404   \c!leftquotation=\lowerrightdoubleninequote,
405   \c!rightquotation=\upperrightdoublesixquote,
406   \c!time={h,{.},m},
407   \c!date={\v!day,.,\space,\v!month,\space,\v!year},
408   \s!patterns=\s!et]
409
410\installlanguage
411  [\s!hu]
412  [\c!spacing=\v!packed,
413   \c!leftsentence=\emdash,
414   \c!rightsentence=\emdash,
415   \c!leftsubsentence=\emdash,
416   \c!rightsubsentence=\emdash,
417   \c!leftquote=\lowerleftsingleninequote,
418   \c!rightquote=\upperrightsingleninequote,
419   \c!leftquotation=\lowerleftdoubleninequote,
420   \c!rightquotation=\upperrightdoubleninequote,
421   \c!date={\v!year,.,\space,\v!month,\space,\v!day,.}]
422
423\installlanguage [\s!finnish]   [\s!fi]
424\installlanguage [\s!estonian]  [\s!et]
425\installlanguage [\s!hungarian] [\s!hu]
426
427% Altaic Languages: Uigur, Uzbek, Azeri/Azerbaijani, Chuvash,
428% Turkish, Turkmen, Kazakh, Kazar, Kireghiz, Noghay, Talar,
429% Buryat, Kalmuck, Khalkha
430
431\installlanguage
432  [\s!tr]
433  [\c!spacing=\v!packed,
434   \c!leftsentence=\emdash,
435   \c!rightsentence=\emdash,
436   \c!leftsubsentence=\emdash,
437   \c!rightsubsentence=\emdash,
438   \c!leftquote=\upperleftsinglesixquote,
439   \c!rightquote=\upperrightsingleninequote,
440   \c!leftquotation=\upperleftdoublesixquote,
441   \c!rightquotation=\upperrightdoubleninequote,
442   \c!date={\v!year,\space,\v!month,\space,\v!day}]
443
444\installlanguage
445  [\s!tk]
446  [\c!spacing=\v!broad,
447   \c!leftsentence=\emdash,
448   \c!rightsentence=\emdash,
449   \c!leftsubsentence=\emdash,
450   \c!rightsubsentence=\emdash,
451   \c!leftquote=\upperleftsinglesixquote,
452   \c!rightquote=\upperrightsingleninequote,
453   \c!leftquotation=\upperleftdoublesixquote,
454   \c!rightquotation=\upperrightdoubleninequote,
455   \c!date={\v!year,\space,\v!month,\space,\v!day},
456   \s!patterns=\s!tk,
457   \s!lefthyphenmin=1,
458   \s!righthyphenmin=2]
459
460\installlanguage [\s!turkish] [\s!tr]
461\installlanguage [\s!turkmen] [\s!tk]
462
463% Anatolian Languages
464
465% Hebrew
466
467\installlanguage % same as arabic now .. someone needs to fix this
468  [\s!he]
469  [\c!spacing=\v!broad,
470   \c!leftsentence=\emdash,
471   \c!rightsentence=\emdash,
472   \c!leftsubsentence=\emdash,
473   \c!rightsubsentence=\emdash,
474   \c!leftquote=\upperleftsinglesixquote,
475   \c!rightquote=\upperrightsingleninequote,
476   \c!leftquotation=\upperleftdoublesixquote,
477   \c!rightquotation=\upperrightdoubleninequote,
478   \c!date={\v!day,\space,\v!month,{،\space},\v!year}]
479
480\installlanguage % same as arabic now .. someone needs to fix this
481  [\s!yi]
482  [\s!he]
483
484\installlanguage [\s!hebrew]  [\s!he]
485\installlanguage [\s!yiddish] [\s!yi]
486
487% Arabic Languages
488
489\installlanguage
490  [\s!ar]
491  [\c!spacing=\v!broad,
492   \c!leftsentence=\emdash,
493   \c!rightsentence=\emdash,
494   \c!leftsubsentence=\emdash,
495   \c!rightsubsentence=\emdash,
496   \c!leftquote=\upperleftsinglesixquote,
497   \c!rightquote=\upperrightsingleninequote,
498   \c!leftquotation=\upperleftdoublesixquote,
499   \c!rightquotation=\upperrightdoubleninequote,
500   \c!date={\v!day,\space,\v!month,{،\space},\v!year}]
501
502\installlanguage [\s!arabic] [\s!ar]
503
504\installlanguage
505  [\s!farsi]
506  [\c!spacing=\v!broad,
507   \c!leftsentence=\emdash,
508   \c!rightsentence=\emdash,
509   \c!leftsubsentence=\emdash,
510   \c!rightsubsentence=\emdash,
511   \c!leftquote=\leftguillemot,
512   \c!rightquote=\rightguillemot,
513   \c!leftquotation=\leftguillemot,
514   \c!rightquotation=\rightguillemot,
515   \c!date={\v!day,\space,\v!month,\space,\v!year}]
516
517\installlanguage [\s!fa]      [\s!farsi]
518\installlanguage [\s!persian] [\s!farsi]
519\installlanguage [\s!pe]      [\s!farsi]
520
521% Just aliases to "ar" for now
522
523\installlanguage[\s!ar-ae][\c!default=\s!ar]    % U.A.E.
524\installlanguage[\s!ar-bh][\c!default=\s!ar]    % Bahrain
525\installlanguage[\s!ar-eg][\c!default=\s!ar]    % Egypt
526\installlanguage[\s!ar-in][\c!default=\s!ar]    % India?
527\installlanguage[\s!ar-kw][\c!default=\s!ar]    % Kuwait
528\installlanguage[\s!ar-ly][\c!default=\s!ar]    % Libya
529\installlanguage[\s!ar-om][\c!default=\s!ar]    % Oman
530\installlanguage[\s!ar-qa][\c!default=\s!ar]    % Qatar
531\installlanguage[\s!ar-sa][\c!default=\s!ar]    % Saudi Arabia
532\installlanguage[\s!ar-sd][\c!default=\s!ar]    % Sudan
533\installlanguage[\s!ar-tn][\c!default=\s!ar]    % Tunisia
534\installlanguage[\s!ar-ye][\c!default=\s!ar]    % Yemen
535
536% Farsi (Persian)
537
538\installlanguage[\s!ar-ir][\c!default=\s!pe]
539%installlanguage[\s!pe-ir][\c!default=\s!pe]
540%installlanguage[\s!fa-ir][\c!default=\s!fa]
541
542% Syriac months
543
544\installlanguage[\s!ar-sy][\c!default=\s!ar]    % Syria
545\installlanguage[\s!ar-iq][\c!default=\s!ar-sy] % Iraq
546\installlanguage[\s!ar-jo][\c!default=\s!ar-sy] % Jordan
547\installlanguage[\s!ar-lb][\c!default=\s!ar-sy] % Lebanon
548
549% Maghribi months
550
551\installlanguage[\s!ar-dz][\c!default=\s!ar]    % Algeria
552\installlanguage[\s!ar-ma][\c!default=\s!ar]    % Morocco
553
554% Artificial Languages: Esperanto
555
556\installlanguage
557  [\s!eo]
558  [\c!spacing=\v!packed,
559   \c!leftsentence=\endash,
560   \c!rightsentence=\endash,
561   \c!leftsubsentence=\endash,
562   \c!rightsubsentence=\endash,
563   \c!leftquote=\upperleftsinglesixquote,         %U+2018,
564   \c!rightquote=\upperrightsingleninequote,      %U+2019,
565   \c!leftquotation=\upperleftdoublesixquote,     %U+201C,
566   \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
567   \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
568   \s!patterns=eo,
569   \s!lefthyphenmin=2,
570   \s!righthyphenmin=2]
571
572\installlanguage[\s!esperanto][\c!default=\s!eo]
573
574% Baltic Languages: Lettish/Latvian, Lietuvių/Lithuanian
575
576\installlanguage
577  [\s!lt]
578  [\c!command=\v!no,
579   \c!spacing=\v!packed,
580   \c!leftsentence=\emdash,
581   \c!rightsentence=\emdash,
582   \c!leftsubsentence=\emdash,
583   \c!rightsubsentence=\emdash,
584   \c!leftquote=\lowerleftdoubleninequote,
585   \c!rightquote=\upperrightdoublesixquote,
586   \c!leftquotation=\lowerleftdoubleninequote,
587   \c!rightquotation=\upperrightdoublesixquote,
588   \c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
589   \s!patterns=\s!lt,
590   \s!lefthyphenmin=2,
591   \s!righthyphenmin=2]
592
593\installlanguage [\s!lithuanian] [\s!lt]
594
595% Celtic: Breton, Welsh, Irish, Manx, Scottish Gaelic
596
597% CJK: Chinese, Japanese, Korean
598
599\installlanguage
600  [\s!cn]
601  [\c!leftsentence=——,
602   \c!rightsentence=——,
603   \c!leftsubsentence=——,
604   \c!rightsubsentence=——,
605   \c!leftquote=,
606   \c!rightquote=,
607   \c!leftquotation=,
608   \c!rightquotation=,
609   \c!date={\v!year,,\space,\v!month,\v!day,}]
610
611\installlanguage
612  [\s!ja]
613  [\c!leftsentence=——,
614   \c!rightsentence=——,
615   \c!leftsubsentence=——,
616   \c!rightsubsentence=——,
617   \c!leftquote=,
618   \c!rightquote=,
619   \c!leftquotation=,
620   \c!rightquotation=,
621   \c!date={西暦,\v!year,,\v!month,,\v!day,}]
622
623\installlanguage
624  [\s!kr]
625  [\c!leftsentence=——,
626   \c!rightsentence=——,
627   \c!leftsubsentence=——,
628   \c!rightsubsentence=——,
629   \c!leftquote=,
630   \c!rightquote=,
631   \c!leftquotation=,
632   \c!rightquotation=,
633 % \c!date={서기,\space,\v!year,\labeltext{\v!year},\space,\v!month,\labeltext{\v!month},\space,\v!day,\labeltext{\v!day}}]
634   \c!date={\v!year,\labeltext{\v!year},\space,\v!month,\labeltext{\v!month},\space,\v!day,\labeltext{\v!day}}]
635
636\installlanguage [\s!chinese]  [\s!cn]
637\installlanguage [\s!japanese] [\s!ja]
638\installlanguage [\s!korean]   [\s!kr]
639
640% Greek
641
642\installlanguage
643  [\s!gr]
644  [\c!spacing=\v!packed,
645   \c!leftsentence=\emdash,
646   \c!rightsentence=\emdash,
647   \c!leftsubsentence=\emdash,
648   \c!rightsubsentence=\emdash,
649   \c!leftquote=,
650   \c!rightquote=,
651   \c!leftquotation=«,
652   \c!rightquotation=»,
653   \c!date={\v!day\space\v!month\space\v!year},
654   \s!patterns=\s!agr] % ok?
655
656\installlanguage [\s!greek] [\s!gr]
657
658\installlanguage
659  [\s!agr]
660  [\s!default=\s!gr,
661   \c!leftquote=\upperleftsinglesixquote,
662   \c!rightquote=\upperrightsingleninequote,
663   \c!leftquotation=\upperleftdoublesixquote,
664   \c!rightquotation=\upperrightdoubleninequote]
665
666\installlanguage [\s!ancientgreek] [\s!agr]
667
668% Indo-Iranian Languages: 34.
669
670% Italic Languages: Latin, Italian, Rhaeto-Romanic, Rumanian,
671% Sardian, Catalan, French, Ladino, Portuguese, Proven\c{c}al,
672% Spanish
673
674\installlanguage
675  [\s!fr]
676  [\c!spacing=\v!packed,
677   \c!leftsentence=\emdash,
678   \c!rightsentence=\emdash,
679   \c!leftsubsentence=\emdash,
680   \c!rightsubsentence=\emdash,
681   \c!leftquote=\leftguillemot,
682   \c!rightquote=\rightguillemot,
683   \c!leftquotation=\leftguillemot,
684   \c!rightquotation=\rightguillemot,
685   \c!time={h,{\Uchar104 },m},% we need to cheat in order to get the h
686   \c!date={\v!day:mnem,\v!space,\v!month,\v!space,\v!year}]
687
688\installlanguage
689  [\s!es]
690  [\c!spacing=\v!packed,
691   \c!leftsentence=\emdash,
692   \c!rightsentence=\emdash,
693   \c!leftsubsentence=\emdash,
694   \c!rightsubsentence=\emdash,
695   \c!leftquote=\upperleftsinglesixquote,
696   \c!rightquote=\upperrightsingleninequote,
697   \c!leftquotation=\upperleftdoublesixquote,
698   \c!rightquotation=\upperrightdoubleninequote,
699   \c!date={\v!day,{ de },\v!month,{ de },\v!year}]
700
701\installlanguage [sp] [\s!es] % old times context
702
703\installlanguage
704  [\s!ca]
705  [\c!spacing=\v!packed,
706   \c!leftsentence=\emdash,
707   \c!rightsentence=\emdash,
708   \c!leftsubsentence=\emdash,
709   \c!rightsubsentence=\emdash,
710   \c!leftquote=\upperleftsinglesixquote,
711   \c!rightquote=\upperrightsingleninequote,
712   \c!leftquotation=\upperleftdoublesixquote,
713   \c!rightquotation=\upperrightdoubleninequote,
714   \c!date={\v!day,\space,\v!month,\space,\v!year}]
715
716% Note GB left|/|right (sub)sentences are for \quote {incisi}.
717
718\installlanguage
719  [\s!it]
720  [\c!command=\v!no,
721   \c!spacing=\v!packed,
722   \c!leftsentence=\emdash,
723   \c!rightsentence=\emdash,
724   \c!leftsubsentence=\endash,
725   \c!rightsubsentence=\endash,
726   \c!leftquote=\upperleftsinglesixquote,
727   \c!rightquote=\upperrightsingleninequote,
728   \c!leftquotation=\upperleftdoublesixquote,
729   \c!rightquotation=\upperrightdoubleninequote,
730   \c!leftspeech=\leftguillemot,
731   \c!middlespeech=\leftguillemot,
732   \c!rightspeech=\rightguillemot,
733   \c!date={\v!day,\space,\v!month,\space,\v!year}]
734
735\installlanguage % the same as italian
736  [\s!la]
737  [\c!spacing=\v!packed,
738   \c!leftsentence=\emdash,
739   \c!rightsentence=\emdash,
740   \c!leftsubsentence=\emdash,
741   \c!rightsubsentence=\emdash,
742   \c!leftquote=\upperleftsinglesixquote,
743   \c!rightquote=\upperrightsingleninequote,
744   \c!leftquotation=\upperleftdoublesixquote,
745   \c!rightquotation=\upperrightdoubleninequote,
746   \c!date={\v!day,\space,\v!month,\space,\v!year}]
747
748\installlanguage % ancient latin
749  [\s!ala]
750  [\c!default=\s!la]
751
752\installlanguage
753  [\s!pt]
754  [\c!spacing=\v!packed,
755   \c!leftsentence=\emdash,
756   \c!rightsentence=\emdash,
757   \c!leftsubsentence=\emdash,
758   \c!rightsubsentence=\emdash,
759   \c!leftquote=\upperleftsinglesixquote,
760   \c!rightquote=\upperrightsingleninequote,
761   \c!leftquotation=\upperleftdoublesixquote,
762   \c!rightquotation=\upperrightdoubleninequote,
763   \c!date={\v!year,\space,\v!month,\space,\v!day}]
764
765\installlanguage[\s!pt-br][\c!default=\s!pt]    % Brazil
766\installlanguage[\s!es-es][\c!default=\s!es]    % Spain
767\installlanguage[\s!es-la][\c!default=\s!es]    % Latin America
768
769\installlanguage
770  [\s!ro]
771  [\c!spacing=\v!packed,
772   \c!leftsentence=\emdash,
773   \c!rightsentence=\emdash,
774   \c!leftsubsentence=\emdash,
775   \c!rightsubsentence=\emdash,
776   \c!leftquote=\leftguillemot,
777   \c!rightquote=\rightguillemot,
778   \c!leftquotation=\lowerrightdoubleninequote,
779   \c!rightquotation=\upperleftdoublesixquote,
780   \c!date={\v!day,\space,\v!month,\space,\v!year}]
781
782%D For compatibility reasons we also define:
783
784\installlanguage [\s!french]      [\s!fr]
785\installlanguage [\s!spanish]     [\s!es]
786\installlanguage [\s!catalan]     [\s!ca]
787\installlanguage [\s!italian]     [\s!it]
788\installlanguage [\s!latin]       [\s!la]
789\installlanguage [\s!portuguese]  [\s!pt]
790\installlanguage [\s!romanian]    [\s!ro]
791
792% Vietnamese Language
793
794\installlanguage
795  [\s!vi]
796  [\c!spacing=\v!packed,
797   \c!leftsentence=\emdash,
798   \c!rightsentence=\emdash,
799   \c!leftsubsentence=\emdash,
800   \c!rightsubsentence=\emdash,
801   \c!leftquote=\quoteleft,
802   \c!rightquote=\quoteright,
803   \c!leftquotation=\quotedblleft,
804   \c!rightquotation=\quotedblright,
805   \c!date={{ },dd,{/},mm,{/},yy}]
806
807\installlanguage [\s!vietnamese] [\s!vi]
808
809% Thai (teaser for Mojca)
810
811\installlanguage
812  [\s!th]
813  [\c!spacing=\v!broad,
814   \c!leftsentence=\emdash,
815   \c!rightsentence=\emdash,
816   \c!leftsubsentence=\emdash,
817   \c!rightsubsentence=\emdash,
818   \c!leftquote=\upperleftsinglesixquote,
819   \c!rightquote=\upperrightsingleninequote,
820   \c!leftquotation=\upperleftdoublesixquote,
821   \c!rightquotation=\upperrightdoubleninequote,
822   \c!date={\v!month,\space,\v!day,{,\space},\v!year},
823   \s!patterns=\s!th,
824   \s!lefthyphenmin=2,
825   \s!righthyphenmin=3]
826
827\installlanguage [\s!thai] [\s!th]
828
829%D Malayalam (needs to be checked)
830
831\installlanguage
832  [\s!ml]
833  [\c!spacing=\v!broad,
834   \c!leftsentence=\emdash,
835   \c!rightsentence=\emdash,
836   \c!leftsubsentence=\emdash,
837   \c!rightsubsentence=\emdash,
838   \c!leftquote=\upperleftsinglesixquote,
839   \c!rightquote=\upperrightsingleninequote,
840   \c!leftquotation=\upperleftdoublesixquote,
841   \c!rightquotation=\upperrightdoubleninequote,
842   \c!date={\v!month,\space,\v!day,{,\space},\v!year},
843   \s!patterns=\s!ml,
844   \s!lefthyphenmin=2,
845   \s!righthyphenmin=3]
846
847\installlanguage [\s!malayalam] [\s!ml]
848
849%D Todo: generate this one from languages.data
850
851\installlanguage[nld][\s!nl]
852\installlanguage[deu][\s!de]
853\installlanguage[eng][\s!en]
854\installlanguage[fra][\s!fr]
855%installlanguage[grk][\s!agr]
856
857%D This might go:
858
859\installlanguage[cz][\s!cs]
860%installlanguage[fa][\s!fr] % for dutchies only
861
862\protect \endinput
863