[latex3-commits] [git/LaTeX3-latex3-babel] master: Fixed lists with justification=kashida/elongated. (2cc05fc)

Javier email at dante.de
Fri May 21 17:40:47 CEST 2021


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/2cc05fc4b73d3e6818a8a57c0f94f0281275fed8

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

commit 2cc05fc4b73d3e6818a8a57c0f94f0281275fed8
Author: Javier <email at localhost>
Date:   Fri May 21 17:40:47 2021 +0200

    Fixed lists with justification=kashida/elongated.


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

2cc05fc4b73d3e6818a8a57c0f94f0281275fed8
 README.md                                   |   5 ++++-
 babel.dtx                                   |  17 ++++++++++-------
 babel.ins                                   |   2 +-
 babel.pdf                                   | Bin 844087 -> 844067 bytes
 bbcompat.dtx                                |   2 +-
 news-guides/news/whats-new-in-babel-3.59.md |   2 +-
 6 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md
index bd9cd86..ae15a68 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.59
+## Babel 3.59.2379
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +46,9 @@ respective authors.
 
 ### Summary of Latest changes
 ```
+3.60   2021-05-21
+       * Fixed lists with justification=kashida/elongated.
+       
 3.59   2021-05-16
        * Tentative kashida with user-definable rules (via transforms).
        * Fixes:
diff --git a/babel.dtx b/babel.dtx
index 76bb9a1..46dadff 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2021/05/16 v3.59 The Babel package]
+\ProvidesFile{babel.dtx}[2021/05/21 v3.59.2379 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -4967,8 +4967,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.59>>
-%<<date=2021/05/16>>
+%<<version=3.59.2379>>
+%<<date=2021/05/21>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -13842,7 +13842,7 @@ function Babel.arabic.justify(head)
   if not Babel.arabic.justify_enabled then return head end
   local d, new
   local k_list, k_item, pos_inline
-  local width, width_new, full, k_curr, wt_pos, goal
+  local width, width_new, full, k_curr, wt_pos, goal, shift
   local subst_done = false
   local elong_map = Babel.arabic.elong_map
   local last_line
@@ -13883,8 +13883,9 @@ function Babel.arabic.justify(head)
 
       if #elongs == 0 and #k_list == 0 then goto next_line end
 
-      full = line.width
-      goal = full * Babel.arabic.justify_factor % A bit crude
+      full  = line.width
+      shift = line.shift
+      goal  = full * Babel.arabic.justify_factor % A bit crude
       width = node.dimensions(line.head)    % The 'natural' width
 
       % == Elongated ==
@@ -13940,7 +13941,9 @@ function Babel.arabic.justify(head)
       % Have to be executed only if there are changes. Investigate
       % what's going on exactly.
       if subst_done then
-        node.insert_before(head, line, node.hpack(line.head, full, 'exactly'))
+        d = node.hpack(line.head, full, 'exactly')
+        d.shift = shift
+        node.insert_before(head, line, d)
         node.remove(head, line)
       end
     end % if process line
diff --git a/babel.ins b/babel.ins
index 064fd5a..f6bf8b7 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{2021/05/16}
+\def\filedate{2021/05/21}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index f8be6b4..6f237b6 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 4310c06..381c4da 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/05/16 v3.59]
+\ProvidesFile{bbcompat.dtx}[2021/05/21 v3.59.2379]
 %</dtx>
 %
 %% File 'bbcompat.dtx'
diff --git a/news-guides/news/whats-new-in-babel-3.59.md b/news-guides/news/whats-new-in-babel-3.59.md
index e5a2b65..bd8b55d 100644
--- a/news-guides/news/whats-new-in-babel-3.59.md
+++ b/news-guides/news/whats-new-in-babel-3.59.md
@@ -63,7 +63,7 @@ kashida is added to the last but one char.
   {a}
   () [ي ئ ه ش س ق ف غ ع ض ص ن م ل ك ظ ط خ ح ج ث ت ب ڢ] () 
   [ي ئ ه ق ن ك ث ت ب ا أ إ آ و ؤ ذ د ز ر ة]
-  [|،,.){]}] }
+  [|،,{.}){]}] }
 { kashida = 500 }
 \babelprehyphenation{arabic}{ () ل () [ ا أ إ آ] }{ kashida = 0 }
 ```





More information about the latex3-commits mailing list.