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