]> git.lyx.org Git - lyx.git/blobdiff - lib/languages
Move DrawStrategy enum to update_flags.h.
[lyx.git] / lib / languages
index 7f5d4655c0b58387e68e218751f49f98d4b6be3b..903bba994bc4e596bb481d933190fd9d53884e30 100644 (file)
@@ -13,7 +13,7 @@
 #      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|...>
@@ -251,24 +251,26 @@ Language arabic_arabi
        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
@@ -496,6 +498,7 @@ Language canadien
        BabelName        acadian
        PolyglossiaName  french
        PolyglossiaOpts  "variant=canadian"
+       ActiveChars      ;!?:
        XindyName        french
        QuoteStyle       french
        Encoding         iso8859-15
@@ -703,6 +706,7 @@ Language french
        GuiName          "French"
        HasGuiSupport    true
        BabelName        french
+       ActiveChars      ;!?:
        PolyglossiaName  french
        XindyName        french
        QuoteStyle       french
@@ -855,15 +859,6 @@ Language 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 to 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
@@ -1434,6 +1429,7 @@ Language spanish
        LangCode         es_ES
        PostBabelPreamble
        \addto\shorthandsspanish{\spanishdeactivate{~<>}}
+       \deactivatequoting
        EndPostBabelPreamble
 End
 
@@ -1450,6 +1446,7 @@ Language spanish-mexico
        LangCode         es_MX
        PostBabelPreamble
        \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
+       \deactivatequoting
        EndPostBabelPreamble
 End
 
@@ -1518,11 +1515,23 @@ Language thai
          \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