]> git.lyx.org Git - lyx.git/blobdiff - lib/languages
Math Panels: revise the "Relations (extra)" svg icons.
[lyx.git] / lib / languages
index 4703ad0c23523ed29ee95a264c270087d4ec25eb..1661699f44633492977d23d4b03bc25968914323 100644 (file)
@@ -10,6 +10,7 @@
 #      PolyglossiaName    <polyglossianame>
 #      PolyglossiaOpts    "<language-specific options>"
 #      Encoding           <encoding>
+#      FontEncoding       <font encoding>
 #      QuoteStyle         <danish|english|french|german|polish|swedish>
 #      InternalEncoding   <true|false>
 #      RTL                <true|false>
 #   Document > Settings > Language > Encoding is not set to "Language
 #   Default"
 # * InternalEncoding is used to tell LyX that babel internally sets a font
-#   encoding (such as hebrew to LHE). See bug #5091.
+#   encoding (such as hebrew to LHE). This prevents LyX from outputting
+#   characters that only exist in T1 font encoding (such as "<", ">", "|"
+#   and straight quote). See bug #5091.
+# * "FontEncoding none" tells LyX that fontenc should not be loaded with this
+#   language.
 # * AsBabelOptions advices LyX to pass the languages locally to babel, not
 #   globally to the class. Some languages (basically those not directly
 #   supported by babel) need this.
@@ -115,14 +120,21 @@ Language american
        LangCode         en_US
 End
 
-# not supported by babel
+# In Babel, this is supported since v. 1.8a of babel-greek (2013-12-03)
+# We introduce it with LyX 2.2 to give the support time to settle.
 Language ancientgreek
-       GuiName          "Greek (ancient)"
-       PolyglossiaName  greek
-       PolyglossiaOpts  variant=ancient
+       GuiName           "Greek (ancient)"
+       BabelName         greek
+       PostBabelPreamble
+       \languageattribute{greek}{ancient}
+       EndPostBabelPreamble
+       PolyglossiaName   greek
+       PolyglossiaOpts   variant=ancient
        QuoteStyle        french
-       Encoding         iso8859-7
-       LangCode         grc_GR
+       Encoding          iso8859-7
+       InternalEncoding  true
+       FontEncoding      LGR
+       LangCode          grc_GR
 End
 
 # FIXME: dummy babel language for arabic_arabtex to be able
@@ -143,6 +155,7 @@ Language arabic_arabi
        PolyglossiaName  arabic
        QuoteStyle       french
        Encoding         cp1256
+       FontEncoding     "LFE,LAE"
        RTL              true
        AsBabelOptions   true
        LangCode         ar_SA
@@ -167,19 +180,25 @@ Language australian
        LangCode         en_AU
 End
 
-# not yet supported by polyglossia
+# In polyglossia, this is supported since release 1.33.4 (May 2014)
+# We introduce it with LyX 2.2 to give the support time to settle.
 Language austrian
        GuiName          "German (Austria, old spelling)"
        BabelName        austrian
+       PolyglossiaName  german
+       PolyglossiaOpts  "variant=austrian,spelling=old,babelshorthands=true"
        QuoteStyle       german
        Encoding         iso8859-15
        LangCode         de_AT
 End
 
-# not yet supported by polyglossia
+# In polyglossia, this is supported since release 1.33.4 (May 2014)
+# We introduce it with LyX 2.2 to give the support time to settle.
 Language naustrian
        GuiName          "German (Austria)"
        BabelName        naustrian
+       PolyglossiaName  german
+       PolyglossiaOpts  "variant=austrian,babelshorthands=true"
        QuoteStyle       german
        Encoding         iso8859-15
        LangCode         de_AT
@@ -222,6 +241,7 @@ Language belarusian
        QuoteStyle       french
        Encoding         cp1251
        LangCode         be_BY
+       AsBabelOptions   true
 End
 
 Language brazilian
@@ -307,7 +327,7 @@ Language chinese-traditional
        GuiName         "Chinese (traditional)"
        QuoteStyle       english
        Encoding        utf8-cjk
-       LangCode        zh_CN
+       LangCode        zh_TW
        Requires         CJK
 End
 
@@ -403,6 +423,7 @@ Language farsi
        BabelName        farsi
        PolyglossiaName  farsi
        Encoding         utf8
+       FontEncoding     "LFE,LAE"
        RTL              true
        LangCode         fa_IR
        PostBabelPreamble
@@ -448,6 +469,16 @@ Language galician
        EndPostBabelPreamble
 End
 
+Language georgian
+       GuiName          "Georgian"
+       BabelName        georgian
+       QuoteStyle       german
+       Encoding         utf8
+       InternalEncoding true
+       FontEncoding     "T8M,T8K"
+       LangCode         ka_GE
+End
+
 # german does not use a country code (due to the variety)
 Language german
        GuiName          "German (old spelling)"
@@ -470,18 +501,33 @@ Language ngerman
        LangCode         de_DE
 End
 
