1 ##########################################################################
3 # Languages supported by LyX.
9 # BabelName <babelname>
10 # PolyglossiaName <polyglossianame>
11 # PolyglossiaOpts "<language-specific options>"
13 # FontEncoding <font encoding>
14 # QuoteStyle <danish|english|french|german|polish|swedish>
15 # InternalEncoding <true|false>
17 # AsBabelOptions <true|false>
18 # LangCode <language_code>
19 # LangVariety <language_variety>
21 # <extra latex code inserted before babel>
24 # <extra latex code inserted after babel>
25 # EndPostBabelPreamble
26 # Requires <requirement>
32 # * Omitted elements will be treated as empty (if string) or "false"
34 # * The QuoteStyle arguments correspond to the following styles:
35 # - danish: >>text<< >text< (inward guillemets)
36 # - english: ``text'' `text' (66_99)
37 # - french: <<text>> <text> (outward guillemets)
38 # - german: ,,text`` ,text` (99/66)
39 # - polish: ,,text'' ,text' (99/99)
40 # - swedish: ''text'' 'text' (99_99)
41 # Note that the option names have been selected (rather arbitrarily)
42 # because the respective styles are common in the respective countries.
43 # Of course this does not imply any fixed relation to those countries.
44 # * Encoding is not relevant for XeTeX (which is utf8 always), and if
45 # Document > Settings > Language > Encoding is not set to "Language
47 # * InternalEncoding is used to tell LyX that babel internally sets a font
48 # encoding (such as hebrew to LHE). This prevents LyX from outputting
49 # characters that only exist in T1 font encoding (such as "<", ">", "|"
50 # and straight quote). See bug #5091.
51 # * "FontEncoding none" tells LyX that fontenc should not be loaded with this
53 # * AsBabelOptions advices LyX to pass the languages locally to babel, not
54 # globally to the class. Some languages (basically those not directly
55 # supported by babel) need this.
56 # FIXME: in this case, we might still need to pass the other languages
57 # globally, for the use of other packages (such as varioref).
58 # * LangCode is also used for spellchecking and thesaurus, where the
59 # dictionaries are named accordingly. Thus, check this when intoducing/
60 # changing language codes (especially aspell, thesaurus).
61 # TODO: maybe use Best Current Practice (BCP 47) codes for LangCode
62 # http://www.rfc-editor.org/rfc/bcp/bcp47.txt
63 # http://www.w3.org/International/articles/language-tags/
64 # http://www.iana.org/assignments/language-subtag-registry
65 # * LangVariety is used by the aspell spellchecker to differentiate
66 # dictionaries for different varieties of a given language (e.g. German
67 # pre-1998 and post-1998 spelling). The aspell dictionaries are named
68 # language[_REGION][-variety].multi, e.g. de-alt.multi for "German (old
69 # spelling)" (see http://aspell.net/man-html/Dictionary-Naming.html)
71 ##########################################################################
74 # LyX-internal languages
80 PolyglossiaName ignore
95 # not yet supported by polyglossia
107 PolyglossiaName albanian
114 GuiName "English (USA)"
116 PolyglossiaName english
117 PolyglossiaOpts "variant=american"
123 # In Babel, this is supported since v. 1.8a of babel-greek (2013-12-03)
124 # We introduce it with LyX 2.2 to give the support time to settle.
125 Language ancientgreek
126 GuiName "Greek (ancient)"
129 \languageattribute{greek}{ancient}
131 PolyglossiaName greek
132 PolyglossiaOpts variant=ancient
135 InternalEncoding true
140 # FIXME: dummy babel language for arabic_arabtex to be able
141 # to switch the language the way of the ArabTeX-package
142 Language arabic_arabtex
143 GuiName "Arabic (ArabTeX)"
151 # polyglossia uses "Arabic" for the lang environment
152 Language arabic_arabi
153 GuiName "Arabic (Arabi)"
155 PolyglossiaName arabic
158 FontEncoding "LFE,LAE"
164 # not supported by babel
167 PolyglossiaName armenian
174 GuiName "English (Australia)"
176 PolyglossiaName english
177 PolyglossiaOpts "variant=australian"
183 # In polyglossia, this is supported since release 1.33.4 (May 2014)
184 # We introduce it with LyX 2.2 to give the support time to settle.
186 GuiName "German (Austria, old spelling)"
188 PolyglossiaName german
189 PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true"
195 # In polyglossia, this is supported since release 1.33.4 (May 2014)
196 # We introduce it with LyX 2.2 to give the support time to settle.
198 GuiName "German (Austria)"
200 PolyglossiaName german
201 PolyglossiaOpts "variant=austrian,babelshorthands=true"
210 PolyglossiaName bahasai
219 PolyglossiaName bahasam
228 PolyglossiaName basque
233 \addto\extrasbasque{\bbl@deactivate{~}}
237 # not yet supported by polyglossia
248 GuiName "Portuguese (Brazil)"
250 PolyglossiaName brazil
259 PolyglossiaName breton
266 GuiName "English (UK)"
268 PolyglossiaName english
269 PolyglossiaOpts "variant=british"
278 PolyglossiaName bulgarian
284 # not yet supported by polyglossia
286 GuiName "English (Canada)"
288 # PolyglossiaName english
289 # PolyglossiaOpts "variant=canadian"
295 # not yet supported by polyglossia
297 GuiName "French (Canada)"
299 # PolyglossiaName french
300 # PolyglossiaOpts "variant=canadien"
309 PolyglossiaName catalan
310 PolyglossiaOpts "babelshorthands=true"
317 Language chinese-simplified
318 GuiName "Chinese (simplified)"
326 Language chinese-traditional
327 GuiName "Chinese (traditional)"
334 # not supported by babel
337 PolyglossiaName coptic
345 PolyglossiaName croatian
354 PolyglossiaName czech
363 PolyglossiaName danish
369 # not supported by babel
371 GuiName "Divehi (Maldivian)"
372 PolyglossiaName divehi
380 PolyglossiaName dutch
381 PolyglossiaOpts "babelshorthands=true"
390 PolyglossiaName english
396 # Esperanto has no country code because it is an auxiliary language.
397 # We therefore the name of its hunspell dictionary.
401 PolyglossiaName esperanto
410 PolyglossiaName estonian
415 \addto\extrasestonian{\bbl@deactivate{~}}
419 # the preamble definitions are only used due to bugs in the
420 # arabi-package -- remove them if they become unnecessary!
424 PolyglossiaName farsi
426 FontEncoding "LFE,LAE"
430 \DeclareTextSymbol{\guillemotright}{LFE}{62}
431 \DeclareTextSymbol{\guillemotleft}{LFE}{60}
438 PolyglossiaName finnish
444 # We redefine \og and \fg (guillemets) for older french language definitions
448 PolyglossiaName french
453 \addto\extrasfrench{%
454 \providecommand{\og}{\leavevmode\flqq~}%
455 \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
463 PolyglossiaName galician
468 \addto\shorthandsgalician{\galiciandeactivate{~}}
477 InternalEncoding true
478 FontEncoding "T8M,T8K"
482 # german does not use a country code (due to the variety)
484 GuiName "German (old spelling)"
486 PolyglossiaName german
487 PolyglossiaOpts "spelling=old,babelshorthands=true"
497 PolyglossiaName german
498 PolyglossiaOpts "babelshorthands=true"
504 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
505 # We introduce it with LyX 2.2 to give the support time to settle.
506 # Polyglossia does not yet support Swiss German. We use ngerman for now.
508 GuiName "German (Switzerland)"
509 BabelName nswissgerman
510 PolyglossiaName german
511 PolyglossiaOpts "babelshorthands=true"
512 # PolyglossiaOpts "variant=swiss,babelshorthands=true"
518 # In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
519 # Polyglossia does not yet support Swiss German. We use german for now.
520 Language german-ch-old
521 GuiName "German (Switzerland, old spelling)"
522 BabelName swissgerman
523 PolyglossiaName german
524 PolyglossiaOpts "spelling=old,babelshorthands=true"
525 # PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
534 PolyglossiaName greek
537 InternalEncoding true
542 Language polutonikogreek
543 GuiName "Greek (polytonic)"
544 BabelName polutonikogreek
545 PolyglossiaName greek
546 PolyglossiaOpts "variant=polytonic"
549 InternalEncoding true
557 PolyglossiaName hebrew
560 InternalEncoding true
561 # Hebrew babel loads the font encodings
562 # itself in the appropriate order
568 # not supported by babel
571 PolyglossiaName hindi
576 # Currently not supported (file format change!)
577 # "hungarian" is a synonym for the "magyar" babel language option
578 # "hungarian" might be used for special purposes,
579 # see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
581 # GuiName "Hungarian"
582 # BabelName hungarian
590 PolyglossiaName icelandic
596 # Interlingua has no official country code because it is an auxiliary
597 # language. We therefore the name of its hunspell dictionary.
599 GuiName "Interlingua"
600 BabelName interlingua
601 PolyglossiaName interlingua
609 PolyglossiaName irish
618 PolyglossiaName italian
624 # japanese must be loaded locally with babel options,
625 # not globally via class options
626 # http://www.lyx.org/trac/ticket/4597#c4
627 # Since japanese does not load fontenc, we set
628 # InternalEncoding to true.
636 InternalEncoding true
641 Language japanese-cjk
642 GuiName "Japanese (CJK)"
648 # not yet supported by polyglossia
649 # not supported by babel
656 \AtBeginDocument{\fontencoding{T2A}\selectfont}
668 # not yet supported by polyglossia
677 # not supported by babel
685 # There is no country code for Latin because it is a dead language.
686 # We therefore the name of its hunspell dictionary.
690 PolyglossiaName latin
695 # latvian must be loaded locally with babel options,
696 # not globally via class options
700 PolyglossiaName latvian
707 # lithuanian must be loaded locally with babel options,
708 # not globally via class options
712 PolyglossiaName lithuanian
719 Language lowersorbian
720 GuiName "Lower Sorbian"
721 BabelName lowersorbian
722 PolyglossiaName lsorbian
731 PolyglossiaName magyar
737 # not supported by babel
740 PolyglossiaName marathi
745 # mongolian must be loaded locally with babel options,
746 # not globally via class options
747 # not yet supported by polyglossia
757 GuiName "English (New Zealand)"
759 PolyglossiaName english
760 PolyglossiaOpts "variant=newzealand"
767 GuiName "Norwegian (Bokmaal)"
769 PolyglossiaName norsk
776 GuiName "Norwegian (Nynorsk)"
778 PolyglossiaName nynorsk
784 # not supported by babel
787 PolyglossiaName occitan
793 # Currently not supported (file format change!)
794 # Russian orthography from the Petrine orthographic reforms of
795 # 1708 to the 1917 orthographic reform
796 # Language oldrussian
797 # GuiName "Russian (Petrine orthography)"
798 # PolyglossiaName russian
799 # PolyglossiaOpts spelling=old
800 # LangCode ru_petr1708
806 PolyglossiaName polish
815 PolyglossiaName portuges
824 PolyglossiaName romanian
833 PolyglossiaName russian
837 InternalEncoding true
844 PolyglossiaName samin
849 # not supported by babel
852 PolyglossiaName sanskrit
860 PolyglossiaName scottish
869 PolyglossiaName serbian
876 Language serbian-latin
877 GuiName "Serbian (Latin)"
879 PolyglossiaName serbian
880 PolyglossiaOpts "script=latin"
889 PolyglossiaName slovak
898 PolyglossiaName slovenian
907 PolyglossiaName spanish
912 \addto\shorthandsspanish{\spanishdeactivate{~<>}}
916 # there are no spanish shorthands in polyglossia
917 Language spanish-mexico
918 GuiName "Spanish (Mexico)"
920 PolyglossiaName spanish
925 \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
932 PolyglossiaName swedish
938 # not supported by babel
941 # PolyglossiaName syriac
947 # not supported by babel
950 PolyglossiaName tamil
955 # not supported by babel
958 PolyglossiaName telugu
971 \usepackage{thswitch}
975 # not supported by babel
978 PolyglossiaName tibetan
986 PolyglossiaName turkish
995 # turkmen must be loaded locally with babel options,
996 # not globally via class options
1000 PolyglossiaName turkmen
1010 PolyglossiaName ukrainian
1014 InternalEncoding true
1018 Language uppersorbian
1019 GuiName "Upper Sorbian"
1020 BabelName uppersorbian
1021 PolyglossiaName usorbian
1027 # not supported by babel
1030 # PolyglossiaName urdu
1036 # vietnam must be loaded locally with babel options,
1037 # not globally via class options, see
1038 # http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg129417.html
1040 GuiName "Vietnamese"
1042 PolyglossiaName vietnamese
1053 PolyglossiaName welsh