[latex3-commits] [git/latex2e] master: Fix - bidi \ragged... didn't work. Verbatim in layout=lists (8aabfe9)

Javier javier at dante.de
Mon Jan 8 19:19:13 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/8aabfe967d6d0f064b4078c415b9a15f22e5fd90

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

commit 8aabfe967d6d0f064b4078c415b9a15f22e5fd90
Author: Javier <javier at localhost>
Date:   Mon Jan 8 19:18:33 2018 +0100

    Fix - bidi \ragged... didn't work. Verbatim in layout=lists


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

8aabfe967d6d0f064b4078c415b9a15f22e5fd90
 required/babel/README.md    |   28 ++++++++---
 required/babel/babel.dtx    |  113 ++++++++++++++++++++++++++-----------------
 required/babel/babel.ins    |    2 +-
 required/babel/babel.pdf    |  Bin 628320 -> 629696 bytes
 required/babel/bbcompat.dtx |    2 +-
 5 files changed, 93 insertions(+), 52 deletions(-)

diff --git a/required/babel/README.md b/required/babel/README.md
index 016ca16..3886817 100644
--- a/required/babel/README.md
+++ b/required/babel/README.md
@@ -1,4 +1,4 @@
-## Babel 3.15
+## Babel 3.16.1150 %%NB%%
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages.  Many
@@ -20,7 +20,7 @@ be added incrementally. Versions numbers drop the letter and now 3.10,
 3.11, etc., will be used instead. So, 3.9t is the last in the former
 series.
 
-Included is a set of ini files for about 200 languages). 
+Included is a set of ini files for about 200 languages.
 
 Languages are not part of the Babel core any more; in particular, it
 shall be no longer necessary to synchronize Babel core releases with
@@ -38,11 +38,21 @@ be improved in next releases.
 
 ### Reporting Bugs
 
-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) and follow the guidelines that pop up if you press the `New issue` button.
+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)
+and follow the guidelines that pop up if you press the `New issue`
+button.
 
