[latex3-commits] [git/LaTeX3-latex3-babel] main: Refactored \BCPdata (definitive?). Fix char ranges in iu. (020e336)
Javier
email at dante.de
Sun Apr 2 19:10:09 CEST 2023
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/020e3369960c223f50644df3ea5f564fa6dfc029
>---------------------------------------------------------------
commit 020e3369960c223f50644df3ea5f564fa6dfc029
Author: Javier <email at localhost>
Date: Sun Apr 2 19:10:09 2023 +0200
Refactored \BCPdata (definitive?). Fix char ranges in iu.
>---------------------------------------------------------------
020e3369960c223f50644df3ea5f564fa6dfc029
README.md | 10 +++++++++-
babel.dtx | 40 +++++++++++++++++++++++++++++++---------
babel.ins | 2 +-
babel.pdf | Bin 911845 -> 913816 bytes
bbcompat.dtx | 2 +-
locale/iu/babel-iu.ini | 2 +-
6 files changed, 43 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index d355b86..8758ce3 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.87
+## Babel 3.87.09276
2023-03-28
@@ -48,6 +48,14 @@ respective authors.
### Summary of latest changes
```
+3.88 (dev)
+ * 37 new locale files: Abkhazian, Afar, Atsam, Baluchi, Bhojpuri,
+ Blin, Corsican, Erzya, Ga, Geez, Guarani, Haryanvi, Inuktitut,
+ Jju, Ligurian, Muscogee, Northern Sotho, Nyanja, N’Ko,
+ Papiamento, Prussian, Rajasthani, Saho, Sicilian, Silesian,
+ South Ndebele, Southern Sotho, Swati, Taroko, Tigre, Tok Pisin,
+ Tsonga, Tswana, Tyap, Venda, Volapük, Wolaytta.
+
3.87 2023-03-28
* Fixes:
- Typo in 'syllable' counter name in Korean (#225).
diff --git a/babel.dtx b/babel.dtx
index 7d78831..3cc8506 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2023/03/28 v3.87 The Babel package]
+\ProvidesFile{babel.dtx}[2023/04/02 v3.87.09276 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -5295,8 +5295,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.87>>
-%<<date=2023/03/28>>
+%<<version=3.87.09276>>
+%<<date=2023/04/02>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -10307,7 +10307,8 @@ help from Bernd Raichle, for which I am grateful.
\fi}%
\ifnum\@tempcnta=\m at ne
\bbl at warning{%
- Requested 'hyphenrules=' for '\languagename' not found.\\%
+ Requested 'hyphenrules' for '\languagename' not found:\\%
+ \bbl at KVP@hyphenrules.\\%
Using the default value. Reported}%
\fi
\fi
@@ -10583,7 +10584,7 @@ help from Bernd Raichle, for which I am grateful.
% create correctly the correspondig info.
%
% \begin{macrocode}
-\def\bbl at ini@extension#1{%
+\def\bbl at ini@extension#1{% TODO. Remove?
\def\bbl at tempa{#1}%
\bbl at replace\bbl at tempa{extension.}{}%
\bbl at replace\bbl at tempa{.tag.bcp47}{}%
@@ -10619,7 +10620,10 @@ help from Bernd Raichle, for which I am grateful.
\bbl at exportkey{sotf}{identification.script.tag.opentype}{DFLT}%
\bbl at exportkey{rbcp}{identification.region.tag.bcp47}{}%
\bbl at exportkey{vbcp}{identification.variant.tag.bcp47}{}%
- \bbl at moreinfo
+ \bbl at exportkey{ext/t}{identification.extension.t.tag.bcp47}{}%
+ \bbl at exportkey{ext/u}{identification.extension.u.tag.bcp47}{}%
+ \bbl at exportkey{ext/x}{identification.extension.x.tag.bcp47}{}%
+ \bbl at moreinfo % TODO. Remove?
% Also maps bcp47 -> languagename
\ifbbl at bcptoname
\bbl at csarg\xdef{bcp at map@\bbl at cl{tbcp}}{\languagename}%
@@ -11251,9 +11255,27 @@ help from Bernd Raichle, for which I am grateful.
\@namedef{bbl at info@script.tag.opentype}{sotf}
\@namedef{bbl at info@region.tag.bcp47}{rbcp}
\@namedef{bbl at info@variant.tag.bcp47}{vbcp}
-% Extensions are dealt with in a special way
-% Now, an internal \LaTeX{} macro:
-\providecommand\BCPdata[1]{\localeinfo*{#1.tag.bcp47}}
+\@namedef{bbl at info@extension.t.tag.bcp47}{ext/t}
+\@namedef{bbl at info@extension.u.tag.bcp47}{ext/u}
+\@namedef{bbl at info@extension.x.tag.bcp47}{ext/x}
+% \end{macrocode}
+%
+% \LaTeX{} needs to know the BCP 47 codes for some features. For that,
+% it expects |\BCPdata| to be defined. While |language|, |region|,
+% |script|, and |variant| are recognized, |extension.|\m{s} for
+% singletons may change.
+%
+% \begin{macrocode}
+\providecommand\BCPdata{}
+\ifx\renewcommand\@undefined\else % For plain. TODO. It’s a quick fix
+ \renewcommand\BCPdata[1]{%
+ \bbl at ifunset{bbl at info@#1.tag.bcp47}%
+ {\bbl at error{Unknown field '#1' in \string\BCPdata.\\%
+ Perhaps you misspelled it.}%
+ {See the manual for details.}}%
+ {\bbl at ifunset{bbl@\csname bbl at info@#1.tag.bcp47\endcsname @\languagename}{}%
+ {\bbl at cs{\csname bbl at info@#1.tag.bcp47\endcsname @\languagename}}}}
+\fi
% \end{macrocode}
%
% With version 3.75 |\BabelEnsureInfo| is executed always, but there is
diff --git a/babel.ins b/babel.ins
index 00ede1d..57d0fc8 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{2023/03/28}
+\def\filedate{2023/04/02}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index d729e48..c78eba2 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index caebb44..72b44d1 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2023/03/28 v3.87]
+\ProvidesFile{bbcompat.dtx}[2023/04/02 v3.87.09276]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/locale/iu/babel-iu.ini b/locale/iu/babel-iu.ini
index e520574..120cd33 100644
--- a/locale/iu/babel-iu.ini
+++ b/locale/iu/babel-iu.ini
@@ -117,7 +117,7 @@ postexhyphenchar =
hyphenationmin =
[characters]
-ranges = 1400..167F
+ranges = 1400..167F 18B0..18FF
delimiters.quotes =
auxiliary =
exemplarCharacters = [ᐃ ᐄ ᐅ ᐆ ᐊ ᐋ ᐱ ᐲ ᐳ ᐴ ᐸ ᐹ ᑉ ᑎ ᑏ ᑐ ᑑ ᑕ ᑖ ᑦ ᑭ ᑮ ᑯ ᑰ ᑲ ᑳ ᒃ ᒋ ᒌ ᒍ ᒎ ᒐ ᒑ ᒡ ᒥ ᒦ ᒧ ᒨ ᒪ ᒫ ᒻ ᓂ ᓃ ᓄ ᓅ ᓇ ᓈ ᓐ ᓕ ᓖ ᓗ ᓘ ᓚ ᓛ ᓪ ᓯ ᓰ ᓱ ᓲ ᓴ ᓵ ᔅ ᔨ ᔩ ᔪ ᔫ ᔭ ᔮ ᔾ ᕆ ᕇ ᕈ ᕉ ᕋ ᕌ ᕐ ᕕ ᕖ ᕗ ᕘ ᕙ ᕚ ᕝ ᕿ ᖀ ᖁ ᖂ ᖃ ᖅ ᖏ ᖑ ᖒ ᖓ ᖔ ᖕ ᙱ ᙲ ᙳ ᙴ ᙵ ᙶ ᖖ ᖠ ᖡ ᖢ ᖣ ᖤ ᖥ ᖦ]
More information about the latex3-commits
mailing list.