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