[latex3-commits] [git/LaTeX3-latex3-babel] master: Bump to 3.33. (e983edf)

Javier jbezos at dante.de
Fri Jul 19 18:40:01 CEST 2019


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

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

commit e983edf16e00e8c5f414a3e178d93e5609cc4c00
Author: Javier <jbezos at localhost>
Date:   Fri Jul 19 18:40:01 2019 +0200

    Bump to 3.33.


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

e983edf16e00e8c5f414a3e178d93e5609cc4c00
 README.md    |  24 ++++----------
 babel.dtx    | 104 ++++++++++++++++++++++++++++++++---------------------------
 babel.ins    |   2 +-
 babel.pdf    | Bin 811596 -> 693345 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 65 insertions(+), 67 deletions(-)

diff --git a/README.md b/README.md
index fe115dc..40ce729 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,4 @@
-## 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.
-
+## Babel 3.33
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -55,6 +51,12 @@ respective authors.
 ### Latest changes
 
 ```
+3.33   2019-07-19
+       - \prehyphenchar set to 0 in languages requiring it: kannada,
+         marathi, tamil, etc. (lua).
+       - \AddBabelHook can be set for specific languages.
+       - Fix - !\grq in T1 behaved like the ligature !`.
+       - Minimal preliminary support for the experimental harftex.
 3.32   2019-06-03
        - CJK line breaking is now disabled in verbatim (lua).
        - New - \babelcharproperty, to change the direction, mirroring
@@ -141,18 +143,6 @@ respective authors.
          bidi at 'automatic' hyphens.
        - Fix for latest latex - babel.ins raised an error.
 
