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