[latex3-commits] [git/LaTeX3-latex3-babel] master: Bump to 3.42. (d1596a4)

Javier jbezos at dante.de
Mon Mar 23 07:38:13 CET 2020


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/d1596a44730077a18fa1c19b45a40e05d6cd3bd2

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

commit d1596a44730077a18fa1c19b45a40e05d6cd3bd2
Author: Javier <jbezos at localhost>
Date:   Mon Mar 23 07:38:13 2020 +0100

    Bump to 3.42.


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

d1596a44730077a18fa1c19b45a40e05d6cd3bd2
 README.md              |  12 ++++++-----
 babel.dtx              |  56 ++++++++++++++++++++++++++++++++++++-------------
 babel.ins              |   2 +-
 babel.pdf              | Bin 766807 -> 768198 bytes
 bbcompat.dtx           |   2 +-
 samples/lua-beamer.pdf | Bin 22301 -> 22433 bytes
 samples/lua-thai.pdf   | Bin 36286 -> 36292 bytes
 samples/luahb-udhr.pdf | Bin 237691 -> 237706 bytes
 samples/numerals.pdf   | Bin 186949 -> 186949 bytes
 samples/xe-bidi.pdf    | Bin 15658 -> 15582 bytes
 10 files changed, 51 insertions(+), 21 deletions(-)

