]> git.lyx.org Git - lyx.git/blob - lib/languages
ea8a7c77fa09fbf2095650ae6360ae4c08d3b188
[lyx.git] / lib / languages
1 ##########################################################################
2 #
3 # Languages supported by LyX.
4 #
5 # Syntax:
6 #
7 # Language <lyxname>
8 #       GuiName            "<Gui Name>"
9 #       HasGuiSupport      <true|false>
10 #       BabelName          <babelname>
11 #       PolyglossiaName    <polyglossianame>
12 #       PolyglossiaOpts    "<language-specific options>"
13 #       QuoteStyle         <british|danish|english|french|frenchin|
14 #                           german|polish|russian|swedish|swedishg|swiss|plain>
15 #       DateFormats        "<long>|<medium>|<short>"
16 #       Encoding           <encoding>
17 #       FontEncoding       <font encoding|font encoding|...>
18 #       InternalEncoding   <true|false>
19 #       RTL                <true|false>
20 #       AsBabelOptions     <true|false>
21 #       LangCode           <language_code>
22 #       LangVariety        <language_variety>
23 #       PreBabelPreamble
24 #         <extra latex code inserted before babel>
25 #       EndPreBabelPreamble
26 #       PostBabelPreamble
27 #         <extra latex code inserted after babel>
28 #       EndPostBabelPreamble
29 #       Requires           <requirement>
30 #       Provides           <babel language feature>
31 # End
32 #
33 #
34 # NOTES:
35 #
36 # * If we provide Polyglossia languages with different options, the default
37 #   options (such as "variant=american", "spelling=modern") should be
38 #   explicitely spelled out (in order to provide mixing of such variants).
39 # * Omitted elements will be treated as empty (if string) or "false"
40 #   (if boolean).
41 # * When HasGuiSupport is true, the language is candidate to appear in
42 #   the list of possible GUI languages in the Preferences dialog. It
43 #   will actually appear there only if a corresponding .mo file can be
44 #   found among the translations. When several languages correspond to
45 #   the same translation -- like English, English (US) and English
46 #   (UK) -- try to select the entry that is most generic -- here
47 #   English.
48 # * The QuoteStyle arguments correspond to the following styles:
49 #                  PRIMARY              SECONDARY
50 #   - british:    `text'                ``text''        (6_9 -- 66_99)
51 #   - cjk:        corner brackets       white corner br.
52 #   - cjk-angle:  double angle br.      angle br.
53 #   - danish:     >>text<<              >text<          (inward guillemets)
54 #   - english:    ``text''              `text'          (66_99 -- 6_9)
55 #   - french:     <<text>>              ``text''        (outward guillemets -- 66_99)
56 #   - frenchin:   <<text>>              <<text>>        (French Imprimerie Nationale style)
57 #   - german:     ,,text``              ,text`          (99/66 -- 9/6)
58 #   - polish:     ,,text''              ,text'          (99/99 -- 9/9)
59 #   - russian:    <<text>>              ,,text``        (outward guillemets -- 99/66)
60 #   - swedish:    ''text''              'text'          (99_99 -- 9_9)
61 #   - swedishg:   >>text>>              'text'          (Swedish Guillemets)
62 #   - swiss:      <<text>>              <text>          (outward guillemets)
63 #   - plain:      "text"                'text'          (non-typographical quotes)
64 #   Note that the option names have been selected (rather arbitrarily)
65 #   because the respective styles are common in the respective countries.
66 #   Of course this does not imply any fixed relation to those countries.
67 # * DateFormats lists the localized conventions for three date forms:
68 #   - Long: December 1, 2018
69 #   - Medium: Dec 1, 2018
70 #   - Short: 1/12/2018
71 #   These are separated by | and use the QDate syntax:
72 #   * d the day as number without a leading zero (1 to 31)
73 #   * dd        the day as number with a leading zero (01 to 31)
74 #   * ddd       the abbreviated localized day name (e.g. 'Mon' to 'Sun')
75 #   * dddd      the long localized day name (e.g. 'Monday' to 'Sunday')
76 #   * M the month as number without a leading zero (1 to 12)
77 #   * MM        the month as number with a leading zero (01 to 12)
78 #   * MMM       the abbreviated localized month name (e.g. 'Jan' to 'Dec')
79 #   * MMMM      the long localized month name (e.g. 'January' to 'December')
80 #   * yy        the year as two digit number (00 to 99)
81 #   * yyyy      the year as four digit number
82 # * Encoding is the default encoding used with TeX fonts.
83 #   It is only used if Document > Settings > Language > Encoding
84 #   is set to "Language Default" or "Language Default (no inputenc)"
85 #   and "use non-TeX fonts" is FALSE.
86 #   Encoding "inherit" means: keep encoding of the context (used by
87 #   latex_language).
88 # * FontEncoding is a bar-separated list of font encodings.
89 #   The first value is the required font encoding for correct hyphenation with
90 #   8-bit TeX (http://www.hyphenation.org). Eventually following values may be
91 #   used if the selected font is unavailable in FontEncoding. They provide all
92 #   letters used in the language, but some only as "surrogate pairs" with
93 #   possible problems for hyphenation and drag-and-drop from the generated
94 #   documents. Default: "ASCII".
95 #   * "FontEncoding ASCII" means: "works with any standard text encoding
96 #     (T<n>) as well as OT1".
97 #   * "FontEncoding none" tells LyX that fontenc should not be loaded with
98 #     this language.
99 # * InternalEncoding is used to tell LyX that babel internally sets a
100 #   non-standard font encoding (such as hebrew to LHE or greek to LGR).
101 #   If True, LyX takes care for characters/macros that do not exist in
102 #   some font encodings ("<", ">", "|" and straight quote).
103 #   It is not required for standard encodings like T2A. See bug #5091.
104 # * AsBabelOptions advices LyX to pass the languages locally to babel, not
105 #   globally to the class. In the old days, some languages (basically those
106 #   not natively supported by babel) needed this.
107 #   FIXME: in this case, we might still need to pass the other languages
108 #          globally, for the use of other packages (such as varioref).
109 # * LangCode is also used for spellchecking and thesaurus, where the
110 #   dictionaries are named accordingly. Thus, check this when introducing/
111 #   changing language codes (especially aspell, thesaurus).
112 #   TODO: maybe use Best Current Practice (BCP 47) codes for LangCode
113 #         http://www.rfc-editor.org/rfc/bcp/bcp47.txt
114 #         http://www.w3.org/International/articles/language-tags/
115 #         http://www.iana.org/assignments/language-subtag-registry
116 # * LangVariety is used by the aspell spellchecker to differentiate
117 #   dictionaries for different varieties of a given language (e.g. German
118 #   pre-1998 and post-1998 spelling). The aspell dictionaries are named
119 #   language[_REGION][-variety].multi, e.g. de-alt.multi for "German (old
120 #   spelling)" (see http://aspell.net/man-html/Dictionary-Naming.html)
121 # * Provides lists features that are provided by specific Babel languages,
122 #   but are available globally if this language is used (not only for this
123 #   language. Examples are \textgreek (Greek) and \textcyrillic (Russian).
124 #
125 ##########################################################################
126
127 #
128 # LyX-internal languages
129 #
130
131 Language ignore
132         GuiName          "Ignore"
133         BabelName        ignore
134         PolyglossiaName  ignore
135         Encoding         inherit
136         LangCode         ignore
137 End
138
139 Language latex
140         GuiName          "LaTeX"
141         Encoding         inherit
142         LangCode         latex
143 End
144
145 #
146 # Real languages
147 #
148
149 # not yet supported by polyglossia
150 Language afrikaans
151         GuiName          "Afrikaans"
152         BabelName        afrikaans
153         QuoteStyle       polish
154         Encoding         iso8859-15
155         FontEncoding     T1|OT1
156         DateFormats      "dd MMMM yyyy|dd MMM yyyy|yyyy/MM/dd"
157         LangCode         af_ZA
158 End
159
160 # FontEncoding: no hyphenation, but uses Ç/ç und Ë/ë
161 Language albanian
162         GuiName          "Albanian"
163         BabelName        albanian
164         # babel-albanian (albanian.ldf) (re-)defines the functions
165         # \sh \ch \th \cth \arsh \arch \arth \arcth \tg \ctg \arctg
166         # as math operators. This clashes with \th == letter thorn
167         # in font encoding T1
168         PostBabelPreamble
169           % fix albanian: restore \th as LATIN LETTER THORN
170           \@ifl@aded{def}{t1enc}{\DeclareTextSymbol{\th}{T1}{254}}{}
171         EndPostBabelPreamble
172         PolyglossiaName  albanian
173         QuoteStyle       swiss
174         Encoding         iso8859-2
175         FontEncoding     T1|OT1
176         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
177         LangCode         sq_AL
178 End
179
180 Language american
181         GuiName          "English (USA)"
182         BabelName        american
183         PolyglossiaName  english
184         PolyglossiaOpts  "variant=american"
185         QuoteStyle       english
186         Encoding         iso8859-15
187         FontEncoding     ASCII
188         DateFormats      "MMMM dd, yyyy|MMM dd, yyyy|M/d/yyyy"
189         LangCode         en_US
190 End
191
192 # not supported by babel
193 Language amharic
194         GuiName          "Amharic"
195         PolyglossiaName  amharic
196         Encoding         utf8
197         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
198         LangCode         am_ET
199 End
200
201 # In Babel, this is supported since v. 1.8a of babel-greek (2013-12-03)
202 # We introduce it with LyX 2.2 to give the support time to settle.
203 Language ancientgreek
204         GuiName          "Greek (ancient)"
205         BabelName        greek
206         PostBabelPreamble
207         \languageattribute{greek}{ancient}
208         EndPostBabelPreamble
209         PolyglossiaName  greek
210         PolyglossiaOpts  "variant=ancient"
211         QuoteStyle       french
212         Encoding         iso8859-7
213         InternalEncoding true
214         FontEncoding     LGR
215         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
216         LangCode         grc_GR
217         Provides         textgreek
218 End
219
220 # FIXME: dummy babel language for arabic_arabtex to be able
221 # to switch the language the way of the ArabTeX-package
222 Language arabic_arabtex
223         GuiName          "Arabic (ArabTeX)"
224         HasGuiSupport    true
225         BabelName        arabtex
226         QuoteStyle       french
227         Encoding         cp1256
228         DateFormats      "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
229         RTL              true
230         LangCode         ar_SA
231 End
232
233 # polyglossia uses "Arabic" for the lang environment
234 Language arabic_arabi
235         GuiName          "Arabic (Arabi)"
236         BabelName        arabic
237         PolyglossiaName  arabic
238         QuoteStyle       french
239         Encoding         cp1256
240         FontEncoding     LAE
241         DateFormats      "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
242         RTL              true
243         PostBabelPreamble
244           % arabi + hyperref redefines \noboundary as local textcommand
245           \let\orig@noboundary\noboundary
246           \DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
247         EndPostBabelPreamble
248         LangCode         ar_SA
249 End
250
251 # not supported by babel
252 Language armenian
253         GuiName          "Armenian"
254         PolyglossiaName  armenian
255         QuoteStyle       swiss
256         Encoding         utf8
257         DateFormats      "d MMMM، yyyy|d MMM، yyyy|d/M/yyyy"
258         LangCode         hy_AM
259 End
260
261 # not supported by babel
262 Language asturian
263         GuiName          "Asturian"
264         PolyglossiaName  asturian
265         QuoteStyle       french
266         Encoding         iso8859-15
267         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
268         LangCode         ast_ES
269 End
270
271
272 Language australian
273         GuiName          "English (Australia)"
274         BabelName        australian
275         PolyglossiaName  english
276         PolyglossiaOpts  "variant=australian"
277         Encoding         iso8859-15
278         FontEncoding     ASCII
279         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
280         QuoteStyle       english
281         LangCode         en_AU
282 End
283
284 # In polyglossia, this is supported since release 1.33.4 (May 2014)
285 # We introduce it with LyX 2.2 to give the support time to settle.
286 # Due to the variety, we use no country code.
287 Language austrian
288         GuiName          "German (Austria, old spelling)"
289         BabelName        austrian
290         PolyglossiaName  german
291         PolyglossiaOpts  "variant=austrian,spelling=old,babelshorthands=true"
292         QuoteStyle       german
293         Encoding         iso8859-15
294         FontEncoding     T1|OT1
295         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
296         LangCode         de
297         LangVariety      alt
298 End
299
300 # In polyglossia, this is supported since release 1.33.4 (May 2014)
301 # We introduce it with LyX 2.2 to give the support time to settle.
302 Language naustrian
303         GuiName          "German (Austria)"
304         BabelName        naustrian
305         PolyglossiaName  german
306         PolyglossiaOpts  "variant=austrian,spelling=new,babelshorthands=true"
307         QuoteStyle       german
308         Encoding         iso8859-15
309         FontEncoding     T1|OT1
310         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
311         LangCode         de_AT
312 End
313
314 Language bahasa
315         GuiName          "Indonesian"
316         HasGuiSupport    true
317         BabelName        bahasa
318         PolyglossiaName  bahasai
319         QuoteStyle       english
320         Encoding         iso8859-15
321         FontEncoding     ASCII
322         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
323         LangCode         id_ID
324 End
325
326 Language bahasam
327         GuiName          "Malay"
328         BabelName        bahasam
329         PolyglossiaName  bahasam
330         QuoteStyle       english
331         Encoding         iso8859-15
332         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
333         LangCode         ms_MY
334 End
335
336 Language basque
337         GuiName          "Basque"
338         HasGuiSupport    true
339         BabelName        basque
340         PolyglossiaName  basque
341         QuoteStyle       swiss
342         Encoding         iso8859-15
343         FontEncoding     T1|OT1
344         DateFormats      "yyyy MMMM dd|yyyy MMM dd|yyyy/MM/dd"
345         LangCode         eu_ES
346         PostBabelPreamble
347         \addto\extrasbasque{\bbl@deactivate{~}}
348         EndPostBabelPreamble
349 End
350
351 # not yet supported by polyglossia
352 # Up to 2018-08-25 (babel-belarusian 1.4), the babel option is "belarusianb"
353 # but the language name "belarusian" (without trailing "b").
354 Language belarusian
355         GuiName          "Belarusian"
356         BabelName        belarusian
357         QuoteStyle       french
358         Encoding         cp1251
359         FontEncoding     T2A
360         DateFormats      "dd MMMM yyyy|d MMM yyyy|d.M.yyyy"
361         LangCode         be_BY
362 End
363
364 # supported by polyglossia but not LyX:
365 # Language bengali
366 #       PolyglossiaName  bengali
367
368 # not yet supported by polyglossia
369 # The (rarely used) Cyrillic script is not supported (try serbian).
370 Language bosnian
371         GuiName          "Bosnian"
372         BabelName        bosnian
373         QuoteStyle       polish
374         Encoding         iso8859-2
375         FontEncoding     T1|OT1
376         DateFormats      "d. MMMM yyyy|d. MMM yyyy|yyyy-MM-dd"
377         LangCode         bs_BA
378 End
379
380 Language brazilian
381         GuiName          "Portuguese (Brazil)"
382         HasGuiSupport    true
383         BabelName        brazil
384         PolyglossiaName  brazil
385         QuoteStyle       english
386         Encoding         iso8859-15
387         FontEncoding     T1|OT1
388         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|dd/MM/yyyy"
389         LangCode         pt_BR
390 End
391
392 # FontEncoding: # ? no hyphenation, but uses ñ
393 Language breton
394         GuiName          "Breton"
395         BabelName        breton
396         PolyglossiaName  breton
397         QuoteStyle       french
398         Encoding         iso8859-15
399         #FontEncoding    T1
400         DateFormats      "dd MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
401         LangCode         br_FR
402 End
403
404 Language british
405         GuiName          "English (UK)"
406         BabelName        british
407         PolyglossiaName  english
408         PolyglossiaOpts  "variant=british"
409         QuoteStyle       british
410         Encoding         iso8859-15
411         FontEncoding     ASCII
412         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
413         LangCode         en_GB
414 End
415
416 Language bulgarian
417         GuiName          "Bulgarian"
418         HasGuiSupport    true
419         BabelName        bulgarian
420         PolyglossiaName  bulgarian
421         QuoteStyle       german
422         Encoding         cp1251
423         FontEncoding     T2A
424         DateFormats      "dd MMMM yyyy|d MMM yyyy|yyyy-M-d"
425         LangCode         bg_BG
426         Provides         textcyrillic
427 End
428
429 # not yet supported by polyglossia
430 Language canadian
431         GuiName          "English (Canada)"
432         BabelName        canadian
433 #       PolyglossiaName  english
434 #       PolyglossiaOpts  "variant=canadian"
435         QuoteStyle       english
436         Encoding         iso8859-15
437         FontEncoding     ASCII
438         DateFormats      "MMMM d, yyyy|d MMM yyyy|yyyy-MM-dd"
439         LangCode         en_CA
440 End
441
442 # not yet supported by polyglossia
443 # Note: If polyglossia support gets implemented, french needs
444 #       PolyglossiaOpts  "variant=french"
445 Language canadien
446         GuiName          "French (Canada)"
447         BabelName        canadien
448 #       PolyglossiaName  french
449 #       PolyglossiaOpts  "variant=canadien"
450         QuoteStyle       french
451         Encoding         iso8859-15
452         FontEncoding     T1|OT1
453         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
454         LangCode         fr_CA
455 End
456
457 Language catalan
458         GuiName          "Catalan"
459         HasGuiSupport    true
460         BabelName        catalan
461         PolyglossiaName  catalan
462         PolyglossiaOpts  "babelshorthands=true"
463         QuoteStyle       french
464         Encoding         iso8859-15
465         FontEncoding     T1|OT1
466         DateFormats      "d / MMMM / yyyy|d / MMM / yyyy|dd/MM/yyyy"
467         LangCode         ca_ES
468 End
469
470 # uses CJK package
471 Language chinese-simplified
472         GuiName          "Chinese (simplified)"
473         HasGuiSupport    true
474         Encoding         euc-cn
475         QuoteStyle       english
476         LangCode         zh_CN
477         DateFormats      "yyyy年M月d日|yyyy-M-d|yy-M-d"
478         Requires         CJK
479 End
480
481 # uses CJK package
482 Language chinese-traditional
483         GuiName         "Chinese (traditional)"
484         HasGuiSupport    true
485         QuoteStyle       cjk
486         Encoding         utf8-cjk
487         LangCode         zh_TW
488         DateFormats      "yyyy年M月d日|yyyy年M月d日|yy年M月d日"
489         Requires         CJK
490 End
491
492 # supported by polyglossia but not LyX:
493 # Language churchslavonic
494 #       PolyglossiaName  churchslavonic
495
496 # not supported by babel
497 # FIXME DateFormats
498 Language coptic
499         GuiName          "Coptic"
500         PolyglossiaName  coptic
501         Encoding         utf8
502         LangCode         cop_EG
503 End
504
505 Language croatian
506         GuiName          "Croatian"
507         BabelName        croatian
508         PolyglossiaName  croatian
509         QuoteStyle       polish
510         Encoding         iso8859-2
511         FontEncoding     T1|OT1
512         DateFormats      "d. MMMM yyyy.|d. MMM. yyyy.|dd.MM.yyyy."
513         LangCode         hr_HR
514 End
515
516 Language czech
517         GuiName          "Czech"
518         HasGuiSupport    true
519         BabelName        czech
520         PolyglossiaName  czech
521         QuoteStyle       german
522         Encoding         iso8859-2
523         FontEncoding     T1|OT1
524         DateFormats      "d. MMMM yyyy|d. MMM. yyyy|d.M.yyyy"
525         LangCode         cs_CZ
526 End
527
528 Language danish
529         GuiName          "Danish"
530         HasGuiSupport    true
531         BabelName        danish
532         PolyglossiaName  danish
533         QuoteStyle       danish
534         Encoding         iso8859-15
535         FontEncoding     T1|OT1
536         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd/MM/yyyy"
537         LangCode         da_DK
538 End
539
540 # not supported by babel
541 Language divehi
542         GuiName          "Divehi (Maldivian)"
543         PolyglossiaName  divehi
544         Encoding         utf8
545         DateFormats      "yyyy MMMM dd|yyyy MMM dd|dd/MM/yyyy"
546         LangCode         dv_MV
547 End
548
549 Language dutch
550         GuiName          "Dutch"
551         HasGuiSupport    true
552         BabelName        dutch
553         PolyglossiaName  dutch
554         PolyglossiaOpts  "babelshorthands=true"
555         QuoteStyle       polish
556         Encoding         iso8859-15
557         FontEncoding     T1|OT1
558         DateFormats      "d MMMM yyyy|d MMM yyyy|d-M-yyyy"
559         LangCode         nl_NL
560 End
561
562 Language english
563         GuiName          "English"
564         HasGuiSupport    true
565         BabelName        english
566         PolyglossiaName  english
567         PolyglossiaOpts  "variant=american"
568         QuoteStyle       english
569         DateFormats      "MMMM dd, yyyy|MMM dd, yyyy|M/d/yyyy"
570         Encoding         iso8859-15
571         FontEncoding     ASCII
572         LangCode         en_US
573 End
574
575 # Esperanto has no country code because it is an auxiliary language.
576 # We therefore use the name of its hunspell dictionary.
577 Language esperanto
578         GuiName          "Esperanto"
579         BabelName        esperanto
580         PolyglossiaName  esperanto
581         QuoteStyle       english
582         Encoding         iso8859-3
583         FontEncoding     IL3|T1|OT1
584         DateFormats      "'la' d 'de' MMMM yyyy|'la' d 'de' MMM yyyy|MM/dd/yyyy"
585         LangCode         eo_EO
586 End
587
588 Language estonian
589         GuiName          "Estonian"
590         BabelName        estonian
591         PolyglossiaName  estonian
592         QuoteStyle       german
593         Encoding         iso8859-15
594         FontEncoding     T1|OT1
595         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
596         LangCode         et_EE
597         PostBabelPreamble
598         \addto\extrasestonian{\bbl@deactivate{~}}
599         EndPostBabelPreamble
600 End
601
602 # the preamble definitions are only used due to bugs in the
603 # arabi-package -- remove them if they become unnecessary!
604 Language farsi
605         GuiName          "Farsi"
606         BabelName        farsi
607         PolyglossiaName  farsi
608         Encoding         utf8
609         FontEncoding     LAE,LFE
610         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy/M/d"
611         RTL              true
612         LangCode         fa_IR
613         QuoteStyle       english
614         PostBabelPreamble
615         \DeclareTextSymbol{\guillemotright}{LFE}{62}
616         \DeclareTextSymbol{\guillemotleft}{LFE}{60}
617         EndPostBabelPreamble
618 End
619
620 Language finnish
621         GuiName          "Finnish"
622         HasGuiSupport    true
623         BabelName        finnish
624         PolyglossiaName  finnish
625         QuoteStyle       swedish
626         Encoding         iso8859-15
627         FontEncoding     T1|OT1
628         DateFormats      "d. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
629         LangCode         fi_FI
630 End
631
632 # We redefine \og and \fg (guillemets) for older french language definitions
633 Language french
634         GuiName          "French"
635         HasGuiSupport    true
636         BabelName        french
637         PolyglossiaName  french
638         QuoteStyle       french
639         Encoding         iso8859-15
640         FontEncoding     T1|OT1
641         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
642         LangCode         fr_FR
643         PostBabelPreamble
644         \addto\extrasfrench{%
645            \providecommand{\og}{\leavevmode\flqq~}%
646            \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
647         }
648         EndPostBabelPreamble
649 End
650
651 Language friulan
652         GuiName          "Friulian"
653         HasGuiSupport    true
654         BabelName        friulan
655         PolyglossiaName  friulan
656         QuoteStyle       french
657         Encoding         iso8859-15
658         FontEncoding     T1|OT1
659         DateFormats      "d 'di' MMMM 'dal' yyyy|d 'di' MMM 'dal' yyyy|dd/MM/yyyy"
660         LangCode         fur_IT
661 End
662
663 Language galician
664         GuiName          "Galician"
665         HasGuiSupport    true
666         BabelName        galician
667         PolyglossiaName  galician
668         QuoteStyle       french
669         Encoding         iso8859-15
670         FontEncoding     T1|OT1
671         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|dd/MM/yyyy"
672         LangCode         gl_ES
673         PostBabelPreamble
674         \addto\shorthandsgalician{\galiciandeactivate{~}}
675         EndPostBabelPreamble
676 End
677
678 # FIXME DateFormats
679 Language georgian
680         GuiName          "Georgian"
681         BabelName        georgian
682         QuoteStyle       german
683         Encoding         utf8
684         FontEncoding     T8M
685         LangCode         ka_GE
686 End
687
688 # german does not use a country code (due to the variety)
689 Language german
690         GuiName          "German (old spelling)"
691         BabelName        german
692         PolyglossiaName  german
693         PolyglossiaOpts  "variant=german,spelling=old,babelshorthands=true"
694         QuoteStyle       german
695         Encoding         iso8859-15
696         FontEncoding     T1|OT1
697         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
698         LangCode         de
699         LangVariety      alt
700 End
701
702 Language ngerman
703         GuiName          "German"
704         HasGuiSupport    true
705         BabelName        ngerman
706         PolyglossiaName  german
707         PolyglossiaOpts  "variant=german,spelling=new,babelshorthands=true"
708         QuoteStyle       german
709         Encoding         iso8859-15
710         FontEncoding     T1|OT1
711         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
712         LangCode         de_DE
713 End
714
715 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
716 # We introduce it with LyX 2.2 to give the support time to settle.
717 # In polyglossia, this is supported since release 1.33.6 (May 2015)
718 # We introduce it with LyX 2.3 to give the support time to settle.
719 Language german-ch
720         GuiName          "German (Switzerland)"
721         BabelName        nswissgerman
722         PolyglossiaName  german
723         PolyglossiaOpts  "variant=swiss,spelling=new,babelshorthands=true"
724         QuoteStyle       swiss
725         Encoding         iso8859-15
726         FontEncoding     T1|OT1
727         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
728         LangCode         de_CH
729 End
730
731 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
732 # In polyglossia, this is supported since release 1.33.6 (May 2015)
733 # We introduce it with LyX 2.3 to give the support time to settle.
734 Language german-ch-old
735         GuiName          "German (Switzerland, old spelling)"
736         BabelName        swissgerman
737         PolyglossiaName  german
738         PolyglossiaOpts  "variant=swiss,spelling=old,babelshorthands=true"
739         QuoteStyle       swiss
740         Encoding         iso8859-15
741         FontEncoding     T1|OT1
742         DateFormats      "dd. MMMM yyyy|dd. MMM yyyy|dd.MM.yyyy"
743         LangCode         de_CH
744 End
745
746 Language greek
747         GuiName          "Greek"
748         HasGuiSupport    true
749         BabelName        greek
750         PolyglossiaName  greek
751         PolyglossiaOpts  "variant=monotonic"
752         QuoteStyle       french
753         Encoding         iso8859-7
754         InternalEncoding true
755         FontEncoding     LGR
756         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
757         LangCode         el_GR
758         Provides         textgreek
759 End
760
761 Language polutonikogreek
762         GuiName          "Greek (polytonic)"
763         BabelName        polutonikogreek
764         PolyglossiaName  greek
765         PolyglossiaOpts  "variant=polytonic"
766         QuoteStyle       french
767         Encoding         iso8859-7
768         InternalEncoding true
769         FontEncoding     LGR
770         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
771         LangCode         el_GR
772         Provides         textgreek
773 End
774
775 Language hebrew
776         GuiName          "Hebrew"
777         HasGuiSupport    true
778         BabelName        hebrew
779         PolyglossiaName  hebrew
780         Encoding         cp1255
781         QuoteStyle       english
782         InternalEncoding true
783         # babel-hebrew expects the encoding for *other* languages last:
784         # FontEncoding    HE8
785         # Define the font encoding the babel-hebrew way and
786         # work around too simple test for article-like classes in rlbabel.def.
787         PreBabelPreamble
788           \providecommand{\l@chapter}{\relax}
789         EndPreBabelPreamble
790         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
791         RTL              true
792         LangCode         he_IL
793 End
794
795 # not supported by babel
796 Language hindi
797         GuiName          "Hindi"
798         PolyglossiaName  hindi
799         Encoding         utf8
800         DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd-MM-yyyy"
801         LangCode         hi_IN
802 End
803
804 # Currently not supported (file format change!)
805 # "hungarian" is a synonym for the "magyar" babel language option
806 # "hungarian" might be used for special purposes,
807 # see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
808 #Language hungarian
809 #       GuiName         "Hungarian"
810 #       BabelName       hungarian
811 #       Encoding        iso8859-2
812 #       LangCode        hu_HU
813 #       QuoteStyle      polish
814 #End
815
816 # FontEncoding: OT1 misses ð and Þ
817 Language icelandic
818         GuiName          "Icelandic"
819         BabelName        icelandic
820         PolyglossiaName  icelandic
821         QuoteStyle       german
822         Encoding         iso8859-15
823         FontEncoding     T1
824         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
825         LangCode         is_IS
826 End
827
828 # Interlingua has no official country code because it is an auxiliary
829 # language. We therefore the name of its hunspell dictionary.
830 Language interlingua
831         GuiName          "Interlingua"
832         HasGuiSupport    true
833         BabelName        interlingua
834         PolyglossiaName  interlingua
835         Encoding         iso8859-15
836         FontEncoding     ASCII
837         LangCode         ia_IA
838         DateFormats      "'le' d 'de' MMMM yyyy|'le' d 'de' MMM yyyy|yyyy-mm-dd"
839         QuoteStyle       english
840 End
841
842 Language irish
843         GuiName          "Irish"
844         BabelName        irish
845         PolyglossiaName  irish
846         QuoteStyle       english
847         Encoding         iso8859-15
848         FontEncoding     T1|OT1
849         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd/MM/yyyy"
850         LangCode         ga_IE
851 End
852
853 Language italian
854         GuiName          "Italian"
855         HasGuiSupport    true
856         BabelName        italian
857         PolyglossiaName  italian
858         QuoteStyle       french
859         Encoding         iso8859-15
860         FontEncoding     ASCII
861         DateFormats      "dd MMMM yyyy|dd/MMM/yyyy|dd/MM/yyyy"
862         LangCode         it_IT
863 End
864
865 # Since 2016-12-18, babel-japanese works with non-TeX fonts (Xe/LuaTeX), too
866 # (use with "Japanese (bxjs)" or standard document classes)
867 Language japanese
868         GuiName          "Japanese"
869         HasGuiSupport    true
870         BabelName        japanese
871         Encoding         jis-platex
872         LangCode         ja_JP
873         Requires         japanese
874         FontEncoding     ASCII
875         DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
876         QuoteStyle       cjk
877 End
878
879 # uses CJK package
880 Language japanese-cjk
881         GuiName         "Japanese (CJK)"
882         Encoding        euc-jp
883         DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
884         LangCode        ja_JP
885         Requires        CJK
886         QuoteStyle      cjk
887 End
888
889 # not supported by babel
890 Language kannada
891         GuiName          "Kannada"
892         PolyglossiaName  kannada
893         Encoding         utf8
894         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|dd-MM-yyyy"
895         LangCode         kn_IN
896 End
897
898 # not yet supported by polyglossia
899 # not supported by babel
900 Language kazakh
901         GuiName          "Kazakh"
902         Encoding         ascii
903         # FontEncoding   T2A # not set (no Babel support)
904         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM"
905         LangCode         kk_KZ
906 End
907
908 # not supported by babel
909 Language khmer
910         GuiName          "Khmer"
911         PolyglossiaName  khmer
912         Encoding         utf8
913         DateFormats      "d MMMM yyyy|d MMMM yyyy|dd/MM/yyyy"
914         LangCode         km_KH
915 End
916
917 # Fixme: activate Polyglossia support (file format change)
918 Language korean
919         GuiName         "Korean"
920         #PolyglossiaName  korean
921         Encoding        euc-kr
922         QuoteStyle      cjkangle
923         DateFormats     "yyyy년 M월 d일|yyyy. M. d.|yy. M. d."
924         LangCode        ko_KR
925         Requires        CJK
926 End
927
928 # not yet supported by polyglossia
929 Language kurmanji
930         GuiName          "Kurmanji"
931         BabelName        kurmanji
932         Encoding         utf8
933         FontEncoding     T1|OT1
934         DateFormats      "d. MMMM yyyy|d. M. yyyy|yyyy-MM-dd"
935         LangCode         kmr
936 End
937
938 # not supported by babel
939 Language lao
940         GuiName          "Lao"
941         PolyglossiaName  lao
942         Encoding         utf8
943         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|dd/MM/yyyy"
944         LangCode         lo_LA
945 End
946
947 # There is no country code for Latin because it is a dead language.
948 # We therefore the name of its hunspell dictionary.
949 # FIXME DateFormats
950 Language latin
951         GuiName          "Latin"
952         BabelName        latin
953         PolyglossiaName  latin
954         Encoding         iso8859-15
955         FontEncoding     T1|OT1
956         LangCode         la_LA
957 End
958
959 # latvian must be loaded locally with babel options,
960 # not globally via class options
961 # FontEncoding: L7x required for hyphenation but not set by Babel
962 Language latvian
963         GuiName          "Latvian"
964         BabelName        latvian
965         PolyglossiaName  latvian
966         QuoteStyle       german
967         Encoding         iso8859-4
968         FontEncoding     L7x|T1|OT1
969         DateFormats      "yyyy. 'gada' d. MMMM|yyyy. 'gada' d. MMM|dd.MM.yyyy"
970         LangCode         lv_LV
971 End
972
973 # lithuanian must be loaded locally with babel options,
974 # not globally via class options
975 # FontEncoding: L7x set by Babel
976 Language lithuanian
977         GuiName          "Lithuanian"
978         BabelName        lithuanian
979         PolyglossiaName  lithuanian
980         QuoteStyle       german
981         Encoding         iso8859-13
982         FontEncoding     L7x
983         # L7x defines \copyright as TextSymbol which leads to an endless loop
984         # when it is used in other font encodings.
985         PostBabelPreamble
986           % restore \coyright definition corrupted by l7xenc.def
987           \DeclareRobustCommand{\copyright}{%
988             \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
989             \addto\noextraslithuanian{\latintext}
990         EndPostBabelPreamble
991         DateFormats      "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd"
992         LangCode         lt_LT
993 End
994
995 Language lowersorbian
996         GuiName          "Lower Sorbian"
997         BabelName        lowersorbian
998         PolyglossiaName  lsorbian
999         QuoteStyle       german
1000         Encoding         iso8859-2
1001         FontEncoding     T1|OT1
1002         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1003         LangCode         dsb_DE
1004 End
1005
1006 Language magyar
1007         GuiName          "Hungarian"
1008         HasGuiSupport    true
1009         BabelName        magyar
1010         PolyglossiaName  magyar
1011         QuoteStyle       polish
1012         Encoding         iso8859-2
1013         FontEncoding     T1|OT1
1014         DateFormats      "yyyy. MMMM d.|yyyy. MMM d.|yyyy.MM.dd."
1015         LangCode         hu_HU
1016 End
1017
1018 # not yet supported by polyglossia
1019 Language macedonian
1020         GuiName          "Macedonian"
1021         BabelName        macedonian
1022         QuoteStyle       german
1023         Encoding         cp1251
1024         FontEncoding     T2A
1025         DateFormats      "dd MMMM yyyy|d MMM yyyy|d.M.yyyy"
1026         LangCode         mk_MK
1027         Provides         textcyrillic
1028 End
1029
1030 # not supported by babel
1031 Language malayalam
1032         GuiName          "Malayalam"
1033         PolyglossiaName  malayalam
1034         Encoding         utf8
1035         QuoteStyle       english
1036         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1037         LangCode         ml_IN
1038 End
1039
1040 # not supported by babel
1041 Language marathi
1042         GuiName          "Marathi"
1043         PolyglossiaName  marathi
1044         Encoding         utf8
1045         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1046         LangCode         mr_IN
1047 End
1048
1049 # mongolian must be loaded locally with babel options,
1050 # not globally via class options
1051 # not yet supported by polyglossia
1052 Language mongolian
1053         GuiName          "Mongolian"
1054         BabelName        mongolian
1055         Encoding         utf8
1056         FontEncoding     T2A
1057         DateFormats      "yyyy оны M сарын d|d-M-yyyy|dd-MM-yyyy"
1058         LangCode         mn_MN
1059         Provides         textcyrillic
1060 End
1061
1062 Language newzealand
1063         GuiName          "English (New Zealand)"
1064         BabelName        newzealand
1065         PolyglossiaName  english
1066         PolyglossiaOpts  "variant=newzealand"
1067         QuoteStyle       english
1068         Encoding         iso8859-15
1069         FontEncoding     ASCII
1070         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1071         LangCode         en_NZ
1072 End
1073
1074 Language norsk
1075         GuiName          "Norwegian (Bokmaal)"
1076         HasGuiSupport    true
1077         BabelName        norsk
1078         PolyglossiaName  norsk
1079         QuoteStyle       swiss
1080         Encoding         iso8859-15
1081         FontEncoding     T1|OT1
1082         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1083         LangCode         nb_NO
1084 End
1085
1086 # supported by polyglossia but not LyX:
1087 # Language nko
1088 #       GuiName         "N’Ko"            
1089 #       PolyglossiaName nko
1090
1091 Language nynorsk
1092         GuiName          "Norwegian (Nynorsk)"
1093         HasGuiSupport    true
1094         BabelName        nynorsk
1095         PolyglossiaName  nynorsk
1096         QuoteStyle       swiss
1097         Encoding         iso8859-15
1098         FontEncoding     T1|OT1
1099         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1100         LangCode         nn_NO
1101 End
1102
1103 # not supported by babel
1104 Language occitan
1105         GuiName          "Occitan"
1106         PolyglossiaName  occitan
1107         QuoteStyle       french
1108         Encoding         utf8
1109         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1110         LangCode         oc_FR
1111 End
1112
1113 # Currently not supported (file format change!)
1114 # Russian orthography from the Petrine orthographic reforms of
1115 # 1708 to the 1917 orthographic reform
1116 # Note: If this is enabled, russian needs to get
1117 #       PolyglossiaOpts  "spelling=modern"
1118 # Language oldrussian
1119 #       GuiName          "Russian (Petrine orthography)"
1120 #       PolyglossiaName  russian
1121 #       PolyglossiaOpts  "spelling=old"
1122 #       LangCode         ru_petr1708
1123 #       QuoteStyle       russian
1124 # End
1125
1126 # FIXME DateFormats
1127 Language piedmontese
1128         GuiName          "Piedmontese"
1129         HasGuiSupport    true
1130         BabelName        piedmontese
1131         PolyglossiaName  piedmontese
1132         QuoteStyle       french
1133         Encoding         iso8859-15
1134         FontEncoding     ASCII
1135         LangCode         pms_IT
1136 End
1137
1138 # FontEncoding: QX required for hyphenation but not set by babel
1139 Language polish
1140         GuiName          "Polish"
1141         HasGuiSupport    true
1142         BabelName        polish
1143         PolyglossiaName  polish
1144         QuoteStyle       polish
1145         Encoding         iso8859-2
1146         FontEncoding     QX|T1|OT1
1147         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
1148         LangCode         pl_PL
1149 End
1150
1151 Language portuguese
1152         GuiName          "Portuguese"
1153         HasGuiSupport    true
1154         BabelName        portuges
1155         PolyglossiaName  portuges
1156         QuoteStyle       french
1157         Encoding         iso8859-15
1158         FontEncoding     T1|OT1
1159         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|yyyy/MM/dd"
1160         LangCode         pt_PT
1161 End
1162
1163 Language romanian
1164         GuiName          "Romanian"
1165         HasGuiSupport    true
1166         BabelName        romanian
1167         PolyglossiaName  romanian
1168         QuoteStyle       polish
1169         Encoding         iso8859-16
1170         FontEncoding     T1|OT1
1171         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1172         LangCode         ro_RO
1173 End
1174
1175 Language romansh
1176         GuiName          "Romansh"
1177         HasGuiSupport    true
1178         BabelName        romansh
1179         PolyglossiaName  romansh
1180         QuoteStyle       german
1181         Encoding         iso8859-15
1182         FontEncoding     ASCII
1183         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1184         LangCode         rm_CH
1185 End
1186
1187 Language russian
1188         GuiName          "Russian"
1189         HasGuiSupport    true
1190         BabelName        russian
1191         PolyglossiaName  russian
1192         QuoteStyle       russian
1193         Encoding         koi8-r
1194         FontEncoding     T2A
1195         DateFormats      "d MMMM yyyy 'г'.|d MMM yyyy 'г'.|dd.MM.yyyy"
1196         LangCode         ru_RU
1197         Provides         textcyrillic
1198 End
1199
1200 # FontEncoding: no hyphenation, but diacritics
1201 Language samin
1202         GuiName          "North Sami"
1203         BabelName        samin
1204         PolyglossiaName  samin
1205         Encoding         iso8859-15
1206         FontEncoding     T1|OT1
1207         DateFormats      "MMMM d. 'b'. yyyy|MMM d. 'b'. yyyy|d.M.yyyy"
1208         LangCode         se_NO
1209 End
1210
1211 # not supported by babel
1212 Language sanskrit
1213         GuiName          "Sanskrit"
1214         PolyglossiaName  sanskrit
1215         Encoding         utf8
1216         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1217         LangCode         sa_IN
1218 End
1219
1220 # Gaidhlig (Scottish Gaelic)
1221 # FontEncoding: no hyphenation, grave accent (à, è, ì, ò, ù)
1222 Language scottish
1223         GuiName          "Scottish"
1224         BabelName        scottish
1225         PolyglossiaName  scottish
1226         QuoteStyle       english
1227         Encoding         iso8859-15
1228         FontEncoding     T1|OT1
1229         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1230         LangCode         gd_GB
1231 End
1232
1233 # Serbian with Cyrillic script.
1234 # Up to Version 3.0 (2019-01-12), input encoding and
1235 # font encoding were set document-wide to "utf8x" and "T2A" respectively
1236 # by "babel-serbianc", overriding LyX settings and leading to errors
1237 # in mulit-lingual documents.
1238 Language serbian
1239         GuiName          "Serbian"
1240         HasGuiSupport    true
1241         BabelName        serbianc
1242         PolyglossiaName  serbian
1243         PolyglossiaOpts  "script=Cyrillic"
1244         # Note: script option is uppercase, even if the polyglossia
1245         #       manual states otherwise.
1246         QuoteStyle       polish
1247         Encoding         utf8
1248         FontEncoding     T2A
1249         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1250         LangCode         sr_RS
1251 End
1252
1253 # Note: script option is uppercase, even if the polyglossia
1254 #       manual states otherwise.
1255 Language serbian-latin
1256         GuiName          "Serbian (Latin)"
1257         BabelName        serbian
1258         PolyglossiaName  serbian
1259         PolyglossiaOpts  "script=Latin"
1260         QuoteStyle       polish
1261         Encoding         iso8859-2
1262         FontEncoding     T1|OT1
1263         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1264         LangCode         sr_RS-Latin
1265 End
1266
1267 Language slovak
1268         GuiName          "Slovak"
1269         HasGuiSupport    true
1270         BabelName        slovak
1271         PolyglossiaName  slovak
1272         QuoteStyle       german
1273         Encoding         iso8859-2
1274         FontEncoding     T1|OT1
1275         DateFormats      "d. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
1276         LangCode         sk_SK
1277 End
1278
1279 Language slovene
1280         GuiName          "Slovene"
1281         BabelName        slovene
1282         PolyglossiaName  slovenian
1283         QuoteStyle       german
1284         Encoding         iso8859-2
1285         FontEncoding     T1|OT1
1286         DateFormats      "dd. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
1287         LangCode         sl_SI
1288 End
1289
1290 Language spanish
1291         GuiName          "Spanish"
1292         HasGuiSupport    true
1293         BabelName        spanish
1294         PolyglossiaName  spanish
1295         QuoteStyle       french
1296         Encoding         iso8859-15
1297         FontEncoding     T1|OT1
1298         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
1299         LangCode         es_ES
1300         PostBabelPreamble
1301         \addto\shorthandsspanish{\spanishdeactivate{~<>}}
1302         EndPostBabelPreamble
1303 End
1304
1305 # there are no spanish shorthands in polyglossia
1306 Language spanish-mexico
1307         GuiName          "Spanish (Mexico)"
1308         BabelName        spanish
1309         PolyglossiaName  spanish
1310         QuoteStyle       french
1311         Encoding         iso8859-15
1312         FontEncoding     T1|OT1
1313         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
1314         LangCode         es_MX
1315         PostBabelPreamble
1316         \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
1317         EndPostBabelPreamble
1318 End
1319
1320 Language swedish
1321         GuiName          "Swedish"
1322         HasGuiSupport    true
1323         BabelName        swedish
1324         PolyglossiaName  swedish
1325         QuoteStyle       swedish
1326         Encoding         iso8859-15
1327         FontEncoding     T1|OT1
1328         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
1329         LangCode         sv_SE
1330 End
1331
1332 # not supported by babel
1333 Language syriac
1334         GuiName          "Syriac"
1335         PolyglossiaName  syriac
1336         Encoding         utf8
1337         RTL              true
1338         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1339         LangCode         syr_SY
1340 End
1341
1342 # not supported by babel
1343 Language tamil
1344         GuiName          "Tamil"
1345         PolyglossiaName  tamil
1346         Encoding         utf8
1347         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1348         LangCode         ta_IN
1349 End
1350
1351 # not supported by babel
1352 Language telugu
1353         GuiName          "Telugu"
1354         PolyglossiaName  telugu
1355         Encoding         utf8
1356         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1357         LangCode         te_IN
1358 End
1359
1360 # There is an alternative support with CJK package and Babel name "thaicjk".
1361
1362 Language thai
1363         GuiName          "Thai"
1364         BabelName        thai
1365         PolyglossiaName  thai
1366         QuoteStyle       english
1367         Encoding         tis620-0
1368         FontEncoding     LTH
1369         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1370         LangCode         th_TH
1371         PostBabelPreamble
1372           % Restore \coyright definition corrupted by lthenc.def
1373           \DeclareRobustCommand{\copyright}{%
1374             \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
1375           \DeclareTextSymbol{\textcopyright}{LTH}{8}
1376           % Restore catcodes changed by thai.ldf (active characters required for inputenc)
1377           \@tempcnta=161%
1378           \@whilenum\@tempcnta<252\do{%
1379             \catcode\@tempcnta=13
1380             \advance\@tempcnta\@ne
1381           }%      
1382         EndPostBabelPreamble
1383         # Fixme: load font package?
1384         # +1 support for font attributes in thai emphasizing etc.
1385         # -1 forces ComputerModern as "non-thai" font
1386         # TODO: set norasi as surrogate font for LTH (substitutefont.sty)
1387         # PostBabelPreamble
1388         #   \usepackage{fonts-tlwg}
1389         # EndPostBabelPreamble
1390 End
1391
1392 # not supported by babel
1393 #FIXME DateFormats
1394 Language tibetan
1395         GuiName          "Tibetan"
1396         PolyglossiaName  tibetan
1397         Encoding         utf8
1398         LangCode         bo_CN
1399 End
1400
1401 Language turkish
1402         GuiName          "Turkish"
1403         HasGuiSupport    true
1404         BabelName        turkish
1405         PolyglossiaName  turkish
1406         QuoteStyle       english
1407         Encoding         iso8859-9
1408         FontEncoding     T1|OT1
1409         LangCode         tr_TR
1410         DateFormats      "d MMMM yyyy|dd.MMM.yyyy|dd.MM.yyyy"
1411         PostBabelPreamble
1412         \usepackage{xkeyval}
1413         EndPostBabelPreamble
1414 End
1415
1416 # turkmen must be loaded locally with babel options,
1417 # not globally via class options
1418 Language turkmen
1419         GuiName          "Turkmen"
1420         BabelName        turkmen
1421         PolyglossiaName  turkmen
1422         QuoteStyle       swiss
1423         Encoding         utf8
1424         FontEncoding     T1|OT1
1425         DateFormats      "yyyy ý. MMMM d|dd.MM.yyyy ý.|dd.MM.yy ý."
1426         LangCode         tk_TM
1427 End
1428
1429 Language ukrainian
1430         GuiName          "Ukrainian"
1431         HasGuiSupport    true
1432         BabelName        ukrainian
1433         PolyglossiaName  ukrainian
1434         QuoteStyle       russian
1435         Encoding         koi8-u
1436         FontEncoding     T2A
1437         DateFormats      "dd MMMM yyyy|d MM yyyy|dd.MM.yyyy"
1438         LangCode         uk_UA
1439         Provides         textcyrillic
1440 End
1441
1442 Language uppersorbian
1443         GuiName          "Upper Sorbian"
1444         BabelName        uppersorbian
1445         PolyglossiaName  usorbian
1446         QuoteStyle       german
1447         Encoding         iso8859-2
1448         FontEncoding     T1|OT1
1449         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1450         LangCode         hsb_DE
1451 End
1452
1453 # not supported by babel
1454 Language urdu
1455         GuiName          "Urdu"
1456         PolyglossiaName  urdu
1457         Encoding         utf8
1458         DateFormats      "d MMMM, yyyy|d MMM yyyy|dd/MM/yyyy"
1459         RTL              true
1460         LangCode         ur_PK
1461 End
1462
1463 Language vietnamese
1464         GuiName          "Vietnamese"
1465         BabelName        vietnamese
1466         PolyglossiaName  vietnamese
1467         QuoteStyle       english
1468         Encoding         utf8
1469         DateFormats      "dd 'tháng' MMMM yyyy|dd-MM-yyyy|dd/MM/yyyy"
1470         FontEncoding     T5
1471         LangCode         vi_VN
1472 End
1473
1474 Language welsh
1475         GuiName          "Welsh"
1476         BabelName        welsh
1477         PolyglossiaName  welsh
1478         QuoteStyle       british
1479         Encoding         iso8859-15
1480         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1481         FontEncoding     T1|OT1
1482         LangCode         cy_GB
1483 End