[latex3-commits] [latex3/babel] main: Bump to 24.3. interchar.disable (1040ffd)
github at latex-project.org
github at latex-project.org
Fri Mar 29 08:55:18 CET 2024
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/1040ffd87cc538a6121ab34d34213bd1e907a212
>---------------------------------------------------------------
commit 1040ffd87cc538a6121ab34d34213bd1e907a212
Author: Javier <email at localhost>
Date: Fri Mar 29 08:55:18 2024 +0100
Bump to 24.3. interchar.disable
>---------------------------------------------------------------
1040ffd87cc538a6121ab34d34213bd1e907a212
README.md | 29 ++++++++++++------------
babel-code.pdf | Bin 647508 -> 646852 bytes
babel.dtx | 58 +++++++++++++++++++++++++++++++++--------------
babel.ins | 2 +-
babel.pdf | Bin 422183 -> 422784 bytes
bbcompat.dtx | 2 +-
locale/brx/babel-brx.ini | 5 ++--
7 files changed, 61 insertions(+), 35 deletions(-)
diff --git a/README.md b/README.md
index 9a413ef..aee528f 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,18 @@
-## Babel 24.2.43377
+## Babel 24.3
-(dev)
+2024-03-29
-This package manages culturally-determined typographical (and other)
-rules, and hyphenation patterns for a wide range of languages. Many
-language styles work with pdflatex, as well as with xelatex and
-lualatex out of the box. A few even work with plain formats. Included
-is a set of ini files for about 300 languages.
+`babel` is the multilingual framework for localizing documents in
+LaTeX, LuaLaTeX, XeLaTeX. It manages culturally-determined
+typographical (and other) rules for about 170 to 300 languages,
+depending on the engine, with several levels of coverage. A few
+languages even work with Plain formats.
The latest stable version is available on <https://ctan.org/pkg/babel>.
-Changes in version 24.2 are described in:
+Changes in version 24.3 are described in:
-https://latex3.github.io/babel/news/whats-new-in-babel-24.2.html
+https://latex3.github.io/babel/news/whats-new-in-babel-24.3.html
Apart from the manual, you can find information on some aspects of babel at:
@@ -48,11 +48,12 @@ respective authors.
### Summary of latest changes
```
-24.3 (dev)
-
-24.2 2024-02-07
- * Cleaned up some language names.
- * Mosty internal changes and minor fixes.
+24.3 2024-03-29
+ * A silly mistake in the French locales: the interchar
+ 'punctuation.space' was named 'puntuation.space' (xetex)
+ * New setting 'interchar.disable' in \babeladjust (xetex)
+ * Experimental macro '\localebox' (luatex)
+ * Alphabetic counter for Bodo (lua/xe)
```
### Previous changes
diff --git a/babel-code.pdf b/babel-code.pdf
index 47eae2d..de96801 100644
Binary files a/babel-code.pdf and b/babel-code.pdf differ
diff --git a/babel.dtx b/babel.dtx
index 2a0a9c5..11b73fe 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2024/03/08 v24.2.43377 The Babel package]
+\ProvidesFile{babel.dtx}[2024/03/29 v24.3 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -748,7 +748,9 @@ for the language chosen:
\selectlanguage{german}
\end{verbatim}
-This command can be used as environment, too.
+This command can be used as environment, too, in case there are
+relatively short texts and you do not want to reset the language with a
+hardcode value.
\begin{note}
For ``historical reasons'', a macro name is converted to a language
@@ -854,7 +856,11 @@ is roughly equivalent to:
If you want a change which is really local, you must enclose this
environment with an additional grouping, like braces |{}|.
-Spaces after the environment are ignored.
+Spaces after the environment are ignored.\footnote{Very likely, and
+because of the limitations of many old editors with bidi text, the idea
+was \cs{end}\texttt{\{otherlanguage\}} had to be a line by itself.} If this
+behavior is not desired, you may use the environment
+\texttt{selectlanguage}.
\begin{warning}
Being similar to |\selectlanguage|, the warning above about the
@@ -3690,6 +3696,11 @@ the ‘provided’ locale. Currently there is a set of rules for French
named |punctuation.space|, which applies proper spacing with characters
\textit{;:!?«»}.
+\begin{note}
+ You can use |transforms| and |interchar| at the same time. Only the
+ relevant key for the current engine is taken into account.
+\end{note}
+
\subsection{Selection based on BCP 47 tags}
\label{bcp47}
@@ -4472,15 +4483,17 @@ autoload.options\\
autoload.bcp47.prefix\\
autoload.bcp47.options\\
prehyphenation.disable\\
+interchar.disable\\
select.write\\
select.encoding\\
\end{multicols}
Most of them are documented elsewhere. With |select.encoding=off|, the
encoding is not set when loading a language on the fly with \pdftex{}
(only |off|). |prehyphenation.disable| is by default |nohyphenation|,
-which means prehyphenation transforms are not applied if the current
+which means \luatex{} prehyphenation transforms are not applied if the current
hyphenation rules are |nohyphenation|; with |off| they are never
-disabled.
+disabled. |interchar.disable| takes the same values, but for the
+\xetex{} interchar mechanism.
For example, you can set |\babeladjust{bidi.text=off}| if you are using
an alternative algorithm or with large sections not requiring it. Use
@@ -5438,8 +5451,8 @@ wouldn’t exist.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=24.2.43377>>
-%<<date=2024/03/08>>
+%<<version=24.3>>
+%<<date=2024/03/29>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -6599,7 +6612,8 @@ wouldn’t exist.
\chardef\localeid\bbl at cl{id@}}
% \end{macrocode}
%
-% The unprotected part of |\selectlanguage|.
+% The unprotected part of |\selectlanguage|. In case it is used as
+% environment, declare |\endselectlaguage|, just for safety.
%
% \begin{macrocode}
\expandafter\def\csname selectlanguage \endcsname#1{%
@@ -6607,6 +6621,7 @@ wouldn’t exist.
\bbl at push@language
\aftergroup\bbl at pop@language
\bbl at set@language{#1}}
+\let\endselectlanguage\relax
% \end{macrocode}
%
% \end{macro}
@@ -6842,8 +6857,7 @@ wouldn’t exist.
% itself when it is called in horizontal mode.
%
% \begin{macrocode}
-\long\def\endotherlanguage{%
- \global\@ignoretrue\ignorespaces}
+\long\def\endotherlanguage{\@ignoretrue\ignorespaces}
% \end{macrocode}
%
% \end{environment}
@@ -11592,6 +11606,15 @@ wouldn’t exist.
\directlua{ Babel.ignore_pre_char = function(node)
return false
end }}
+\@namedef{bbl at ADJ@interchar.disable at nohyphenation}{%
+ \def\bbl at ignoreinterchar{%
+ \ifnum\language=\l at nohyphenation
+ \expandafter\@gobble
+ \else
+ \expandafter\@firstofone
+ \fi}}
+\@namedef{bbl at ADJ@interchar.disable at off}{%
+ \let\bbl at ignoreinterchar\@firstofone}
\@namedef{bbl at ADJ@select.write at shift}{%
\let\bbl at restorelastskip\relax
\def\bbl at savelastskip{%
@@ -13605,7 +13628,7 @@ wouldn’t exist.
\let\\\bbl at tempfs@nxx\<__fontspec_warning:nxx>%
\let\<__fontspec_warning:nxx>\\\bbl at fs@warn at nxx
\\\renewfontfamily\\#4%
- [\bbl at cl{lsys},%
+ [\bbl at cl{lsys},% xetex removes unknown features :-(
\ifcase\bbl at engine\or RawFeature={family=\bbl at tempb},\fi
#2]}{#3}% ie \bbl at exp{..}{#3}
\bbl at exp{%
@@ -13885,16 +13908,17 @@ wouldn’t exist.
% ‘disabled’ with |\bbl at ic@<label>@<lang>|.
%
% \begin{macrocode}
+\def\bbl at ignoreinterchar{%
+ \ifnum\language=\l at nohyphenation
+ \expandafter\@gobble
+ \else
+ \expandafter\@firstofone
+ \fi}
\newcommand\babelinterchar[5][]{%
\let\bbl at kv@label\@empty
\bbl at forkv{#1}{\bbl at csarg\edef{kv@##1}{##2}}%
\@namedef{\zap at space bbl at xeinter@\bbl at kv@label @#3@#4@#2 \@empty}%
- {\ifnum\language=\l at nohyphenation
- \expandafter\@gobble
- \else
- \expandafter\@firstofone
- \fi
- {#5}}%
+ {\bbl at ignoreinterchar{#5}}%
\bbl at csarg\let{ic@\bbl at kv@label @#2}\@firstofone
\bbl at exp{\\\bbl at for\\\bbl at tempa{\zap at space#3 \@empty}}{%
\bbl at exp{\\\bbl at for\\\bbl at tempb{\zap at space#4 \@empty}}{%
diff --git a/babel.ins b/babel.ins
index 019c770..d498b8f 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{2024/03/08}
+\def\filedate{2024/03/29}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index c63128b..7c263bf 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index c971a09..9c1856b 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2024/03/08 v24.2.43377]
+\ProvidesFile{bbcompat.dtx}[2024/03/29 v24.3]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/brx/babel-brx.ini b/locale/brx/babel-brx.ini
index e95f7fd..acffcff 100644
--- a/locale/brx/babel-brx.ini
+++ b/locale/brx/babel-brx.ini
@@ -9,8 +9,8 @@
[identification]
charset = utf8
-version = 1.5
-date = 2022-06-14
+version = 1.6
+date = 2024-03-18
name.local = बर’
name.english = Bodo
name.babel = bodo
@@ -171,3 +171,4 @@ plusSign = +
superscriptingExponent = ×
[counters]
+alphabetic = क ख ग घ ङ च छ ज झ ञ ट ठ ड ढ ण त थ द ध न प फ ब भ म य र ल व श ष स ह
\ No newline at end of file
More information about the latex3-commits
mailing list.