[latex3-commits] [git/LaTeX3-latex3-babel] main: \BabelEnsureInfo made the default. Set script ranges with characters/ranges. (8938fe3)

Javier email at dante.de
Sat May 14 13:21:03 CEST 2022


Repository : https://github.com/latex3/babel
On branch  : main
Link       : https://github.com/latex3/babel/commit/8938fe365fc07a810c0864f37f52009504ec2171

>---------------------------------------------------------------

commit 8938fe365fc07a810c0864f37f52009504ec2171
Author: Javier <email at localhost>
Date:   Sat May 14 13:21:03 2022 +0200

    \BabelEnsureInfo made the default. Set script ranges with characters/ranges.


>---------------------------------------------------------------

8938fe365fc07a810c0864f37f52009504ec2171
 README.md    |  16 ++++++++++++----
 babel.dtx    |  22 +++++++++++++++++++---
 babel.ins    |   2 +-
 babel.pdf    | Bin 857683 -> 858142 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 33 insertions(+), 9 deletions(-)

diff --git a/README.md b/README.md
index 19f6ed6..3e20b09 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-## Babel 3.75.2734
+## Babel 3.75.2737
+
+''(Development.)''
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -47,9 +49,15 @@ respective authors.
 ### Summary of latest changes
 ```
 3.75   2022-05-?? (dev)
-       * Fixes: diagbox (#43)
-       * Caption names of 'chapter' and 'part' swapped in Chinese (#180).
-       * Captions after numbers in Lithuanian.
+       * Fixes:
+         - Misplaced rule un diagbox (#43)
+         - Caption names of 'chapter' and 'part' swapped in Chinese (#180).
+         - Captions after numbers in Lithuanian.
+       * The key `character`/`ranges` in `ini` files now sets the
+         corresponding Unicode script ranges (used by `onchar`).
+       * `\BabelEnsureInfo` is active by default, to make sure the BCP47
+         codes are always available, as they may be required by the
+         LaTeX kernel.
 
 3.74   2022-04-30
        * Fixes:
diff --git a/babel.dtx b/babel.dtx
index 60a57a3..30c9998 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2022/05/05 v3.75.2728 The Babel package]
+\ProvidesFile{babel.dtx}[2022/05/14 v3.75.2737 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -5112,8 +5112,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.75.2728>>
-%<<date=2022/05/05>>
+%<<version=3.75.2737>>
+%<<date=2022/05/14>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -9743,6 +9743,11 @@ help from Bernd Raichle, for which I am grateful.
   \fi
   \ifx\bbl at KVP@language\@nil\else
     \bbl at csarg\edef{lname@#2}{\bbl at KVP@language}%
+  \fi
+  \ifcase\bbl at engine\or
+    \bbl at ifunset{bbl at chrng@\languagename}{}%
+      {\directlua{
+         Babel.set_chranges_b('\bbl at cl{sbcp}', '\bbl at cl{chrng}') }}%
   \fi
    % == onchar ==
   \ifx\bbl at KVP@onchar\@nil\else
@@ -10974,6 +10979,8 @@ help from Bernd Raichle, for which I am grateful.
   \bbl at foreach\bbl at loaded{{%
     \def\languagename{##1}%
     \bbl at ensureinfo{##1}}}}
+\AtEndOfPackage{% Test for plain.
+  \ifx\@undefined\bbl at loaded\else\BabelEnsureInfo\fi}
 %    \end{macrocode}
 %
 % More general, but non-expandable, is |\getlocaleproperty|. To inspect
@@ -13516,6 +13523,15 @@ help from Bernd Raichle, for which I am grateful.
     end
     return has_bidi
   end
+  function Babel.set_chranges_b (script, chrng) 
+    if chrng == '' then return end
+    texio.write('Replacing ' .. script .. ' script ranges')
+    Babel.script_blocks[script] = {}
+    for s, e in string.gmatch(chrng..' ', '(.-)%.%.(.-)%s') do
+      table.insert(
+        Babel.script_blocks[script], {tonumber(s,16), tonumber(e,16)})
+    end
+  end
 }
 \endgroup
 \ifx\newattribute\@undefined\else
diff --git a/babel.ins b/babel.ins
index 289b286..fab5ed7 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/05/05}
+\def\filedate{2022/05/14}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 2ca0739..1ec5d2a 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index b8fb288..f6833db 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2022/05/05 v3.75.2728]
+\ProvidesFile{bbcompat.dtx}[2022/05/14 v3.75.2737]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.