[latex3-commits] [git/LaTeX3-latex3-babel] master: Minor improvements with picture and \tikz. (f2b10e0)
Javier
email at dante.de
Sun Feb 21 15:33:15 CET 2021
Repository : https://github.com/latex3/babel
On branch : master
Link : https://github.com/latex3/babel/commit/f2b10e0bdd9e3336a483b25cbc17b0487692854b
>---------------------------------------------------------------
commit f2b10e0bdd9e3336a483b25cbc17b0487692854b
Author: Javier <email at localhost>
Date: Sun Feb 21 15:33:15 2021 +0100
Minor improvements with picture and \tikz.
>---------------------------------------------------------------
f2b10e0bdd9e3336a483b25cbc17b0487692854b
README.md | 37 ++++++++++---------------------
babel.dtx | 70 +++++++++++++++++++++++++++++------------------------------
babel.ins | 2 +-
babel.pdf | Bin 818709 -> 818555 bytes
bbcompat.dtx | 2 +-
5 files changed, 49 insertions(+), 62 deletions(-)
diff --git a/README.md b/README.md
index 16f9fd2..d258c41 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.53.2289
+## Babel 3.53.2290
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -43,11 +43,11 @@ respective authors.
### Latest changes
```
-3.54 2021-02-23??
+3.54 2021-02-22??
* RTL text inside \put (with pict2e) correctly rendered in
typical cases (#98).
* Same for \tikz.
- *
+ * The main change in internal (loader of ini files refactored).
3.53 2021-01-26
* Extended \setlocalecaption to allow .template (related to
@@ -61,7 +61,7 @@ respective authors.
bidi in lua.
- Parenthesis sometimes mirrored at the end of math with
bidi=basic.
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.53
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.53
3.52 2020-12-16
* WARNING. If you need the style for Afrikaans you must update
@@ -76,7 +76,7 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.53
- Save size overflow with many \selectlanguage's (#109).
- Albanian: fix a typo in contents name (#104)
- Missing ‘Unused global option(s)’ warning (#110)
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
3.51 2020-10-27
* Common interface to (re)define captions (with
@@ -91,13 +91,13 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
- An error was raised with CJK and a null font (#99).
- language.tag.bcp47 and tag.ini in \localeinfo didn't work
(#102).
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.52
3.50 2020-10-06
* Fixes:
- main=<language> stopped working in some cases (#96).
- Footnotes were not \long with layout=footnotes.
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
3.49 2020-10-03
* BUG. This version has a severe bug with main= (fixed in 3.50).
@@ -106,7 +106,7 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
* frenchspacing is set with ini files.
* Fixes:
- layout.lists=off didn't work (#94)
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.49
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.49
3.48 2020-09-01
* New (tentative) tools to customize some labels (like chapters
@@ -117,7 +117,7 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.49
- \babelshorthand didn't work with some dialects (#91).
- \selectlanguage and otherlanguage raised an error inside
tabular.
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.48
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.48
3.47 2020-07-13
* Fixes:
@@ -128,7 +128,7 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.48
* New - \getlocaleproperty*, which doesn't raise an error.
* Basic ini+tex templates for about 500 languages in the GitHub
repository.
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.47
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.47
3.46 2020-07-06
* Languages can now be optionally selected with their BCP 47
@@ -147,26 +147,13 @@ https://github.com/latex3/babel/wiki/What's-new-in-babel-3.47
https://github.com/latex3/babel/wiki/What's-new-in-babel-3.46
3.45 2020-06-10
- * Minor fixes in Hindi, Ancient Greek, Macedonian.
- * Improvements in Kurdish, Marathi.
- * Alternative date formats with \localedate[calendar=...,
- variant=...]{y}{m}{d} (note: no calendar computations, just
- strings).
- * \today is (again) case-aware.
- * \localenumeral{digits}{..} and \localecounter{digits}{cntr}
- for native digits.
- * Fixes
- - Improved handling of math with \babelposthyphenation and
- \babelprehyphenation (it was ignoring too much).
- - An error related to \bbl at foreign@x could be raised in some
- rare cases.
See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.45
3.44 2020-05-13
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.44
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.44
3.43 2020-04-28
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.43
+See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.43
3.42 2020-03-22
See https://github.com/latex3/babel/wiki/What's-new-in-babel-3.42
diff --git a/babel.dtx b/babel.dtx
index 13d5be7..a4b7e90 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2021/02/20 v3.53.2289 The Babel package]
+\ProvidesFile{babel.dtx}[2021/02/21 v3.53.2290 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -4850,8 +4850,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.53.2289>>
-%<<date=2021/02/20>>
+%<<version=3.53.2290>>
+%<<date=2021/02/21>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -13389,7 +13389,7 @@ help from Bernd Raichle, for which I am grateful.
\let\bbl at cjkintraspace\relax
\directlua{
Babel = Babel or {}
- require'babel-data-cjk.lua'
+ require('babel-data-cjk.lua')
Babel.cjk_enabled = true
function Babel.cjk_linebreak(head)
local GLYPH = node.id'glyph'
@@ -14292,7 +14292,10 @@ end
\ifcase\bbl at thetextdir
\let\bbl at pictresetdir\relax
\else
- \bodydir TLT
+ \ifcase#1\bodydir TLT % Remember this sets the inner boxes
+ \or\textdir TLT
+ \else\bodydir TLT \textdir TLT
+ \fi
% \(text|par)dir required in pgf:
\def\bbl at pictresetdir{\bodydir TRT\pardir TRT\textdir TRT\relax}%
\fi}%
@@ -14329,47 +14332,44 @@ end
luatexbase.add_to_callback("hpack_filter", Babel.picture_dir,
"Babel.picture_dir")
}%
- \long\def\put(#1,#2)#3{%
- \@killglue
- % Try:
- \ifx\bbl at pictresetdir\relax
- \count@=\z@
- \else
- \directlua{
- Babel.get_picture_dir = true
- Babel.picture_has_bidi = 0
- }%
- \setbox\z@\hb at xt@\z@{%
+ \AtBeginDocument{%
+ \long\def\put(#1,#2)#3{%
+ \@killglue
+ % Try:
+ \ifx\bbl at pictresetdir\relax
+ \def\bbl at tempc{0}%
+ \else
+ \directlua{
+ Babel.get_picture_dir = true
+ Babel.picture_has_bidi = 0
+ }%
+ \setbox\z@\hb at xt@\z@{%
+ \@defaultunitsset\@tempdimc{#1}\unitlength
+ \kern\@tempdimc
+ #3\hss}%
+ \edef\bbl at tempc{\directlua{tex.print(Babel.picture_has_bidi)}}%
+ \fi
+ % Do:
+ \@defaultunitsset\@tempdimc{#2}\unitlength
+ \raise\@tempdimc\hb at xt@\z@{%
\@defaultunitsset\@tempdimc{#1}\unitlength
\kern\@tempdimc
- #3\hss}%
- \directlua{
- Babel.get_picture_dir = false;
- tex.print( [[\string\count@=]] .. Babel.picture_has_bidi );
- }%
- \relax % 'Close' the number
- \fi
- % Do:
- \@defaultunitsset\@tempdimc{#2}\unitlength
- \raise\@tempdimc\hb at xt@\z@{%
- \@defaultunitsset\@tempdimc{#1}\unitlength
- \kern\@tempdimc
- {\ifnum\count@>\z@\bbl at pictresetdir\fi#3}\hss}%
- \ignorespaces}
- \MakeRobust\put
+ {\ifnum\bbl at tempc>\z@\bbl at pictresetdir\fi#3}\hss}%
+ \ignorespaces}%
+ \MakeRobust\put}%
\fi
\AtBeginDocument
{\ifx\tikz at atbegin@node\@undefined\else
\let\bbl at OL@pgfpicture\pgfpicture
\bbl at sreplace\pgfpicture{\pgfpicturetrue}%
- {\bbl at pictsetdir\@ne\pgfpicturetrue}%
- \bbl at add\pgfsys at beginpicture{\bbl at pictsetdir\@ne}%
+ {\bbl at pictsetdir\z@\pgfpicturetrue}%
+ \bbl at add\pgfsys at beginpicture{\bbl at pictsetdir\z@}%
\bbl at add\tikz at atbegin@node{\bbl at pictresetdir}%
\bbl at sreplace\tikz{\begingroup}%
- {\begingroup\bbl at pictsetdir\@one\textdir TLT }%
+ {\begingroup\bbl at pictsetdir\tw@}%
\fi
\ifx\AddToHook\@undefined\else
- \AddToHook{env/tcolorbox/begin}{\textdir TLT }%
+ \AddToHook{env/tcolorbox/begin}{\bbl at pictsetdir\@ne}%
\fi
}}
{}
diff --git a/babel.ins b/babel.ins
index 827cb7f..2d644ef 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/02/20}
+\def\filedate{2021/02/21}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 005d08b..ca2c8b4 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index de51f14..6661afa 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/02/20 v3.53.2289]
+\ProvidesFile{bbcompat.dtx}[2021/02/21 v3.53.2290]
%</dtx>
%
%% File 'bbcompat.dtx'
More information about the latex3-commits
mailing list.