[latex3-commits] [git/LaTeX3-latex3-babel] master: \babelprovide always allowed without []. Start again picture+lua+bidi. (1b95528)
Javier
email at dante.de
Thu Jan 7 18:20:33 CET 2021
Repository : https://github.com/latex3/babel
On branch : master
Link : https://github.com/latex3/babel/commit/1b955284a41bed99779118afa1c5c12b17c00d65
>---------------------------------------------------------------
commit 1b955284a41bed99779118afa1c5c12b17c00d65
Author: Javier <email at localhost>
Date: Thu Jan 7 18:20:33 2021 +0100
\babelprovide always allowed without []. Start again picture+lua+bidi.
>---------------------------------------------------------------
1b955284a41bed99779118afa1c5c12b17c00d65
README.md | 7 +++++-
babel.dtx | 81 ++++++++++++++++++++++++++++++-----------------------------
babel.ins | 2 +-
babel.pdf | Bin 820345 -> 817891 bytes
bbcompat.dtx | 2 +-
5 files changed, 49 insertions(+), 43 deletions(-)
diff --git a/README.md b/README.md
index 934a87f..5649183 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.52.2228
+## Babel 3.52.2245
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +46,11 @@ respective authors.
3.53 2021-01-??
* Extended \setlocalecaption to allow .template (related to
#111).
+ * Allow access to some features in `ini` files even with `ldf`
+ ones.
+ * Fixes:
+ - Not really a fix, but I started working on `picture` with
+ bidi in lua.
3.52 2020-12-16
* WARNING. If you need the style for Afrikaans you must update
diff --git a/babel.dtx b/babel.dtx
index 24ac3e5..f8dc6d9 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2020/12/21 v3.52.2228 The Babel package]
+\ProvidesFile{babel.dtx}[2021/01/07 v3.52.2245 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -202,13 +202,14 @@
Version \csname @gobble\expandafter\endcsname\fileversion\newline
\filedate
-\vspace{1cm}
-\textit{Original author}\newline
-Johannes L. Braams
+\LARGE
+\vspace{1.2cm}
+Johannes L. Braams\\[-.5ex]
+{\large Original author}
\vspace{.3cm}
-\textit{Current maintainer}\newline
-Javier Bezos
+Javier Bezos\\[-.5ex]
+{\large Current maintainer}
\end{minipage}
&\cellcolor[rgb]{.92, .86, .73}
\vspace{2cm}
@@ -782,6 +783,18 @@ It defines |\text|\m{tag1}\marg{text} to be
to be |\begin{otherlanguage*}|\marg{language1}, and so on. Note
|\|\m{tag1} is also allowed, but remember to set it locally inside a
group.
+
+% \begin{warning}
+% There is a clear drawback in this feature, namely, the ‘prefix’
+% |\text...| is heavily overloaded in \LaTeX{} and there can some
+% conflicts with existing macros (|\textlatin|, |\textbar|,
+% |\textit|, |\textcolor| and so on). The same applies to
+% environments, because |arabic| conflicts with |\arabic|. Except if
+% there is a reason for this ‘syntactical sugar’, the best option is
+% to stick to the default selectors or to define your own
+% alternatives.
+% \end{warning}
+
\begin{example}
With
\begin{verbatim}
@@ -2512,6 +2525,10 @@ languages.
\usepackage[italian]{babel}
\babelprovide[import, main]{polytonicgreek}
\end{verbatim}
+Remerber there is an alternative syntax for the latter:
+\begin{verbatim}
+\usepackage[italian, polytonicgreek, provide=*]{babel}
+\end{verbatim}
\end{example}
\Describe{script=}{\meta{script-name}}
@@ -4837,8 +4854,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.52.2228>>
-%<<date=2020/12/21>>
+%<<version=3.52.2245>>
+%<<date=2021/01/07>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -10666,11 +10683,7 @@ help from Bernd Raichle, for which I am grateful.
\bbl at ifunset{date#2}%
{\bbl at provide@new{#2}}%
{\bbl at ifblank{#1}%
- {\bbl at error
- {If you want to modify `#2' you must tell how in\\%
- the optional argument. See the manual for the\\%
- available options.}%
- {Use this macro as documented}}%
+ {}%
{\bbl at provide@renew{#2}}}%
% Post tasks
\bbl at ifunset{bbl at extracaps@#2}%
@@ -11355,20 +11368,10 @@ help from Bernd Raichle, for which I am grateful.
\bbl at replace\bbl at toreplace{[}{\csname the}%
\bbl at replace\bbl at toreplace{]]}{name\endcsname{}}%
\bbl at replace\bbl at toreplace{]}{\endcsname{}}%
- \bbl at xin@{,\bbl at tempa,}{,chapter,}% TODO. copypaste pattern
+ \bbl at xin@{,\bbl at tempa,}{,chapter,appendix,part,}%
\ifin@
- \bbl at patchchapter
- \global\bbl at csarg\let{chapfmt@#2}\bbl at toreplace
- \fi
- \bbl at xin@{,\bbl at tempa,}{,appendix,}%
- \ifin@
- \bbl at patchchapter
- \global\bbl at csarg\let{appxfmt@#2}\bbl at toreplace
- \fi
- \bbl at xin@{,\bbl at tempa,}{,part,}%
- \ifin@
- \bbl at patchpart
- \global\bbl at csarg\let{partfmt@#2}\bbl at toreplace
+ \@nameuse{bbl at patch\bbl at tempa}%
+ \global\bbl at csarg\let{\bbl at tempa fmt@#2}\bbl at toreplace
\fi
\bbl at xin@{,\bbl at tempa,}{,figure,table,}%
\ifin@
@@ -11468,7 +11471,7 @@ help from Bernd Raichle, for which I am grateful.
% but not all. Actually, the following lines are somewhat tentative.
%
% \begin{macrocode}
-\def\bbl at chaptype{chap}
+\def\bbl at chaptype{chapter}
\ifx\@makechapterhead\@undefined
\let\bbl at patchchapter\relax
\else\ifx\thechapter\@undefined
@@ -11478,7 +11481,7 @@ help from Bernd Raichle, for which I am grateful.
\else
\def\bbl at patchchapter{%
\global\let\bbl at patchchapter\relax
- \bbl at add\appendix{\def\bbl at chaptype{appx}}% Not harmful, I hope
+ \bbl at add\appendix{\def\bbl at chaptype{appendix}}% Not harmful, I hope
\bbl at toglobal\appendix
\bbl at sreplace\ps at headings
{\@chapapp\ \thechapter}%
@@ -11496,6 +11499,7 @@ help from Bernd Raichle, for which I am grateful.
\bbl at ifunset{bbl@\bbl at chaptype fmt@\languagename}%
{\@chapapp\space\thechapter}
{\@nameuse{bbl@\bbl at chaptype fmt@\languagename}}}}
+ \let\bbl at patchappendix\bbl at patchchapter
\fi\fi\fi
\ifx\@part\@undefined
\let\bbl at patchpart\relax
@@ -14236,26 +14240,23 @@ end
{}
\IfBabelLayout{graphics}
{\let\bbl at pictresetdir\relax
- \def\bbl at pictsetdir{%
+ \def\bbl at pictsetdir#1{%
\ifcase\bbl at thetextdir
\let\bbl at pictresetdir\relax
\else
- \textdir TLT\relax
- \def\bbl at pictresetdir{\textdir TRT\relax}%
+ \bodydir TLT
+ % \(text|par)dir required in pgf:
+ \def\bbl at pictresetdir{\bodydir TRT\pardir TRT\textdir TRT\relax}%
\fi}%
- \let\bbl at OL@@picture\@picture
- \let\bbl at OL@put\put
- \bbl at sreplace\@picture{\hskip-}{\bbl at pictsetdir\hskip-}%
- \def\put(#1,#2)#3{% Not easy to patch. Better redefine.
- \@killglue
- \raise#2\unitlength
- \hb at xt@\z@{\kern#1\unitlength{\bbl at pictresetdir#3}\hss}}%
+ \ifx\AddToHook\@undefined\else
+ \AddToHook{env/picture/begin}{\bbl at pictsetdir\z@}%
+ \fi
\AtBeginDocument
{\ifx\tikz at atbegin@node\@undefined\else
\let\bbl at OL@pgfpicture\pgfpicture
\bbl at sreplace\pgfpicture{\pgfpicturetrue}%
- {\bbl at pictsetdir\pgfpicturetrue}%
- \bbl at add\pgfsys at beginpicture{\bbl at pictsetdir}%
+ {\bbl at pictsetdir\@ne\pgfpicturetrue}%
+ \bbl at add\pgfsys at beginpicture{\bbl at pictsetdir\@ne}%
\bbl at add\tikz at atbegin@node{\bbl at pictresetdir}%
\fi}}
{}
diff --git a/babel.ins b/babel.ins
index 292cb58..a96125b 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{2020/12/21}
+\def\filedate{2021/01/07}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 35589e2..2f284b4 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 6b5ed9e..20a0fd1 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2020/12/21 v3.52.2228]
+\ProvidesFile{bbcompat.dtx}[2021/01/07 v3.52.2245]
%</dtx>
%
%% File 'bbcompat.dtx'
More information about the latex3-commits
mailing list.