[latex3-commits] [git/LaTeX3-latex3-babel] master: Removed the fix for boxes in math (broke AMS) (6ef0501)

Javier jbezos at dante.de
Wed Apr 3 18:26:58 CEST 2019


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

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

commit 6ef0501a4bc55a029de541c498be2372d29b683e
Author: Javier <jbezos at localhost>
Date:   Wed Apr 3 18:26:58 2019 +0200

    Removed the fix for boxes in math (broke AMS)


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

6ef0501a4bc55a029de541c498be2372d29b683e
 README.md    |   11 +++++++----
 babel.dtx    |   49 +++++++++++++++++++++++++++++--------------------
 babel.ins    |    4 ++--
 babel.pdf    |  Bin 674025 -> 674167 bytes
 bbcompat.dtx |    2 +-
 5 files changed, 39 insertions(+), 27 deletions(-)

diff --git a/README.md b/README.md
index 97ff35a..912b1bb 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.28
+## Babel 3.29
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -27,7 +27,7 @@ be improved in next releases.
 
 If you wish to report a problem or bug in any of these packages please
 use the
-[Issue Tracker for LaTeX2e on GitHub](https://github.com/latex3/latex2e/issues)
+[Issue Tracker for LaTeX2e on GitHub](https://github.com/latex3/babel/issues)
 and follow the guidelines that pop up if you press the `New issue`
 button.
 
@@ -51,7 +51,10 @@ respective authors.
 ### Latest changes
 
 ```
-3.28 -   Fixes - wrong dir after math, in math inside tabular, in weak L
+3.29   - The fix for boxes inside math is incompatible with ams.
+         Removed (a better fix is under study).
+       - Options bidi-l and bidi-r (for the bidi package).
+3.28   - Fixes - wrong dir after math, in math inside tabular, in weak L
          inside R inside L, and in boxes inside math.
        - \babelfont now takes into account \defaultfontfeatures. This
          is a potential source of backwards incompatibilities, but
@@ -125,5 +128,5 @@ respective authors.
 ```
 
 Javier Bezos
-2019/04/01
+2019/04/03
 
diff --git a/babel.dtx b/babel.dtx
index ca43f71..f182740 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -1,7 +1,7 @@
 % \iffalse
 % This document requires lualatex
 %%
-%% Copyright (C) 2012-2018 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2019 Javier Bezos and Johannes L. Braams.
 %% Copyright (C) 1989-2012 Johannes L. Braams and
 %%           any individual authors listed elsewhere in this file.
 %% All rights reserved.
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2019/04/01 v3.28 The Babel package]
+\ProvidesFile{babel.dtx}[2019/04/03 v3.29 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -236,15 +236,15 @@ Javier Bezos
 \item  Changes and new features with relation to version 3.8 are
   highlighted with \New{X.XX}\hspace{-.5em}. The most recent features
   could be still unstable. Please, report any issues you find on      
-  \texttt{https://github.com/latex3/latex2e/issues}, which is better 
+  \texttt{https://github.com/latex3/babel/issues}, which is better 
   than just complaining on an e-mail list or a web forum.
 
 \item If you are interested in the \TeX{} multilingual support, please
   join the \textsf{kadingira} list on
-  \texttt{http://tug.org/mailman/listinfo/kadingira}.  You can follow
+  \texttt{http://tug.org/mailman/listinfo/kadingira}. You can follow
   the development of \babel{} on
-  \texttt{https://github.com/latex3/latex2e/tree/master/required/babel}
-  (which provides some sample files, too).
+  \texttt{https://github.com/latex3/babel} (which provides some sample
+  files, too).
 
 \item  See section \ref{contribute} for contributing a language.
 
@@ -3917,8 +3917,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.28>>
-%<<date=2019/04/01>>
+%<<version=3.29>>
+%<<date=2019/04/03>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -9294,16 +9294,14 @@ help from Bernd Raichle, for which I am grateful.
   \def\bbl at bodydir{\bbl at setluadir{body}\bodydir}
   \def\bbl at pagedir{\bbl at setluadir{page}\pagedir}
   \def\bbl at dirparastext{\pardir\the\textdir\relax}%   %%%%
-  % Sadly, we have to deal with boxes in math with basic:
+  % Sadly, we have to deal with boxes in math with basic.
+  % Activated every math with the package option bidi=:
   \def\bbl at mathboxdir{%
     \ifcase\bbl at thetextdir\relax
       \everyhbox{\bgroup\aftergroup\egroup\textdir TLT\relax}%
     \else
       \everyhbox{\bgroup\aftergroup\egroup\textdir TRT\relax}%
     \fi}
-  % TODO - the same trick as bbl at severypar
-  \everymath{\bbl at mathboxdir}
-  \everydisplay{\bbl at mathboxdir}
 \else % pdftex=0, xetex=2
   \AddBabelHook{babel-bidi}{afterextras}{\bbl at switchdir}
   \DisableBabelHook{babel-bidi}
@@ -10805,6 +10803,9 @@ help from Bernd Raichle, for which I am grateful.
   \DeclareOption{bidi=basic}%
     {\let\bbl at beforeforeign\leavevmode
      \newattribute\bbl at attr@dir
+     % TODO - the same trick as bbl at severypar
+     % \everymath{\bbl at mathboxdir}%
+     % \everydisplay{\bbl at mathboxdir}%
      \bbl at exp{\output{\bodydir\pagedir\the\output}}%
      \AtEndOfPackage{\EnableBabelHook{babel-bidi}}}
 \else
@@ -10820,16 +10821,24 @@ help from Bernd Raichle, for which I am grateful.
     \AtEndOfPackage{%
       \EnableBabelHook{babel-bidi}%
       \bbl at xebidipar}}
+  \def\bbl at loadxebidi#1{%
+    \ifx\RTLfootnotetext\@undefined
+      \AtEndOfPackage{% 
+        \EnableBabelHook{babel-bidi}%
+        \ifx\fontspec\@undefined
+          \usepackage{fontspec}% bidi needs fontspec 
+        \fi
+        \usepackage#1{bidi}}%
+    \fi}
   \DeclareOption{bidi=bidi}%
     {\bbl at tentative{bidi=bidi}%
-     \ifx\RTLfootnotetext\@undefined
-       \AtEndOfPackage{%
-         \EnableBabelHook{babel-bidi}%
-         \ifx\fontspec\@undefined
-           \usepackage{fontspec}% bidi needs fontspec 
-         \fi
-         \usepackage{bidi}}%
-     \fi}
+     \bbl at loadxebidi{}}
+  \DeclareOption{bidi=bidi-r}%
+    {\bbl at tentative{bidi=bidi-r}%
+     \bbl at loadxebidi{[rldocument]}}
+  \DeclareOption{bidi=bidi-l}%
+    {\bbl at tentative{bidi=bidi-l}%
+     \bbl at loadxebidi{}}
 \fi
 \DeclareOption{bidi=default}%
   {\let\bbl at beforeforeign\leavevmode
diff --git a/babel.ins b/babel.ins
index 21bbb5d..2d3b5d0 100644
--- a/babel.ins
+++ b/babel.ins
@@ -3,7 +3,7 @@
 %% driver files from the doc files in this package when run through
 %% LaTeX or TeX.
 %%
-%% Copyright 2012-2018 Javier Bezos and Johannes L. Braams.
+%% Copyright 2012-2019 Javier Bezos and Johannes L. Braams.
 %% Copyright 1989-2008 Johannes L. Braams and any individual authors
 %% listed elsewhere in this file.  All rights reserved.
 %% 
@@ -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/04/01}
+\def\filedate{2019/04/03}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index c8a3099..d74872d 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 0ee1213..73f6bbc 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2019/04/01 v3.28]
+\ProvidesFile{bbcompat.dtx}[2019/04/03 v3.29]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list