[latex3-commits] [git/LaTeX3-latex3-babel] main: Spaces as separators in layout=. \enable/disablelocaletransform. (52444f0)
Javier
email at dante.de
Fri Dec 30 18:19:05 CET 2022
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/52444f0370d4d344dff37fa660302b25bdc64f73
>---------------------------------------------------------------
commit 52444f0370d4d344dff37fa660302b25bdc64f73
Author: Javier <email at localhost>
Date: Fri Dec 30 18:19:05 2022 +0100
Spaces as separators in layout=. \enable/disablelocaletransform.
>---------------------------------------------------------------
52444f0370d4d344dff37fa660302b25bdc64f73
README.md | 8 +++++++-
babel.dtx | 39 +++++++++++++++++++++++++++++++++------
babel.ins | 2 +-
babel.pdf | Bin 902955 -> 904534 bytes
bbcompat.dtx | 2 +-
5 files changed, 42 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index 7efdf6d..4e5abb7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-## Babel 3.84
+## Babel 3.84.2967
+
+(dev)
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +48,10 @@ respective authors.
### Summary of latest changes
```
+3.85 (dev)
+ * Spaces allowed as separators in layout =.
+ * A high-level interface to enable and disable transforms.
+
3.84 2022-12-26
* Automatic selection of encodings with \babelprovide and pdftex.
* Fixes:
diff --git a/babel.dtx b/babel.dtx
index fe81253..f40ad30 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2022/12/26 v3.84 The Babel package]
+\ProvidesFile{babel.dtx}[2022/12/30 v3.84.2967 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -433,6 +433,14 @@ This is not currently done by \babel{} and you must set it by hand.
shorthands in those macros.
\end{note}
+\begin{note}
+ \Babel{} does not make any readjustments by default in font size,
+ vertical positioning or line height by default. This is on purpose
+ because the optimal solution depends on the document layout and the
+ font, and very likely the most appropriate one is a combination of
+ these settings.
+\end{note}
+
\subsection{Multilingual documents}
In multilingual documents, just use a list of the required languages as
@@ -5238,8 +5246,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.84>>
-%<<date=2022/12/26>>
+%<<version=3.84.2967>>
+%<<date=2022/12/30>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -6021,6 +6029,12 @@ help from Bernd Raichle, for which I am grateful.
\ifx\bbl at opt@layout\@nnil
\newcommand\IfBabelLayout[3]{#3}%
\else
+ \bbl at exp{\\\bbl at forkv{\@nameuse{@raw at opt@babel.sty}}}{%
+ \in@{,layout,}{,#1,}%
+ \ifin@
+ \def\bbl at opt@layout{#2}%
+ \bbl at replace\bbl at opt@layout{ }{.}%
+ \fi}
\newcommand\IfBabelLayout[1]{%
\@expandtwoargs\in@{.#1.}{.\bbl at opt@layout.}%
\ifin@
@@ -12112,8 +12126,8 @@ help from Bernd Raichle, for which I am grateful.
\def\bbl at alscripts{,Arabic,Syriac,Thaana,}
\def\bbl at rscripts{% TODO. Base on codes ??
,Imperial Aramaic,Avestan,Cypriot,Hatran,Hebrew,%
- Old Hungarian,Old Hungarian,Lydian,Mandaean,Manichaean,%
- Manichaean,Meroitic Cursive,Meroitic,Old North Arabian,%
+ Old Hungarian,Lydian,Mandaean,Manichaean,%
+ Meroitic Cursive,Meroitic,Old North Arabian,%
Nabataean,N'Ko,Orkhon,Palmyrene,Inscriptional Pahlavi,%
Psalter Pahlavi,Phoenician,Inscriptional Parthian,Samaritan,%
Old South Arabian,}%
@@ -14615,8 +14629,17 @@ end
\fi}}&%
\let\bbl at kv@attribute\relax
\let\bbl at kv@label\relax
+ \let\bbl at kv@font\relax
\bbl at forkv{#2}{\bbl at csarg\edef{kv@##1}{##2}}&%
- \ifx\bbl at kv@attribute\relax\else
+ \ifx\bbl at kv@attribute\relax
+ \ifx\bbl at kv@label\relax\else
+ \bbl at ifunset{bbl at ATR@\bbl at kv@label @#3}&%
+ {\bbl at csarg\newattribute{ATR@\bbl at kv@label @#3}}&%
+ {}&%
+ \edef\bbl at kv@attribute{bbl at ATR@\bbl at kv@label @#3}&%
+ \global\bbl at carg\setattribute{\bbl at kv@attribute}\@ne
+ \fi
+ \else
\edef\bbl at kv@attribute{\expandafter\bbl at stripslash\bbl at kv@attribute}&%
\fi
\directlua{
@@ -14662,6 +14685,10 @@ end
}&%
\endgroup}
\endgroup
+\DeclareRobustCommand\enablelocaletransform[2][\languagename]{%
+ \bbl at csarg\setattribute{ATR@#2@#1}\@ne}
+\DeclareRobustCommand\disablelocaletransform[2][\languagename]{%
+ \bbl at csarg\unsetattribute{ATR@#2@#1}}
\def\bbl at activateposthyphen{%
\let\bbl at activateposthyphen\relax
\directlua{
diff --git a/babel.ins b/babel.ins
index fde40b7..e3ebe4f 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{2022/12/26}
+\def\filedate{2022/12/30}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 7f740c3..186e026 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 1fc18c4..5e930dc 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2022/12/26 v3.84]
+\ProvidesFile{bbcompat.dtx}[2022/12/30 v3.84.2967]
%</dtx>
%
%% File 'bbcompat.dtx'
More information about the latex3-commits
mailing list.