[latex3-commits] [git/LaTeX3-latex3-babel] master: Disabled babel mirroring with harftex. \prehyphenchar set to in some SAE scripts. (9114979)

Javier jbezos at dante.de
Sun Jun 16 12:33:07 CEST 2019


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/9114979007f009550c2c4108650b422a78353540

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

commit 9114979007f009550c2c4108650b422a78353540
Author: Javier <jbezos at localhost>
Date:   Sun Jun 16 12:33:07 2019 +0200

    Disabled babel mirroring with harftex. \prehyphenchar set to in some SAE scripts.


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

9114979007f009550c2c4108650b422a78353540
 README.md                   |    8 ++++++--
 babel.dtx                   |   36 ++++++++++++++++++++++++++++--------
 babel.ins                   |    2 +-
 babel.pdf                   |  Bin 810696 -> 811596 bytes
 bbcompat.dtx                |    2 +-
 locale/as/babel-as.ini      |    6 +++---
 locale/bn/babel-bn.ini      |    6 +++---
 locale/gu/babel-gu.ini      |    6 +++---
 locale/hi/babel-hi.ini      |    6 +++---
 locale/kn/babel-kn.ini      |    6 +++---
 locale/ml/babel-ml.ini      |    6 +++---
 locale/mr/babel-mr.ini      |    6 +++---
 locale/or/babel-or.ini      |    6 +++---
 locale/pa/babel-pa-Guru.ini |    6 +++---
 locale/pa/babel-pa.ini      |    6 +++---
 locale/ta/babel-ta.ini      |    6 +++---
 locale/te/babel-te.ini      |    6 +++---
 samples/harf-fa-ml.pdf      |  Bin 42215 -> 42196 bytes
 samples/harf-fa-ml.tex      |    4 +---
 19 files changed, 73 insertions(+), 51 deletions(-)

