[latex3-commits] [git/LaTeX3-latex3-babel] main: Options with provide= (only latex-dev). Don't assume vertical mode in TOC’s. (b1424c7)

Javier email at dante.de
Mon Jul 5 18:00:20 CEST 2021


Repository : https://github.com/latex3/babel
On branch  : main
Link       : https://github.com/latex3/babel/commit/b1424c717cd0b4830e50382bc7869bf26a55913b

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

commit b1424c717cd0b4830e50382bc7869bf26a55913b
Author: Javier <email at localhost>
Date:   Mon Jul 5 18:00:20 2021 +0200

    Options with provide= (only latex-dev). Don't assume vertical mode in TOC’s.


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

b1424c717cd0b4830e50382bc7869bf26a55913b
 README.md    |   4 ++--
 babel.dtx    |  34 +++++++++++++++++++---------------
 babel.ins    |   2 +-
 babel.pdf    | Bin 849972 -> 849943 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 23 insertions(+), 19 deletions(-)

diff --git a/README.md b/README.md
index f414ffd..ce834c6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.61.2423
+## Babel 3.61.2424
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -47,7 +47,7 @@ respective authors.
 ### Summary of Latest changes
 ```
 3.62   2021-??-??
-       * No errors with unknown languages in aux file.
+       * No more errors with unknown languages in aux file.
        * Fixes:
          - Locale dependent quotes with CJK (#131).
        
diff --git a/babel.dtx b/babel.dtx
index 5aa591e..589881b 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2021/07/04 v3.61.2423 The Babel package]
+\ProvidesFile{babel.dtx}[2021/07/05 v3.61.2424 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -3136,12 +3136,12 @@ standard system devised by Ljudevit Gaj.}
 \Describe{\babelposthyphenation}{\marg{hyphenrules-name}%
           \marg{lua-pattern}\marg{replacement}}
 
-\New{3.37-3.39} \textit{With \luatex{}} it is now possible to define
+\New{3.37-3.39} \textit{With \luatex{}} it is possible to define
 non-standard hyphenation rules, like |f-f| $\to$ |ff-f|, repeated
 hyphens, ranked ruled (or more precisely, ‘penalized’ hyphenation
-points), and so on. Only a few rules are currently provided (see
-below), but they can be defined as shown in the following example,
-where |{1}| is the first captured char (between |()| in the pattern):
+points), and so on. A few rules are currently provided (see above), but
+they can be defined as shown in the following example, where |{1}| is
+the first captured char (between |()| in the pattern):
 \begin{verbatim}
 \babelposthyphenation{german}{([fmtrp]) | {1}}
 {
@@ -4990,8 +4990,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.61.2423>>
-%<<date=2021/07/04>>
+%<<version=3.61.2424>>
+%<<date=2021/07/05>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -5682,9 +5682,6 @@ help from Bernd Raichle, for which I am grateful.
 %    \begin{macrocode}
 \ifx\bbl at opt@provide\@nnil\else % Tests. Ignore.
   \chardef\bbl at iniflag\@ne
-  \bbl at replace\bbl at opt@provide{;}{,}
-  \bbl at add\bbl at opt@provide{,import}
-  \show\bbl at opt@provide
 \fi
 % 
 %    \end{macrocode}
@@ -7070,9 +7067,16 @@ help from Bernd Raichle, for which I am grateful.
     \bbl at ldfinit
     \let\CurrentOption\bbl at opt@main
     \ifx\bbl at opt@provide\@nnil
-      \bbl at exp{\\\babelprovide[import,main]{\bbl at opt@main}}
+      \bbl at exp{\\\babelprovide[import,main]{\bbl at opt@main}}%
     \else
-      \bbl at exp{\\\babelprovide[\bbl at opt@provide,main]{\bbl at opt@main}}%
+      \bbl at exp{\\\bbl at forkv{\@nameuse{@raw at opt@babel.sty}}}{%
+        \bbl at xin@{,provide,}{,#1,}%
+        \ifin@
+          \def\bbl at opt@provide{#2}%
+          \bbl at replace\bbl at opt@provide{;}{,}%
+        \fi}%
+      \bbl at exp{%
+        \\\babelprovide[\bbl at opt@provide,import,main]{\bbl at opt@main}}%
     \fi
     \bbl at afterldf{}%
   \else % case 0,2
@@ -7628,10 +7632,10 @@ help from Bernd Raichle, for which I am grateful.
       \let\bbl at select@type\z@
       \expandafter\bbl at switch\expandafter{\languagename}%
     \fi}}
-\def\babel at aux#1#2{% TODO. See how to avoid undefined nil's
+\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?
+  \bbl at foreach\BabelContentsFiles{% \relax: don't assume vertical mode
+    \@writefile{##1}{\babel at toc{#1}{#2}\relax}}}% TODO - plain?
 \def\babel at toc#1#2{%
   \select at language{#1}}
 %    \end{macrocode}
diff --git a/babel.ins b/babel.ins
index 7fae72e..a4ffc04 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{2021/07/04}
+\def\filedate{2021/07/05}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index ac269e4..29b6321 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 49e09cb..52e006c 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/07/04 v3.61.2423]
+\ProvidesFile{bbcompat.dtx}[2021/07/05 v3.61.2424]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.