[latex3-commits] [git/LaTeX3-latex3-babel] main: Revert behavior of \selectlanguage and \write (configurable). (3b239d6)

Javier email at dante.de
Wed Oct 6 18:26:59 CEST 2021


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

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

commit 3b239d67093b2c36e1d72a5befb9a7175b002ecb
Author: Javier <email at localhost>
Date:   Wed Oct 6 18:26:59 2021 +0200

    Revert behavior of \selectlanguage and \write (configurable).


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

3b239d67093b2c36e1d72a5befb9a7175b002ecb
 README.md    |  14 ++++++++------
 babel.dtx    |  43 +++++++++++++++++++++++++------------------
 babel.ins    |   2 +-
 babel.pdf    | Bin 846496 -> 847206 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 35 insertions(+), 26 deletions(-)

diff --git a/README.md b/README.md
index 13ccbcc..3cc9e3f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.63.2510
+## Babel 3.63.2517
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -8,9 +8,9 @@ is a set of ini files for about 250 languages.
 
 The latest stable version is available on <https://ctan.org/pkg/babel>.
 
-Changes in version 3.63 are described in:
+Changes in version 3.64 are described in:
 
-https://latex3.github.io/babel/news/whats-new-in-babel-3.63.html
+https://latex3.github.io/babel/news/whats-new-in-babel-3.64.html
 
 Apart from the manual, you can find information on some aspects of babel at:
 
@@ -46,11 +46,13 @@ respective authors.
 
 ### Summary of Latest changes
 ```
-3.64   2021-??
+3.64   2021-10-??
        * Added a few counters to CJK.
+       * Restored the previous behavior of \selectlanguage with
+         relation to \write (see #114).
        * Fixes:
-         - babel errors on documentoption "chinese" (#141)
-         - name.babel in ini files set inconsistently
+         - babel errors on document option 'chinese' (#141).
+         - name.babel in ini files set inconsistently.
          
 3.63   2021-07-22
        * Fixes a severe bug with CJK and XeTeX introduced in 3.62.
diff --git a/babel.dtx b/babel.dtx
index ad5900a..ff56ae1 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2021/09/29 v3.63.2510 The Babel package]
+\ProvidesFile{babel.dtx}[2021/10/06 v3.63.2517 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -5026,8 +5026,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.63.2510>>
-%<<date=2021/09/29>>
+%<<version=3.63.2517>>
+%<<date=2021/10/06>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -6272,18 +6272,7 @@ help from Bernd Raichle, for which I am grateful.
   \fi}
 %
 \let\bbl at restorelastskip\relax
-\def\bbl at savelastskip{%
-  \let\bbl at restorelastskip\relax
-  \ifvmode
-    \ifdim\lastskip=\z@
-      \let\bbl at restorelastskip\nobreak
-    \else
-      \bbl at exp{%
-        \def\\\bbl at restorelastskip{%
-          \skip@=\the\lastskip
-          \\\nobreak \vskip-\skip@ \vskip\skip@}}%
-    \fi
-  \fi}
+\let\bbl at savelastskip\relax
 %
 \newif\ifbbl at bcpallowed
 \bbl at bcpallowedfalse
@@ -6979,7 +6968,7 @@ help from Bernd Raichle, for which I am grateful.
     \bbl at cs{hk@##1}{\bbl at cs{ev@##1@#1@}#2}}%
   \bbl at cs{ev@#1@}%
   \ifx\languagename\@undefined\else % Test required for Plain (?)
-    \ifx\UseHook\@undefined\else\UseHook{babel/#1/\languagename}\fi
+    \ifx\UseHook\@undefined\else\UseHook{babel/\languagename/#1}\fi
     \def\bbl at elth##1{%
       \bbl at cs{hk@##1}{\bbl at cl{ev@##1@#1}#2}}%
     \bbl at cl{ev@#1}%
@@ -10998,6 +10987,23 @@ help from Bernd Raichle, for which I am grateful.
   \directlua{ Babel.ignore_pre_char = function(node)
       return false
     end }}
+\@namedef{bbl at ADJ@select.write at shift}{%
+  \let\bbl at restorelastskip\relax
+  \def\bbl at savelastskip{%
+    \let\bbl at restorelastskip\relax
+    \ifvmode
+      \ifdim\lastskip=\z@
+        \let\bbl at restorelastskip\nobreak
+      \else
+        \bbl at exp{%
+          \def\\\bbl at restorelastskip{%
+            \skip@=\the\lastskip
+            \\\nobreak \vskip-\skip@ \vskip\skip@}}%
+      \fi
+    \fi}}
+\@namedef{bbl at ADJ@select.write at keep}{%
+  \let\bbl at restorelastskip\relax
+  \let\bbl at savelastskip\relax}
 %    \end{macrocode}
 %
 % As the final task, load the code for lua. TODO: use babel name, override 
@@ -12119,6 +12125,7 @@ help from Bernd Raichle, for which I am grateful.
       \bbl at ldfinit
       \babelprovide[\bbl at opt@provide,main,import]{#2}%
       \bbl at afterldf{}%    
+      \DeclareOption{#2}{}%
     \fi
   \else % as ldf = 0(no), 2(+=)
     \ifodd#1\relax % Class: if ldf exists 1,3. Package: always 3
@@ -12126,11 +12133,11 @@ help from Bernd Raichle, for which I am grateful.
         {\DeclareOption{#2}{\bbl at load@language{#2}}}%
         {}%
       \ExecuteOptions{#2}%
-      \DeclareOption*{}%
-      \ProcessOptions%
     \fi
   \fi}
 \bbl at savemain
+\DeclareOption*{}%
+\ProcessOptions*
 \def\AfterBabelLanguage{%
   \bbl at error
     {Too late for \string\AfterBabelLanguage}%
diff --git a/babel.ins b/babel.ins
index 9f5cb9a..8a208b2 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/09/29}
+\def\filedate{2021/10/06}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 1d9a98f..6b65249 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 08a84a0..e246177 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/09/29 v3.63.2510]
+\ProvidesFile{bbcompat.dtx}[2021/10/06 v3.63.2517]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.