diff --git a/README.md b/README.md
index 72e3b9f..1274e40 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.41.1953
+## Babel 3.42
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -44,14 +44,16 @@ respective authors.
 ### Latest changes
 
 ```
-3.42   2020-04-??
-       - Improved the line breaking support for xetex.
+3.42   2020-03-22
+       - \getlocaleproperty, to get the value of a field from the loaded
+         ini files.
        - Added ini files for Syriac, Coptic and Church Slavic. Improved
          some others (Armenian, Sanskrit).
        - Added a new field tag.bcp47.likely to many files.
-       - \getlocaledata, to get the value of a field from the loaded
-         ini files.
+       - Improved line breaking with xetex.
        - Fixes:
+         - Remove extra space with languages loaded on the fly (bug
+           introduced in 3.41).
          - Line breaking was no always correct with languages loaded on
            the fly.
          - Avoid a harmless warning about redefining a protected command
diff --git a/babel.dtx b/babel.dtx
index 4baa64f..4b7e721 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2020/03/21 v3.41.1953 The Babel package]
+\ProvidesFile{babel.dtx}[2020/03/22 v3.42 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -1384,7 +1384,11 @@ captions):
 \tag{cgg} Chiga
 \tag{chr} Cherokee
 \tag{ckb} Central Kurdish
+\tag{cop} Coptic
 \tag{cs} Czech\hascapu\hascapl
+\tag{cu} Church Slavic
+\tag{cu-Cyrs} Church Slavic
+\tag{cu-Glag} Church Slavic
 \tag{cy} Welsh\hascapu\hascapl
 \tag{da} Danish\hascapu\hascapl
 \tag{dav} Taita
@@ -1439,7 +1443,7 @@ captions):
 \tag{hr} Croatian\hascapu\hascapl
 \tag{hsb} Upper Sorbian\hascapu\hascapl
 \tag{hu} Hungarian\hascapu\hascapl
-\tag{hy} Armenian
+\tag{hy} Armenian\hascapu
 \tag{ia} Interlingua\hascapu\hascapl
 \tag{id} Indonesian\hascapu\hascapl
 \tag{ig} Igbo
@@ -1687,6 +1691,13 @@ chinese-traditional-hongkongsarchina\\
 chinese-traditional-macausarchina\\
 chinese-traditional\\
 chinese\\
+churchslavic\\
+churchslavic-cyrs\\
+churchslavic-oldcyrillic\footnote{The name in the CLDR
+is Old Church Slavonic Cyrillic, but it has been shortened
+for practical reasons.}\\
+churchsslavic-glag\\
+churchsslavic-glagolitic\\
 colognian\\
 cornish\\
 croatian\\
@@ -2568,10 +2579,28 @@ expandable and the available fields are:
   but not always, the same as BCP 47).
 \end{description}
 
+\Describe{\getlocaleproperty}{\marg{macro}\marg{locale}\marg{property}}
+
+\New{3.42} The value of any locale property as set by the |ini| files
+(or added/modified with |\babelprovide|) can be retrieved and stored in
+a macro with this command. For example, after:
+\begin{verbatim}
+  \getlocaleproperty\hechap{hebrew}{captions/chapter}
+\end{verbatim}
+the macro |\hechap| will contain the string
+{\fontspec[Scale=.87,Script=Hebrew]{Liberation Mono}\textdir TRT פרק}.
+
+\Babel{} remembers which |ini| files have been loaded. There is a loop
+named |\LocaleForEach| to traverse the list, where |#1| is the name of
+the current item, so that |\LocaleForEach{\message{ **#1** }}| just
+shows the loaded |ini|’s. 
+
+\begin{note}
 |ini| files are loaded with |\babelprovide| and also when languages are
 selected if there is a |\babelfont|. To ensure the |ini| files are
 loaded (and therefore the corresponding data) even if these two
-conditions are not met, write |\BabelEnsureInfo|.
+conditions are not met, write |\BabelEnsureInfo| in the preamble.
+\end{note}
 
 \subsection{Hyphenation and line breaking}
 
@@ -4427,8 +4456,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.41.1953>>
-%<<date=2020/03/21>>
+%<<version=3.42>>
+%<<date=2020/03/22>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -8257,7 +8286,7 @@ help from Bernd Raichle, for which I am grateful.
          \else
            \SetHyphenMap{\BabelLower{##1}{##1}}%
          \fi}%
-     \bbl at endcommands}
+     \bbl at endcommands}%
   % == maparabic ==
   % Native digits, if provided in ini (TeX level, xe and lua)
   \ifcase\bbl at engine\else
@@ -8503,7 +8532,7 @@ help from Bernd Raichle, for which I am grateful.
      \expandafter\bbl at inireader\bbl at tempa=#2\@@}%
     {}}%
 \def\bbl at read@ini#1#2{%
-  \global\@namedef{bbl at lini@\languagename}{#1}%
+  \bbl at csarg\edef{lini@\languagename}{#1}%
   \openin\bbl at readstream=babel-#1.ini
   \ifeof\bbl at readstream
     \bbl at error
@@ -8512,7 +8541,7 @@ help from Bernd Raichle, for which I am grateful.
        is not complete.}%
       {Fix the name or reinstall babel.}%
   \else
-    \def\bbl at inidata{\bbl at elt{identificacion}{tag.ini}{#1}}%
+    \bbl at exp{\def\\\bbl at inidata{\\\bbl at elt{identificacion}{tag.ini}{#1}}}%
     \let\bbl at section\@empty
     \let\bbl at savestrings\@empty
     \let\bbl at savetoday\@empty
@@ -8540,7 +8569,6 @@ help from Bernd Raichle, for which I am grateful.
     \bbl at csarg{\global\expandafter\let}{inidata@\languagename}\bbl at inidata
     \bbl at exp{\\\bbl at add@list\\\bbl at ini@loaded{\languagename}}%
     \bbl at toglobal\bbl at ini@loaded
-    % \bbl at exp{\gdef\<bbl at inidata@tag@#1>{\<bbl at inidata@\languagename>}}%
   \fi}
 \def\bbl at iniline#1\bbl at iniline{%
   \@ifnextchar[\bbl at inisec{\@ifnextchar;\bbl at iniskip\bbl at inipreread}#1\@@}% ]
@@ -8926,13 +8954,13 @@ help from Bernd Raichle, for which I am grateful.
     \fi}}
 %    \end{macrocode}
 %
-%  More general, but non-expandable, is |\getlocaledata|. To inspect
+%  More general, but non-expandable, is |\getlocaleproperty|. To inspect
 %  every possible loaded |ini|, we define |\LocaleForEach|, where
-%  |bbl at ini@loaded| is a comma-separated list of locales, built by
+%  |\bbl at ini@loaded| is a comma-separated list of locales, built by
 %  |\bbl at read@ini|. 
 %
 %    \begin{macrocode}   
-\newcommand\getlocaledata[3]{% 
+\newcommand\getlocaleproperty[3]{% 
   \let#1\relax
   \def\bbl at elt##1##2##3{%
     \bbl at ifsamestring{##1/##2}{#3}%
@@ -10385,7 +10413,7 @@ help from Bernd Raichle, for which I am grateful.
 \def\babel at aux#1#2{%
   \select at language{#1}%
   \bbl at foreach\BabelContentsFiles{%
-    \@writefile{##1}{\babel at toc{#1}{#2}}}}% %% TODO - ok in plain?}
+    \@writefile{##1}{\babel at toc{#1}{#2}}}}% %% TODO - ok in plain?
 \def\babel at toc#1#2{%
   \select at language{#1}}
 %    \end{macrocode}
@@ -11529,7 +11557,7 @@ help from Bernd Raichle, for which I am grateful.
             {}}%
         \ifx\bbl at tempa\@empty\else
           \bbl at infowarn{The following font families will use the default\\%
-            settings for all languages:\\%
+            settings for all or some languages:\\%
             \bbl at tempa
             There is nothing intrinsically wrong with it, but\\%
             'babel' will no set Script and Language, which could\\%
diff --git a/babel.ins b/babel.ins
index ac15aaa..194f706 100644
--- a/babel.ins
+++ b/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{2020/03/21}
+\def\filedate{2020/03/22}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 4025ed0..854f18b 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 9233d2e..0e831a5 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2020/03/21 v3.41.1953]
+\ProvidesFile{bbcompat.dtx}[2020/03/22 v3.42]
 %</dtx>
 %
 %% File 'bbcompat.dtx'
diff --git a/samples/lua-beamer.pdf b/samples/lua-beamer.pdf
index 1940c3e..4afe10f 100644
Binary files a/samples/lua-beamer.pdf and b/samples/lua-beamer.pdf differ
diff --git a/samples/lua-thai.pdf b/samples/lua-thai.pdf
index d359402..31b3e25 100644
Binary files a/samples/lua-thai.pdf and b/samples/lua-thai.pdf differ
diff --git a/samples/luahb-udhr.pdf b/samples/luahb-udhr.pdf
index 3424834..ab2319f 100644
Binary files a/samples/luahb-udhr.pdf and b/samples/luahb-udhr.pdf differ
diff --git a/samples/numerals.pdf b/samples/numerals.pdf
index 563ecd0..8b55a11 100644
Binary files a/samples/numerals.pdf and b/samples/numerals.pdf differ
diff --git a/samples/xe-bidi.pdf b/samples/xe-bidi.pdf
index 57eff8c..42f0b7d 100644
Binary files a/samples/xe-bidi.pdf and b/samples/xe-bidi.pdf differ





More information about the latex3-commits mailing list.