update lib/languages

* add workarounds for problematic definitions in Albanian and Lithuanian

* Babel-Serbian is fixed since version 3.0 (2019-01-12).
This commit is contained in:
Günter Milde 2019-04-06 18:19:07 +02:00
parent 639c01d0d4
commit 29c5139275

View File

@ -161,6 +161,14 @@ End
Language albanian Language albanian
GuiName "Albanian" GuiName "Albanian"
BabelName albanian BabelName albanian
# babel-albanian (albanian.ldf) (re-)defines the functions
# \sh \ch \th \cth \arsh \arch \arth \arcth \tg \ctg \arctg
# as math operators. This clashes with \th == letter thorn
# in font encoding T1
PostBabelPreamble
% fix albanian: restore \th as LATIN LETTER THORN
\@ifl@aded{def}{t1enc}{\DeclareTextSymbol{\th}{T1}{254}}{}
EndPostBabelPreamble
PolyglossiaName albanian PolyglossiaName albanian
QuoteStyle swiss QuoteStyle swiss
Encoding iso8859-2 Encoding iso8859-2
@ -884,7 +892,7 @@ End
Language kazakh Language kazakh
GuiName "Kazakh" GuiName "Kazakh"
Encoding ascii Encoding ascii
FontEncoding T2A # FontEncoding T2A # not set (no Babel support)
DateFormats "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM" DateFormats "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM"
LangCode kk_KZ LangCode kk_KZ
# FIXME: this sets the global font encoding also # FIXME: this sets the global font encoding also
@ -968,6 +976,13 @@ Language lithuanian
QuoteStyle german QuoteStyle german
Encoding iso8859-13 Encoding iso8859-13
FontEncoding L7x FontEncoding L7x
# L7x defines \copyright as TextSymbol which leads to an endless loop
# when it is used in other font encodings.
PostBabelPreamble
% restore \coyright definition corrupted by l7xenc.def
\DeclareRobustCommand{\copyright}{%
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
EndPostBabelPreamble
DateFormats "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd" DateFormats "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd"
LangCode lt_LT LangCode lt_LT
End End
@ -1205,18 +1220,22 @@ Language scottish
LangCode gd_GB LangCode gd_GB
End End
# Note: script option is uppercase, even if the polyglossia # Serbian with Cyrillic script.
# manual states otherwise. # Up to Version 3.0 (2019-01-12), input encoding and
# font encoding were set document-wide to "utf8x" and "T2A" respectively
# by "babel-serbianc", overriding LyX settings and leading to errors
# in mulit-lingual documents.
Language serbian Language serbian
GuiName "Serbian" GuiName "Serbian"
HasGuiSupport true HasGuiSupport true
BabelName serbianc BabelName serbianc
PolyglossiaName serbian PolyglossiaName serbian
PolyglossiaOpts "script=Cyrillic" PolyglossiaOpts "script=Cyrillic"
# Note: script option is uppercase, even if the polyglossia
# manual states otherwise.
QuoteStyle polish QuoteStyle polish
Encoding utf8 Encoding utf8
# Cyrillic font encoding required but not set by "serbianc". FontEncoding T2A
# FontEncoding T2A
DateFormats "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy" DateFormats "d. MMMM yyyy|d. MMM yyyy|dd.MM.yyyy"
LangCode sr_RS LangCode sr_RS
End End