# 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.
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
PolyglossiaName arabic
QuoteStyle french
Encoding cp1256
+ FontEncoding "LFE,LAE"
RTL true
AsBabelOptions true
LangCode ar_SA
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
GuiName "Chinese (traditional)"
QuoteStyle english
Encoding utf8-cjk
- LangCode zh_CN
+ LangCode zh_TW
Requires CJK
End
BabelName farsi
PolyglossiaName farsi
Encoding utf8
+ FontEncoding "LFE,LAE"
RTL true
LangCode fa_IR
PostBabelPreamble
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)"
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.
+# In polyglossia, this is supported since release 1.33.6 (May 2015)
+# We use german until TL 2015 is out, though.
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)
+# In polyglossia, this is supported since release 1.33.6 (May 2015)
+# We use ngerman until TL 2015 is out, though.
+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
QuoteStyle french
Encoding iso8859-7
InternalEncoding true
+ FontEncoding LGR
LangCode el_GR
End
QuoteStyle french
Encoding iso8859-7
InternalEncoding true
+ FontEncoding LGR
LangCode el_GR
End
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
AsBabelOptions true
Requires japanese
InternalEncoding true
+ FontEncoding None
End
# uses CJK package
PolyglossiaName russian
QuoteStyle french
Encoding koi8-r
+ FontEncoding T2A
+ InternalEncoding true
LangCode ru_RU
End
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
EndPostBabelPreamble
End
+# not supported by babel
+Language tibetan
+ GuiName "Tibetan"
+ PolyglossiaName tibetan
+ Encoding utf8
+ LangCode bo_CN
+End
+
Language turkish
GuiName "Turkish"
BabelName turkish
PolyglossiaName ukrainian
QuoteStyle french
Encoding koi8-u
+ FontEncoding T2A
+ InternalEncoding true
LangCode uk_UA
End
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