-# Swiss German is not supported by babel and polyglossia yet
-# We use ngerman for now (spellchecking is supported though!)
+# In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
+# We introduce it with LyX 2.2 to give the support time to settle.
+# Polyglossia does not yet support Swiss German. We use ngerman for now.
 Language german-ch
        GuiName          "German (Switzerland)"
-       BabelName        ngerman
+       BabelName        nswissgerman
        PolyglossiaName  german
        PolyglossiaOpts  "babelshorthands=true"
+#      PolyglossiaOpts  "variant=swiss,babelshorthands=true"
        QuoteStyle       danish
        Encoding         iso8859-15
        LangCode         de_CH
 End
 
+# In Babel, this is supported since release 2.7 of babel-german (Dec 2013)
+# Polyglossia does not yet support Swiss German. We use german for now.
+Language german-ch-old
+       GuiName          "German (Switzerland, old spelling)"
+       BabelName        swissgerman
+       PolyglossiaName  german
+       PolyglossiaOpts  "spelling=old,babelshorthands=true"
+#      PolyglossiaOpts  "variant=swiss,spelling=old,babelshorthands=true"
+       QuoteStyle       danish
+       Encoding         iso8859-15
+       LangCode         de_CH
+End
+
 Language greek
        GuiName           "Greek"
        BabelName         greek
@@ -489,6 +535,7 @@ Language greek
        QuoteStyle        french
        Encoding          iso8859-7
        InternalEncoding  true
+       FontEncoding      LGR
        LangCode          el_GR
 End
 
@@ -500,6 +547,7 @@ Language polutonikogreek
        QuoteStyle        french
        Encoding          iso8859-7
        InternalEncoding  true
+       FontEncoding      LGR
        LangCode          el_GR
 End
 
@@ -510,6 +558,9 @@ Language hebrew
        Encoding          cp1255
        QuoteStyle        english
        InternalEncoding  true
+# Hebrew babel loads the font encodings
+# itself in the appropriate order
+#      FontEncoding      LHE
        RTL               true
        LangCode          he_IL
 End
@@ -583,6 +634,7 @@ Language japanese
        AsBabelOptions   true
        Requires         japanese
        InternalEncoding true
+       FontEncoding     None
 End
 
 # uses CJK package
@@ -594,11 +646,15 @@ Language japanese-cjk
 End
 
 # not yet supported by polyglossia
+# not supported by babel
 Language kazakh
        GuiName         "Kazakh"
-       BabelName       kazakh
-       Encoding        pt154
+       Encoding        ascii
        LangCode        kk_KZ
+       PostBabelPreamble
+       \input{t2aenc.def}
+       \AtBeginDocument{\fontencoding{T2A}\selectfont}
+       EndPostBabelPreamble
 End
 
 Language korean
@@ -777,6 +833,8 @@ Language russian
        PolyglossiaName  russian
        QuoteStyle       french
        Encoding         koi8-r
+       FontEncoding     T2A
+       InternalEncoding true
        LangCode         ru_RU
 End
 
@@ -807,11 +865,12 @@ End
 
 Language serbian
        GuiName          "Serbian"
-       BabelName        serbian
+       BabelName        serbianc
        PolyglossiaName  serbian
        QuoteStyle       german
        Encoding         iso8859-5
        LangCode         sr_RS
+       AsBabelOptions   true
 End
 
 Language serbian-latin
@@ -821,7 +880,7 @@ Language serbian-latin
        PolyglossiaOpts  "script=latin"
        QuoteStyle       german
        Encoding         iso8859-2
-       LangCode         sr_RS
+       LangCode         sr_RS-Latin
 End
 
 Language slovak
@@ -877,12 +936,13 @@ Language swedish
 End
 
 # not supported by babel
-Language syriac
-       GuiName          "Syriac"
-       PolyglossiaName  syriac
-       Encoding         utf8
-       LangCode         syr_SY
-End
+#Language syriac
+#      GuiName          "Syriac"
+#      PolyglossiaName  syriac
+#      Encoding         utf8
+#      RTL              true
+#      LangCode         syr_SY
+#End
 
 # not supported by babel
 Language tamil
@@ -912,6 +972,14 @@ Language thai
        EndPostBabelPreamble
 End
 
+# not supported by babel
+Language tibetan
+       GuiName          "Tibetan"
+       PolyglossiaName  tibetan
+       Encoding         utf8
+       LangCode         bo_CN
+End
+
 Language turkish
        GuiName          "Turkish"
        BabelName        turkish
@@ -942,6 +1010,8 @@ Language ukrainian
        PolyglossiaName  ukrainian
        QuoteStyle       french
        Encoding         koi8-u
+       FontEncoding     T2A
+       InternalEncoding true
        LangCode         uk_UA
 End
 
@@ -955,12 +1025,13 @@ Language uppersorbian
 End
 
 # not supported by babel
-Language urdu
-       GuiName          "Urdu"
-       PolyglossiaName  urdu
-       Encoding         utf8
-       LangCode         ur_PK
-End
+#Language urdu
+#      GuiName          "Urdu"
+#      PolyglossiaName  urdu
+#      Encoding         utf8
+#      RTL              true
+#      LangCode         ur_PK
+#End
 
 # vietnam must be loaded locally with babel options,
 # not globally via class options, see