diff --git a/README.md b/README.md
index 79dc3e2..fe115dc 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,8 @@
-## Babel 3.32
+## Babel 3.32.1674
+
+**NOTE.** Release 3.32.1674 disables mirroring with bidi=basic with
+Harftex. Also, \prehyphenchar is set to 0 in most SE Asian scripts.
+
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -151,4 +155,4 @@ respective authors.
 ```
 
 Javier Bezos
-2019/06/03
+2019/06/16
diff --git a/babel.dtx b/babel.dtx
index 5cb3973..11ca24d 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2019/06/03 v3.32 The Babel package]
+\ProvidesFile{babel.dtx}[2019/06/16 v3.32.1674 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -4035,8 +4035,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.32>>
-%<<date=2019/06/03>>
+%<<version=3.32.1674>>
+%<<date=2019/06/16>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -4576,7 +4576,10 @@ help from Bernd Raichle, for which I am grateful.
         or luatexbase.priority_in_callback('hpack_filter',
            'luaotfload.node_processor')
         or nil)
-    }}
+    }%
+    \@ifpackageloaded{harfload}%
+      {\directlua{ Babel.mirroring_enabled = false }}%
+      {}}
   \let\bbl at tempa\relax
   \@ifpackagewith{babel}{bidi=basic}%
     {\def\bbl at tempa{basic}}%
@@ -8298,8 +8301,8 @@ help from Bernd Raichle, for which I am grateful.
           {{\bbl at exp{\\\addlanguage\<l@##1>}}}%
           {}%
         \bbl at ifunset{l@##1}%
-           {}%
-           {\bbl at exp{\let\bbl at tempa\<l@##1>}}%
+          {}%
+          {\bbl at exp{\let\bbl at tempa\<l@##1>}}%
       \fi}%
   \fi
   \ifx\bbl at tempa\relax %        if no opt or no language in opt found
@@ -8314,7 +8317,16 @@ help from Bernd Raichle, for which I am grateful.
     {\bbl at ifunset{l@#1}%         no hyphenrules found - fallback
        {\bbl at exp{\\\adddialect\<l@#1>\language}}%
        {}}%                      so, l@<lang> is ok - nothing to do
-    {\bbl at exp{\\\adddialect\<l@#1>\bbl at tempa}}}%  found in opt list or ini
+    {\bbl at exp{\\\adddialect\<l@#1>\bbl at tempa}}% found in opt list or ini
+  \ifodd\bbl at engine
+    \bbl at ifunset{bbl at prehc@\languagename}%
+      {}%
+      {\bbl at exp{%
+         \\\bbl at ifblank{\@nameuse{bbl at prehc@#1}}%
+           {}%
+           {{\language\<l@\languagename>%
+             \prehyphenchar=\@nameuse{bbl at prehc@\languagename}\relax}}}}%
+  \fi}
 %    \end{macrocode}
 %
 % The reader of |ini| files. There are 3 possible cases: a section name
@@ -8410,6 +8422,7 @@ help from Bernd Raichle, for which I am grateful.
 \def\bbl at after@ini{%
   \bbl at exportkey{lfthm}{typography.lefthyphenmin}{2}%
   \bbl at exportkey{rgthm}{typography.righthyphenmin}{3}%
+  \bbl at exportkey{prehc}{typography.prehyphenchar}{}%
   \bbl at exportkey{hyphr}{typography.hyphenrules}{}%
   \bbl at exportkey{intsp}{typography.intraspace}{}%
   \bbl at exportkey{jstfy}{typography.justify}{w}%
@@ -18748,6 +18761,13 @@ Babel.fontmap[1] = {}      -- r
 Babel.fontmap[2] = {}      -- al/an
 
 Babel.bidi_enabled = true
+Babel.mirroring_enabled = true
+
+-- Temporary:
+
+if harf then 
+  Babel.mirroring_enabled = false
+end
 
 require('babel-data-bidi.lua')
 
@@ -19037,7 +19057,7 @@ function Babel.bidi(head, ispar, hdir)
       for r = first_on, q - 1 do
         nodes[r][2] = temp
         item = nodes[r][1]    -- MIRRORING
-        if item.id == GLYPH and temp == 'r' then
+        if Babel.mirroring_enabled and item.id == GLYPH and temp == 'r' then
           item.char = characters[item.char].m or item.char
         end
       end
diff --git a/babel.ins b/babel.ins
index bb2a964..d3e183d 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/06/03}
+\def\filedate{2019/06/16}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 2705ade..0e94e81 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index dd984f6..cf67bba 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2019/06/03 v3.32]
+\ProvidesFile{bbcompat.dtx}[2019/06/16 v3.32.1674]
 %</dtx>
 %
 %% File 'bbcompat.dtx'
diff --git a/locale/as/babel-as.ini b/locale/as/babel-as.ini
index 2a3c80e..0ba54fd 100644
--- a/locale/as/babel-as.ini
+++ b/locale/as/babel-as.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = অসমীয়া
 name.english = Assamese
 name.babel = assamese
@@ -136,7 +136,7 @@ hyphenrules = assaseme
 lefthyphenmin = 
 righthyphenmin = 
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/bn/babel-bn.ini b/locale/bn/babel-bn.ini
index ebe1bb5..9a5dc39 100644
--- a/locale/bn/babel-bn.ini
+++ b/locale/bn/babel-bn.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = বাংলা
 name.english = Bangla
 name.babel = bengali
@@ -113,7 +113,7 @@ hyphenrules = bengali
 lefthyphenmin = 2
 righthyphenmin = 2
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/gu/babel-gu.ini b/locale/gu/babel-gu.ini
index c7d3c2a..617b4c2 100644
--- a/locale/gu/babel-gu.ini
+++ b/locale/gu/babel-gu.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = ગુજરાતી
 name.english = Gujarati
 name.babel = gujarati
@@ -136,7 +136,7 @@ hyphenrules = gujarati
 lefthyphenmin = 
 righthyphenmin = 
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/hi/babel-hi.ini b/locale/hi/babel-hi.ini
index 735e539..365fd0b 100644
--- a/locale/hi/babel-hi.ini
+++ b/locale/hi/babel-hi.ini
@@ -12,8 +12,8 @@
 
 [identification]
 charset = utf8
-version = 1.0
-date = 2019-01-31
+version = 1.1
+date = 2019-06-16
 name.local = हिन्दी
 name.english = Hindi
 name.babel = hindi
@@ -163,7 +163,7 @@ hyphenrules = hindi
 lefthyphenmin = 
 righthyphenmin = 
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/kn/babel-kn.ini b/locale/kn/babel-kn.ini
index 9896e92..eed7f75 100644
--- a/locale/kn/babel-kn.ini
+++ b/locale/kn/babel-kn.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = ಕನ್ನಡ
 name.english = Kannada
 name.babel = kannada
@@ -118,7 +118,7 @@ hyphenrules = kannada
 lefthyphenmin = 2
 righthyphenmin = 2
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/ml/babel-ml.ini b/locale/ml/babel-ml.ini
index 9343955..f41fa44 100644
--- a/locale/ml/babel-ml.ini
+++ b/locale/ml/babel-ml.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = മലയാളം
 name.english = Malayalam
 name.babel = malayalam
@@ -124,7 +124,7 @@ hyphenrules = malayalam
 lefthyphenmin = 2
 righthyphenmin = 2
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/mr/babel-mr.ini b/locale/mr/babel-mr.ini
index eeba0f7..6e095b0 100644
--- a/locale/mr/babel-mr.ini
+++ b/locale/mr/babel-mr.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = मराठी
 name.english = Marathi
 name.babel = marathi
@@ -113,7 +113,7 @@ hyphenrules = marathi
 lefthyphenmin = 2
 righthyphenmin = 2
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/or/babel-or.ini b/locale/or/babel-or.ini
index 71b11dc..3f09cb3 100644
--- a/locale/or/babel-or.ini
+++ b/locale/or/babel-or.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = ଓଡ଼ିଆ
 name.english = Odia
 name.babel = oriya
@@ -136,7 +136,7 @@ hyphenrules = oriya
 lefthyphenmin = 
 righthyphenmin = 
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/pa/babel-pa-Guru.ini b/locale/pa/babel-pa-Guru.ini
index e190a51..5133621 100644
--- a/locale/pa/babel-pa-Guru.ini
+++ b/locale/pa/babel-pa-Guru.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = ਪੰਜਾਬੀ
 name.english = Punjabi
 name.babel = punjabi-gurmukhi
@@ -137,7 +137,7 @@ hyphenrules = punjabi
 lefthyphenmin = 
 righthyphenmin = 
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/pa/babel-pa.ini b/locale/pa/babel-pa.ini
index 7983856..234405d 100644
--- a/locale/pa/babel-pa.ini
+++ b/locale/pa/babel-pa.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = ਪੰਜਾਬੀ
 name.english = Punjabi
 name.babel = punjabi
@@ -136,7 +136,7 @@ hyphenrules = punjabi
 lefthyphenmin = 
 righthyphenmin = 
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/ta/babel-ta.ini b/locale/ta/babel-ta.ini
index 6ebfb1d..78e1122 100644
--- a/locale/ta/babel-ta.ini
+++ b/locale/ta/babel-ta.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = தமிழ்
 name.english = Tamil
 name.babel = tamil
@@ -136,7 +136,7 @@ hyphenrules = tamil
 lefthyphenmin = 2
 righthyphenmin = 2
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/locale/te/babel-te.ini b/locale/te/babel-te.ini
index 4880bc0..9f81944 100644
--- a/locale/te/babel-te.ini
+++ b/locale/te/babel-te.ini
@@ -11,8 +11,8 @@
 
 [identification]
 charset = utf8
-version = 1.1
-date = 2018-04-11
+version = 1.2
+date = 2019-06-16
 name.local = తెలుగు
 name.english = Telugu
 name.babel = telugu
@@ -113,7 +113,7 @@ hyphenrules = telugu
 lefthyphenmin = 2
 righthyphenmin = 2
 hyphenchar = 
-prehyphenchar = 
+prehyphenchar = 0
 posthyphenchar = 
 exhyphenchar = 
 preexhyphenchar = 
diff --git a/samples/harf-fa-ml.pdf b/samples/harf-fa-ml.pdf
index ca63a65..b891ca5 100644
Binary files a/samples/harf-fa-ml.pdf and b/samples/harf-fa-ml.pdf differ
diff --git a/samples/harf-fa-ml.tex b/samples/harf-fa-ml.tex
index 2a16245..22c6e68 100644
--- a/samples/harf-fa-ml.tex
+++ b/samples/harf-fa-ml.tex
@@ -7,7 +7,7 @@
 \babelprovide[main, import]{persian}
 \babelprovide[import]{malayalam}
 
-\babelfont{rm}[RawFeature={mode=harf};-rtlm]{Amiri}
+\babelfont{rm}[RawFeature={mode=harf}]{Amiri}
 \babelfont[malayalam]{rm}[RawFeature={mode=harf}]{FreeSerif} %{Kartika}
 
 \begin{document}
@@ -28,8 +28,6 @@
 \medskip
 \selectlanguage{malayalam}
 
-\prehyphenchar=0       % It must be set by Babel!
-
 അക്ഷരങ്ങൾ രൂപപ്പെടുത്താനുപയോഗിക്കുന്ന ഒരു സോഫ്റ്റ്‍വെയർ ലൈബ്രറിയാണ്
 ഹാർഫ്ബസ്. യുണികോഡ് അക്ഷരങ്ങളെ ഗ്ലിഫുകളായി രൂപപ്പെടുത്തുന്നതിനും അവയുടെ
 സ്ഥാനം നിർണ്ണയിക്കുന്നതിനുമാണ് ഹാർഫ്ബസ് ഉപയോഗിക്കുന്നത്. വിവിധ





More information about the latex3-commits mailing list