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