-In particular, to check that you are really seeing a bug, please write a short, self-contained document that shows the problem. This should include the `latexbug` package, which will warn if your test file is not suitable for one or the other reason. See the [CONTRIBUTING guide](https://github.com/latex3/latex2e/blob/master/CONTRIBUTING.md) for further details, or if you need to obtain the `latexbug` package.
+In particular, to check that you are really seeing a bug, please write
+a short, self-contained document that shows the problem. This should
+include the `latexbug` package, which will warn if your test file is
+not suitable for one or the other reason. See the
+[CONTRIBUTING guide](https://github.com/latex3/latex2e/blob/master/CONTRIBUTING.md)
+for further details, or if you need to obtain the `latexbug` package.
 
-If the bug turns out to be with third-party software then please contact the developer, and not us!
+If the bug turns out to be with third-party software then please
+contact the developer, and not us!
 
 You may also report them to the author more informally on:
 
@@ -54,6 +64,12 @@ respective authors.
 ### New
 
 ```
+3.16   - New package option layout for bidi documents.
+       - Quotes in TU encoding
+       - Fix - \<language>date did not work correctly
+       - Fix - with some languages (eg, british), using
+         \babelfont raised an error.
+
 3.15  - New command \babelfont (in Unicode engines) to define
         language/script dependent fonts. Related to it, new
         keys (script, language) in \babelprovide.
@@ -91,5 +107,5 @@ respective authors.
 ```
 
 Javier Bezos
-2017-11-03
+2018/01/08 %%NB%%
 
diff --git a/required/babel/babel.dtx b/required/babel/babel.dtx
index 8165602..a3ac04b 100644
--- a/required/babel/babel.dtx
+++ b/required/babel/babel.dtx
@@ -31,7 +31,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2018/01/04 v3.16 The Babel package]
+\ProvidesFile{babel.dtx}[2018/01/08 v3.16.1150 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -3567,8 +3567,8 @@ help from Bernd Raichle, for which I am grateful.
 %    little bit of literate programming.
 %
 %    \begin{macrocode}
-%<<version=3.16>>
-%<<date=2018/01/04>>
+%<<version=3.16.1150>>
+%<<date=2018/01/08>>
 %    \end{macrocode}
 %
 % \section{Tools}
@@ -3865,7 +3865,7 @@ help from Bernd Raichle, for which I am grateful.
 %<</Load macros for plain if not LaTeX>>
 %    \end{macrocode}
 %
-%  \subsection{Multiple languages}
+% \subsection{Multiple languages}
 %
 %  \begin{macro}{\language}
 %    Plain \TeX\ version~3.0 provides the primitive |\language| that
@@ -3952,7 +3952,7 @@ help from Bernd Raichle, for which I am grateful.
 % \changes{babel~3.9a}{2013/01/14}{Added the debug option}
 % \changes{babel~3.9a}{2013/02/05}{Added \cs{bbl at add}}
 %
-%    \section{The Package File (\LaTeX, \texttt{babel.sty})}
+% \section{The Package File (\LaTeX, \texttt{babel.sty})}
 %
 %    In order to make use of the features of \LaTeXe, the \babel\
 %    system contains a package file, \file{babel.sty}. This file is
@@ -3971,7 +3971,7 @@ help from Bernd Raichle, for which I am grateful.
 %    language definition files to check if one of them was specified
 %    by the user.
 %
-%   \subsection{\texttt{base}}
+% \subsection{\texttt{base}}
 %
 %    The first option to be processed is |base|, which set the
 %    hyphenation patterns then resets |ver at babel.sty| so that
@@ -4065,7 +4065,7 @@ help from Bernd Raichle, for which I am grateful.
   \endinput}{}%
 %    \end{macrocode}
 %
-%    \subsection{\texttt{key=value} options and other general option}
+% \subsection{\texttt{key=value} options and other general option}
 %
 %    The following macros extract language modifiers, and only real
 %    package options are kept in the option list. Modifiers are saved
@@ -4179,7 +4179,7 @@ help from Bernd Raichle, for which I am grateful.
 \ProcessOptions*
 %    \end{macrocode}
 %
-%    \subsection{Conditional loading of shorthands}
+% \subsection{Conditional loading of shorthands}
 %
 %    If there is no |shorthands=<chars>|, the original \textsf{babel}
 %    macros are left untouched, but if there is, these macros are
@@ -4541,7 +4541,7 @@ help from Bernd Raichle, for which I am grateful.
 % \changes{babel~3.9i}{2014/03/11}{Define \cs{l@} values from
 %   \cs{lang@} values set in Plain etex/xetex/luatex}
 %
-%    \subsection{Tools}
+% \subsection{Tools}
 %
 % \changes{babel~3.9k}{2014/03/24}{Added definition for
 %    \cs{uselanguage}}
@@ -4707,7 +4707,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsection{Hooks}
+% \subsection{Hooks}
 %
 %  Note they are loaded in babel.def. switch.def only provides a
 %  ``hook'' for hooks (with a default value which is a no-op,
@@ -4846,7 +4846,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %    \end{macro}
 %
-%  \subsection{Setting up language files}
+% \subsection{Setting up language files}
 %
 % \begin{macro}{\LdfInit}
 %    The second version of |\LdfInit| macro takes two arguments. The first
@@ -5892,7 +5892,7 @@ help from Bernd Raichle, for which I am grateful.
 %  \end{macro}
 %  \end{macro}
 %
-%  \subsection{Language attributes}
+% \subsection{Language attributes}
 %
 %    Language attributes provide a means to give the user control over
 %    which features of the language definition files he wants to
@@ -6106,7 +6106,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsection{Support for saving macro definitions}
+% \subsection{Support for saving macro definitions}
 %
 %  To save the meaning of control sequences using |\babel at save|, we
 %  use temporary control sequences.  To save hash table entries for
@@ -6222,7 +6222,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 % \end{macro}
 %
-%   \subsection{Hyphens}
+% \subsection{Hyphens}
 %
 %  \begin{macro}{\babelhyphenation}
 %
@@ -6373,7 +6373,7 @@ help from Bernd Raichle, for which I am grateful.
 %    \end{macrocode}
 %
 %  \end{macro}
-%  \subsection{Multiencoding strings}
+% \subsection{Multiencoding strings}
 %
 % \changes{babel~3.9a}{2012/09/05}{Added tentative code for string
 %  declarations}
@@ -6838,13 +6838,13 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsection{Making glyphs available}
+% \subsection{Making glyphs available}
 %
 %    This section makes a number of glyphs available that either do not
 %    exist in the \texttt{OT1} encoding and have to be `faked', or
 %    that are not accessible through \file{T1enc.def}.
 %
-%  \subsubsection{Quotation marks}
+% \subsubsection{Quotation marks}
 %
 %  \begin{macro}{\quotedblbase}
 %    In the \texttt{T1} encoding the opening double quote at the
@@ -6958,7 +6958,7 @@ help from Bernd Raichle, for which I am grateful.
 %  \end{macro}
 %  \end{macro}
 %
-%  \subsubsection{Letters}
+% \subsubsection{Letters}
 %
 %  \begin{macro}{\ij}
 %  \begin{macro}{\IJ}
@@ -7157,7 +7157,7 @@ help from Bernd Raichle, for which I am grateful.
 %  \end{macro}
 %  \end{macro}
 %
-%  \subsubsection{Umlauts and tremas}
+% \subsubsection{Umlauts and tremas}
 %
 %    The command |\"| needs to have a different effect for different
 %    languages. For German for instance, the `umlaut' should be
@@ -8089,7 +8089,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsection{Marks}
+% \subsection{Marks}
 %
 %  \begin{macro}{\markright}
 %    Because the output routine is asynchronous, we must
@@ -8185,9 +8185,9 @@ help from Bernd Raichle, for which I am grateful.
 %  \end{macro}
 %  \end{macro}
 %
-%  \subsection{Preventing clashes with other packages}
+% \subsection{Preventing clashes with other packages}
 %
-%  \subsubsection{\pkg{ifthen}}
+% \subsubsection{\pkg{ifthen}}
 %
 %  \begin{macro}{\ifthenelse}
 %
@@ -8263,7 +8263,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsubsection{\pkg{varioref}}
+% \subsubsection{\pkg{varioref}}
 %
 %  \begin{macro}{\@@vpageref}
 %  \begin{macro}{\vrefpagenum}
@@ -8316,7 +8316,7 @@ help from Bernd Raichle, for which I am grateful.
 %  \end{macro}
 %  \end{macro}
 %
-%  \subsubsection{\pkg{hhline}}
+% \subsubsection{\pkg{hhline}}
 %
 %  \begin{macro}{\hhline}
 %    Delaying the activation of the shorthand characters has introduced
@@ -8357,7 +8357,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsubsection{\pkg{hyperref}}
+% \subsubsection{\pkg{hyperref}}
 %
 %  \begin{macro}{\pdfstringdefDisableCommands}
 %
@@ -8380,7 +8380,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsubsection{\pkg{fancyhdr}}
+% \subsubsection{\pkg{fancyhdr}}
 %
 %  \begin{macro}{\FOREIGNLANGUAGE}
 %    The package \pkg{fancyhdr} treats the running head and fout lines
@@ -8431,7 +8431,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%  \subsection{Encoding and fonts}
+% \subsection{Encoding and fonts}
 %
 %  Because documents may use non-ASCII font encodings, we make sure
 %  that the logos of \TeX\ and \LaTeX\ always come out in the right
@@ -8866,7 +8866,7 @@ help from Bernd Raichle, for which I am grateful.
 %
 %  \end{macro}
 %
-%   \subsection{Selecting the language}
+% \subsection{Selecting the language}
 %
 %  \begin{macro}{\selectlanguage}
 %    The macro |\selectlanguage| checks whether the language is
@@ -9293,7 +9293,7 @@ help from Bernd Raichle, for which I am grateful.
 %    \cs{bbl at beforeforeign} and hooks}
 %
 %    \begin{macrocode}
-\let\bbl at beforeforeign\@empty
+\providecommand\bbl at beforeforeign{}
 \edef\foreignlanguage{%
   \noexpand\protect
   \expandafter\noexpand\csname foreignlanguage \endcsname}
@@ -9555,7 +9555,7 @@ help from Bernd Raichle, for which I am grateful.
 \let\languagetext\setlocale
 %    \end{macrocode}
 %
-%    \subsection{Errors}
+% \subsection{Errors}
 %
 %  \begin{macro}{\@nolanerr}
 %  \begin{macro}{\@nopatterns}
@@ -9648,7 +9648,7 @@ help from Bernd Raichle, for which I am grateful.
 %  \end{macro}
 %  \end{macro}
 %
-%    \section{Loading hyphenation patterns}
+% \section{Loading hyphenation patterns}
 %
 %  The following code is meant to be read by ini\TeX\ because it
 %  should instruct \TeX\ to read hyphenation patterns. To this end the
@@ -10289,9 +10289,9 @@ help from Bernd Raichle, for which I am grateful.
 %    \end{macrocode}
 %      
 %
-%    \section{Hooks for XeTeX and LuaTeX}
+% \section{Hooks for XeTeX and LuaTeX}
 %
-%    \subsection{XeTeX}
+% \subsection{XeTeX}
 %
 %    Unfortunately, the current encoding cannot be retrieved and
 %    therefore it is reset always to |utf8|, which seems a sensible
@@ -10441,8 +10441,33 @@ help from Bernd Raichle, for which I am grateful.
       \ifcase\bbl at thepardir\leftmargin\else\rightmargin\fi
     \parshape\@ne\@totalleftmargin\linewidth
     \ignorespaces}%
