[latex3-commits] [latex3/babel] main: First attempt for #25 (basic). (dcd55142)

github at latex-project.org github at latex-project.org
Sun Jun 30 17:33:38 CEST 2024


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

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

commit dcd551427599879303b7a047b6fd3aef0a77120e
Author: Javier <email at localhost>
Date:   Sun Jun 30 17:33:38 2024 +0200

    First attempt for #25 (basic).
    
    * Too easy? Now basic-r fails.


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

dcd551427599879303b7a047b6fd3aef0a77120e
 README.md      |   6 ++++--
 babel-code.pdf | Bin 650256 -> 650625 bytes
 babel.dtx      |  21 ++++++++++++++-------
 babel.ins      |   2 +-
 babel.pdf      | Bin 423559 -> 423817 bytes
 bbcompat.dtx   |   2 +-
 6 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md
index c84cd438..3f5d12bb 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-## Babel 24.7
+## Babel 24.7.54769
 
-2024-06-26
+(dev)
 
 `babel` is the multilingual framework for localizing documents in
 LaTeX, LuaLaTeX, XeLaTeX. It manages culturally-determined
@@ -48,6 +48,8 @@ respective authors.
 
 ### Summary of latest changes
 ```
+24.8  (dev)
+
 24.7  2024-06-26
       * Improvements in some locales:
         - Filipino (thanks to Leothelion, @ponte-vecchio)
diff --git a/babel-code.pdf b/babel-code.pdf
index ab705faf..785d170e 100644
Binary files a/babel-code.pdf and b/babel-code.pdf differ
diff --git a/babel.dtx b/babel.dtx
index 19db3457..65ae4b15 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2024/06/26 v24.7 The Babel package]
+\ProvidesFile{babel.dtx}[2024/06/30 v24.7.54769 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -5479,8 +5479,8 @@ wouldn’t exist.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=24.7>>
-%<<date=2024/06/26>>
+%<<version=24.7.54769>>
+%<<date=2024/06/30>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -16776,7 +16776,7 @@ Babel.ranges = {
  {0x07C0, 0x085F, 'r'},
  {0x0860, 0x086F, 'al'},
  {0x08A0, 0x08FF, 'al'},
- {0xE000, 0xF8FF, 'on'}, -- PUA
+ -- {0xE000, 0xF8FF, 'on'}, -- PUA
  {0xFB1D, 0xFB4F, 'r'},
  {0xFB50, 0xFDFF, 'al'},
  {0xFE70, 0xFEFF, 'al'},
@@ -16784,8 +16784,8 @@ Babel.ranges = {
  {0x1E800, 0x1E8DF, 'r'},
  {0x1E900, 0x1E95F, 'r'},
  {0x1F300, 0x1F9FF, 'on'},
- {0xF0000, 0xFFFFD, 'on'}, -- PUA
- {0x100000, 0x10FFFD, 'on'} -- PUA
+ -- {0xF0000, 0xFFFFD, 'on'}, -- PUA
+ -- {0x100000, 0x10FFFD, 'on'} -- PUA
 }
 
 Babel.characters = {
@@ -23254,6 +23254,7 @@ function Babel.bidi(head, ispar, hdir)
   local has_hyperlink = false
 
   local ATDIR = Babel.attr_dir
+  local attr_d
 
   local save_outer
   local temp = node.get_attribute(head, ATDIR)
@@ -23288,6 +23289,8 @@ function Babel.bidi(head, ispar, hdir)
     if glyph_not_symbol_font(item)   
        or (item.id == 7 and item.subtype == 2) then
 
+      if node.get_attribute(item, ATDIR) < 0 then goto nextnode end
+      
       local d_font = nil
       local item_r
       if item.id == 7 and item.subtype == 2 then
@@ -23439,7 +23442,11 @@ function Babel.bidi(head, ispar, hdir)
 
     outer_first = nil
     
-  end
+    node.set_attribute(item, ATDIR, -1)
+    
+    ::nextnode::
+
+  end -- for each node
 
   -- TODO -- repeated here in case EN/ET is the last node. Find a
   -- better way of doing things:
diff --git a/babel.ins b/babel.ins
index 9c640a94..7bfd143d 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{2024/06/26}
+\def\filedate{2024/06/30}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 93ae780e..23f16b40 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index d88b690b..89e91ac9 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2024/06/26 v24.7]
+\ProvidesFile{bbcompat.dtx}[2024/06/30 v24.7.54769]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.