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