1 ##########################################################################
3 # Languages supported by LyX.
9 # HasGuiSupport <true|false>
10 # BabelName <babelname>
11 # PolyglossiaName <polyglossianame>
12 # PolyglossiaOpts "<language-specific options>"
14 # FontEncoding <font encoding>
15 # QuoteStyle <british|danish|english|french|frenchin|
16 # german|polish|russian|swedish|swedishg|swiss|plain>
17 # InternalEncoding <true|false>
19 # AsBabelOptions <true|false>
20 # LangCode <language_code>
21 # LangVariety <language_variety>
23 # <extra latex code inserted before babel>
26 # <extra latex code inserted after babel>
27 # EndPostBabelPreamble
28 # Requires <requirement>
34 # * If we provide Polyglossia languages with different options, the default
35 # options (such as "variant=american", "spelling=modern") should be
36 # explicitely spelled out (in order to provide mixing of such variants).
37 # * Omitted elements will be treated as empty (if string) or "false"
39 # * When HasGuiSupport is true, the language is candidate to appear in
40 # the list of possible GUI languages in the Preferences dialog. It
41 # will actually appear there only if a corresponding .mo file can be
42 # found among the translations. When several languages correspond to
43 # the same translation -- like English, English (US) and English
44 # (UK) -- try to select the entry that is most generic -- here
46 # * The QuoteStyle arguments correspond to the following styles:
48 # - british: `text' ``text'' (6_9 -- 66_99)
49 # - cjk: corner brackets white corner br.
50 # - cjk-angle: double angle br. angle br.
51 # - danish: >>text<< >text< (inward guillemets)
52 # - english: ``text'' `text' (66_99 -- 6_9)
53 # - french: <<text>> ``text'' (outward guillemets -- 66_99)
54 # - frenchin: <<text>> <<text>> (French Imprimerie Nationale style)
55 # - german: ,,text`` ,text` (99/66 -- 9/6)
56 # - polish: ,,text'' ,text' (99/99 -- 9/9)
57 # - russian: <<text>> ,,text`` (outward guillemets -- 99/66)
58 # - swedish: ''text'' 'text' (99_99 -- 9_9)
59 # - swedishg: >>text>> 'text' (Swedish Guillemets)
60 # - swiss: <<text>> <text> (outward guillemets)
61 # - plain: "text" 'text' (non-typographical quotes)
62 # Note that the option names have been selected (rather arbitrarily)
63 # because the respective styles are common in the respective countries.
64 # Of course this does not imply any fixed relation to those countries.
65 # * Encoding is the default encoding used with TeX fonts.
66 # It is only used if Document > Settings > Language > Encoding
67 # is set to "Language Default" and "use non-TeX fonts" is FALSE.
68 # Encoding "inherit" means: keep encoding of the context (used by
70 # * InternalEncoding is used to tell LyX that babel internally sets a
71 # non-standard font encoding (such as hebrew to LHE or greek to LGR).
72 # If True, LyX cares for characters/macros that do not exist in
73 # some font encodings ("<", ">", "|" and straight quote).
74 # It is not required for standard encodings like T2A. See bug #5091.
75 # * "FontEncoding none" tells LyX that fontenc should not be loaded with this
77 # * AsBabelOptions advices LyX to pass the languages locally to babel, not
78 # globally to the class. Some languages (basically those not directly
79 # supported by babel) need this.
80 # FIXME: in this case, we might still need to pass the other languages
81 # globally, for the use of other packages (such as varioref).
82 # * LangCode is also used for spellchecking and thesaurus, where the
83 # dictionaries are named accordingly. Thus, check this when introducing/
84 # changing language codes (especially aspell, thesaurus).
85 # TODO: maybe use Best Current Practice (BCP 47) codes for LangCode
86 # http://www.rfc-editor.org/rfc/bcp/bcp47.txt
87 # http://www.w3.org/International/articles/language-tags/
88 # http://www.iana.org/assignments/language-subtag-registry
89 # * LangVariety is used by the aspell spellchecker to differentiate
90 # dictionaries for different varieties of a given language (e.g. German
91 # pre-1998 and post-1998 spelling). The aspell dictionaries are named
92 # language[_REGION][-variety].multi, e.g. de-alt.multi for "German (old
93 # spelling)" (see http://aspell.net/man-html/Dictionary-Naming.html)
95 ##########################################################################
98 # LyX-internal languages
104 PolyglossiaName ignore
119 # not yet supported by polyglossia
131 PolyglossiaName albanian
138 GuiName "English (USA)"
140 PolyglossiaName english
141 PolyglossiaOpts "variant=american"
147 # not supported by babel
150 PolyglossiaName amharic
155 # In Babel, this is supported since v. 1.8a of babel-greek (2013-12-03)
156 # We introduce it with LyX 2.2 to give the support time to settle.
157 Language ancientgreek
158 GuiName "Greek (ancient)"
161 \languageattribute{greek}{ancient}
163 PolyglossiaName greek
164 PolyglossiaOpts "variant=ancient"
167 InternalEncoding true
172 # FIXME: dummy babel language for arabic_arabtex to be able
173 # to switch the language the way of the ArabTeX-package
174 Language arabic_arabtex
175 GuiName "Arabic (ArabTeX)"
184 # polyglossia uses "Arabic" for the lang environment
185 Language arabic_arabi
186 GuiName "Arabic (Arabi)"
188 PolyglossiaName arabic
197 # not supported by babel
200 PolyglossiaName armenian
206 # not supported by babel
209 PolyglossiaName asturian
216 GuiName "English (Australia)"
218 PolyglossiaName english
219 PolyglossiaOpts "variant=australian"
225 # In polyglossia, this is supported since release 1.33.4 (May 2014)
226 # We introduce it with LyX 2.2 to give the support time to settle.
227 # Due to the variety, we use no country code.
229 GuiName "German (Austria, old spelling)"
231 PolyglossiaName german
232 PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true"
239 # In polyglossia, this is supported since release 1.33.4 (May 2014)
240 # We introduce it with LyX 2.2 to give the support time to settle.
242 GuiName "German (Austria)"
244 PolyglossiaName german
245 PolyglossiaOpts "variant=austrian,spelling=new,babelshorthands=true"
255 PolyglossiaName bahasai
264 PolyglossiaName bahasam
274 PolyglossiaName basque
279 \addto\extrasbasque{\bbl@deactivate{~}}
283 # not yet supported by polyglossia
293 # not yet supported by polyglossia
303 GuiName "Portuguese (Brazil)"
306 PolyglossiaName brazil
315 PolyglossiaName breton
322 GuiName "English (UK)"
324 PolyglossiaName english
325 PolyglossiaOpts "variant=british"
335 PolyglossiaName bulgarian
342 # not yet supported by polyglossia
344 GuiName "English (Canada)"
346 # PolyglossiaName english
347 # PolyglossiaOpts "variant=canadian"
353 # not yet supported by polyglossia
354 # Note: If polyglossia support gets implemented, french needs
355 # PolyglossiaOpts "variant=french"
357 GuiName "French (Canada)"
359 # PolyglossiaName french
360 # PolyglossiaOpts "variant=canadien"
370 PolyglossiaName catalan
371 PolyglossiaOpts "babelshorthands=true"
378 Language chinese-simplified
379 GuiName "Chinese (simplified)"
388 Language chinese-traditional
389 GuiName "Chinese (traditional)"
397 # not supported by babel
400 PolyglossiaName coptic
408 PolyglossiaName croatian
418 PolyglossiaName czech
428 PolyglossiaName danish
434 # not supported by babel
436 GuiName "Divehi (Maldivian)"
437 PolyglossiaName divehi
446 PolyglossiaName dutch
447 PolyglossiaOpts "babelshorthands=true"
457 PolyglossiaName english
458 PolyglossiaOpts "variant=american"
464 # Esperanto has no country code because it is an auxiliary language.
465 # We therefore the name of its hunspell dictionary.
469 PolyglossiaName esperanto
478 PolyglossiaName estonian
483 \addto\extrasestonian{\bbl@deactivate{~}}
487 # the preamble definitions are only used due to bugs in the
488 # arabi-package -- remove them if they become unnecessary!
492 PolyglossiaName farsi
499 \DeclareTextSymbol{\guillemotright}{LFE}{62}
500 \DeclareTextSymbol{\guillemotleft}{LFE}{60}
508 PolyglossiaName finnish
514 # We redefine \og and \fg (guillemets) for older french language definitions
519 PolyglossiaName french
524 \addto\extrasfrench{%
525 \providecommand{\og}{\leavevmode\flqq~}%
526 \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
535 PolyglossiaName friulan
545 PolyglossiaName galician
550 \addto\shorthandsgalician{\galiciandeactivate{~}}
563 # german does not use a country code (due to the variety)
565 GuiName "German (old spelling)"
567 PolyglossiaName german
568 PolyglossiaOpts "variant=german,spelling=old,babelshorthands=true"
579 PolyglossiaName german
580 PolyglossiaOpts "variant=german,spelling=new,babelshorthands=true"
586 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
587 # We introduce it with LyX 2.2 to give the support time to settle.
588 # In polyglossia, this is supported since release 1.33.6 (May 2015)
589 # We introduce it with LyX 2.3 to give the support time to settle.
591 GuiName "German (Switzerland)"
592 BabelName nswissgerman
593 PolyglossiaName german
594 PolyglossiaOpts "variant=swiss,spelling=new,babelshorthands=true"
600 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
601 # In polyglossia, this is supported since release 1.33.6 (May 2015)
602 # We introduce it with LyX 2.3 to give the support time to settle.
603 Language german-ch-old
604 GuiName "German (Switzerland, old spelling)"
605 BabelName swissgerman
606 PolyglossiaName german
607 PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
617 PolyglossiaName greek
618 PolyglossiaOpts "variant=monotonic"
621 InternalEncoding true
626 Language polutonikogreek
627 GuiName "Greek (polytonic)"
628 BabelName polutonikogreek
629 PolyglossiaName greek
630 PolyglossiaOpts "variant=polytonic"
633 InternalEncoding true
642 PolyglossiaName hebrew
645 InternalEncoding true
646 # Hebrew babel loads the font encodings
647 # itself in the appropriate order
653 # not supported by babel
656 PolyglossiaName hindi
661 # Currently not supported (file format change!)
662 # "hungarian" is a synonym for the "magyar" babel language option
663 # "hungarian" might be used for special purposes,
664 # see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
666 # GuiName "Hungarian"
667 # BabelName hungarian
676 PolyglossiaName icelandic
682 # Interlingua has no official country code because it is an auxiliary
683 # language. We therefore the name of its hunspell dictionary.
685 GuiName "Interlingua"
687 BabelName interlingua
688 PolyglossiaName interlingua
697 PolyglossiaName irish
707 PolyglossiaName italian
713 # japanese must be loaded locally with babel options,
714 # not globally via class options
715 # http://www.lyx.org/trac/ticket/4597#c4
716 # Since japanese does not load fontenc, we set
717 # InternalEncoding to true.
726 InternalEncoding true
732 Language japanese-cjk
733 GuiName "Japanese (CJK)"
740 # not supported by babel
743 PolyglossiaName kannada
748 # not yet supported by polyglossia
749 # not supported by babel
756 \AtBeginDocument{\fontencoding{T2A}\selectfont}
760 # not supported by babel
763 PolyglossiaName khmer
776 # not yet supported by polyglossia
785 # not supported by babel
793 # There is no country code for Latin because it is a dead language.
794 # We therefore the name of its hunspell dictionary.
798 PolyglossiaName latin
803 # latvian must be loaded locally with babel options,
804 # not globally via class options
808 PolyglossiaName latvian
811 # FontEncoding L7x # (required for hyphenation but not set by babel)
816 # lithuanian must be loaded locally with babel options,
817 # not globally via class options
821 PolyglossiaName lithuanian
829 Language lowersorbian
830 GuiName "Lower Sorbian"
831 BabelName lowersorbian
832 PolyglossiaName lsorbian
842 PolyglossiaName magyar
848 # not yet supported by polyglossia
858 # not supported by babel
861 PolyglossiaName marathi
866 # mongolian must be loaded locally with babel options,
867 # not globally via class options
868 # not yet supported by polyglossia
879 GuiName "English (New Zealand)"
881 PolyglossiaName english
882 PolyglossiaOpts "variant=newzealand"
889 GuiName "Norwegian (Bokmaal)"
892 PolyglossiaName norsk
899 GuiName "Norwegian (Nynorsk)"
902 PolyglossiaName nynorsk
908 # not supported by babel
911 PolyglossiaName occitan
917 # Currently not supported (file format change!)
918 # Russian orthography from the Petrine orthographic reforms of
919 # 1708 to the 1917 orthographic reform
920 # Note: If this is enabled, russian needs to get
921 # PolyglossiaOpts "spelling=modern"
922 # Language oldrussian
923 # GuiName "Russian (Petrine orthography)"
924 # PolyglossiaName russian
925 # PolyglossiaOpts "spelling=old"
926 # LangCode ru_petr1708
931 GuiName "Piedmontese"
933 BabelName piedmontese
934 PolyglossiaName piedmontese
944 PolyglossiaName polish
947 # FontEncoding QX # (required for hyphenation but not set by babel)
955 PolyglossiaName portuges
965 PolyglossiaName romanian
975 PolyglossiaName romansh
985 PolyglossiaName russian
995 PolyglossiaName samin
1000 # not supported by babel
1003 PolyglossiaName sanskrit
1011 PolyglossiaName scottish
1017 # Note: script option is uppercase, even if the polyglossia
1018 # manual states otherwise.
1023 PolyglossiaName serbian
1024 PolyglossiaOpts "script=Cyrillic"
1032 # Note: script option is uppercase, even if the polyglossia
1033 # manual states otherwise.
1034 Language serbian-latin
1035 GuiName "Serbian (Latin)"
1037 PolyglossiaName serbian
1038 PolyglossiaOpts "script=Latin"
1041 LangCode sr_RS-Latin
1048 PolyglossiaName slovak
1057 PolyglossiaName slovenian
1067 PolyglossiaName spanish
1072 \addto\shorthandsspanish{\spanishdeactivate{~<>}}
1073 EndPostBabelPreamble
1076 # there are no spanish shorthands in polyglossia
1077 Language spanish-mexico
1078 GuiName "Spanish (Mexico)"
1080 PolyglossiaName spanish
1085 \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
1086 EndPostBabelPreamble
1093 PolyglossiaName swedish
1099 # not supported by babel
1102 PolyglossiaName syriac
1108 # not supported by babel
1111 PolyglossiaName tamil
1116 # not supported by babel
1119 PolyglossiaName telugu
1127 PolyglossiaName thai
1133 \usepackage{thswitch}
1134 EndPostBabelPreamble
1137 # not supported by babel
1140 PolyglossiaName tibetan
1149 PolyglossiaName turkish
1155 # turkmen must be loaded locally with babel options,
1156 # not globally via class options
1160 PolyglossiaName turkmen
1171 PolyglossiaName ukrainian
1178 Language uppersorbian
1179 GuiName "Upper Sorbian"
1180 BabelName uppersorbian
1181 PolyglossiaName usorbian
1187 # not supported by babel
1190 PolyglossiaName urdu
1197 GuiName "Vietnamese"
1198 BabelName vietnamese
1199 PolyglossiaName vietnamese
1208 PolyglossiaName welsh