[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Fix - hyphenrules didn't work with polyglossia. Added 3 inis: ar-DZ, ar-MA, ar-SY. (eac05ca)

Javier javier at dante.de
Wed Feb 7 18:50:01 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/eac05caf31f165200183ff16f22ec5261fca184a

>---------------------------------------------------------------

commit eac05caf31f165200183ff16f22ec5261fca184a
Author: Javier <javier at localhost>
Date:   Wed Feb 7 18:49:02 2018 +0100

    Fix - hyphenrules didn't work with polyglossia. Added 3 inis: ar-DZ, ar-MA, ar-SY.


>---------------------------------------------------------------

eac05caf31f165200183ff16f22ec5261fca184a
 required/babel/README.md                           |    4 +-
 required/babel/babel.dtx                           |   29 ++++++----
 required/babel/babel.ins                           |    2 +-
 required/babel/babel.pdf                           |  Bin 638337 -> 638752 bytes
 required/babel/bbcompat.dtx                        |    2 +-
 .../locale/ar/{babel-ar.ini => babel-ar-DZ.ini}    |   44 +++++++-------
 .../locale/ar/{babel-ar.ini => babel-ar-MA.ini}    |   38 +++++++------
 .../locale/ar/{babel-ar.ini => babel-ar-SY.ini}    |   60 ++++++++++----------
 required/babel/locale/ar/babel-ar.ini              |    6 +-
 .../babel-arabic-algeria.tex}                      |    2 +-
 .../babel-austrian.tex => ar/babel-arabic-dz.tex}  |    2 +-
 .../babel-austrian.tex => ar/babel-arabic-ma.tex}  |    2 +-
 .../babel-arabic-morocco.tex}                      |    2 +-
 .../babel-hausa-ne.tex => ar/babel-arabic-sy.tex}  |    2 +-
 .../babel-arabic-syria.tex}                        |    2 +-
 15 files changed, 108 insertions(+), 89 deletions(-)

