[latex3-commits] [git/LaTeX3-latex3-babel] master: Set the bidi of PUA to 'on' (re #25). (004dc36)

Javier jbezos at dante.de
Sun Oct 6 08:55:01 CEST 2019


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/004dc3688762384faf64aa53a88057347fc9f9e1

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

commit 004dc3688762384faf64aa53a88057347fc9f9e1
Author: Javier <jbezos at localhost>
Date:   Sun Oct 6 08:55:01 2019 +0200

    Set the bidi of PUA to 'on' (re #25).


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

004dc3688762384faf64aa53a88057347fc9f9e1
 README.md    |   3 ++-
 babel.dtx    |  22 +++++++++++++++-------
 babel.ins    |   2 +-
 babel.pdf    | Bin 701829 -> 701907 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index 7c516ec..320b122 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.34.1785
+## Babel 3.34.1786
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -55,6 +55,7 @@ respective authors.
        - Shorthands work in bibs and refs even with safe=none.
        - Fix - Another issue related to \ensureascii and LGR (#30)
        - (Testing) a way to re(set) values in ini files.
+       - (Temporary) hack for issue #25.
 
 3.34   2019-09-27
        - Improved compatibility for \babelfont vs \setmainfont.
diff --git a/babel.dtx b/babel.dtx
index 7be5df6..6c1fc64 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2019/10/05 v3.34.1785 The Babel package]
+\ProvidesFile{babel.dtx}[2019/10/06 v3.34.1786 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -4073,8 +4073,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.34.1785>>
-%<<date=2019/10/05>>
+%<<version=3.34.1786>>
+%<<date=2019/10/06>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -12543,19 +12543,24 @@ help from Bernd Raichle, for which I am grateful.
 
 Babel = Babel or {}
 
+-- TODO: merge ranges into characters, as meta index
+
 Babel.ranges={
  {0x0590, 0x05FF, 'r'},
  {0x0600, 0x07BF, 'al'},
  {0x07C0, 0x085F, 'r'},
  {0x0860, 0x086F, 'al'},
  {0x08A0, 0x08FF, 'al'},
+ {0xE000, 0xF8FF, 'on'}, -- PUA
  {0xFB1D, 0xFB4F, 'r'},
  {0xFB50, 0xFDFF, 'al'},
  {0xFE70, 0xFEFF, 'al'},
  {0x10800, 0x10C4F, 'r'},
  {0x1E800, 0x1E8DF, 'r'},
  {0x1E900, 0x1E95F, 'r'},
- {0x1F300, 0x1F9FF, 'on'}
+ {0x1F300, 0x1F9FF, 'on'},
+ {0xF0000, 0xFFFFD, 'on'}, -- PUA
+ {0x100000, 0x10FFFD, 'on'} -- PUA
 }
 
 Babel.characters={
@@ -18882,7 +18887,7 @@ function Babel.bidi(head, ispar)
       if mir == 'rrr' or mir == 'lrr' or mir == 'rrl' or mir == 'rlr' then
         for ch in node.traverse(node.next(last_lr)) do
           if ch == item then break end
-          if ch.id == node.id'glyph' then
+          if ch.id == node.id'glyph' and characters[ch.char] then
             ch.char = characters[ch.char].m or ch.char
           end
         end
@@ -18911,7 +18916,9 @@ function Babel.bidi(head, ispar)
 %    \begin{macrocode}
   if last_lr and outer == 'r' then
     for ch in node.traverse_id(node.id'glyph', node.next(last_lr)) do
-      ch.char = characters[ch.char].m or ch.char
+      if characters[ch.char] then
+        ch.char = characters[ch.char].m or ch.char
+      end
     end
   end
   if first_n then
@@ -19243,7 +19250,8 @@ function Babel.bidi(head, ispar, hdir)
       for r = first_on, q - 1 do
         nodes[r][2] = temp
         item = nodes[r][1]    -- MIRRORING
-        if Babel.mirroring_enabled and item.id == GLYPH and temp == 'r' then
+        if Babel.mirroring_enabled and item.id == GLYPH
+             and temp == 'r' and characters[item.char] then
           item.char = characters[item.char].m or item.char
         end
       end
diff --git a/babel.ins b/babel.ins
index ecdd6f9..be5b059 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{2019/10/05}
+\def\filedate{2019/10/06}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 73ac5e7..3c27c02 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index d2c8ac6..ee95afd 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2019/10/05 v3.34.1785]
+\ProvidesFile{bbcompat.dtx}[2019/10/06 v3.34.1786]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list