[latex3-commits] [git/LaTeX3-latex3-babel] main: tabular improved. Fix #223. (71850fe)

Javier email at dante.de
Sat Feb 4 20:29:12 CET 2023


Repository : https://github.com/latex3/babel
On branch  : main
Link       : https://github.com/latex3/babel/commit/71850fe7e95548fd911cc9f5a133bfc9853936d3

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

commit 71850fe7e95548fd911cc9f5a133bfc9853936d3
Author: Javier <email at localhost>
Date:   Sat Feb 4 20:29:12 2023 +0100

    tabular improved. Fix #223.


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

71850fe7e95548fd911cc9f5a133bfc9853936d3
 README.md    |   5 ++++-
 babel.dtx    |  41 +++++++++++++++++------------------------
 babel.ins    |   2 +-
 babel.pdf    | Bin 918355 -> 917817 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 23 insertions(+), 27 deletions(-)

diff --git a/README.md b/README.md
index aa84a05..6e39bb3 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.85.2998
+## Babel 3.85.03581
 
 (Draft)
 
@@ -48,6 +48,9 @@ respective authors.
 
 ### Summary of latest changes
 ```
+3.86  (dev)
+      * Improved tabular in bidi texts (lua).
+
 3.85  2023-01-23
       * A high-level interface to enable and disable transforms (lua).
       * Font-dependent transforms (lua).
diff --git a/babel.dtx b/babel.dtx
index d73127c..2781ce4 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2023/01/30 v3.85.2998 The Babel package]
+\ProvidesFile{babel.dtx}[2023/02/04 v3.85.03581 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -5286,8 +5286,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.85.2998>>
-%<<date=2023/01/30>>
+%<<version=3.85.03581>>
+%<<date=2023/02/04>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -14914,21 +14914,8 @@ end
 %
 \ifnum\bbl at bidimode>\z@
   \def\bbl at insidemath{0}%
-  \def\bbl at mathboxdir{%
-    \ifcase\bbl at thetextdir\relax
-      \everyhbox{\bbl at mathboxdir@aux L}%
-    \else
-      \everyhbox{\bbl at mathboxdir@aux R}%
-     \fi}
-  \def\bbl at mathboxdir@aux#1{%
-    \@ifnextchar\egroup{}{\textdir T#1T\relax}}
-  \def\bbl at everymath{%
-    \bbl at mathboxdir
-    \def\bbl at insidemath{1}}
-  \def\bbl at everydisplay{%
-    \bbl at mathboxdir
-    \def\bbl at everymath{\bbl at mathboxdir}%
-    \def\bbl at insidemath{2}}
+  \def\bbl at everymath{\def\bbl at insidemath{1}}
+  \def\bbl at everydisplay{\def\bbl at insidemath{2}}
   \frozen at everymath\expandafter{%
     \expandafter\bbl at everymath\the\frozen at everymath}
   \frozen at everydisplay\expandafter{%
@@ -14938,12 +14925,18 @@ end
       function Babel.math_box_dir(head)
         if not (token.get_macro('bbl at insidemath') == '0') then
           if Babel.hlist_has_bidi(head) then
-            local d = node.new(node.id'dir')
-            d.dir = '+TRT'
-            node.insert_before(head, node.has_glyph(head), d)
-            for item in node.traverse(head) do
-              node.set_attribute(item,
-                Babel.attr_dir, token.get_macro('bbl at thedir'))
+            if (node.get_attribute(head, Babel.attr_dir)&0x3) == 0 then 
+              local d = node.new(node.id'dir')
+              d.dir = '+TLT'
+              node.insert_before(head, node.has_glyph(head), d)
+            else
+              local d = node.new(node.id'dir')
+              d.dir = '+TRT'
+              node.insert_before(head, node.has_glyph(head), d)
+              for item in node.traverse(head) do
+                node.set_attribute(item,
+                  Babel.attr_dir, token.get_macro('bbl at thedir'))
+              end
             end
           end
         end
diff --git a/babel.ins b/babel.ins
index 7d1f083..156f055 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/01/30}
+\def\filedate{2023/02/04}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 5c9b5f3..2cdb1e3 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 36d1af0..5dd5d02 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2023/01/30 v3.85.2998]
+\ProvidesFile{bbcompat.dtx}[2023/02/04 v3.85.03581]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.