[latex3-commits] [git/LaTeX3-latex3-babel] master: Fix #97. Common interface to redefine captions. (62e3292)

Javier email at dante.de
Sat Oct 10 12:41:21 CEST 2020


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

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

commit 62e32921287d6b5472e83eb6c69074e0c9ef0e2f
Author: Javier <email at localhost>
Date:   Sat Oct 10 12:41:21 2020 +0200

    Fix #97. Common interface to redefine captions.


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

62e32921287d6b5472e83eb6c69074e0c9ef0e2f
 README.md    |  47 +++++++++--------------------------------------
 babel.dtx    |  31 +++++++++++++++++++++----------
 babel.ins    |   2 +-
 babel.pdf    | Bin 811006 -> 811622 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 32 insertions(+), 50 deletions(-)

diff --git a/README.md b/README.md
index 217de7c..e6c303a 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.50
+## Babel 3.50.2156
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -7,9 +7,9 @@ lualatex out of the box.  A few even work with plain formats.
 
 The latest stable version is available on <https://ctan.org/pkg/babel>.
 
-Changes in version 3.50 are described in:
+Changes in version 3.51 are described in:
 
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
+https://github.com/latex3/babel/wiki/What's-new-in-babel-3.51
 
 Included is a set of ini files for about 250 languages. 
 
@@ -43,10 +43,16 @@ respective authors.
 
 ### Latest changes
 ```
+3.51   2020-10-??
+       - Common interface to redefine captions (with \babelprovide).
+       - Fixes:
+         - Error when loading a language on the fly in tabular (#97)
+
 3.50   2020-10-06
        - Fixes:
          - main=<language> stopped working in some cases (#96).
          - Footnotes were not \long with layout=footnotes.
+https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
 
 3.49   2020-10-03
        - BUG. This version has a severe bug with main= (fixed in 3.50).
@@ -161,51 +167,16 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.43
 See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.42
 
 3.41   2020-02-27
-       - Counters and numerals added in some ini files, based on those
-         defined in CSS (Abjad, Alphabetic Hebrew, Japanese, etc.).
-       - Fix - A bug in the fix for #47, because \@elt was not reset
-         (#51).
-       - Fix - Error when french was loaded and an ini file read (#50).
-       - Fix - A typo in Greek files: Miriad must read Myriad.
 See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.41
 
 3.40   2020-02-14
-       - New ini files for Latin and Greek (xe/lua).
-       - Add 'other' characters used in hyphenation patters (eg,
-         apostrophes).
-       - Fix - Old Plain TeX and Plain XeTeX raised an error.
-       - Fix - Option T1 in fontenc was not recognized to set
-         \latinencoding with LaTeX 2020-02-02 (#47)
-       - Fix - Locale names were hardcoded in some babel-...tex files.
 See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.40
 
 3.39   2020-02-03
-       - Languages can now be loaded on the fly (via \babelprovide).
-       - With \babelposthyphenation captured chars can now be mapped in
-         the replacement (lua).
-       - \babelcharproperty can be used to assign specific chars to a
-         locale (lua).
-       - Fixes:
-          - Sichuan Yi: line breaking was not activated (lua).
-          - Hyphenation was not always applied with onchar (lua).
-          - bidi=basic-l/basic-r where not activated correctly (xe).
-          - Thai and turkish raised and error without import in
-            \babelprovide.
-          - Cleaned up some ini/tex locale files (de, zh, sa).
 See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.39
 
 3.38   2020-01-15
-       - Automatic switching of ids (\language and \localeid), and fonts
-         based on script blocks (lua).
-       - New macro - \localeinfo, to access the basic data in the ini
-         file loaded by languages.
 See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.38
-
-3.37   2019-12-08    
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.37
-
-3.36   2019-11-14 
-See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.36
 ```
 
 Javier Bezos
