X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flanguages;h=a39c5c75286e4eb6bceb95ea5dc1d6c604ea83df;hb=2e854cd36c80ef4fc3d9446d391bfa18b0469e30;hp=d409ce0ba5035c2219847eb973189f48e3d6804e;hpb=e730234e57abdfe0a60e3b77d3284308bba5aea7;p=lyx.git diff --git a/lib/languages b/lib/languages index d409ce0ba5..a39c5c7528 100644 --- a/lib/languages +++ b/lib/languages @@ -81,7 +81,8 @@ # * yyyy the year as four digit number # * Encoding is the default encoding used with TeX fonts. # It is only used if Document > Settings > Language > Encoding -# is set to "Language Default" and "use non-TeX fonts" is FALSE. +# is set to "Language Default" or "Language Default (no inputenc)" +# and "use non-TeX fonts" is FALSE. # Encoding "inherit" means: keep encoding of the context (used by # latex_language). # * FontEncoding is a bar-separated list of font encodings. @@ -90,20 +91,19 @@ # used if the selected font is unavailable in FontEncoding. They provide all # letters used in the language, but some only as "surrogate pairs" with # possible problems for hyphenation and drag-and-drop from the generated -# documents. -# If not given, all standard text encodings (T) as well as OT1 work. -# * "FontEncoding none" tells LyX that fontenc should not be loaded with this -# language. -# * "FontEncoding ASCII" means: "works with any standard text encoding -# as well as OT1". +# documents. Default: "ASCII". +# * "FontEncoding ASCII" means: "works with any standard text encoding +# (T) as well as OT1". +# * "FontEncoding none" tells LyX that fontenc should not be loaded with +# this language. # * InternalEncoding is used to tell LyX that babel internally sets a # non-standard font encoding (such as hebrew to LHE or greek to LGR). # If True, LyX takes care for characters/macros that do not exist in # some font encodings ("<", ">", "|" and straight quote). # It is not required for standard encodings like T2A. See bug #5091. # * 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. +# globally to the class. In the old days, some languages (basically those +# not natively supported by babel) needed this. # FIXME: in this case, we might still need to pass the other languages # globally, for the use of other packages (such as varioref). # * LangCode is also used for spellchecking and thesaurus, where the @@ -232,7 +232,11 @@ Language arabic_arabi FontEncoding LAE DateFormats "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy" RTL true - AsBabelOptions true + PostBabelPreamble + % arabi + hyperref redefines \noboundary as local textcommand + \let\orig@noboundary\noboundary + \DeclareTextCommandDefault{\noboundary}{\orig@noboundary} + EndPostBabelPreamble LangCode ar_SA End @@ -337,6 +341,8 @@ Language basque End # not yet supported by polyglossia +# Up to 2018-08-25 (babel-belarusian 1.4), the babel option is "belarusianb" +# but the language name "belarusian" (without trailing "b"). Language belarusian GuiName "Belarusian" BabelName belarusian @@ -345,10 +351,10 @@ Language belarusian FontEncoding T2A DateFormats "dd MMMM yyyy|d MMM yyyy|d.M.yyyy" LangCode be_BY - AsBabelOptions true End # not yet supported by polyglossia +# The (rarely used) Cyrillic script is not supported (try serbian). Language bosnian GuiName "Bosnian" BabelName bosnian @@ -757,9 +763,13 @@ Language hebrew Encoding cp1255 QuoteStyle english InternalEncoding true -# Hebrew babel loads the font encodings -# itself in the appropriate order -# FontEncoding LHE + # babel-hebrew expects the encoding for *other* languages last: + # FontEncoding HE8 + # Define the font encoding the babel-hebrew way and + # work around too simple test for article-like classes in rlbabel.def. + PreBabelPreamble + \providecommand{\l@chapter}{\relax} + EndPreBabelPreamble DateFormats "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy" RTL true LangCode he_IL @@ -846,7 +856,6 @@ Language japanese BabelName japanese Encoding jis-platex LangCode ja_JP - AsBabelOptions true Requires japanese InternalEncoding true FontEncoding None @@ -881,6 +890,8 @@ Language kazakh FontEncoding T2A DateFormats "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM" LangCode kk_KZ + # FIXME: this sets the global font encoding also + # if Kazakh is only used as secondary language. PostBabelPreamble \input{t2aenc.def} \AtBeginDocument{\fontencoding{T2A}\selectfont} @@ -913,7 +924,6 @@ Language kurmanji FontEncoding T1|OT1 DateFormats "d. MMMM yyyy|d. M. yyyy|yyyy-MM-dd" LangCode kmr - AsBabelOptions true End # not supported by babel @@ -949,7 +959,6 @@ Language latvian FontEncoding L7x|T1|OT1 DateFormats "yyyy. 'gada' d. MMMM|yyyy. 'gada' d. MMM|dd.MM.yyyy" LangCode lv_LV - AsBabelOptions true End # lithuanian must be loaded locally with babel options, @@ -964,7 +973,6 @@ Language lithuanian FontEncoding L7x DateFormats "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd" LangCode lt_LT - AsBabelOptions true End Language lowersorbian @@ -1002,6 +1010,16 @@ Language macedonian Provides textcyrillic End +# not supported by babel +Language malayalam + GuiName "Malayalam" + PolyglossiaName malayalam + Encoding utf8 + QuoteStyle english + DateFormats "dd MMMM yyyy|d MMM yyyy|dd-MM-yyyy" + LangCode ml_IN +End + # not supported by babel Language marathi GuiName "Marathi" @@ -1021,7 +1039,6 @@ Language mongolian FontEncoding T2A DateFormats "yyyy оны M сарын d|d-M-yyyy|dd-MM-yyyy" LangCode mn_MN - AsBabelOptions true Provides textcyrillic End @@ -1201,10 +1218,10 @@ Language serbian PolyglossiaOpts "script=Cyrillic" QuoteStyle polish Encoding utf8 - FontEncoding T2A + # Cyrillic font encoding required but not set by "serbianc". + # FontEncoding T2A DateFormats "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy" LangCode sr_RS - AsBabelOptions true End # Note: script option is uppercase, even if the polyglossia @@ -1323,9 +1340,12 @@ Language thai FontEncoding LTH DateFormats "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy" LangCode th_TH - PostBabelPreamble - \usepackage{thswitch} - EndPostBabelPreamble + # Fixme: load font package? + # +1 support for font attributes in thai emphasizing etc. + # -1 conflict with custom font settings and other languages' fonts + # PostBabelPreamble + # \usepackage{fonts-tlwg} + # EndPostBabelPreamble End # not supported by babel @@ -1363,7 +1383,6 @@ Language turkmen FontEncoding T1|OT1 DateFormats "yyyy ý. MMMM d|dd.MM.yyyy ý.|dd.MM.yy ý." LangCode tk_TM - AsBabelOptions true End Language ukrainian