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