[latex3-commits] [git/LaTeX3-latex3-babel] main: Optimize language stack. No errors with unknown languages in aux. (d60a2c2)
Javier
email at dante.de
Wed Jun 30 19:03:47 CEST 2021
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/d60a2c255239c7e787b089e61b56c3b92c24fdc0
>---------------------------------------------------------------
commit d60a2c255239c7e787b089e61b56c3b92c24fdc0
Author: Javier <email at localhost>
Date: Wed Jun 30 19:03:47 2021 +0200
Optimize language stack. No errors with unknown languages in aux.
>---------------------------------------------------------------
d60a2c255239c7e787b089e61b56c3b92c24fdc0
README.md | 5 ++++-
babel.dtx | 43 ++++++++++++++++++++++++++++++-------------
babel.ins | 2 +-
babel.pdf | Bin 846875 -> 847339 bytes
bbcompat.dtx | 2 +-
5 files changed, 36 insertions(+), 16 deletions(-)
diff --git a/README.md b/README.md
index 0d63b0d..9150416 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.61
+## Babel 3.61.2419
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +46,9 @@ respective authors.
### Summary of Latest changes
```
+3.62 2021-??-??
+ * No errors with undefined languages in aux file.
+
3.61 2021-06-28
* Improved justification=kashida/elongated: hboxes (lua).
* Transform danda.nobreak for several Indic scripts (lua):
diff --git a/babel.dtx b/babel.dtx
index b6aea49..586232b 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2021/06/28 v3.61 The Babel package]
+\ProvidesFile{babel.dtx}[2021/06/30 v3.61.2419 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -936,6 +936,12 @@ If you do not need shorthands, or prefer an alternative approach of
your own, you may want to switch them off with the package option
|shorthands=off|, as described below.
+\begin{warning}
+ It is worth emphasizing these macros are meant for temporary changes.
+ Whenever possible and if there are not conflicts with other packages,
+ shorthands must be always enabled (or disabled).
+\end{warning}
+
\Describe{\useshorthands}{%
\colorbox{thegrey}{\ttfamily\hskip-.2em*\hskip-.2em}%
\marg{char}}
@@ -3951,7 +3957,8 @@ direction with |bidi.text|).
\item \verb|\bibitem| is out of sync with \verb|\selectlanguage| in
the \file{.aux} file. The reason is \verb|\bibitem| uses
\verb|\immediate| (and others, in fact), while
- \verb|\selectlanguage| doesn't. There is no known workaround.
+ \verb|\selectlanguage| doesn't. There is a similar issue with floats,
+ too. There is no known workaround.
\item Babel does not take into account |\normalsfcodes| and
(non-)French spacing is not always properly (un)set by
languages. However, problems are unlikely to happen and therefore
@@ -4973,8 +4980,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.61>>
-%<<date=2021/06/28>>
+%<<version=3.61.2419>>
+%<<date=2021/06/30>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -7417,7 +7424,15 @@ help from Bernd Raichle, for which I am grateful.
% \begin{macrocode}
\def\bbl at push@language{%
\ifx\languagename\@undefined\else
- \xdef\bbl at language@stack{\languagename+\bbl at language@stack}%
+ \ifx\currentgrouplevel\@undefined
+ \xdef\bbl at language@stack{\languagename+\bbl at language@stack}%
+ \else
+ \ifnum\currentgrouplevel=\z@
+ \xdef\bbl at language@stack{\languagename+}%
+ \else
+ \xdef\bbl at language@stack{\languagename+\bbl at language@stack}%
+ \fi
+ \fi
\fi}
% \end{macrocode}
%
@@ -8543,10 +8558,12 @@ help from Bernd Raichle, for which I am grateful.
%
% \begin{macrocode}
\def\bbl at beforestart{%
+ \def\@nolanerr##1{%
+ \bbl at warning{Undefined language '##1' in aux.\\Reported}}%
\bbl at usehooks{beforestart}{}%
\global\let\bbl at beforestart\relax}
\AtBeginDocument{%
- \@nameuse{bbl at beforestart}%
+ {\@nameuse{bbl at beforestart}}% Group!
\if at filesw
\providecommand\babel at aux[2]{}%
\immediate\write\@mainaux{%
@@ -10924,7 +10941,7 @@ help from Bernd Raichle, for which I am grateful.
\ifx\bbl at KVP@transforms\@nil\else
\bbl at replace\bbl at KVP@transforms{ }{,}%
\fi
- % Load ini
+ % == Load ini ==
\ifcase\bbl at howloaded
\bbl at provide@new{#2}%
\else
@@ -11255,12 +11272,12 @@ help from Bernd Raichle, for which I am grateful.
\StartBabelCommands*{#1}{captions}%
\bbl at read@ini{\bbl at KVP@captions}2% % Here all letters cat = 11
\EndBabelCommands
- \fi
- \ifx\bbl at KVP@import\@nil\else
- \StartBabelCommands*{#1}{date}%
- \bbl at savetoday
- \bbl at savedate
- \EndBabelCommands
+ \fi
+ \ifx\bbl at KVP@import\@nil\else
+ \StartBabelCommands*{#1}{date}%
+ \bbl at savetoday
+ \bbl at savedate
+ \EndBabelCommands
\fi
% == hyphenrules (also in new) ==
\ifx\bbl at lbkflag\@empty
diff --git a/babel.ins b/babel.ins
index feea6e0..60f055e 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/06/28}
+\def\filedate{2021/06/30}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 8e3aefc..cc789d9 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 7500615..9c021ec 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/06/28 v3.61]
+\ProvidesFile{bbcompat.dtx}[2021/06/30 v3.61.2419]
%</dtx>
%
%% File 'bbcompat.dtx'
More information about the latex3-commits
mailing list.