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