Add FontEncoding to language descriptions.

Add FontEncoding tag for all languages with 8-bit hyphenation patterns
requiring a specific font encoding.
No FontEncoding tag means the language is either not supported with
Babel or accepts both, OT1 and standard text encodings.

Prerequisite for fontenc="auto" (ticket #9741)
This commit is contained in:
Günter Milde 2017-01-14 22:43:37 +01:00
parent cb6ea90256
commit 809b8b62a4

View File

@ -70,7 +70,10 @@
# If True, LyX cares for characters/macros that do not exist in # If True, LyX cares for characters/macros that do not exist in
# some font encodings ("<", ">", "|" and straight quote). # some font encodings ("<", ">", "|" and straight quote).
# It is not required for standard encodings like T2A. See bug #5091. # It is not required for standard encodings like T2A. See bug #5091.
# * "FontEncoding none" tells LyX that fontenc should not be loaded with this # * FontEncoding is the required font encoding for correct hyphenation with
# 8-bit TeX (http://www.hyphenation.org ).
# If not given, all standard text encodings as well as OT1 work.
# "FontEncoding none" tells LyX that fontenc should not be loaded with this
# language. # language.
# * AsBabelOptions advices LyX to pass the languages locally to babel, not # * AsBabelOptions advices LyX to pass the languages locally to babel, not
# globally to the class. Some languages (basically those not directly # globally to the class. Some languages (basically those not directly
@ -120,6 +123,7 @@ Language afrikaans
BabelName afrikaans BabelName afrikaans
QuoteStyle polish QuoteStyle polish
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode af_ZA LangCode af_ZA
End End
@ -129,6 +133,7 @@ Language albanian
PolyglossiaName albanian PolyglossiaName albanian
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-2 Encoding iso8859-2
# FontEncoding ?? (no hyphenation support?)
LangCode sq_AL LangCode sq_AL
End End
@ -186,7 +191,7 @@ Language arabic_arabi
PolyglossiaName arabic PolyglossiaName arabic
QuoteStyle french QuoteStyle french
Encoding cp1256 Encoding cp1256
FontEncoding "LFE,LAE" FontEncoding LAE
RTL true RTL true
AsBabelOptions true AsBabelOptions true
LangCode ar_SA LangCode ar_SA
@ -210,6 +215,7 @@ Language asturian
LangCode ast_ES LangCode ast_ES
End End
Language australian Language australian
GuiName "English (Australia)" GuiName "English (Australia)"
BabelName australian BabelName australian
@ -229,6 +235,7 @@ Language austrian
PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true" PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true"
QuoteStyle german QuoteStyle german
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode de_AT LangCode de_AT
End End
@ -241,6 +248,7 @@ Language naustrian
PolyglossiaOpts "variant=austrian,spelling=new,babelshorthands=true" PolyglossiaOpts "variant=austrian,spelling=new,babelshorthands=true"
QuoteStyle german QuoteStyle german
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode de_AT LangCode de_AT
End End
@ -270,6 +278,7 @@ Language basque
PolyglossiaName basque PolyglossiaName basque
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode eu_ES LangCode eu_ES
PostBabelPreamble PostBabelPreamble
\addto\extrasbasque{\bbl@deactivate{~}} \addto\extrasbasque{\bbl@deactivate{~}}
@ -282,6 +291,7 @@ Language belarusian
BabelName belarusian BabelName belarusian
QuoteStyle french QuoteStyle french
Encoding cp1251 Encoding cp1251
FontEncoding T2A
LangCode be_BY LangCode be_BY
AsBabelOptions true AsBabelOptions true
End End
@ -292,6 +302,7 @@ Language bosnian
BabelName bosnian BabelName bosnian
QuoteStyle polish QuoteStyle polish
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode bs_BA LangCode bs_BA
End End
@ -302,6 +313,7 @@ Language brazilian
PolyglossiaName brazil PolyglossiaName brazil
QuoteStyle english QuoteStyle english
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode pt_BR LangCode pt_BR
End End
@ -355,6 +367,7 @@ Language canadien
# PolyglossiaOpts "variant=canadien" # PolyglossiaOpts "variant=canadien"
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode fr_CA LangCode fr_CA
End End
@ -366,6 +379,7 @@ Language catalan
PolyglossiaOpts "babelshorthands=true" PolyglossiaOpts "babelshorthands=true"
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode ca_ES LangCode ca_ES
End End
@ -403,6 +417,7 @@ Language croatian
PolyglossiaName croatian PolyglossiaName croatian
QuoteStyle polish QuoteStyle polish
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode hr_HR LangCode hr_HR
End End
@ -413,6 +428,7 @@ Language czech
PolyglossiaName czech PolyglossiaName czech
QuoteStyle german QuoteStyle german
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode cs_CZ LangCode cs_CZ
End End
@ -423,6 +439,7 @@ Language danish
PolyglossiaName danish PolyglossiaName danish
QuoteStyle danish QuoteStyle danish
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode da_DK LangCode da_DK
End End
@ -442,6 +459,7 @@ Language dutch
PolyglossiaOpts "babelshorthands=true" PolyglossiaOpts "babelshorthands=true"
QuoteStyle polish QuoteStyle polish
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode nl_NL LangCode nl_NL
End End
@ -464,6 +482,7 @@ Language esperanto
PolyglossiaName esperanto PolyglossiaName esperanto
QuoteStyle english QuoteStyle english
Encoding iso8859-3 Encoding iso8859-3
FontEncoding IL3
LangCode eo_EO LangCode eo_EO
End End
@ -473,6 +492,7 @@ Language estonian
PolyglossiaName estonian PolyglossiaName estonian
QuoteStyle german QuoteStyle german
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode et_EE LangCode et_EE
PostBabelPreamble PostBabelPreamble
\addto\extrasestonian{\bbl@deactivate{~}} \addto\extrasestonian{\bbl@deactivate{~}}
@ -486,7 +506,7 @@ Language farsi
BabelName farsi BabelName farsi
PolyglossiaName farsi PolyglossiaName farsi
Encoding utf8 Encoding utf8
FontEncoding "LFE,LAE" FontEncoding LFE
RTL true RTL true
LangCode fa_IR LangCode fa_IR
QuoteStyle english QuoteStyle english
@ -503,6 +523,7 @@ Language finnish
PolyglossiaName finnish PolyglossiaName finnish
QuoteStyle swedish QuoteStyle swedish
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode fi_FI LangCode fi_FI
End End
@ -514,6 +535,7 @@ Language french
PolyglossiaName french PolyglossiaName french
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode fr_FR LangCode fr_FR
PostBabelPreamble PostBabelPreamble
\addto\extrasfrench{% \addto\extrasfrench{%
@ -530,6 +552,7 @@ Language friulan
PolyglossiaName friulan PolyglossiaName friulan
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode fur_IT LangCode fur_IT
End End
@ -540,6 +563,7 @@ Language galician
PolyglossiaName galician PolyglossiaName galician
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode gl_ES LangCode gl_ES
PostBabelPreamble PostBabelPreamble
\addto\shorthandsgalician{\galiciandeactivate{~}} \addto\shorthandsgalician{\galiciandeactivate{~}}
@ -563,6 +587,7 @@ Language german
PolyglossiaOpts "variant=german,spelling=old,babelshorthands=true" PolyglossiaOpts "variant=german,spelling=old,babelshorthands=true"
QuoteStyle german QuoteStyle german
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode de LangCode de
LangVariety alt LangVariety alt
End End
@ -575,6 +600,7 @@ Language ngerman
PolyglossiaOpts "variant=german,spelling=new,babelshorthands=true" PolyglossiaOpts "variant=german,spelling=new,babelshorthands=true"
QuoteStyle german QuoteStyle german
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode de_DE LangCode de_DE
End End
@ -589,6 +615,7 @@ Language german-ch
PolyglossiaOpts "variant=swiss,spelling=new,babelshorthands=true" PolyglossiaOpts "variant=swiss,spelling=new,babelshorthands=true"
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode de_CH LangCode de_CH
End End
@ -602,6 +629,7 @@ Language german-ch-old
PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true" PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode de_CH LangCode de_CH
End End
@ -671,6 +699,7 @@ Language icelandic
PolyglossiaName icelandic PolyglossiaName icelandic
QuoteStyle german QuoteStyle german
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode is_IS LangCode is_IS
End End
@ -692,6 +721,7 @@ Language irish
PolyglossiaName irish PolyglossiaName irish
QuoteStyle english QuoteStyle english
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode ga_IE LangCode ga_IE
End End
@ -743,9 +773,10 @@ End
# not yet supported by polyglossia # not yet supported by polyglossia
# not supported by babel # not supported by babel
Language kazakh Language kazakh
GuiName "Kazakh" GuiName "Kazakh"
Encoding ascii Encoding ascii
LangCode kk_KZ FontEncoding T2A
LangCode kk_KZ
PostBabelPreamble PostBabelPreamble
\input{t2aenc.def} \input{t2aenc.def}
\AtBeginDocument{\fontencoding{T2A}\selectfont} \AtBeginDocument{\fontencoding{T2A}\selectfont}
@ -773,6 +804,7 @@ Language kurmanji
GuiName "Kurmanji" GuiName "Kurmanji"
BabelName kurmanji BabelName kurmanji
Encoding utf8 Encoding utf8
FontEncoding T1
LangCode kmr LangCode kmr
AsBabelOptions true AsBabelOptions true
End End
@ -792,6 +824,7 @@ Language latin
BabelName latin BabelName latin
PolyglossiaName latin PolyglossiaName latin
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode la_LA LangCode la_LA
End End
@ -803,7 +836,7 @@ Language latvian
PolyglossiaName latvian PolyglossiaName latvian
QuoteStyle german QuoteStyle german
Encoding iso8859-4 Encoding iso8859-4
# FontEncoding L7x # (required for hyphenation but not set by babel) FontEncoding L7x # (required for hyphenation but not set by babel)
LangCode lv_LV LangCode lv_LV
AsBabelOptions true AsBabelOptions true
End End
@ -827,6 +860,7 @@ Language lowersorbian
PolyglossiaName lsorbian PolyglossiaName lsorbian
QuoteStyle german QuoteStyle german
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode dsb_DE LangCode dsb_DE
End End
@ -837,6 +871,7 @@ Language magyar
PolyglossiaName magyar PolyglossiaName magyar
QuoteStyle polish QuoteStyle polish
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode hu_HU LangCode hu_HU
End End
@ -887,6 +922,7 @@ Language norsk
PolyglossiaName norsk PolyglossiaName norsk
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode nb_NO LangCode nb_NO
End End
@ -897,6 +933,7 @@ Language nynorsk
PolyglossiaName nynorsk PolyglossiaName nynorsk
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode nn_NO LangCode nn_NO
End End
@ -939,7 +976,7 @@ Language polish
PolyglossiaName polish PolyglossiaName polish
QuoteStyle polish QuoteStyle polish
Encoding iso8859-2 Encoding iso8859-2
# FontEncoding QX # (required for hyphenation but not set by babel) FontEncoding QX # (required for hyphenation but not set by babel)
LangCode pl_PL LangCode pl_PL
End End
@ -950,6 +987,7 @@ Language portuguese
PolyglossiaName portuges PolyglossiaName portuges
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode pt_PT LangCode pt_PT
End End
@ -960,6 +998,7 @@ Language romanian
PolyglossiaName romanian PolyglossiaName romanian
QuoteStyle polish QuoteStyle polish
Encoding iso8859-16 Encoding iso8859-16
FontEncoding T1
LangCode ro_RO LangCode ro_RO
End End
@ -989,6 +1028,7 @@ Language samin
BabelName samin BabelName samin
PolyglossiaName samin PolyglossiaName samin
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode se_NO LangCode se_NO
End End
@ -1033,6 +1073,7 @@ Language serbian-latin
PolyglossiaOpts "script=Latin" PolyglossiaOpts "script=Latin"
QuoteStyle polish QuoteStyle polish
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode sr_RS-Latin LangCode sr_RS-Latin
End End
@ -1043,6 +1084,7 @@ Language slovak
PolyglossiaName slovak PolyglossiaName slovak
QuoteStyle german QuoteStyle german
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode sk_SK LangCode sk_SK
End End
@ -1052,6 +1094,7 @@ Language slovene
PolyglossiaName slovenian PolyglossiaName slovenian
QuoteStyle german QuoteStyle german
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode sl_SI LangCode sl_SI
End End
@ -1062,6 +1105,7 @@ Language spanish
PolyglossiaName spanish PolyglossiaName spanish
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode es_ES LangCode es_ES
PostBabelPreamble PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>}} \addto\shorthandsspanish{\spanishdeactivate{~<>}}
@ -1075,6 +1119,7 @@ Language spanish-mexico
PolyglossiaName spanish PolyglossiaName spanish
QuoteStyle french QuoteStyle french
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode es_MX LangCode es_MX
PostBabelPreamble PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>.}} \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
@ -1088,6 +1133,7 @@ Language swedish
PolyglossiaName swedish PolyglossiaName swedish
QuoteStyle swedish QuoteStyle swedish
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode sv_SE LangCode sv_SE
End End
@ -1122,7 +1168,7 @@ Language thai
PolyglossiaName thai PolyglossiaName thai
QuoteStyle english QuoteStyle english
Encoding tis620-0 Encoding tis620-0
# FontEncoding LTH FontEncoding LTH
LangCode th_TH LangCode th_TH
PostBabelPreamble PostBabelPreamble
\usepackage{thswitch} \usepackage{thswitch}
@ -1144,6 +1190,7 @@ Language turkish
PolyglossiaName turkish PolyglossiaName turkish
QuoteStyle english QuoteStyle english
Encoding iso8859-9 Encoding iso8859-9
FontEncoding T1
LangCode tr_TR LangCode tr_TR
PostBabelPreamble PostBabelPreamble
\usepackage{xkeyval} \usepackage{xkeyval}
@ -1158,6 +1205,7 @@ Language turkmen
PolyglossiaName turkmen PolyglossiaName turkmen
QuoteStyle swiss QuoteStyle swiss
Encoding utf8 Encoding utf8
FontEncoding T1
LangCode tk_TM LangCode tk_TM
AsBabelOptions true AsBabelOptions true
End End
@ -1179,6 +1227,7 @@ Language uppersorbian
PolyglossiaName usorbian PolyglossiaName usorbian
QuoteStyle german QuoteStyle german
Encoding iso8859-2 Encoding iso8859-2
FontEncoding T1
LangCode hsb_DE LangCode hsb_DE
End End
@ -1200,6 +1249,7 @@ Language vietnamese
PolyglossiaName vietnamese PolyglossiaName vietnamese
QuoteStyle english QuoteStyle english
Encoding utf8 Encoding utf8
FontEncoding T5
LangCode vi_VN LangCode vi_VN
AsBabelOptions true AsBabelOptions true
Requires vietnamese Requires vietnamese
@ -1211,5 +1261,6 @@ Language welsh
PolyglossiaName welsh PolyglossiaName welsh
QuoteStyle british QuoteStyle british
Encoding iso8859-15 Encoding iso8859-15
FontEncoding T1
LangCode cy_GB LangCode cy_GB
End End