diff --git a/babel.dtx b/babel.dtx
index 6c7fff3..382347a 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2020/10/06 v3.50 The Babel package]
+\ProvidesFile{babel.dtx}[2020/10/10 v3.50.2156 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -4778,8 +4778,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.50>>
-%<<date=2020/10/06>>
+%<<version=3.50.2156>>
+%<<date=2020/10/10>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -10490,6 +10490,7 @@ help from Bernd Raichle, for which I am grateful.
     \else
       \bbl at csarg\def{KVP@##1}{##2}%
     \fi}%
+  \let\bbl at saverenew@captions\bbl at renew@captions
   % == import, captions ==
   \ifx\bbl at KVP@import\@nil\else
     \bbl at exp{\\\bbl at ifblank{\bbl at KVP@import}}%
@@ -10624,13 +10625,13 @@ help from Bernd Raichle, for which I am grateful.
     \fi
     \bbl at exp{\\\bbl at add\\\bbl at mapselect{\\\bbl at mapdir{\languagename}}}%
   \fi
-  % == intraspace, intrapenalty ==
+  % == Line breaking: intraspace, intrapenalty ==
   % For CJK, East Asian, Southeast Asian, if interspace in ini
   \ifx\bbl at KVP@intraspace\@nil\else % We can override the ini or set
     \bbl at csarg\edef{intsp@#2}{\bbl at KVP@intraspace}%
   \fi
   \bbl at provide@intraspace
-  % == hyphenate.other.locale ==
+  % == Line breaking: hyphenate.other.locale ==
   \bbl at ifunset{bbl at hyotl@\languagename}{}%
     {\bbl at csarg\bbl at replace{hyotl@\languagename}{ }{,}%
      \bbl at startcommands*{\languagename}{}%
@@ -10643,7 +10644,7 @@ help from Bernd Raichle, for which I am grateful.
            \SetHyphenMap{\BabelLower{##1}{##1}}%
          \fi}%
      \bbl at endcommands}%
-  % == hyphenate.other.script ==
+  % == Line breaking: hyphenate.other.script ==
   \bbl at ifunset{bbl at hyots@\languagename}{}%
     {\bbl at csarg\bbl at replace{hyots@\languagename}{ }{,}%
      \bbl at csarg\bbl at foreach{hyots@\languagename}{%
@@ -10654,7 +10655,7 @@ help from Bernd Raichle, for which I am grateful.
        \else
          \global\lccode##1=##1\relax
        \fi}}%
-  % == maparabic ==
+  % == Counters: maparabic ==
   % Native digits, if provided in ini (TeX level, xe and lua)
   \ifcase\bbl at engine\else
     \bbl at ifunset{bbl at dgnat@\languagename}{}%
@@ -10672,7 +10673,7 @@ help from Bernd Raichle, for which I am grateful.
         \fi
       \fi}%
   \fi
-  % == mapdigits ==
+  % == Counters: mapdigits ==
   % Native digits (lua level).
   \ifodd\bbl at engine
     \ifx\bbl at KVP@mapdigits\@nil\else
@@ -10709,7 +10710,7 @@ help from Bernd Raichle, for which I am grateful.
         }}%
     \fi
   \fi
-  % == alph, Alph ==
+  % == Counters: alph, Alph ==
   % What if extras<lang> contains a \babel at save\@alph? It won't be
   % restored correctly when exiting the language, so we ignore 
   % this change with the \bbl at alph@saved trick.
@@ -10746,6 +10747,16 @@ help from Bernd Raichle, for which I am grateful.
        \catcode`\@=\atcatcode
        \let\atcatcode\relax
      \fi}%
+  % == caption redefinition ==
+  \ifx\bbl at KVP@captions\@nil
+    \def\bbl at elt##1##2{%
+      \bbl at ifunset{\languagename ##1name}%
+        {\toks@{##2}%
+         \bbl at exp{%
+           \\\bbl at add\<captions\languagename>{\def\<##1name>{\the\toks@}}}}%
+        {\@namedef{\languagename##1name}{##2}}}%
+    \@nameuse{bbl at saverenew@captions}%
+  \fi
   % == main ==
   \ifx\bbl at KVP@main\@nil  % Restore only if not 'main'
     \let\languagename\bbl at savelangname
@@ -10960,7 +10971,7 @@ help from Bernd Raichle, for which I am grateful.
        is not complete.}%
       {Fix the name or reinstall babel.}%
   \else
-    \catcode`\[=12 \catcode`\]=12 \catcode`\==12
+    \catcode`\[=12 \catcode`\]=12 \catcode`\==12 \catcode`\&=12
     \catcode`\;=12 \catcode`\|=12 \catcode`\%=14
     \bbl at info{Importing
                 \ifcase#2 \or font and identification \or basic \fi
diff --git a/babel.ins b/babel.ins
index 18bea2a..edab1dd 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/10/06}
+\def\filedate{2020/10/10}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index b032d32..744254c 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index cb2c9a0..f6bd06d 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2020/10/06 v3.50]
+\ProvidesFile{bbcompat.dtx}[2020/10/10 v3.50.2156]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.