commit 32a17dc96560f1847d24cc068925f52f2ccc22a1
Author: Günter Milde <[email protected]>
Date:   Thu May 9 21:41:48 2019 +0200

    Fix error with arabic and KOMA-article (as well as other article-like 
classes).
---
 lib/languages |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/lib/languages b/lib/languages
index 8c51b0f..e1f5b47 100644
--- a/lib/languages
+++ b/lib/languages
@@ -235,9 +235,24 @@ Language arabic_arabi
        DateFormats      "d MMMM، yyyy|dd/MM/yyyy|d/M/yyyy"
        RTL              true
        PostBabelPreamble
-         % arabi + hyperref redefines \noboundary as local textcommand
+         % 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
        EndPostBabelPreamble
        LangCode         ar_SA
 End
@@ -824,7 +839,7 @@ Language icelandic
 End
 
 # Interlingua has no official country code because it is an auxiliary
-# language. We therefore the name of its hunspell dictionary.
+# language. We use the name of its hunspell dictionary.
 Language interlingua
        GuiName          "Interlingua"
        HasGuiSupport    true

Reply via email to