[latex3-commits] [git/LaTeX3-latex3-babel] main: Closed #26 (new counters*). Closed #125. (7548e30)

Javier email at dante.de
Thu Dec 1 18:27:14 CET 2022


Repository : https://github.com/latex3/babel
On branch  : main
Link       : https://github.com/latex3/babel/commit/7548e30700349480d7b982ea568e97468473deb3

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

commit 7548e30700349480d7b982ea568e97468473deb3
Author: Javier <email at localhost>
Date:   Thu Dec 1 18:27:14 2022 +0100

    Closed #26 (new counters*). Closed #125.


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

7548e30700349480d7b982ea568e97468473deb3
 README.md    |   4 +++-
 babel.dtx    |  61 ++++++++++++++++++++++++++++++++++++++++++-----------------
 babel.ins    |   2 +-
 babel.pdf    | Bin 897584 -> 898231 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 49 insertions(+), 20 deletions(-)

diff --git a/README.md b/README.md
index d3e4b75..43b6483 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.83
+## Babel 3.83.2938
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +46,8 @@ respective authors.
 
 ### Summary of latest changes
 ```
+3.84  (dev)
+
 3.83  2022-11-30
       * Improved Punjabi, thanks to Arvinder Singh (@punjab).
       * Compatibility with 'lscape', thanks to Salim Bou (@seloumi).
diff --git a/babel.dtx b/babel.dtx
index 7926056..2f9bd45 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2022/11/30 v3.83 The Babel package]
+\ProvidesFile{babel.dtx}[2022/12/01 v3.83.2938 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -2559,8 +2559,8 @@ for example:
 In other engines it just suppresses hyphenation (because the pattern
 list is empty).
 
-\New{3.58} Another special value is |unhyphenated|, which activates a
-line breking mode that allows spaces to be stretched to arbitrary amounts.
+\New{3.58} Another special value is |unhyphenated|, which is an
+alternative to |justification=unhyphenated|.
 
 \Describe{main}{} This valueless option makes the language the main one
 (thus overriding that set when \babel\ is loaded). Only in newly defined
@@ -2668,14 +2668,27 @@ Currently used only in Southeast Asian scrips, like Thai. Ignored if 0
 \Describe{transforms=}{\meta{transform-list}}
 See section~\ref{transforms}.
 
-\Describe{justification=}{\texttt{kashida} $\string|$
-\texttt{elongated} $\string|$ \texttt{unhyphenated}
-$\string|$ \texttt{padding}}
-\New{3.59} There are currently three options, mainly for the Arabic
-script. It sets the linebreaking and justification method, which can be
-based on the the \textsc{arabic tatweel} character or in the
-‘justification alternatives’ OpenType table (\texttt{jalt}). For an
-explanation see the
+\Describe{justification=}{\texttt{unhyphenated} $\string|$
+\texttt{kashida} $\string|$ \texttt{elongated} $\string|$
+\texttt{padding}}
+\New{3.59} There are currently 4 options. Note they are language
+dependent, so that they will not be applied to other languages.
+
+The first one (|unhyphenated|) activates a line breaking mode that
+allows spaces to be stretched to arbitrary amounts. Although for
+European standards the result may look odd, in some writing systems,
+like Malayalam and other Indic scripts, this has been the customary
+(although not always the desired) practice. Because of that, no locale
+sets currently this mode by default (Amharic is an exception). Unlike
+|\sloppy|, the |\hfuzz| and the |\vfuzz| are not changed, because this
+line breaking mode is not really ‘sloppy’ (in other words, overfull
+boxes are reported as usual).
+
+The second and the third are for the Arabic script. It sets the
+linebreaking and justification method, which can be based on the the
+\textsc{arabic tatweel} character or in the ‘justification
+alternatives’ OpenType table (\texttt{jalt}). For an explanation see
+the
 \href{https://latex3.github.io/babel/news/whats-new-in-babel-3.59.html}%
   {\babel\ site}.
 
@@ -3732,8 +3745,7 @@ required by all engines.
   rendered in that order with |bidi=basic| (as a decimal number), in
   |\arabic{c1}.\arabic{c2}| the visual order is \textit{c2.c1}. Of
   course, you may always adjust the order by changing the language, if
-  necessary.\footnote{Next on the roadmap are counters and numeral
-  systems in general. Expect some minor readjustments.}
+  necessary.
 
 \item[lists] required in \xetex{} and \pdftex{}, but only in
 bidirectional (with both R and L paragraphs) documents in \luatex{}.
@@ -5188,8 +5200,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.83>>
-%<<date=2022/11/30>>
+%<<version=3.83.2938>>
+%<<date=2022/12/01>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -10248,6 +10260,11 @@ help from Bernd Raichle, for which I am grateful.
           {}%
           {\bbl at exp{\let\bbl at tempa\<l@##1>}}%
       \fi}%
+    \ifx\bbl at tempa\relax 
+      \bbl at warning{%
+        Requested 'hyphenrules=' for '\languagename' not found.\\%
+        Using the default value. Reported}%
+    \fi
   \fi
   \ifx\bbl at tempa\relax %         if no opt or no language in opt found
     \ifx\bbl at KVP@import\@nnil
@@ -12516,8 +12533,8 @@ help from Bernd Raichle, for which I am grateful.
 %    \begin{macrocode}
 \ifx\bbl at main@language\@undefined
   \bbl at info{%
-    You haven't specified a language. I'll use 'nil'\\%
-    as the main language. Reported}
+    You haven't specified a language as a class or package\\%
+    option. I'll load 'nil'. Reported}
     \bbl at load@language{nil}
 \fi
 %</package>
@@ -15045,6 +15062,16 @@ end
 %      there are some additional readjustments for |bidi=default|.
 %
 %    \begin{macrocode}
+\IfBabelLayout{counters*}%
+  {\bbl at add\bbl at opt@layout{.counters.}%
+   \AddToHook{shipout/before}{%
+     \let\bbl at tempa\babelsublr
+     \let\babelsublr\@firstofone
+     \let\bbl at save@thepage\thepage
+     \protected at edef\thepage{\thepage}%
+     \let\babelsublr\bbl at tempa}%
+   \AddToHook{shipout/after}{%
+     \let\thepage\bbl at save@thepage}}{}
 \IfBabelLayout{counters}%
   {\let\bbl at OL@@textsuperscript\@textsuperscript
    \bbl at sreplace\@textsuperscript{\m at th}{\m at th\mathdir\pagedir}%
diff --git a/babel.ins b/babel.ins
index dddb4bc..0c4b26d 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/11/30}
+\def\filedate{2022/12/01}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 57211aa..345af21 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index e84432d..cee1ea2 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2022/11/30 v3.83]
+\ProvidesFile{bbcompat.dtx}[2022/12/01 v3.83.2938]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.