]> git.lyx.org Git - lyx.git/blobdiff - lib/languages
GuiBox.cpp: fix button logic (fixes bug #9543)
[lyx.git] / lib / languages
index e4c0dd5c941037eaaa1f4bf76ec5879ce633facf..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
-       QuoteStyle       french
-       Encoding         iso8859-7
-       LangCode         grc_GR
+       GuiName           "Greek (ancient)"
+       BabelName         greek
+       PostBabelPreamble
+       \languageattribute{greek}{ancient}
+       EndPostBabelPreamble
+       PolyglossiaName   greek
+       PolyglossiaOpts   variant=ancient
+       QuoteStyle        french
+       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
@@ -410,6 +423,7 @@ Language farsi
        BabelName        farsi
        PolyglossiaName  farsi
        Encoding         utf8
+       FontEncoding     "LFE,LAE"
        RTL              true
        LangCode         fa_IR
        PostBabelPreamble
@@ -455,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)"
@@ -511,6 +535,7 @@ Language greek
        QuoteStyle        french
        Encoding          iso8859-7
        InternalEncoding  true
+       FontEncoding      LGR
        LangCode          el_GR
 End
 
@@ -522,6 +547,7 @@ Language polutonikogreek
        QuoteStyle        french
        Encoding          iso8859-7
        InternalEncoding  true
+       FontEncoding      LGR
        LangCode          el_GR
 End
 
@@ -532,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
@@ -605,6 +634,7 @@ Language japanese
        AsBabelOptions   true
        Requires         japanese
        InternalEncoding true
+       FontEncoding     None
 End
 
 # uses CJK package
@@ -803,6 +833,8 @@ Language russian
        PolyglossiaName  russian
        QuoteStyle       french
        Encoding         koi8-r
+       FontEncoding     T2A
+       InternalEncoding true
        LangCode         ru_RU
 End
 
@@ -978,6 +1010,8 @@ Language ukrainian
        PolyglossiaName  ukrainian
        QuoteStyle       french
        Encoding         koi8-u
+       FontEncoding     T2A
+       InternalEncoding true
        LangCode         uk_UA
 End