[latex3-commits] [latex3/babel] main: Bump to 24.8. (8f2b87c)
github at latex-project.org
github at latex-project.org
Sun Aug 18 12:34:27 CEST 2024
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/8f2b87c5daef55d4648ff2fff3a66f5dd5e92d28
>---------------------------------------------------------------
commit 8f2b87c5daef55d4648ff2fff3a66f5dd5e92d28
Author: Javier <email at localhost>
Date: Sun Aug 18 12:34:27 2024 +0200
Bump to 24.8.
>---------------------------------------------------------------
8f2b87c5daef55d4648ff2fff3a66f5dd5e92d28
README.md | 18 ++++++--------
babel-code.pdf | Bin 652999 -> 651093 bytes
babel.dtx | 56 +++++++++++++++++++-----------------------
babel.ins | 2 +-
babel.pdf | Bin 424126 -> 424112 bytes
bbcompat.dtx | 2 +-
locale/ccp/babel-ccp.ini | 5 ++--
locale/ckb/babel-ckb-Latn.ini | 5 ++--
locale/cu/babel-cu-Cyrs.ini | 5 ++--
locale/he/babel-he.ini | 5 ++--
locale/ko/babel-ko-Hani.ini | 5 ++--
locale/ko/babel-ko.ini | 5 ++--
locale/mk/babel-mk.ini | 5 ++--
locale/ro/babel-ro.ini | 5 ++--
locale/sl/babel-sl.ini | 5 ++--
15 files changed, 61 insertions(+), 62 deletions(-)
diff --git a/README.md b/README.md
index 4e337a3..ca87d0c 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-## Babel 24.7.58966
+## Babel 24.8
-(dev)
+2024-08-18
`babel` is the multilingual framework for localizing documents in
LaTeX, LuaLaTeX, XeLaTeX. It manages culturally-determined
@@ -10,9 +10,9 @@ languages even work with Plain formats.
The latest stable version is available on <https://ctan.org/pkg/babel>.
-Changes in version 24.7 are described in:
+Changes in version 24.8 are described in:
-https://latex3.github.io/babel/news/whats-new-in-babel-24.7.html
+https://latex3.github.io/babel/news/whats-new-in-babel-24.8.html
Apart from the manual, you can find information on some aspects of babel at:
@@ -48,14 +48,10 @@ respective authors.
### Summary of latest changes
```
-24.8 (dev)
+24.8 2024-08-18
* Internal changes in bidi=basic (more reliable).
- * \BabelWrapText, a tool for the foreign hook.
-
-24.7 2024-06-26
- * Improvements in some locales:
- - Filipino (thanks to Leothelion, @ponte-vecchio)
- - Line breaking in Blin, Geez, Tigre, Tigrinya, Wolaytta.
+ * Hook 'foreign' and \BabelWrapText.
+ * Improved some locales thanks to Stephen Huan (@stephen-huan).
```
### Previous changes
diff --git a/babel-code.pdf b/babel-code.pdf
index 60cb49b..3e5cfe9 100644
Binary files a/babel-code.pdf and b/babel-code.pdf differ
diff --git a/babel.dtx b/babel.dtx
index b982a7c..84e16b7 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2024/08/11 v24.7.58966 The Babel package]
+\ProvidesFile{babel.dtx}[2024/08/18 v24.8 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -4297,6 +4297,17 @@ three \TeX{} parameters (|#1|, |#2|, |#3|), with the meaning given:
language in this particular case is the language that wrote the code.
The special value |/| means ‘return to the core \babel{} definitions’
(in other words, what follows hasn’t been written by any language).
+\item[foreign] \New{24.8} Executed by |\foreignlanguage| after the
+ language has been set up and just before typesetting the text from the
+ second argument. Its main purpose it to wrap the text with some
+ code, with the help of |\BabelWrapText|. For example, with:
+\begin{verbatim}
+\AddBabelHook{one}{foreign}{\BabelWrapText{\textit{##1}}
+\AddBabelHook{two}{foreign}{\BabelWrapText{\parse{##1}}
+\end{verbatim}
+the text becomes |\textit{\parse{|\m{text}|}}|.
+
+
% STILL UNDER STUDY:
% \item[beforestart] \New{3.34} Executed either at the beginning of the
% |aux| file (when read at the start of the document), or else at begin
@@ -5483,8 +5494,8 @@ wouldn’t exist.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=24.7.58966>>
-%<<date=2024/08/11>>
+%<<version=24.8>>
+%<<date=2024/08/18>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -6970,43 +6981,27 @@ wouldn’t exist.
\begingroup
\def\bbl at selectorname{foreign}%
\def\bbl at select@opts{#1}%
+ \let\BabelText\@firstofone
\bbl at beforeforeign
\foreign at language{#2}%
- \let\BabelText\@firstofone
- \let\bbl at prefgtext\@empty
- \let\bbl at postfgtext\@empty
- \def\bbl at fgcnt{0}%
\bbl at usehooks{foreign}{}%
- \bbl at exp{%
- \[bbl at prefgtext]\unexpanded{\BabelText{#3}}\[bbl at postfgtext]}%
+ \BabelText{#3}% Now in horizontal mode!
\endgroup}
\def\bbl at foreign@s#1#2{% TODO - \shapemode, \@setpar, ?\@@par
\begingroup
{\par}%
\def\bbl at selectorname{foreign*}%
\let\bbl at select@opts\@empty
- \foreign at language{#1}%
\let\BabelText\@firstofone
- \let\bbl at prefgtext\@empty
- \let\bbl at postfgtext\@empty
- \def\bbl at fgcnt{0}%
+ \foreign at language{#1}%
\bbl at usehooks{foreign*}{}%
\bbl at dirparastext
- \bbl at exp{%
- \[bbl at prefgtext]\unexpanded{\BabelText{#2}}\[bbl at postfgtext]}%
+ \BabelText{#2}% Still in vertical mode!
{\par}%
\endgroup}
-\def\BabelWrapText{%
- \edef\bbl at fgcnt{\the\numexpr\bbl at fgcnt+1\relax}%
- \bbl at carg\let{bbl at fgmacro\bbl at fgcnt}\relax
- \bbl at exp{%
- \def\\\bbl at prefgtext{\<bbl at fgmacro\bbl at fgcnt>\[bbl at prefgtext]}%
- \def\\\bbl at postfgtext{\[bbl at postfgtext]\<bbl at fgmacro\bbl at fgcnt>}}%
- \afterassignment\bbl at wraptext
- \toks@}
-\def\bbl at wraptext{%
- \bbl at exp{%
- \def\<bbl at fgmacro\bbl at fgcnt>####1\<bbl at fgmacro\bbl at fgcnt>{\the\toks@}}}
+\providecommand\BabelWrapText[1]{%
+ \def\bbl at tempa{\def\BabelText####1}%
+ \expandafter\bbl at tempa\expandafter{\BabelText{#1}}}
% \end{macrocode}
%
% \end{macro}
@@ -11592,6 +11587,7 @@ wouldn’t exist.
\let\bbl at noamsmath\@empty}
\@namedef{bbl at ADJ@bidi.math at off}{%
\let\bbl at noamsmath\relax}
+%
\@namedef{bbl at ADJ@bidi.mapdigits at on}{%
\bbl at adjust@lua{bidi}{digits_mapped=true}}
\@namedef{bbl at ADJ@bidi.mapdigits at off}{%
@@ -12556,11 +12552,10 @@ wouldn’t exist.
\let\bbl at textdir@i\@gobbletwo
\let\bbl at xebidipar\@empty
\AddBabelHook{bidi}{foreign}{%
- \def\bbl at tempa{\def\BabelText####1}%
\ifcase\bbl at thetextdir
- \expandafter\bbl at tempa\expandafter{\BabelText{\LR{##1}}}%
+ \BabelWrapText{\LR{##1}}%
\else
- \expandafter\bbl at tempa\expandafter{\BabelText{\RL{##1}}}%
+ \BabelWrapText{\RL{##1}}%
\fi}
\def\bbl at pardir#1{\ifcase#1\relax\setLR\else\setRL\fi}
\fi
@@ -15925,6 +15920,7 @@ end
{\chardef\bbl at tabular@mode\z@}%
{\chardef\bbl at tabular@mode\@ne}}% Mixed, with LTR cols
\ifnum\bbl at bidimode>\@ne % Any lua bidi= except default=1
+ % Redefine: vrules mess up dirs:
\def\@arstrut{\relax\copy\@arstrutbox}%
\ifcase\bbl at tabular@mode\or % 1 = Mixed - default
\let\bbl at parabefore\relax
@@ -23641,8 +23637,6 @@ end
-- after the babel algorithm).
function Babel.unset_atdir(head)
local ATDIR = Babel.attr_dir
- local MATH = node.id'math'
- local DIR = node.id'dir'
for item in node.traverse(head) do
node.set_attribute(item, ATDIR, 128)
end
diff --git a/babel.ins b/babel.ins
index b771af4..50ebda7 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/08/11}
+\def\filedate{2024/08/18}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 828c04f..e99c81e 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 30b33fc..f45bc18 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2024/08/11 v24.7.58966]
+\ProvidesFile{bbcompat.dtx}[2024/08/18 v24.8]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/ccp/babel-ccp.ini b/locale/ccp/babel-ccp.ini
index 68c0f53..d2f98bc 100644
--- a/locale/ccp/babel-ccp.ini
+++ b/locale/ccp/babel-ccp.ini
@@ -4,11 +4,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.0
-date = 2023-12-09
+version = 1.1
+date = 2024-08-11
name.local = 𑄌𑄋𑄴𑄟𑄳𑄦
name.english = Chakma
name.babel = chakma
diff --git a/locale/ckb/babel-ckb-Latn.ini b/locale/ckb/babel-ckb-Latn.ini
index 1b1e5df..dd1f699 100644
--- a/locale/ckb/babel-ckb-Latn.ini
+++ b/locale/ckb/babel-ckb-Latn.ini
@@ -8,11 +8,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.5
-date = 2022-12-08
+version = 1.6
+date = 2024-08-11
name.local = Kurdîy nawendî
name.english = Central Kurdish
name.babel = sorani centralkurdish-latin
diff --git a/locale/cu/babel-cu-Cyrs.ini b/locale/cu/babel-cu-Cyrs.ini
index 20da74b..27e5c23 100644
--- a/locale/cu/babel-cu-Cyrs.ini
+++ b/locale/cu/babel-cu-Cyrs.ini
@@ -6,11 +6,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.4
-date = 2022-12-08
+version = 1.5
+date = 2024-08-11
name.local = словѣ́ньскъ ѩꙁꙑ́къ
name.english = Church Slavic
name.babel = churchslavic-oldcyrillic
diff --git a/locale/he/babel-he.ini b/locale/he/babel-he.ini
index 6fe472b..f0c1b90 100644
--- a/locale/he/babel-he.ini
+++ b/locale/he/babel-he.ini
@@ -6,11 +6,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.10
-date = 2023-08-31
+version = 1.11
+date = 2024-08-11
name.local = עברית
name.english = Hebrew
name.babel = hebrew
diff --git a/locale/ko/babel-ko-Hani.ini b/locale/ko/babel-ko-Hani.ini
index e8f309d..1bd1ed8 100644
--- a/locale/ko/babel-ko-Hani.ini
+++ b/locale/ko/babel-ko-Hani.ini
@@ -6,11 +6,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.5
-date = 2024-04-18
+version = 1.6
+date = 2024-08-11
name.local = 한국어
name.english = Korean
name.babel = korean-han korean-hani
diff --git a/locale/ko/babel-ko.ini b/locale/ko/babel-ko.ini
index 2e8dbc6..5bb9db0 100644
--- a/locale/ko/babel-ko.ini
+++ b/locale/ko/babel-ko.ini
@@ -6,11 +6,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.13
-date = 2024-04-18
+version = 1.14
+date = 2024-08-11
name.local = 한국어
name.english = Korean
name.babel = korean
diff --git a/locale/mk/babel-mk.ini b/locale/mk/babel-mk.ini
index 7c157aa..937a336 100644
--- a/locale/mk/babel-mk.ini
+++ b/locale/mk/babel-mk.ini
@@ -8,11 +8,12 @@
; http://unicode.org/copyright.html
; * Some typos fixed by Stojan Trajanovski
; * Some typos fixed by Dario Gjorgjevski
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.6
-date = 2022-09-07
+version = 1.7
+date = 2024-08-11
name.local = македонски
name.english = Macedonian
name.babel = macedonian
diff --git a/locale/ro/babel-ro.ini b/locale/ro/babel-ro.ini
index d68b49c..734bd00 100644
--- a/locale/ro/babel-ro.ini
+++ b/locale/ro/babel-ro.ini
@@ -6,11 +6,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.4
-date = 2022-10-12
+version = 1.5
+date = 2024-08-11
name.local = română
name.english = Romanian
name.babel = romanian
diff --git a/locale/sl/babel-sl.ini b/locale/sl/babel-sl.ini
index d4f94f0..8b7531f 100644
--- a/locale/sl/babel-sl.ini
+++ b/locale/sl/babel-sl.ini
@@ -6,11 +6,12 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; With some cleaning up by Stephen Huan (@stephen-huan)
[identification]
charset = utf8
-version = 1.3
-date = 2022-10-12
+version = 1.4
+date = 2024-08-11
name.local = slovenščina
name.english = Slovenian
name.babel = slovene slovenian
More information about the latex3-commits
mailing list.