[latex3-commits] [git/LaTeX3-latex3-babel] main: Bump to 3.68. Tentative fix for 159 (amsmath). (697804c)
Javier
email at dante.de
Tue Dec 28 16:46:13 CET 2021
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/697804c26c20e721abfd6b6793f6a3641d6b1538
>---------------------------------------------------------------
commit 697804c26c20e721abfd6b6793f6a3641d6b1538
Author: Javier <email at localhost>
Date: Tue Dec 28 16:46:13 2021 +0100
Bump to 3.68. Tentative fix for 159 (amsmath).
>---------------------------------------------------------------
697804c26c20e721abfd6b6793f6a3641d6b1538
README.md | 16 +++++-----------
babel.dtx | 51 +++++++++++++++++++++++++++++++++++++++----------
babel.ins | 2 +-
babel.pdf | Bin 859247 -> 860656 bytes
bbcompat.dtx | 2 +-
locale/as/babel-as.ini | 4 ++--
locale/bn/babel-bn.ini | 4 ++--
locale/gu/babel-gu.ini | 4 ++--
8 files changed, 54 insertions(+), 29 deletions(-)
diff --git a/README.md b/README.md
index fc32c72..8091063 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,4 @@
-## Babel 3.67.2590
-
-(*Development.*)
+## Babel 3.68
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -10,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.67 are described in:
+Changes in version 3.68 are described in:
-https://latex3.github.io/babel/news/whats-new-in-babel-3.67.html
+https://latex3.github.io/babel/news/whats-new-in-babel-3.68.html
Apart from the manual, you can find information on some aspects of babel at:
@@ -48,18 +46,14 @@ respective authors.
### Summary of Latest changes
```
-3.68 2021-12-?? (dev)
+3.68 2021-12-28
* Fixes:
- Assamese, Bengali, Gujarati set incorrectly prehyphenchar.
- The syntax provide=* didn’t work with Hebrew and a few other
languages.
- Wrong equation direction in first column in array and tabular
environment (#158).
-
-3.67 2021-11-29
- * \IfBabelSelectorTF executes code conditionally based on the
- selector type (select, foreign, etc.).
- * Transforms can be turned on and off based on Lua attributes.
+ - Tentative fixes for labels in displayed math (#159).
```
### Previous changes
diff --git a/babel.dtx b/babel.dtx
index a3aa5cb..1c08c96 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2021/12/18 v3.67.2590 The Babel package]
+\ProvidesFile{babel.dtx}[2021/12/28 v3.68 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -5118,8 +5118,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.67.2590>>
-%<<date=2021/12/18>>
+%<<version=3.68>>
+%<<date=2021/12/28>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -5196,10 +5196,11 @@ help from Bernd Raichle, for which I am grateful.
%
% Now, just syntactical sugar, but it makes partial expansion of
% some code a lot more simple and readable. Here |\\| stands for
-% |\noexpand| and |\<..>| for |\noexpand| applied to a built macro
-% name (the latter does not define the macro if undefined to
-% |\relax|, because it is created locally). The result may be
-% followed by extra arguments, if necessary.
+% |\noexpand|, |\<..>| for |\noexpand| applied to a built macro
+% name (which does not define the macro if undefined to
+% |\relax|, because it is created locally), and |\[..]| for one-level
+% expansion (where |..| is the macro name without the backslash). The
+% result may be followed by extra arguments, if necessary.
%
% \begin{macrocode}
\def\bbl at exp#1{%
@@ -14482,6 +14483,10 @@ end
\frozen at everydisplay\expandafter{%
\expandafter\bbl at mathboxdir\the\frozen at everydisplay}
\fi
+\def\bbl at truellap{%s
+ \ifcase\bbl at attr@dir\expandafter\llap\else\expandafter\rlap\fi}
+\def\bbl at truerlap{%
+ \ifcase\bbl at attr@dir\expandafter\rlap\else\expandafter\llap\fi}
% \end{macrocode}
%
% \subsection{Layout}
@@ -14509,11 +14514,37 @@ end
%
% \begin{macrocode}
\bbl at trace{Redefinitions for bidi layout}
+\AtBeginDocument{% amsmath
+ \ifx\place at tag\@undefined\else
+ \bbl at sreplace\place at tag{\llap}{\bbl at truellap}%
+ \bbl at sreplace\place at tag@gather{\llap}{\bbl at truellap}%
+ \bbl at sreplace\place at tag{\rlap}{\bbl at truerlap}%
+ \bbl at sreplace\place at tag@gather{\rlap}{\bbl at truerlap}%
+ \fi}
+\ifx\AddToHook\@undefined\else
+ \AddToHook{env/equation/before}{\pardir TLT }{}
+\fi
\ifx\@eqnnum\@undefined\else
\ifx\bbl at attr@dir\@undefined\else
- \edef\@eqnnum{{%
- \unexpanded{\ifcase\bbl at attr@dir\else\bbl at textdir\@ne\fi}%
- \unexpanded\expandafter{\@eqnnum}}}
+ \bbl at xin@{,leqno,}{,\@classoptionslist,}%
+ \ifin@
+ \bbl at sreplace\@eqnnum{\rlap}{\bbl at leqno@aux}
+ \def\bbl at leqno@aux#1{%
+ \bbl at truerlap{%
+ \ifcase\bbl at attr@dir
+ #1%
+ \else
+ \bbl at textdir\@ne
+ #1%
+ \hskip-\displaywidth
+ \fi}}
+ \else
+ \bbl at exp{%
+ \def\\\@eqnnum{{%
+ \<ifcase>\\\bbl at attr@dir\<else>\\\bbl at textdir\@ne\<fi>%
+ \\\bbl at ifsamestring{\\\@currenvir}{equation}%
+ {}{\\\bbl at truellap}{\[@eqnnum]}}}}
+ \fi
\fi
\fi
\ifx\bbl at opt@layout\@nnil\endinput\fi % if no layout
diff --git a/babel.ins b/babel.ins
index 50d96e7..b926734 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/12/18}
+\def\filedate{2021/12/28}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 88482d9..3584ad1 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index cf7aa60..b80d81c 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/12/18 v3.67.2590]
+\ProvidesFile{bbcompat.dtx}[2021/12/28 v3.68]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/as/babel-as.ini b/locale/as/babel-as.ini
index 9d1b16c..c8662c3 100644
--- a/locale/as/babel-as.ini
+++ b/locale/as/babel-as.ini
@@ -12,8 +12,8 @@
[identification]
charset = utf8
-version = 1.9
-date = 2021-06-25
+version = 1.10
+date = 2021-12-13
name.local = অসমীয়া
name.english = Assamese
name.babel = assamese
diff --git a/locale/bn/babel-bn.ini b/locale/bn/babel-bn.ini
index 6fdb561..ce2def1 100644
--- a/locale/bn/babel-bn.ini
+++ b/locale/bn/babel-bn.ini
@@ -11,8 +11,8 @@
[identification]
charset = utf8
-version = 1.9
-date = 2021-06-25
+version = 1.10
+date = 2021-12-13
name.local = বাংলা
name.english = Bangla
name.babel = bengali
diff --git a/locale/gu/babel-gu.ini b/locale/gu/babel-gu.ini
index e7a71df..e47339c 100644
--- a/locale/gu/babel-gu.ini
+++ b/locale/gu/babel-gu.ini
@@ -11,8 +11,8 @@
[identification]
charset = utf8
-version = 1.8
-date = 2021-06-25
+version = 1.9
+date = 2021-12-13
name.local = ગુજરાતી
name.english = Gujarati
name.babel = gujarati
More information about the latex3-commits
mailing list.