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