# 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
- 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
PolyglossiaName arabic
QuoteStyle french
Encoding cp1256
+ FontEncoding "LFE,LAE"
RTL true
AsBabelOptions true
LangCode ar_SA
BabelName farsi
PolyglossiaName farsi
Encoding utf8
+ FontEncoding "LFE,LAE"
RTL true
LangCode fa_IR
PostBabelPreamble
LangCode de_CH
End
-# This is now supported, but requires a file format change
-# 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
+# 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"
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
PolyglossiaName ukrainian
QuoteStyle french
Encoding koi8-u
+ FontEncoding T2A
+ InternalEncoding true
LangCode uk_UA
End