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