[latex3-commits] [git/LaTeX3-latex3-babel] main: Bump to 3.86. (3f3135a)
Javier
email at dante.de
Mon Feb 13 18:06:57 CET 2023
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/3f3135ad8c9b1d473341cffdacccf3e386553dbf
>---------------------------------------------------------------
commit 3f3135ad8c9b1d473341cffdacccf3e386553dbf
Author: Javier <email at localhost>
Date: Mon Feb 13 18:06:57 2023 +0100
Bump to 3.86.
>---------------------------------------------------------------
3f3135ad8c9b1d473341cffdacccf3e386553dbf
README.md | 24 +++++------
babel.dtx | 105 +++++++++++++++++++++++++++++--------------------
babel.ins | 2 +-
babel.pdf | Bin 919913 -> 920892 bytes
bbcompat.dtx | 2 +-
samples/lua-arabic.pdf | Bin 115515 -> 115522 bytes
6 files changed, 75 insertions(+), 58 deletions(-)
diff --git a/README.md b/README.md
index ed8038e..0a5b4fe 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-## Babel 3.85.04072
+## Babel 3.86
-(Draft)
+2023-02-13
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -48,18 +48,14 @@ respective authors.
### Summary of latest changes
```
-3.86 (dev)
- * Improved tabular in bidi texts (lua).
-
-3.85 2023-01-23
- * A high-level interface to enable and disable transforms (lua).
- * Font-dependent transforms (lua).
- * Spaces allowed as separators in layout=.
- * Fixes:
- - \babelprehyphenation was not applied with 'onchar'.
- - In some rare cases the hyphenrules weren’t correctly set.
- - Partial fix for bidi in tabular (broken after an attempt to
- fix amsmath).
+3.86 2023-02-13
+ * New macro \localerestoredirs (lua).
+ * Improved tabular in bidi texts (lua). See #221.
+ * Fixed \glossaryname in the 'ini' file for 'lithuanian'
+ (thanks to Andrius Pukšta, @yjhn).
+ * Added diacritics to the rules for 'kashida.plain' in 'persian'.
+ * \babeladjust{ bidi.math = off } disables changes in math with
+ bidi (lua).
```
### Previous changes
diff --git a/babel.dtx b/babel.dtx
index 93a4fb3..48cda38 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2023/02/09 v3.85.04072 The Babel package]
+\ProvidesFile{babel.dtx}[2023/02/13 v3.86 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -3884,6 +3884,14 @@ up explictly; for example:
RTL A \foreignlanguage{english}{ltr text \thechapter{} and still ltr} RTL B
\end{verbatim}
+\Describe{localerestoredirs}{}
+
+\New{3.86} \textit{LuaTeX}. This command resets the internal text,
+paragraph and body directions to those of the current locale (if
+different). Sometimes changing directly these values can be useful for
+some hacks, and this command helps in restoring the directions to the
+correct ones. It can be used in |>| arguments of \textsf{array}, too.
+
\Describe{\BabelPatchSection}{\marg{section-name}}
Mainly for bidi text, but it can be useful in other cases.
@@ -4207,13 +4215,13 @@ with values |on| or |off|:
\ttfamily
bidi.mirroring\\
bidi.text\\
-bidi.math\\
+bidi.math\\%*
% bidi.mapdigits\\
-linebreak.sea\\
-linebreak.cjk\\
-justify.arabic\\
-layout.tabular\\
-layout.lists\\
+linebreak.sea\\%*
+linebreak.cjk\\%*
+justify.arabic\\%*
+layout.tabular\\%*
+layout.lists\\%*
autoload.bcp47\\
bcp47.toname
\end{multicols}
@@ -4221,12 +4229,12 @@ bcp47.toname
Other keys [to be documented] are:
\begin{multicols}{3}
\ttfamily
-autoload.options\\
+autoload.options\\%*
autoload.bcp47.prefix\\
autoload.bcp47.options\\
-prehyphenation.disable\\
+prehyphenation.disable\\%*
select.write\\
-select.encoding\\
+select.encoding\\%*
\end{multicols}
For example, you can set |\babeladjust{bidi.text=off}| if you are using
@@ -5287,8 +5295,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.85.04072>>
-%<<date=2023/02/09>>
+%<<version=3.86>>
+%<<date=2023/02/13>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -11355,9 +11363,17 @@ help from Bernd Raichle, for which I am grateful.
in vertical mode.}%
{Maybe things change in the future, but this is what it is.}}}
\@namedef{bbl at ADJ@layout.tabular at on}{%
- \bbl at adjust@layout{\let\@tabular\bbl at NL@@tabular}}
+ \ifnum\bbl at tabular@mode=\tw@
+ \bbl at adjust@layout{\let\@tabular\bbl at NL@@tabular}%
+ \else
+ \chardef\bbl at tabular@mode\@ne
+ \fi}
\@namedef{bbl at ADJ@layout.tabular at off}{%
- \bbl at adjust@layout{\let\@tabular\bbl at OL@@tabular}}
+ \ifnum\bbl at tabular@mode=\tw@
+ \bbl at adjust@layout{\let\@tabular\bbl at OL@@tabular}%
+ \else
+ \chardef\bbl at tabular@mode\z@
+ \fi}
\@namedef{bbl at ADJ@layout.lists at on}{%
\bbl at adjust@layout{\let\list\bbl at NL@list}}
\@namedef{bbl at ADJ@layout.lists at off}{%
@@ -14987,7 +15003,7 @@ end
%
\ifnum\bbl at bidimode>\z@
\ifx\matheqdirmode\@undefined\else
- \matheqdirmode\@ne % A lua tex primitive
+ \matheqdirmode\@ne % A luatex primitive
\fi
\let\bbl at eqnodir\relax
\def\bbl at eqdel{()}
@@ -15166,7 +15182,7 @@ end
\csname bbl at inidata@\languagename\endcsname
\bbl at release@transforms\relax % \relax closes the last item.
\fi}
-% Start tabular here: WIP
+% Start tabular here:
\def\localerestoredirs{%
\ifcase\bbl at thetextdir
\ifnum\textdirection=\z@\else\textdir TLT\fi
@@ -15178,44 +15194,49 @@ end
\else
\ifnum\pardirection=\@ne\else\pardir TRT\bodydir TRT\fi
\fi}
-\ifx\AddToHook\@undefined\endinput\fi % if plain
\IfBabelLayout{tabular}%
{\chardef\bbl at tabular@mode\tw@}% All RTL
{\IfBabelLayout{notabular}%
{\chardef\bbl at tabular@mode\z@}%
{\chardef\bbl at tabular@mode\@ne}}% Mixed, with LTR cols
-\ifnum\bbl at tabular@mode=\@ne
- \let\bbl at parabefore\relax
- \AddToHook{para/before}{\bbl at parabefore}%
- \AtBeginDocument{%
- \bbl at replace\@tabular{$}{$%
- \def\bbl at insidemath{0}%
- \def\bbl at parabefore{\localerestoredirs}}%
- \bbl at ifunset{@tabclassz}{}{%
- \bbl at exp{% Hide conditionals
- \\\bbl at sreplace\\\@tabclassz
- {\<ifcase>\\\@chnum}{\\\localerestoredirs\<ifcase>\\\@chnum}}}%
- \@ifpackageloaded{colortbl}%
- {\bbl at sreplace\@classz
- {\hbox\bgroup\bgroup}{\hbox\bgroup\bgroup\localerestoredirs}}%
- {\@ifpackageloaded{array}%
- {\bbl at exp{% Hide conditionals
- \\\bbl at sreplace\\\@classz
+\ifnum\bbl at bidimode>\@ne
+ \ifnum\bbl at tabular@mode=\@ne
+ \let\bbl at parabefore\relax
+ \AddToHook{para/before}{\bbl at parabefore}
+ \AtBeginDocument{%
+ \bbl at replace\@tabular{$}{$%
+ \def\bbl at insidemath{0}%
+ \def\bbl at parabefore{\localerestoredirs}}%
+ \ifnum\bbl at tabular@mode=\@ne
+ \bbl at ifunset{@tabclassz}{}{%
+ \bbl at exp{% Hide conditionals
+ \\\bbl at sreplace\\\@tabclassz
{\<ifcase>\\\@chnum}%
- {\bgroup\\\localerestoredirs\<ifcase>\\\@chnum}%
- \\\bbl at sreplace\\\@classz
- {\\\do at row@strut\<fi>}{\\\do at row@strut\<fi>\egroup}}}%
- {}}}
+ {\\\localerestoredirs\<ifcase>\\\@chnum}}}%
+ \@ifpackageloaded{colortbl}%
+ {\bbl at sreplace\@classz
+ {\hbox\bgroup\bgroup}{\hbox\bgroup\bgroup\localerestoredirs}}%
+ {\@ifpackageloaded{array}%
+ {\bbl at exp{% Hide conditionals
+ \\\bbl at sreplace\\\@classz
+ {\<ifcase>\\\@chnum}%
+ {\bgroup\\\localerestoredirs\<ifcase>\\\@chnum}%
+ \\\bbl at sreplace\\\@classz
+ {\\\do at row@strut\<fi>}{\\\do at row@strut\<fi>\egroup}}}%
+ {}}%
+ \fi}
+ \fi
\fi
\ifx\bbl at opt@layout\@nnil\endinput\fi % if no layout
% \end{macrocode}
%
% \textsc{Omega} provided a companion to |\mathdir| (|\nextfakemath|)
% for those cases where we did not want it to be applied, so that the
-% writing direction of the main text was left unchanged. |\bbl at nextfake|
-% is an attempt to emulate it, because \luatex{} has removed it. Also,
-% |\parshape| does not honour |\parshape| by default, so we need to
-% redefine |\@hangfrom|.
+% writing direction of the main text was left unchanged.
+% |\bbl at nextfake| is an attempt to emulate it, because \luatex{} has
+% removed it without an alternative. Also, |\hangindent| does not
+% honour direction changes by default, so we need to redefine
+% |\@hangfrom|.
%
% \begin{macrocode}
\ifnum\bbl at bidimode>\z@
diff --git a/babel.ins b/babel.ins
index c4a7f16..1e1f459 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{2023/02/09}
+\def\filedate{2023/02/13}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 6a13aa1..c2983ce 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 6947ea4..1c5d30d 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2023/02/09 v3.85.04072]
+\ProvidesFile{bbcompat.dtx}[2023/02/13 v3.86]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/samples/lua-arabic.pdf b/samples/lua-arabic.pdf
index 40d493e..0c80edb 100644
Binary files a/samples/lua-arabic.pdf and b/samples/lua-arabic.pdf differ
More information about the latex3-commits
mailing list.