-3.19    2018-04-25
-       - Most changes are for luatex:
-         . The main new feature is a bidi method for both implicit L in
-           R text, and implicit R in L text, with the possibility of
-           switching the font automatically. Still somewhat
-           experimental, but it should work in most cases.
-         . layout=extras for a couple of miscellaneous readjustments.
-         . bidi equation numbers.
-       - Also, for all engines, new field in some ini files:
-         digits.native (to be used in future releases).  
-
 ```
 
 Javier Bezos
-2019/06/16
diff --git a/babel.dtx b/babel.dtx
index 11ca24d..c26a20a 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -31,13 +31,23 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2019/06/16 v3.32.1674 The Babel package]
+\ProvidesFile{babel.dtx}[2019/07/19 v3.33 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
-\setmainfont[Scale=.88]{Noto Serif}
-\setsansfont[Scale=.88]{Noto Sans}
-\setmonofont[Scale=.88,FakeStretch=.95]{Noto Mono}
+\setmainfont[
+     Scale=.88,
+     BoldFont = NotoSerif-Bold.ttf,
+     ItalicFont = NotoSerif-Italic.ttf,
+     BoldItalicFont = NotoSerif-BoldItalic.ttf]
+  {NotoSerif-Regular.ttf}
+\setsansfont[
+     Scale=.88,
+     BoldFont = NotoSans-Bold.ttf,
+     ItalicFont = NotoSans-Italic.ttf,
+     BoldItalicFont = NotoSans-BoldItalic.ttf]
+  {NotoSans-Regular.ttf}
+\setmonofont[Scale=.88,FakeStretch=.95]{NotoMono-Regular.ttf}
 \raggedright
 \addtolength{\textwidth}{25pt}
 \addtolength{\textheight}{3.5cm}
@@ -910,8 +920,8 @@ in \textsf{english} the shorthands defined by \textsf{ngerman} with
 \begin{verbatim}
 \addto\extrasenglish{\languageshorthands{ngerman}}
 \end{verbatim}
-(You may also need to activate them with, for example,
-|\useshorthands|.)
+(You may also need to activate them as user shorthands in the preamble
+with, for example, |\useshorthands| or |\useshorthands*|.)
 
 Very often, this is a more convenient way to deactivate shorthands
 than |\shorthandoff|, as for example if you want to define a macro
@@ -2787,14 +2797,15 @@ options are also used (eg, |\ProsodicMarksOn| in \textsf{latin}).
 events. Some hooks are predefined when \luatex{} and \xetex{} are
 used.
 
-\Describe{\AddBabelHook}{\marg{name}\marg{event}\marg{code}}
+\Describe{\AddBabelHook}{\oarg{lang}\marg{name}\marg{event}\marg{code}}
 
-The same name can be applied to several events.  Hooks may be enabled
-and disabled for all defined events with
-|\EnableBabelHook|\marg{name}, |\DisableBabelHook|\marg{name}. Names
-containing the string |babel| are reserved (they are used, for
-example, by |\useshortands*| to add a hook for the event
-|afterextras|).
+The same name can be applied to several events. Hooks may be enabled
+and disabled for all defined events with |\EnableBabelHook|\marg{name},
+|\DisableBabelHook|\marg{name}. Names containing the string |babel| are
+reserved (they are used, for example, by |\useshortands*| to add a hook
+for the event |afterextras|). \New{3.33} They may be also applied to an
+specific language with the optional argument; language specific
+settings are executed after global ones.
 
 Current events are the following; in some of them you can use one to
 three \TeX{} parameters (|#1|, |#2|, |#3|), with the meaning given:
@@ -4035,8 +4046,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.32.1674>>
-%<<date=2019/06/16>>
+%<<version=3.33>>
+%<<date=2019/07/19>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -5311,27 +5322,29 @@ help from Bernd Raichle, for which I am grateful.
 %  for developpers, after all. |\bbl at usehooks| is the commands used by
 %  babel to execute hooks defined for an event.
 %
-% \changes{babel~3.9k}{2014/03/23}{Removed a \cs{newcommand},
-%    undefined in Plain}
+% \changes{babel~3.33}{2019/07/16}{Optional argument for languages.}
 %
 %    \begin{macrocode}
 \bbl at trace{Hooks}
-\def\AddBabelHook#1#2{%
-  \bbl at ifunset{bbl at hk@#1}{\EnableBabelHook{#1}}{}%
-  \def\bbl at tempa##1,#2=##2,##3\@empty{\def\bbl at tempb{##2}}%
-  \expandafter\bbl at tempa\bbl at evargs,#2=,\@empty
-  \bbl at ifunset{bbl at ev@#1@#2}%
-    {\bbl at csarg\bbl at add{ev@#2}{\bbl at elt{#1}}%
-     \bbl at csarg\newcommand}%
-    {\bbl at csarg\let{ev@#1@#2}\relax
-     \bbl at csarg\newcommand}%
-  {ev@#1@#2}[\bbl at tempb]}
-\def\EnableBabelHook#1{\bbl at csarg\let{hk@#1}\@firstofone}
-\def\DisableBabelHook#1{\bbl at csarg\let{hk@#1}\@gobble}
+\newcommand\AddBabelHook[3][]{%
+  \bbl at ifunset{bbl at hk@#2}{\EnableBabelHook{#2}}{}%
+  \def\bbl at tempa##1,#3=##2,##3\@empty{\def\bbl at tempb{##2}}%
+  \expandafter\bbl at tempa\bbl at evargs,#3=,\@empty
+  \bbl at ifunset{bbl at ev@#2@#3@#1}%
+    {\bbl at csarg\bbl at add{ev@#3@#1}{\bbl at elt{#2}}}%
+    {\bbl at csarg\let{ev@#2@#3@#1}\relax}%
+  \bbl at csarg\newcommand{ev@#2@#3@#1}[\bbl at tempb]}
+\newcommand\EnableBabelHook[1]{\bbl at csarg\let{hk@#1}\@firstofone}
+\newcommand\DisableBabelHook[1]{\bbl at csarg\let{hk@#1}\@gobble}
 \def\bbl at usehooks#1#2{%
   \def\bbl at elt##1{%
-    \@nameuse{bbl at hk@##1}{\@nameuse{bbl at ev@##1@#1}#2}}%
-  \@nameuse{bbl at ev@#1}}
+    \@nameuse{bbl at hk@##1}{\@nameuse{bbl at ev@##1@#1@}#2}}%
+  \@nameuse{bbl at ev@#1@}%
+  \ifx\languagename\@undefined\else % Test required for Plain (?)
+    \def\bbl at elt##1{%
+      \@nameuse{bbl at hk@##1}{\@nameuse{bbl at ev@##1@#1@\languagename}#2}}%
+    \@nameuse{bbl at ev@#1@\languagename}%
+  \fi}
 %    \end{macrocode}
 %
 %    To ensure forward compatibility, arguments in hooks are set
@@ -7685,7 +7698,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %    \begin{macrocode}
 \ProvideTextCommand{\grq}{T1}{%
-  \textormath{\textquoteleft}{\mbox{\textquoteleft}}}
+  \textormath{\kern\z@\textquoteleft}{\mbox{\textquoteleft}}}
 \ProvideTextCommand{\grq}{TU}{%
   \textormath{\textquoteleft}{\mbox{\textquoteleft}}}
 \ProvideTextCommand{\grq}{OT1}{%
@@ -8318,15 +8331,14 @@ help from Bernd Raichle, for which I am grateful.
        {\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
-  \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}
+  \bbl at ifunset{bbl at prehc@\languagename}%
+    {}%  TODO - XeTeX, based on \babelfont and HyphenChar?
+    {\ifodd\bbl at engine\bbl at exp{%
+       \\\bbl at ifblank{\@nameuse{bbl at prehc@#1}}%
+         {}%
+         {\\\AddBabelHook[\languagename]{babel-prehc-\languagename}{patterns}%
+           {\prehyphenchar=\@nameuse{bbl at prehc@\languagename}\relax}}}%
+     \fi}}
 %    \end{macrocode}
 %
 % The reader of |ini| files. There are 3 possible cases: a section name
@@ -8836,7 +8848,7 @@ help from Bernd Raichle, for which I am grateful.
 %    because of a circular definition).
 %
 %   (Recent versions of natbib change dynamically |\@citex|, so PR4087
-%     doesn't seem fixable in a simple way. Just load natbib before.)
+%    doesn't seem fixable in a simple way. Just load natbib before.)
 %
 %    \begin{macrocode}
     \def\@citex[#1][#2]#3{%
@@ -9127,7 +9139,8 @@ help from Bernd Raichle, for which I am grateful.
 %
 %    When the package varioref is in use we need to modify its
 %    internal command |\@@vpageref| in order to prevent problems when
-%    an active character ends up in the argument of |\vref|.
+%    an active character ends up in the argument of |\vref|. The same
+%    needs to happen for |\vrefpagenum|.
 %
 %    \begin{macrocode}
   \AtBeginDocument{%
@@ -9136,11 +9149,6 @@ help from Bernd Raichle, for which I am grateful.
         \@safe at activestrue
         \org@@@vpageref{#1}[#2]{#3}%
         \@safe at activesfalse}%
-%    \end{macrocode}
-%
-%    The same needs to happen for |\vrefpagenum|.
-%
-%    \begin{macrocode}
       \bbl at redefine\vrefpagenum#1#2{%
         \@safe at activestrue
         \org at vrefpagenum{#1}{#2}%
diff --git a/babel.ins b/babel.ins
index d3e183d..ea54bbb 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/16}
+\def\filedate{2019/07/19}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index 0e94e81..1fc1702 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index cf67bba..063767e 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2019/06/16 v3.32.1674]
+\ProvidesFile{bbcompat.dtx}[2019/07/19 v3.33]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list