-  \def\labelenumii{)\theenumii(}%
-  \def\p at enumiii{\p at enumii)\theenumii(}}
+  \ifcase\bbl at engine
+    \def\labelenumii{)\theenumii(}%
+    \def\p at enumiii{\p at enumii)\theenumii(}%
+  \fi
+  \def\@verbatim{%
+    \trivlist \item\relax
+    \if at minipage\else\vskip\parskip\fi
+    \bbl at startskip\textwidth
+    \advance\bbl at startskip-\linewidth
+    \bbl at endskip\z at skip
+    \parindent\z@
+    \parfillskip\@flushglue
+    \parskip\z at skip
+    \@@par
+    \language\l at nohyphenation
+    \@tempswafalse
+    \def\par{%
+      \if at tempswa
+        \leavevmode\null
+        \@@par\penalty\interlinepenalty
+      \else
+        \@tempswatrue
+        \ifhmode\@@par\penalty\interlinepenalty\fi
+      \fi}%
+    \let\do\@makeother \dospecials
+    \obeylines \verbatim at font \@noligs
+    \everypar\expandafter{\the\everypar\unpenalty}}}
   {}
 \IfBabelLayout{contents}
   {\def\@dottedtocline#1#2#3#4#5{%
@@ -10512,12 +10537,12 @@ help from Bernd Raichle, for which I am grateful.
   {}
 %    \end{macrocode}
 %
-%      Implicitly reverses sectioning labels in bidi=basic-r, because
-%      the full stop is not in contact with L numbers any more. A
+%      Implicitly reverses sectioning labels in |bidi=basic-r|, because
+%      the full stop is not in contact with L numbers any more. I
 %      think there must be a better way.
 %
 %    \begin{macrocode}
-\IfBabelLayout{counters}%  Global or language dependent? At begin doc?
+\IfBabelLayout{counters}%
   {\let\bbl at latinarabic=\@arabic
    \def\@arabic#1{\babelsublr{\bbl at latinarabic#1}}%
    \let\bbl at asciiroman=\@roman
@@ -17359,7 +17384,7 @@ end
 %</basic-r>
 %    \end{macrocode}
 %
-%    \section{The `nil' language}
+% \section{The `nil' language}
 %
 %    This `language' does nothing, except setting the hyphenation patterns to
 %    nohyphenation.
@@ -17421,9 +17446,9 @@ end
 %    \end{macrocode}
 %
 %
-%  \section{Support for Plain \TeX\ (\texttt{plain.def})}
+% \section{Support for Plain \TeX\ (\texttt{plain.def})}
 %
-%  \subsection{Not renaming \file{hyphen.tex}}
+% \subsection{Not renaming \file{hyphen.tex}}
 %    As Don Knuth has declared that the filename \file{hyphen.tex} may
 %    only be used to designate \emph{his} version of the american
 %    English hyphenation patterns, a new solution has to be found in
@@ -17526,7 +17551,7 @@ end
 %    make a copy of blplain.tex, rename it and replace \file{plain.tex}
 %    with the name of your format file.
 %
-%  \subsection{Emulating some \LaTeX{} features}
+% \subsection{Emulating some \LaTeX{} features}
 %
 %    The following code duplicates or emulates parts of \LaTeXe\ that
 %    are needed for \babel.
@@ -17826,7 +17851,7 @@ end
          \else\expandafter\@gobble\fi{#1}}
 %    \end{macrocode}
 %
-%  \subsection{Encoding related macros}
+% \subsection{Encoding related macros}
 %
 %    Code from \file{ltoutenc.dtx}, adapted for use in the plain \TeX\
 %    environment. 
@@ -18005,7 +18030,7 @@ end
 \fi
 %    \end{macrocode}
 %
-%  \subsection{Babel options}
+% \subsection{\Babel{} options}
 % 
 % \changes{babel~3.9k}{2014/03/22}{Moved code from babel.def, and add
 %    some new tools (not yet documented)} 
diff --git a/required/babel/babel.ins b/required/babel/babel.ins
index 024b1b8..dbad36b 100644
--- a/required/babel/babel.ins
+++ b/required/babel/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{2018/01/04}
+\def\filedate{2018/01/08}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/required/babel/babel.pdf b/required/babel/babel.pdf
index fd09151..fc64b67 100644
Binary files a/required/babel/babel.pdf and b/required/babel/babel.pdf differ
diff --git a/required/babel/bbcompat.dtx b/required/babel/bbcompat.dtx
index f568989..a1d3cee 100644
--- a/required/babel/bbcompat.dtx
+++ b/required/babel/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2018/01/04 v3.16]
+\ProvidesFile{bbcompat.dtx}[2018/01/08 v3.16.1150]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list