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