diff --git a/required/babel/README.md b/required/babel/README.md
index 14911cc..744d9b9 100644
--- a/required/babel/README.md
+++ b/required/babel/README.md
@@ -1,4 +1,4 @@
-## Babel 3.17.1173
+## Babel 3.17.1180
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -110,5 +110,5 @@ respective authors.
 ```
 
 Javier Bezos
-2018/01/31
+2018/02/07
 
diff --git a/required/babel/babel.dtx b/required/babel/babel.dtx
index 7f2bed5..4348ad6 100644
--- a/required/babel/babel.dtx
+++ b/required/babel/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2018/01/31 v3.17.1173 The Babel package]
+\ProvidesFile{babel.dtx}[2018/02/07 v3.17.1180 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -101,6 +101,9 @@
   \DescribeMacro{#1}\args}
 \def\DescribeOther{\vskip-4ex\Describe}
 \makeatletter
+\def\trouble#1{\addcontentsline{tsh}{trouble}{#1}}
+\def\listoftroubles{\section*{Troubleshoooting}\@starttoc{tsh}}
+\let\l at trouble\l at figure
 \let\saved at check@percent\check at percent
 \let\check at percent\relax
 \def\args#1{%
@@ -220,6 +223,7 @@ Javier Bezos
 \end{titlepage}
 
 \tableofcontents
+\listoftroubles
 \clearpage
 
 \part{User guide}
@@ -450,6 +454,7 @@ _\usepackage[russian]{babel}_
   |\usepackage|\marg{language}) is deprecated and you will get the
   error:\footnote{In old versions the error read ``You have used an
   old interface to call babel'', not very helpful.}
+\trouble{You are loading directly a language style}
 \begin{verbatim}
 ! Package babel Error: You are loading directly a language style.
 (babel)                This syntax is deprecated and you must use
@@ -459,6 +464,7 @@ _\usepackage[russian]{babel}_
 \item  Another typical error when using \babel{} is the
   following:\footnote{In old versions the error read ``You haven't
   loaded the language LANG yet''.}
+\trouble{Unknown language `LANG'}
 \begin{verbatim}
 ! Package babel Error: Unknown language `LANG'. Either you have misspelled
 (babel)                its name, it has not been installed, or you requested
@@ -473,6 +479,8 @@ _\usepackage[russian]{babel}_
 
 \item The following warning is about hyphenation patterns, which are
   not under the direct control of \babel:
+\trouble{No hyphenation patterns were preloaded for (babel) the
+  language `LANG' into the format}
 \begin{verbatim}
 Package babel Warning: No hyphenation patterns were preloaded for
 (babel)                the language `LANG' into the format.
@@ -728,6 +736,8 @@ use only shorthands provided by languages.
 \end{note}
 
 A typical error when using shorthands is the following:
+\trouble{Argument of \textbackslash language at active@arg"
+has an extra \textbraceright}
 \begin{verbatim}
 ! Argument of \language at active@arg" has an extra }.
 \end{verbatim}
@@ -3620,8 +3630,8 @@ help from Bernd Raichle, for which I am grateful.
 %    little bit of literate programming.
 %
 %    \begin{macrocode}
-%<<version=3.17.1173>>
-%<<date=2018/01/31>>
+%<<version=3.17.1180>>
+%<<date=2018/02/07>>
 %    \end{macrocode}
 %
 % \section{Tools}
@@ -8937,7 +8947,6 @@ help from Bernd Raichle, for which I am grateful.
 %    \begin{macrocode}
 \def\bbl at version{<@version@>}
 \def\bbl at date{<@date@>}
-\bbl at trace{Some switching tools}
 \def\adddialect#1#2{%
   \global\chardef#1#2\relax
   \bbl at usehooks{adddialect}{{#1}{#2}}%
@@ -9037,7 +9046,6 @@ help from Bernd Raichle, for which I am grateful.
 %    the selection method: 0 is select, 1 is foreign}
 %
 %    \begin{macrocode}
-\bbl at trace{Language selectors}
 \let\bbl at select@type\z@
 \edef\selectlanguage{%
   \noexpand\protect
@@ -9512,7 +9520,6 @@ help from Bernd Raichle, for which I am grateful.
 %    the latter to mark they must not be set again.
 %
 %    \begin{macrocode}
-\bbl at trace{Switching patterns}
 \let\bbl at hyphlist\@empty
 \let\bbl at hyphenation@\relax
 \let\bbl at pttnlist\@empty
@@ -9564,9 +9571,12 @@ help from Bernd Raichle, for which I am grateful.
   \bbl at iflanguage\bbl at tempf{%
     \expandafter\bbl at patterns\expandafter{\bbl at tempf}%
     \languageshorthands{none}%
-    \bbl at ifunset{\bbl at tempf hyphenmins}%
-      {\set at hyphenmins\tw@\thr@@\relax}%
-      {\bbl at exp{\\\set at hyphenmins\@nameuse{\bbl at tempf hyphenmins}}}}}
+    \expandafter\ifx\csname\bbl at tempf hyphenmins\endcsname\relax
+      \set at hyphenmins\tw@\thr@@\relax
+    \else
+      \expandafter\expandafter\expandafter\set at hyphenmins
+      \csname\bbl at tempf hyphenmins\endcsname\relax
+    \fi}}
 \let\endhyphenrules\@empty
 %    \end{macrocode}
 %
@@ -9719,7 +9729,6 @@ help from Bernd Raichle, for which I am grateful.
 %    duplicating each predefined message}    
 %
 %    \begin{macrocode}
-\bbl at trace{Errors, warnings}
 \edef\bbl at nulllanguage{\string\language=0}
 \ifx\PackageError\@undefined
   \def\bbl at error#1#2{%
diff --git a/required/babel/babel.ins b/required/babel/babel.ins
index 86f229f..6e29f9b 100644
--- a/required/babel/babel.ins
+++ b/required/babel/babel.ins
@@ -26,7 +26,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 %%
-\def\filedate{2018/01/31}
+\def\filedate{2018/02/07}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/required/babel/babel.pdf b/required/babel/babel.pdf
index edfae6c..98d7c68 100644
Binary files a/required/babel/babel.pdf and b/required/babel/babel.pdf differ
diff --git a/required/babel/bbcompat.dtx b/required/babel/bbcompat.dtx
index 9592ae3..fc9d90d 100644
--- a/required/babel/bbcompat.dtx
+++ b/required/babel/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2018/01/31 v3.17.1173]
+\ProvidesFile{bbcompat.dtx}[2018/02/07 v3.17.1180]
 %</dtx>
 %
 %% File 'bbcompat.dtx'
diff --git a/required/babel/locale/ar/babel-ar.ini b/required/babel/locale/ar/babel-ar-DZ.ini
similarity index 85%
copy from required/babel/locale/ar/babel-ar.ini
copy to required/babel/locale/ar/babel-ar-DZ.ini
index e986941..2fee813 100644
--- a/required/babel/locale/ar/babel-ar.ini
+++ b/required/babel/locale/ar/babel-ar-DZ.ini
@@ -12,12 +12,16 @@
 [identification]
 charset = utf8
 version = 1.0
-date = 2017-09-01
+date = 2018-02-05
 name.local = العربية
 name.english = Arabic
-name.babel = arabic
+name.babel = arabic-dz
+name.babel.A = arabic-algeria
 tag.bcp47 = ar
 tag.opentype = ARA
+region.local = الجزائر
+region.english = Algeria
+region.tag.bcp47 = DZ
 script.name = Arabic
 script.tag.bcp47 = Arab
 script.tag.opentype = arab
@@ -32,7 +36,7 @@ abstract = ملخص
 bib = المصادر
 chapter = باب
 appendix = الملاحق
-contents = الفهرس
+contents = المحتويات
 listfigure = قائمة الأشكال
 listtable = قائمة الجداول
 index = الفهرس
@@ -51,29 +55,29 @@ glossary = قاموس
 [date.gregorian]
 date.long = [d] [MMMM]، [y]
 date.short = [d]‏/[M]‏/[y]
-months.wide.1 = يناير
-months.wide.2 = فبراير
+months.wide.1 = جانفي
+months.wide.2 = فيفري
 months.wide.3 = مارس
-months.wide.4 = أبريل
-months.wide.5 = مايو
-months.wide.6 = يونيو
-months.wide.7 = يوليو
-months.wide.8 = أغسطس
+months.wide.4 = أفريل
+months.wide.5 = ماي
+months.wide.6 = جوان
+months.wide.7 = جويلية
+months.wide.8 = أوت
 months.wide.9 = سبتمبر
 months.wide.10 = أكتوبر
 months.wide.11 = نوفمبر
 months.wide.12 = ديسمبر
-months.narrow.1 = ي
+months.narrow.1 = ج
 months.narrow.2 = ف
 months.narrow.3 = م
 months.narrow.4 = أ
-months.narrow.5 = و
-months.narrow.6 = ن
-months.narrow.7 = ل
-months.narrow.8 = غ
+months.narrow.5 = م
+months.narrow.6 = ج
+months.narrow.7 = ج
+months.narrow.8 = أ
 months.narrow.9 = س
-months.narrow.10 = ك
-months.narrow.11 = ب
+months.narrow.10 = أ
+months.narrow.11 = ن
 months.narrow.12 = د
 days.wide.mon = الاثنين
 days.wide.tue = الثلاثاء
@@ -128,11 +132,11 @@ index = [ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م
 punctuation = [\\- ‐ – — ، ؛ \\: ! ؟ . ' \" ( ) \\[ \\]]
 
 [numbers]
-defaultNumberingSystem = arab
+defaultNumberingSystem = latn
 minimumGroupingDigits = 1
-decimal = .
+decimal = ,
 exponential = E
-group = ,
+group = .
 infinity = ∞
 list = ;
 minusSign = ‎-
diff --git a/required/babel/locale/ar/babel-ar.ini b/required/babel/locale/ar/babel-ar-MA.ini
similarity index 86%
copy from required/babel/locale/ar/babel-ar.ini
copy to required/babel/locale/ar/babel-ar-MA.ini
index e986941..00ffc97 100644
--- a/required/babel/locale/ar/babel-ar.ini
+++ b/required/babel/locale/ar/babel-ar-MA.ini
@@ -12,12 +12,16 @@
 [identification]
 charset = utf8
 version = 1.0
-date = 2017-09-01
+date = 2018-02-05
 name.local = العربية
 name.english = Arabic
-name.babel = arabic
+name.babel = arabic-ma
+name.babel.A = arabic-morocco
 tag.bcp47 = ar
 tag.opentype = ARA
+region.local = المغرب
+region.english = Morocco
+region.tag.bcp47 = MA
 script.name = Arabic
 script.tag.bcp47 = Arab
 script.tag.opentype = arab
@@ -32,7 +36,7 @@ abstract = ملخص
 bib = المصادر
 chapter = باب
 appendix = الملاحق
-contents = الفهرس
+contents = المحتويات
 listfigure = قائمة الأشكال
 listtable = قائمة الجداول
 index = الفهرس
@@ -55,23 +59,23 @@ months.wide.1 = يناير
 months.wide.2 = فبراير
 months.wide.3 = مارس
 months.wide.4 = أبريل
-months.wide.5 = مايو
+months.wide.5 = ماي
 months.wide.6 = يونيو
-months.wide.7 = يوليو
-months.wide.8 = أغسطس
-months.wide.9 = سبتمبر
+months.wide.7 = يوليوز
+months.wide.8 = غشت
+months.wide.9 = شتنبر
 months.wide.10 = أكتوبر
-months.wide.11 = نوفمبر
-months.wide.12 = ديسمبر
+months.wide.11 = نونبر
+months.wide.12 = دجنبر
 months.narrow.1 = ي
 months.narrow.2 = ف
 months.narrow.3 = م
 months.narrow.4 = أ
-months.narrow.5 = و
+months.narrow.5 = م
 months.narrow.6 = ن
 months.narrow.7 = ل
 months.narrow.8 = غ
-months.narrow.9 = س
+months.narrow.9 = ش
 months.narrow.10 = ك
 months.narrow.11 = ب
 months.narrow.12 = د
@@ -104,8 +108,8 @@ dayPeriods.wide.am = ص
 dayPeriods.wide.pm = م
 
 [time.gregorian]
-time.medium = [h]:[mm]:[ss] [a]
-time.short = [h]:[mm] [a]
+time.medium = [HH]:[mm]:[ss]
+time.short = [HH]:[mm]
 
 [typography]
 frenchspacing = 
@@ -122,17 +126,17 @@ hyphenationmin =
 
 [characters]
 delimiters.quotes = ”“’‘
-auxiliary = [\u200C\u200D\u200E\u200F پ چ ژ ڜ ڢ ڤ ڥ ٯ ڧ ڨ ک گ ی]
+auxiliary = [\u200C\u200D\u200E\u200F پ چ ژ ڜ ڢ ڤ ڥ ٯ ڧ ڨ ک ڭ گ ݣ ی]
 exemplarCharacters = [\u064B \u064C \u064D \u064E \u064F \u0650 \u0651 \u0652 \u0670 ء أ ؤ إ ئ ا آ ب ة ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ى ي]
 index = [ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي]
 punctuation = [\\- ‐ – — ، ؛ \\: ! ؟ . ' \" ( ) \\[ \\]]
 
 [numbers]
-defaultNumberingSystem = arab
+defaultNumberingSystem = latn
 minimumGroupingDigits = 1
-decimal = .
+decimal = ,
 exponential = E
-group = ,
+group = .
 infinity = ∞
 list = ;
 minusSign = ‎-
diff --git a/required/babel/locale/ar/babel-ar.ini b/required/babel/locale/ar/babel-ar-SY.ini
similarity index 79%
copy from required/babel/locale/ar/babel-ar.ini
copy to required/babel/locale/ar/babel-ar-SY.ini
index e986941..4678801 100644
--- a/required/babel/locale/ar/babel-ar.ini
+++ b/required/babel/locale/ar/babel-ar-SY.ini
@@ -12,12 +12,16 @@
 [identification]
 charset = utf8
 version = 1.0
-date = 2017-09-01
+date = 2018-02-05
 name.local = العربية
 name.english = Arabic
-name.babel = arabic
+name.babel = arabic-sy
+name.babel.A = arabic-syria
 tag.bcp47 = ar
 tag.opentype = ARA
+region.local = سوريا
+region.english = Syria
+region.tag.bcp47 = SY
 script.name = Arabic
 script.tag.bcp47 = Arab
 script.tag.opentype = arab
@@ -32,7 +36,7 @@ abstract = ملخص
 bib = المصادر
 chapter = باب
 appendix = الملاحق
-contents = الفهرس
+contents = المحتويات
 listfigure = قائمة الأشكال
 listtable = قائمة الجداول
 index = الفهرس
@@ -49,32 +53,30 @@ proof = برهان
 glossary = قاموس
 
 [date.gregorian]
-date.long = [d] [MMMM]، [y]
-date.short = [d]‏/[M]‏/[y]
-months.wide.1 = يناير
-months.wide.2 = فبراير
-months.wide.3 = مارس
-months.wide.4 = أبريل
-months.wide.5 = مايو
-months.wide.6 = يونيو
-months.wide.7 = يوليو
-months.wide.8 = أغسطس
-months.wide.9 = سبتمبر
-months.wide.10 = أكتوبر
-months.wide.11 = نوفمبر
-months.wide.12 = ديسمبر
-months.narrow.1 = ي
-months.narrow.2 = ف
-months.narrow.3 = م
-months.narrow.4 = أ
-months.narrow.5 = و
-months.narrow.6 = ن
-months.narrow.7 = ل
-months.narrow.8 = غ
-months.narrow.9 = س
-months.narrow.10 = ك
-months.narrow.11 = ب
-months.narrow.12 = د
+months.wide.1 = كانون الثاني
+months.wide.2 = شباط
+months.wide.3 = آذار
+months.wide.4 = نيسان
+months.wide.5 = أيار
+months.wide.6 = حزيران
+months.wide.7 = تموز
+months.wide.8 = آب
+months.wide.9 = أيلول
+months.wide.10 = تشرين الأول
+months.wide.11 = تشرين الثاني
+months.wide.12 = كانون الأول
+months.narrow.1 = ك
+months.narrow.2 = ش
+months.narrow.3 = آ
+months.narrow.4 = ن
+months.narrow.5 = أ
+months.narrow.6 = ح
+months.narrow.7 = ت
+months.narrow.8 = آ
+months.narrow.9 = أ
+months.narrow.10 = ت
+months.narrow.11 = ت
+months.narrow.12 = ك
 days.wide.mon = الاثنين
 days.wide.tue = الثلاثاء
 days.wide.wed = الأربعاء
diff --git a/required/babel/locale/ar/babel-ar.ini b/required/babel/locale/ar/babel-ar.ini
index e986941..3b7cb6f 100644
--- a/required/babel/locale/ar/babel-ar.ini
+++ b/required/babel/locale/ar/babel-ar.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.0
-date = 2017-09-01
+version = 1.1
+date = 2018-02-05
 name.local = العربية
 name.english = Arabic
 name.babel = arabic
@@ -32,7 +32,7 @@ abstract = ملخص
 bib = المصادر
 chapter = باب
 appendix = الملاحق
-contents = الفهرس
+contents = المحتويات
 listfigure = قائمة الأشكال
 listtable = قائمة الجداول
 index = الفهرس
diff --git a/required/babel/locale/am/babel-amharic.tex b/required/babel/locale/ar/babel-arabic-algeria.tex
similarity index 89%
copy from required/babel/locale/am/babel-amharic.tex
copy to required/babel/locale/ar/babel-arabic-algeria.tex
index 091add2..93b4bcb 100644
--- a/required/babel/locale/am/babel-amharic.tex
+++ b/required/babel/locale/ar/babel-arabic-algeria.tex
@@ -7,6 +7,6 @@
     {Just use babel as documented.}%
   \stop
 \fi
-\BabelBeforeIni{am}{%
+\BabelBeforeIni{ar-DZ}{%
 }
 \endinput
\ No newline at end of file
diff --git a/required/babel/locale/de/babel-austrian.tex b/required/babel/locale/ar/babel-arabic-dz.tex
similarity index 69%
copy from required/babel/locale/de/babel-austrian.tex
copy to required/babel/locale/ar/babel-arabic-dz.tex
index 8fb22b4..eb659bd 100644
--- a/required/babel/locale/de/babel-austrian.tex
+++ b/required/babel/locale/ar/babel-arabic-dz.tex
@@ -1,4 +1,4 @@
 % This file is part of babel. For further details see:
 % https://www.ctan.org/pkg/babel
-\input{babel-german-austria}
+\input{babel-arabic-algeria}
 \endinput
\ No newline at end of file
diff --git a/required/babel/locale/de/babel-austrian.tex b/required/babel/locale/ar/babel-arabic-ma.tex
similarity index 69%
copy from required/babel/locale/de/babel-austrian.tex
copy to required/babel/locale/ar/babel-arabic-ma.tex
index 8fb22b4..4c9f811 100644
--- a/required/babel/locale/de/babel-austrian.tex
+++ b/required/babel/locale/ar/babel-arabic-ma.tex
@@ -1,4 +1,4 @@
 % This file is part of babel. For further details see:
 % https://www.ctan.org/pkg/babel
-\input{babel-german-austria}
+\input{babel-arabic-morocco}
 \endinput
\ No newline at end of file
diff --git a/required/babel/locale/am/babel-amharic.tex b/required/babel/locale/ar/babel-arabic-morocco.tex
similarity index 89%
copy from required/babel/locale/am/babel-amharic.tex
copy to required/babel/locale/ar/babel-arabic-morocco.tex
index 091add2..eb6b8ef 100644
--- a/required/babel/locale/am/babel-amharic.tex
+++ b/required/babel/locale/ar/babel-arabic-morocco.tex
@@ -7,6 +7,6 @@
     {Just use babel as documented.}%
   \stop
 \fi
-\BabelBeforeIni{am}{%
+\BabelBeforeIni{ar-MA}{%
 }
 \endinput
\ No newline at end of file
diff --git a/required/babel/locale/ha/babel-hausa-ne.tex b/required/babel/locale/ar/babel-arabic-sy.tex
similarity index 70%
copy from required/babel/locale/ha/babel-hausa-ne.tex
copy to required/babel/locale/ar/babel-arabic-sy.tex
index bfd315c..a073afa 100644
--- a/required/babel/locale/ha/babel-hausa-ne.tex
+++ b/required/babel/locale/ar/babel-arabic-sy.tex
@@ -1,4 +1,4 @@
 % This file is part of babel. For further details see:
 % https://www.ctan.org/pkg/babel
-\input{babel-hausa-niger}
+\input{babel-arabic-syria}
 \endinput
\ No newline at end of file
diff --git a/required/babel/locale/am/babel-amharic.tex b/required/babel/locale/ar/babel-arabic-syria.tex
similarity index 89%
copy from required/babel/locale/am/babel-amharic.tex
copy to required/babel/locale/ar/babel-arabic-syria.tex
index 091add2..dab1df6 100644
--- a/required/babel/locale/am/babel-amharic.tex
+++ b/required/babel/locale/ar/babel-arabic-syria.tex
@@ -7,6 +7,6 @@
     {Just use babel as documented.}%
   \stop
 \fi
-\BabelBeforeIni{am}{%
+\BabelBeforeIni{ar-SY}{%
 }
 \endinput
\ No newline at end of file





More information about the latex3-commits mailing list