# XindyName <xindyname>
# ActiveChars <activated characters>
# QuoteStyle <british|danish|english|french|frenchin|
-# german|polish|russian|swedish|swedishg|swiss|plain>
+# german|polish|russian|swedish|swedishg|swiss|hebrew|plain>
# DateFormats "<long>|<medium>|<short>"
# Encoding <encoding>
# FontEncoding <font encoding|font encoding|...>
# - french: <<text>> ``text'' (outward guillemets -- 66_99)
# - frenchin: <<text>> <<text>> (French Imprimerie Nationale style)
# - german: ,,text`` ,text` (99/66 -- 9/6)
+# - hebrew: ''text,, 'text, (99/99 -- 9/9)
+# - hungarian: ,,text'' >>text<< (99/99 -- double inward guillemets)
# - polish: ,,text'' ,text' (99/99 -- 9/9)
# - russian: <<text>> ,,text`` (outward guillemets -- 99/66)
# - swedish: ''text'' 'text' (99_99 -- 9_9)
# but are available globally if this language is used (not only for this
# language. Examples are \textgreek (Greek) and \textcyrillic (Russian).
# * ActiveChars provides a string of the characters that are made active
-# by the language. We record particularly those characters that have to
+# by the language. We record particularly those characters that have to
# be de-activated in some contexts (such as - or =).
# * XindyName holds the value to the (te)xindy -L option. We only give it
# if a corresponding language module exists.
DateFormats "d MMMMŲ yyyy|dd/MM/yyyy|d/M/yyyy"
RTL true
PostBabelPreamble
- % arabic + hyperref redefines \noboundary as local textcommand
- \let\orig@noboundary\noboundary
- \DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
- % work around too simple test for article-like classes in arabicore.sty
- \ifdefined\chapter\else
- \def\thesection{\protect\if@rl\protect\I{\number\c@section}%
- \protect\else\protect\textLR{\number\c@section}%
- \protect\fi}
- \def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
- \protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
- \protect\fi}%
- \def\thetable{\protect\if@rl\protect\I{\number\c@table}%
- \protect\else\protect\textLR{\number\c@table}%
- \protect\fi}%
- \def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
- \protect\else\protect\textLR{\number\c@figure}%
- \protect\fi}%
- \fi
+ \@ifundefined{if@rl}{}{
+ % arabic + hyperref redefines \noboundary as local textcommand
+ \let\orig@noboundary\noboundary
+ \DeclareTextCommandDefault{\noboundary}{\orig@noboundary}
+ % work around too simple test for article-like classes in arabicore.sty
+ \@ifundefined{chapter}{
+ \def\thesection{\protect\if@rl\protect\I{\number\c@section}%
+ \protect\else\protect\textLR{\number\c@section}%
+ \protect\fi}
+ \def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
+ \protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
+ \protect\fi}
+ \def\thetable{\protect\if@rl\protect\I{\number\c@table}%
+ \protect\else\protect\textLR{\number\c@table}%
+ \protect\fi}
+ \def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
+ \protect\else\protect\textLR{\number\c@figure}%
+ \protect\fi}
+ }{}
+ }
EndPostBabelPreamble
LangCode ar_SA
End
BabelName acadian
PolyglossiaName french
PolyglossiaOpts "variant=canadian"
+ ActiveChars ;!?:
XindyName french
QuoteStyle french
Encoding iso8859-15
GuiName "French"
HasGuiSupport true
BabelName french
+ ActiveChars ;!?:
PolyglossiaName french
XindyName french
QuoteStyle french
PolyglossiaName hebrew
XindyName hebrew
Encoding cp1255
- QuoteStyle english
+ QuoteStyle hebrew
InternalEncoding true
# babel-hebrew expects the encoding for *other* languages last:
FontEncoding HE8,T1|LHE,T1
- ## Use font encoding HE8 if the Culmus fonts are installed and
- # work around too simple test for article-like classes in rlbabel.def.
- PreBabelPreamble
- \IfFileExists{he8david.fd}{%
- \providecommand{\HeblatexEncoding}{HE8}
- \providecommand{\HeblatexEncodingFile}{he8enc}%
- }{}
- \providecommand{\l@chapter}{\relax}
- EndPreBabelPreamble
DateFormats "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
RTL true
LangCode he_IL
LangCode lv_LV
End
-# lithuanian must be loaded locally with babel options,
-# not globally via class options
-# FontEncoding: L7x set by Babel
+# FontEncoding: L7x required for hyphenation but no longer set by Babel
+# (since 2017-12-06)
Language lithuanian
GuiName "Lithuanian"
BabelName lithuanian
PolyglossiaName lithuanian
- XindyName lithunian
+ XindyName lithuanian
QuoteStyle german
Encoding iso8859-13
FontEncoding L7x
# L7x defines \copyright as TextSymbol which leads to an endless loop
- # when it is used in other font encodings.
+ # 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}
- \addto\noextraslithuanian{\latintext}
+ \@ifl@aded{def}{l7xenc}{
+ % restore corrupted \coyright definition
+ \DeclareRobustCommand{\copyright}{%
+ \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi
+ }
+ % Switch to L7x and back
+ \addto\extraslithuanian{
+ \let\bbl@lithuanian@cfencoding\cf@encoding
+ \fontencoding{L7x}\selectfont
+ \def\encodingdefault{L7x}
+ }
+ \addto\noextraslithuanian{
+ \def\encodingdefault{\bbl@lithuanian@cfencoding}
+ \fontencoding{\encodingdefault}\selectfont
+ }
+ }{}
EndPostBabelPreamble
DateFormats "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd"
LangCode lt_LT
BabelName magyar
PolyglossiaName magyar
XindyName hungarian
- QuoteStyle polish
+ QuoteStyle hungarian
Encoding iso8859-2
FontEncoding T1|OT1
DateFormats "yyyy. MMMM d.|yyyy. MMM d.|yyyy.MM.dd."
LangCode es_ES
PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>}}
+ \deactivatequoting
EndPostBabelPreamble
End
LangCode es_MX
PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>.}}
+ \deactivatequoting
EndPostBabelPreamble
End
\DeclareRobustCommand{\copyright}{%
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
\DeclareTextSymbol{\textcopyright}{LTH}{8}
+ %
% set up Thai fonts as substitue for the default families
- \usepackage{substitutefont}
- \substitutefont{LTH}{\rmdefault}{norasi}
- \substitutefont{LTH}{\sfdefault}{garuda}
- \substitutefont{LTH}{\ttdefault}{ttypist}
+ % The 'substitutefont' package is obsolete now, since commands
+ % from the LaTeX kernel can be used instead. See here:
+ % https://ctan.org/pkg/substitutefont
+ % https://www.latex-project.org/news/latex2e-news/ltnews31.pdf
+ \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
+ \IfFormatAtLeastTF{2020/02/01}{%
+ \DeclareFontFamilySubstitution{LTH}{\rmdefault}{norasi}
+ \DeclareFontFamilySubstitution{LTH}{\sfdefault}{garuda}
+ \DeclareFontFamilySubstitution{LTH}{\ttdefault}{ttypist}
+ }{%
+ \usepackage{substitutefont}
+ \substitutefont{LTH}{\rmdefault}{norasi}
+ \substitutefont{LTH}{\sfdefault}{garuda}
+ \substitutefont{LTH}{\ttdefault}{ttypist}
+ }
EndPostBabelPreamble
End