]> git.lyx.org Git - lyx.git/blob - lib/languages
c7661325563ec221712e722ac8b2b751e88a7278
[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         FontEncoding     ASCII
866         DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
867         QuoteStyle       cjk
868 End
869
870 # uses CJK package
871 Language japanese-cjk
872         GuiName         "Japanese (CJK)"
873         Encoding        euc-jp
874         DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
875         LangCode        ja_JP
876         Requires        CJK
877         QuoteStyle      cjk
878 End
879
880 # not supported by babel
881 Language kannada
882         GuiName          "Kannada"
883         PolyglossiaName  kannada
884         Encoding         utf8
885         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|dd-MM-yyyy"
886         LangCode         kn_IN
887 End
888
889 # not yet supported by polyglossia
890 # not supported by babel
891 Language kazakh
892         GuiName          "Kazakh"
893         Encoding         ascii
894         # FontEncoding   T2A # not set (no Babel support)
895         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM"
896         LangCode         kk_KZ
897 End
898
899 # not supported by babel
900 Language khmer
901         GuiName          "Khmer"
902         PolyglossiaName  khmer
903         Encoding         utf8
904         DateFormats      "d MMMM yyyy|d MMMM yyyy|dd/MM/yyyy"
905         LangCode         km_KH
906 End
907
908 Language korean
909         GuiName         "Korean"
910         Encoding        euc-kr
911         QuoteStyle      cjkangle
912         DateFormats     "yyyy년 M월 d일|yyyy. M. d.|yy. M. d."
913         LangCode        ko_KR
914         Requires        CJK
915 End
916
917 # not yet supported by polyglossia
918 Language kurmanji
919         GuiName          "Kurmanji"
920         BabelName        kurmanji
921         Encoding         utf8
922         FontEncoding     T1|OT1
923         DateFormats      "d. MMMM yyyy|d. M. yyyy|yyyy-MM-dd"
924         LangCode         kmr
925 End
926
927 # not supported by babel
928 Language lao
929         GuiName          "Lao"
930         PolyglossiaName  lao
931         Encoding         utf8
932         DateFormats      "dd MMMM yyyy|dd MMMM yyyy|dd/MM/yyyy"
933         LangCode         lo_LA
934 End
935
936 # There is no country code for Latin because it is a dead language.
937 # We therefore the name of its hunspell dictionary.
938 # FIXME DateFormats
939 Language latin
940         GuiName          "Latin"
941         BabelName        latin
942         PolyglossiaName  latin
943         Encoding         iso8859-15
944         FontEncoding     T1|OT1
945         LangCode         la_LA
946 End
947
948 # latvian must be loaded locally with babel options,
949 # not globally via class options
950 # FontEncoding: L7x required for hyphenation but not set by Babel
951 Language latvian
952         GuiName          "Latvian"
953         BabelName        latvian
954         PolyglossiaName  latvian
955         QuoteStyle       german
956         Encoding         iso8859-4
957         FontEncoding     L7x|T1|OT1
958         DateFormats      "yyyy. 'gada' d. MMMM|yyyy. 'gada' d. MMM|dd.MM.yyyy"
959         LangCode         lv_LV
960 End
961
962 # lithuanian must be loaded locally with babel options,
963 # not globally via class options
964 # FontEncoding: L7x set by Babel
965 Language lithuanian
966         GuiName          "Lithuanian"
967         BabelName        lithuanian
968         PolyglossiaName  lithuanian
969         QuoteStyle       german
970         Encoding         iso8859-13
971         FontEncoding     L7x
972         # L7x defines \copyright as TextSymbol which leads to an endless loop 
973         # when it is used in other font encodings.
974         PostBabelPreamble
975           % restore \coyright definition corrupted by l7xenc.def
976           \DeclareRobustCommand{\copyright}{%
977             \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
978         EndPostBabelPreamble
979         DateFormats      "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd"
980         LangCode         lt_LT
981 End
982
983 Language lowersorbian
984         GuiName          "Lower Sorbian"
985         BabelName        lowersorbian
986         PolyglossiaName  lsorbian
987         QuoteStyle       german
988         Encoding         iso8859-2
989         FontEncoding     T1|OT1
990         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
991         LangCode         dsb_DE
992 End
993
994 Language magyar
995         GuiName          "Hungarian"
996         HasGuiSupport    true
997         BabelName        magyar
998         PolyglossiaName  magyar
999         QuoteStyle       polish
1000         Encoding         iso8859-2
1001         FontEncoding     T1|OT1
1002         DateFormats      "yyyy. MMMM d.|yyyy. MMM d.|yyyy.MM.dd."
1003         LangCode         hu_HU
1004 End
1005
1006 # not yet supported by polyglossia
1007 Language macedonian
1008         GuiName          "Macedonian"
1009         BabelName        macedonian
1010         QuoteStyle       german
1011         Encoding         cp1251
1012         FontEncoding     T2A
1013         DateFormats      "dd MMMM yyyy|d MMM yyyy|d.M.yyyy"
1014         LangCode         mk_MK
1015         Provides         textcyrillic
1016 End
1017
1018 # not supported by babel
1019 Language malayalam
1020         GuiName          "Malayalam"
1021         PolyglossiaName  malayalam
1022         Encoding         utf8
1023         QuoteStyle       english
1024         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1025         LangCode         ml_IN
1026 End
1027
1028 # not supported by babel
1029 Language marathi
1030         GuiName          "Marathi"
1031         PolyglossiaName  marathi
1032         Encoding         utf8
1033         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1034         LangCode         mr_IN
1035 End
1036
1037 # mongolian must be loaded locally with babel options,
1038 # not globally via class options
1039 # not yet supported by polyglossia
1040 Language mongolian
1041         GuiName          "Mongolian"
1042         BabelName        mongolian
1043         Encoding         utf8
1044         FontEncoding     T2A
1045         DateFormats      "yyyy оны M сарын d|d-M-yyyy|dd-MM-yyyy"
1046         LangCode         mn_MN
1047         Provides         textcyrillic
1048 End
1049
1050 Language newzealand
1051         GuiName          "English (New Zealand)"
1052         BabelName        newzealand
1053         PolyglossiaName  english
1054         PolyglossiaOpts  "variant=newzealand"
1055         QuoteStyle       english
1056         Encoding         iso8859-15
1057         FontEncoding     ASCII
1058         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1059         LangCode         en_NZ
1060 End
1061
1062 Language norsk
1063         GuiName          "Norwegian (Bokmaal)"
1064         HasGuiSupport    true
1065         BabelName        norsk
1066         PolyglossiaName  norsk
1067         QuoteStyle       swiss
1068         Encoding         iso8859-15
1069         FontEncoding     T1|OT1
1070         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1071         LangCode         nb_NO
1072 End
1073
1074 Language nynorsk
1075         GuiName          "Norwegian (Nynorsk)"
1076         HasGuiSupport    true
1077         BabelName        nynorsk
1078         PolyglossiaName  nynorsk
1079         QuoteStyle       swiss
1080         Encoding         iso8859-15
1081         FontEncoding     T1|OT1
1082         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1083         LangCode         nn_NO
1084 End
1085
1086 # not supported by babel
1087 Language occitan
1088         GuiName          "Occitan"
1089         PolyglossiaName  occitan
1090         QuoteStyle       french
1091         Encoding         utf8
1092         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1093         LangCode         oc_FR
1094 End
1095
1096 # Currently not supported (file format change!)
1097 # Russian orthography from the Petrine orthographic reforms of
1098 # 1708 to the 1917 orthographic reform
1099 # Note: If this is enabled, russian needs to get
1100 #       PolyglossiaOpts  "spelling=modern"
1101 # Language oldrussian
1102 #       GuiName          "Russian (Petrine orthography)"
1103 #       PolyglossiaName  russian
1104 #       PolyglossiaOpts  "spelling=old"
1105 #       LangCode         ru_petr1708
1106 #       QuoteStyle       russian
1107 # End
1108
1109 # FIXME DateFormats
1110 Language piedmontese
1111         GuiName          "Piedmontese"
1112         HasGuiSupport    true
1113         BabelName        piedmontese
1114         PolyglossiaName  piedmontese
1115         QuoteStyle       french
1116         Encoding         iso8859-15
1117         FontEncoding     ASCII
1118         LangCode         pms_IT
1119 End
1120
1121 # FontEncoding: QX required for hyphenation but not set by babel
1122 Language polish
1123         GuiName          "Polish"
1124         HasGuiSupport    true
1125         BabelName        polish
1126         PolyglossiaName  polish
1127         QuoteStyle       polish
1128         Encoding         iso8859-2
1129         FontEncoding     QX|T1|OT1
1130         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
1131         LangCode         pl_PL
1132 End
1133
1134 Language portuguese
1135         GuiName          "Portuguese"
1136         HasGuiSupport    true
1137         BabelName        portuges
1138         PolyglossiaName  portuges
1139         QuoteStyle       french
1140         Encoding         iso8859-15
1141         FontEncoding     T1|OT1
1142         DateFormats      "d 'de' MMMM 'de' yyyy|d 'de' MMM 'de' yyyy|yyyy/MM/dd"
1143         LangCode         pt_PT
1144 End
1145
1146 Language romanian
1147         GuiName          "Romanian"
1148         HasGuiSupport    true
1149         BabelName        romanian
1150         PolyglossiaName  romanian
1151         QuoteStyle       polish
1152         Encoding         iso8859-16
1153         FontEncoding     T1|OT1
1154         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1155         LangCode         ro_RO
1156 End
1157
1158 Language romansh
1159         GuiName          "Romansh"
1160         HasGuiSupport    true
1161         BabelName        romansh
1162         PolyglossiaName  romansh
1163         QuoteStyle       german
1164         Encoding         iso8859-15
1165         FontEncoding     ASCII
1166         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1167         LangCode         rm_CH
1168 End
1169
1170 Language russian
1171         GuiName          "Russian"
1172         HasGuiSupport    true
1173         BabelName        russian
1174         PolyglossiaName  russian
1175         QuoteStyle       russian
1176         Encoding         koi8-r
1177         FontEncoding     T2A
1178         DateFormats      "d MMMM yyyy 'г'.|d MMM yyyy 'г'.|dd.MM.yyyy"
1179         LangCode         ru_RU
1180         Provides         textcyrillic
1181 End
1182
1183 # FontEncoding: no hyphenation, but diacritics
1184 Language samin
1185         GuiName          "North Sami"
1186         BabelName        samin
1187         PolyglossiaName  samin
1188         Encoding         iso8859-15
1189         FontEncoding     T1|OT1
1190         DateFormats      "MMMM d. 'b'. yyyy|MMM d. 'b'. yyyy|d.M.yyyy"
1191         LangCode         se_NO
1192 End
1193
1194 # not supported by babel
1195 Language sanskrit
1196         GuiName          "Sanskrit"
1197         PolyglossiaName  sanskrit
1198         Encoding         utf8
1199         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1200         LangCode         sa_IN
1201 End
1202
1203 # Gaidhlig (Scottish Gaelic)
1204 # FontEncoding: no hyphenation, grave accent (à, è, ì, ò, ù)
1205 Language scottish
1206         GuiName          "Scottish"
1207         BabelName        scottish
1208         PolyglossiaName  scottish
1209         QuoteStyle       english
1210         Encoding         iso8859-15
1211         FontEncoding     T1|OT1
1212         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1213         LangCode         gd_GB
1214 End
1215
1216 # Serbian with Cyrillic script.
1217 # Up to Version 3.0 (2019-01-12), input encoding and
1218 # font encoding were set document-wide to "utf8x" and "T2A" respectively
1219 # by "babel-serbianc", overriding LyX settings and leading to errors
1220 # in mulit-lingual documents.
1221 Language serbian
1222         GuiName          "Serbian"
1223         HasGuiSupport    true
1224         BabelName        serbianc
1225         PolyglossiaName  serbian
1226         PolyglossiaOpts  "script=Cyrillic"
1227         # Note: script option is uppercase, even if the polyglossia
1228         #       manual states otherwise.
1229         QuoteStyle       polish
1230         Encoding         utf8
1231         FontEncoding     T2A
1232         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1233         LangCode         sr_RS
1234 End
1235
1236 # Note: script option is uppercase, even if the polyglossia
1237 #       manual states otherwise.
1238 Language serbian-latin
1239         GuiName          "Serbian (Latin)"
1240         BabelName        serbian
1241         PolyglossiaName  serbian
1242         PolyglossiaOpts  "script=Latin"
1243         QuoteStyle       polish
1244         Encoding         iso8859-2
1245         FontEncoding     T1|OT1
1246         DateFormats      "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
1247         LangCode         sr_RS-Latin
1248 End
1249
1250 Language slovak
1251         GuiName          "Slovak"
1252         HasGuiSupport    true
1253         BabelName        slovak
1254         PolyglossiaName  slovak
1255         QuoteStyle       german
1256         Encoding         iso8859-2
1257         FontEncoding     T1|OT1
1258         DateFormats      "d. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
1259         LangCode         sk_SK
1260 End
1261
1262 Language slovene
1263         GuiName          "Slovene"
1264         BabelName        slovene
1265         PolyglossiaName  slovenian
1266         QuoteStyle       german
1267         Encoding         iso8859-2
1268         FontEncoding     T1|OT1
1269         DateFormats      "dd. MMMM yyyy|d. MMM yyyy|d.M.yyyy"
1270         LangCode         sl_SI
1271 End
1272
1273 Language spanish
1274         GuiName          "Spanish"
1275         HasGuiSupport    true
1276         BabelName        spanish
1277         PolyglossiaName  spanish
1278         QuoteStyle       french
1279         Encoding         iso8859-15
1280         FontEncoding     T1|OT1
1281         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
1282         LangCode         es_ES
1283         PostBabelPreamble
1284         \addto\shorthandsspanish{\spanishdeactivate{~<>}}
1285         EndPostBabelPreamble
1286 End
1287
1288 # there are no spanish shorthands in polyglossia
1289 Language spanish-mexico
1290         GuiName          "Spanish (Mexico)"
1291         BabelName        spanish
1292         PolyglossiaName  spanish
1293         QuoteStyle       french
1294         Encoding         iso8859-15
1295         FontEncoding     T1|OT1
1296         DateFormats      "d 'de' MMMM 'de' yyyy|d MMM yyyy|dd/MM/yyyy"
1297         LangCode         es_MX
1298         PostBabelPreamble
1299         \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
1300         EndPostBabelPreamble
1301 End
1302
1303 Language swedish
1304         GuiName          "Swedish"
1305         HasGuiSupport    true
1306         BabelName        swedish
1307         PolyglossiaName  swedish
1308         QuoteStyle       swedish
1309         Encoding         iso8859-15
1310         FontEncoding     T1|OT1
1311         DateFormats      "d MMMM yyyy|d MMM yyyy|yyyy-MM-dd"
1312         LangCode         sv_SE
1313 End
1314
1315 # not supported by babel
1316 Language syriac
1317         GuiName          "Syriac"
1318         PolyglossiaName  syriac
1319         Encoding         utf8
1320         RTL              true
1321         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1322         LangCode         syr_SY
1323 End
1324
1325 # not supported by babel
1326 Language tamil
1327         GuiName          "Tamil"
1328         PolyglossiaName  tamil
1329         Encoding         utf8
1330         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1331         LangCode         ta_IN
1332 End
1333
1334 # not supported by babel
1335 Language telugu
1336         GuiName          "Telugu"
1337         PolyglossiaName  telugu
1338         Encoding         utf8
1339         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy"
1340         LangCode         te_IN
1341 End
1342
1343 Language thai
1344         GuiName          "Thai"
1345         BabelName        thai
1346         PolyglossiaName  thai
1347         QuoteStyle       english
1348         Encoding         tis620-0
1349         FontEncoding     LTH
1350         DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1351         LangCode         th_TH
1352         PostBabelPreamble
1353           % restore \coyright definition corrupted by lthenc.def
1354           \DeclareRobustCommand{\copyright}{%
1355             \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
1356           \DeclareTextSymbol{\textcopyright}{LTH}{8}
1357         EndPostBabelPreamble
1358         # Fixme: load font package?
1359         # +1 support for font attributes in thai emphasizing etc.
1360         # -1 forces ComputerModern as "non-thai" font
1361         # PostBabelPreamble
1362         #   \usepackage{fonts-tlwg}
1363         # EndPostBabelPreamble
1364 End
1365
1366 # not supported by babel
1367 #FIXME DateFormats
1368 Language tibetan
1369         GuiName          "Tibetan"
1370         PolyglossiaName  tibetan
1371         Encoding         utf8
1372         LangCode         bo_CN
1373 End
1374
1375 Language turkish
1376         GuiName          "Turkish"
1377         HasGuiSupport    true
1378         BabelName        turkish
1379         PolyglossiaName  turkish
1380         QuoteStyle       english
1381         Encoding         iso8859-9
1382         FontEncoding     T1|OT1
1383         LangCode         tr_TR
1384         DateFormats      "d MMMM yyyy|dd.MMM.yyyy|dd.MM.yyyy"
1385         PostBabelPreamble
1386         \usepackage{xkeyval}
1387         EndPostBabelPreamble
1388 End
1389
1390 # turkmen must be loaded locally with babel options,
1391 # not globally via class options
1392 Language turkmen
1393         GuiName          "Turkmen"
1394         BabelName        turkmen
1395         PolyglossiaName  turkmen
1396         QuoteStyle       swiss
1397         Encoding         utf8
1398         FontEncoding     T1|OT1
1399         DateFormats      "yyyy ý. MMMM d|dd.MM.yyyy ý.|dd.MM.yy ý."
1400         LangCode         tk_TM
1401 End
1402
1403 Language ukrainian
1404         GuiName          "Ukrainian"
1405         HasGuiSupport    true
1406         BabelName        ukrainian
1407         PolyglossiaName  ukrainian
1408         QuoteStyle       russian
1409         Encoding         koi8-u
1410         FontEncoding     T2A
1411         DateFormats      "dd MMMM yyyy|d MM yyyy|dd.MM.yyyy"
1412         LangCode         uk_UA
1413         Provides         textcyrillic
1414 End
1415
1416 Language uppersorbian
1417         GuiName          "Upper Sorbian"
1418         BabelName        uppersorbian
1419         PolyglossiaName  usorbian
1420         QuoteStyle       german
1421         Encoding         iso8859-2
1422         FontEncoding     T1|OT1
1423         DateFormats      "d MMMM yyyy|d MMM yyyy|dd.MM.yyyy"
1424         LangCode         hsb_DE
1425 End
1426
1427 # not supported by babel
1428 Language urdu
1429         GuiName          "Urdu"
1430         PolyglossiaName  urdu
1431         Encoding         utf8
1432         DateFormats      "d MMMM, yyyy|d MMM yyyy|dd/MM/yyyy"
1433         RTL              true
1434         LangCode         ur_PK
1435 End
1436
1437 Language vietnamese
1438         GuiName          "Vietnamese"
1439         BabelName        vietnamese
1440         PolyglossiaName  vietnamese
1441         QuoteStyle       english
1442         Encoding         utf8
1443         DateFormats      "dd 'tháng' MMMM yyyy|dd-MM-yyyy|dd/MM/yyyy"
1444         FontEncoding     T5
1445         LangCode         vi_VN
1446 End
1447
1448 Language welsh
1449         GuiName          "Welsh"
1450         BabelName        welsh
1451         PolyglossiaName  welsh
1452         QuoteStyle       british
1453         Encoding         iso8859-15
1454         DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
1455         FontEncoding     T1|OT1
1456         LangCode         cy_GB
1457 End