texlive[46640] Master/texmf-dist: babel (14feb18)
commits+karl at tug.org
commits+karl at tug.org
Wed Feb 14 22:34:14 CET 2018
Revision: 46640
http://tug.org/svn/texlive?view=revision&revision=46640
Author: karl
Date: 2018-02-14 22:34:13 +0100 (Wed, 14 Feb 2018)
Log Message:
-----------
babel (14feb18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/babel/README.md
trunk/Master/texmf-dist/doc/latex/babel/babel.pdf
trunk/Master/texmf-dist/source/latex/babel/babel.dtx
trunk/Master/texmf-dist/source/latex/babel/babel.ins
trunk/Master/texmf-dist/source/latex/babel/bbcompat.dtx
trunk/Master/texmf-dist/source/latex/babel/locale.zip
trunk/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
trunk/Master/texmf-dist/tex/generic/babel/babel-bidi.lua
trunk/Master/texmf-dist/tex/generic/babel/babel.def
trunk/Master/texmf-dist/tex/generic/babel/babel.sty
trunk/Master/texmf-dist/tex/generic/babel/blplain.tex
trunk/Master/texmf-dist/tex/generic/babel/bplain.tex
trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar.ini
trunk/Master/texmf-dist/tex/generic/babel/luababel.def
trunk/Master/texmf-dist/tex/generic/babel/nil.ldf
trunk/Master/texmf-dist/tex/generic/babel/plain.def
trunk/Master/texmf-dist/tex/generic/babel/switch.def
trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def
trunk/Master/texmf-dist/tex/generic/babel/xebabel.def
Added Paths:
-----------
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-DZ.ini
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-MA.ini
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-SY.ini
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-algeria.tex
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-dz.tex
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-ma.tex
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-morocco.tex
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-sy.tex
trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-syria.tex
Modified: trunk/Master/texmf-dist/doc/latex/babel/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/babel/README.md 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/doc/latex/babel/README.md 2018-02-14 21:34:13 UTC (rev 46640)
@@ -1,4 +1,4 @@
-## Babel 3.17
+## Babel 3.18
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -64,6 +64,14 @@
### New
```
+3.18 - More bidi in luatex: captions (required only in multilingual
+ docs) and tabular (required for R tables). Also an experimental
+ support for captions in xetex and pdftex (tabular is not yet
+ supported).
+ - New ini files: ar-DZ, ar-MA, ar-SY
+ - Fix - \begin{hyphenrules} didn't work with polyglossia.
+ - Fix - switch.def was loaded twice.
+
3.17 - A tool for bidi footnotes.
- Fix - \ragged... didn't work for bidi.
@@ -110,5 +118,5 @@
```
Javier Bezos
-2018/01/24
+2018/02/14
Modified: trunk/Master/texmf-dist/doc/latex/babel/babel.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/babel/babel.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/babel/babel.dtx 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/source/latex/babel/babel.dtx 2018-02-14 21:34:13 UTC (rev 46640)
@@ -1,7 +1,7 @@
% \iffalse
% This document requires lualatex
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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}[2018/01/24 v3.17 The Babel package]
+\ProvidesFile{babel.dtx}[2018/02/14 v3.18 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -101,6 +101,9 @@
\DescribeMacro{#1}\args}
\def\DescribeOther{\vskip-4ex\Describe}
\makeatletter
+\def\trouble#1{\addcontentsline{tsh}{trouble}{#1}}
+\def\listoftroubles{\section*{Troubleshoooting}\@starttoc{tsh}}
+\let\l at trouble\l at figure
\let\saved at check@percent\check at percent
\let\check at percent\relax
\def\args#1{%
@@ -220,6 +223,7 @@
\end{titlepage}
\tableofcontents
+\listoftroubles
\clearpage
\part{User guide}
@@ -370,7 +374,7 @@
\subsection{Modifiers}
-\New{3.9c} The basic behaviour of some languages can be modified when
+\New{3.9c} The basic behavior of some languages can be modified when
loading \babel{} by means of \textit{modifiers}. They are set after
the language name, and are prefixed with a dot (only when the language
is set as package option -- neither global options nor the |main| key
@@ -450,6 +454,7 @@
|\usepackage|\marg{language}) is deprecated and you will get the
error:\footnote{In old versions the error read ``You have used an
old interface to call babel'', not very helpful.}
+\trouble{You are loading directly a language style}
\begin{verbatim}
! Package babel Error: You are loading directly a language style.
(babel) This syntax is deprecated and you must use
@@ -459,6 +464,7 @@
\item Another typical error when using \babel{} is the
following:\footnote{In old versions the error read ``You haven't
loaded the language LANG yet''.}
+\trouble{Unknown language `LANG'}
\begin{verbatim}
! Package babel Error: Unknown language `LANG'. Either you have misspelled
(babel) its name, it has not been installed, or you requested
@@ -473,6 +479,8 @@
\item The following warning is about hyphenation patterns, which are
not under the direct control of \babel:
+\trouble{No hyphenation patterns were preloaded for (babel) the
+ language `LANG' into the format}
\begin{verbatim}
Package babel Warning: No hyphenation patterns were preloaded for
(babel) the language `LANG' into the format.
@@ -586,7 +594,7 @@
This environment was originally intended for intermixing left-to-right
typesetting with right-to-left typesetting in engines not supporting a
change in the writing direction inside a line. However, by default it never
-complied with the documented behaviour and it is just a version as
+complied with the documented behavior and it is just a version as
environment of |\foreignlanguage|.
\Describe{\begin\menv{hyphenrules}}{\marg{language}\Eenv{hyphenrules}}
@@ -728,6 +736,8 @@
\end{note}
A typical error when using shorthands is the following:
+\trouble{Argument of \textbackslash language at active@arg"
+has an extra \textbraceright}
\begin{verbatim}
! Argument of \language at active@arg" has an extra }.
\end{verbatim}
@@ -807,7 +817,7 @@
\defineshorthand{"*}{\babelhyphen{soft}}
\defineshorthand{"-}{\babelhyphen{hard}}
\end{verbatim}
- However, behaviour of hyphens is language dependent. For example, in
+ However, behavior of hyphens is language dependent. For example, in
languages like Polish and Portuguese, a hard hyphen inside compound
words are repeated at the beginning of the next line. You could then
set:
@@ -1021,7 +1031,7 @@
$\string|$ \texttt{select} $\string|$ \texttt{other} $\string|$
\texttt{other*}}
-\New{3.9g} Sets the behaviour of case mapping for hyphenation,
+\New{3.9g} Sets the behavior of case mapping for hyphenation,
provided the language defines it.\footnote{Turned off in plain.} It
can take the following values:
\begin{description}
@@ -1044,7 +1054,7 @@
optimized version of \texttt{other*} for monolingual
documents.\footnote{Providing |foreign| is pointless, because the
case mapping applied is that at the end of paragraph, but if either
- \xetex{} or \luatex{} change this behaviour it might be added. On
+ \xetex{} or \luatex{} change this behavior it might be added. On
the other hand, |other| is provided even if I [JBL] think it isn't
really useful, but who knows.}
\end{description}
@@ -1833,7 +1843,7 @@
\textit{language} (and therefore the writing direction). In other
words, the |ini| file or |\babelprovide| provides default values for
|\babelfont| if omitted, but the opposite is not true. See the note
- above for the reasons of this behaviour.
+ above for the reasons of this behavior.
\end{note}
\begin{warning}
@@ -1852,7 +1862,7 @@
\subsection{Modifying a language}
-Modifying the behaviour of a language (say, the chapter “caption”), is
+Modifying the behavior of a language (say, the chapter “caption”), is
sometimes necessary, but not always trivial.
\begin{itemize}
\item The old way, still valid for many languages, to redefine a
@@ -1959,7 +1969,7 @@
\begin{verbatim}
\babelprovide[hyphenrules=chavacano spanish italian]{chavacano}
\end{verbatim}
-If none of the listed hyphenrules exist, the default behaviour
+If none of the listed hyphenrules exist, the default behavior
applies. Note in this example we set |chavacano| as first option --
without it, it would select |spanish| even if |chavacano| exists.
@@ -2041,7 +2051,7 @@
oportunity.
In \TeX, \verb|-| and \verb|\-| forbid further breaking oportunities
-in the word. This is the desired behaviour very often, but not always,
+in the word. This is the desired behavior very often, but not always,
and therefore many languages provide shorthands for these
cases. Unfortunately, this has not been done consistently: for
example, \verb|"-| in Dutch, Portugese, Catalan or Danish is a hard
@@ -2211,7 +2221,8 @@
this writing some Arabic fonts are not rendered correctly by the
default \luatex{} font loader, with misplaced kerns inside some
words, so double check the resulting text. It seems a fix is on the
- way.}
+ way, but in the meanwhile you could have a look at the workaround
+ available on GitHub, under \texttt{/required/babel/samples}}
\begingroup
% If you are looking at the code to see how it has been written, you
% will be disappointed :-). The following example is built ad hoc to
@@ -2246,6 +2257,7 @@
\texttt{lists} $\string|$
\texttt{contents} $\string|$
\texttt{footnotes} $\string|$
+ \texttt{captions} $\string|$
\texttt{columns}}
\New{3.16} \textit{To be expanded}. Selects which layout elements are
@@ -2278,6 +2290,14 @@
useful in multilingual documents in all engines; you may use
alternatively |\BabelFootnote| described below (what this options
does exactly is also explained there).
+\item[captions] is similar to |sectioning|, but for |\caption|; not
+ required in monolingual documents with \luatex{}, but may be
+ required in \xetex{} and \pdftex{} in some styles (support for the
+ latter two engines is still experimental); \New{3.18}
+\item[tabular] required in \luatex{} for R |tabular| (it has been
+ tested only with simple tables, so expect some readjustments in the
+ future); ignored in \pdftex{} or \xetex{} (which will not support a
+ similar option in the short term). \New{3.18}
\end{description}
\Describe{\babelsublr}{\marg{lr-text}}
@@ -2921,7 +2941,7 @@
The macro |\adddialect| can be used when two languages can (or
must) use the same hyphenation patterns. This can also be useful
for languages for which no patterns are preloaded in the
-format. In such cases the default behaviour of the \babel{}
+format. In such cases the default behavior of the \babel{}
system is to define this language as a `dialect' of the language
for which the patterns were loaded as |\language0|. Here
``language'' is used in the \TeX{} sense of set of hyphenation
@@ -3085,7 +3105,7 @@
\DescribeMacro{\bbl at activate}
\DescribeMacro{\bbl at deactivate}
The command |\bbl at activate| is used to change the way an active
-character expands. |\bbl at activate| `switches on' the active behaviour
+character expands. |\bbl at activate| `switches on' the active behavior
of the character. |\bbl at deactivate| lets the active character expand
to its former (mostly) non-active self.
@@ -3144,7 +3164,7 @@
Be careful when using this macro, because depending on the case the
assignment could be either global (usually) or local (sometimes). That
-does not seem very consistent, but this behaviour is preserved for
+does not seem very consistent, but this behavior is preserved for
backward compatibility. If you are using \pkg{etoolbox}, by Philipp
Lehman, consider using the tools provided by this package instead of
|\addto|.
@@ -3166,7 +3186,7 @@
Note the previous command (|\bbl at allowhyphens|) has different
applications (hyphens and discretionaries) than this one (composite
chars). Note also prior to version 3.7, |\allowhyphens| had the
-behaviour of |\bbl at allowhyphens|.
+behavior of |\bbl at allowhyphens|.
\DescribeMacro{\set at low@box}
For some languages, quotes need to be lowered to the baseline. For
@@ -3437,7 +3457,7 @@
Most of changes in version 3.9 are related to bugs, either to fix them
(there were lots), or to provide some alternatives. Even new features
like |\babelhyphen| are intended to solve a certain problem (in this
-case, the lacking of a uniform syntax and behaviour for shorthands
+case, the lacking of a uniform syntax and behavior for shorthands
across languages). These changes are described in this manual in the
corresponding place. A selective list follows:
\begin{itemize}
@@ -3615,8 +3635,8 @@
% little bit of literate programming.
%
% \begin{macrocode}
-%<<version=3.17>>
-%<<date=2018/01/24>>
+%<<version=3.18>>
+%<<date=2018/02/14>>
% \end{macrocode}
%
% \section{Tools}
@@ -3632,7 +3652,7 @@
%
% We define some basic macros which just make the code cleaner.
% |\bbl at add| is now used internally instead of |\addto| because of
-% the unpredictable behaviour of the latter. Used in
+% the unpredictable behavior of the latter. Used in
% \file{babel.def} and in \file{babel.sty}, which means in \LaTeX{}
% is executed twice, but we need them when defining options and
% \file{babel.def} cannot be load until options have been defined.
@@ -3645,6 +3665,7 @@
%
% \begin{macrocode}
%<<*Basic macros>>
+\bbl at trace{Basic macros}
\def\bbl at stripslash{\expandafter\@gobble\string}
\def\bbl at add#1#2{%
\bbl at ifunset{\bbl at stripslash#1}%
@@ -4012,7 +4033,7 @@
%
%
% Apart from all the language options below we also have a few options
-% that influence the behaviour of language definition files.
+% that influence the behavior of language definition files.
%
% Many of the following options don't do anything themselves, they
% are just defined in order to make it possible for babel and
@@ -4033,6 +4054,8 @@
% base}
% \changes{babel~3.9q}{2016/02/11}{Load patterns with option base.
% To be improved. Moved showlanguages before base}
+% \changes{babel~3.18}{2018/02/14}{Fix - prevent doble input of
+% switch.def}
%
% \begin{macrocode}
%<*package>
@@ -4039,9 +4062,14 @@
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{babel}[<@date@> <@version@> The Babel package]
\@ifpackagewith{babel}{debug}
- {\let\bbl at debug\@firstofone}
- {\let\bbl at debug\@gobble}
-\input switch.def\relax
+ {\providecommand\bbl at trace[1]{\message{^^J[ #1 ]}}%
+ \let\bbl at debug\@firstofone}
+ {\providecommand\bbl at trace[1]{}%
+ \let\bbl at debug\@gobble}
+\ifx\bbl at switchflag\@undefined % Prevent double input
+ \let\bbl at switchflag\relax
+ \input switch.def\relax
+\fi
<@Load patterns in luatex@>
<@Basic macros@>
\def\AfterBabelLanguage#1{%
@@ -4097,6 +4125,7 @@
% rest of babel. Useful for old versions of \textsf{polyglossia}, too.
%
% \begin{macrocode}
+\bbl at trace{Defining option 'base'}
\@ifpackagewith{babel}{base}{%
\ifx\directlua\@undefined
\DeclareOption*{\bbl at patterns{\CurrentOption}}%
@@ -4126,6 +4155,7 @@
% key=value pairs}
%
% \begin{macrocode}
+\bbl at trace{key=value and another general options}
\bbl at csarg\let{tempa\expandafter}\csname opt at babel.sty\endcsname
\def\bbl at tempb#1.#2{%
#1\ifx\@empty#2\else,\bbl at afterfi\bbl at tempb#2\fi}%
@@ -4241,6 +4271,7 @@
% \changes{babel~3.9c}{2013/04/07}{Added t and c for tilde and comma}
%
% \begin{macrocode}
+\bbl at trace{Conditional loading of shorthands}
\def\bbl at sh@string#1{%
\ifx#1\@empty\else
\ifx#1t\string~%
@@ -4326,6 +4357,7 @@
% macro \cs{IfBabelLayout}}
%
% \begin{macrocode}
+\bbl at trace{Defining IfBabelLayout}
\ifx\bbl at opt@layout\@nnil
\newcommand\IfBabelLayout[3]{#3}%
\else
@@ -4355,6 +4387,7 @@
% checks (|\input| works, too, but possible errors are not catched).
%
% \begin{macrocode}
+\bbl at trace{Language options}
\let\bbl at afterlang\relax
\let\BabelModifiers\relax
\let\bbl at loaded\@empty
@@ -4564,7 +4597,7 @@
% able to switch hyphenation patterns (by default, it also inputs
% \file{switch.def}, for ``historical reasons'', but it is not
% necessary). When \file{babel.def} is loaded it checks if the current
-% version of \file{switch.def} is in the format; if not it is
+% version of \file{switch.def} is in the format; if not, it is
% loaded. A further file, \file{babel.sty}, contains \LaTeX-specific
% stuff.
%
@@ -4606,14 +4639,49 @@
<@Make sure ProvidesFile is defined@>
\ProvidesFile{babel.def}[<@date@> <@version@> Babel common definitions]
<@Load macros for plain if not LaTeX@>
+% \end{macrocode}
+%
+% The file |babel.def| expects some definitions made in the \LaTeXe{}
+% style file. So, In \LaTeX2.09 and Plain{} we must provide at least
+% some predefined values as well some tools to set them (even if not
+% all options are available). There in no package options, and
+% therefore and alternative mechanism is provided. For the moment,
+% only |\babeloptionstrings| and |\babeloptionmath| are provided,
+% which can be defined before loading \babel. |\BabelModifiers| can be
+% set too (but not sure it works).
+%
+% \begin{macrocode}
\ifx\bbl at ifshorthand\@undefined
+ \let\bbl at opt@shorthands\@nnil
\def\bbl at ifshorthand#1#2#3{#2}%
- \def\bbl at opt@safe{BR}
+ \let\bbl at language@opts\@empty
+ \ifx\babeloptionstrings\@undefined
+ \let\bbl at opt@strings\@nnil
+ \else
+ \let\bbl at opt@strings\babeloptionstrings
+ \fi
+ \def\BabelStringsDefault{generic}
+ \def\bbl at tempa{normal}
+ \ifx\babeloptionmath\bbl at tempa
+ \def\bbl at mathnormal{\noexpand\textormath}
+ \fi
\def\AfterBabelLanguage#1#2{}
+ \ifx\BabelModifiers\@undefined\let\BabelModifiers\relax\fi
\let\bbl at afterlang\relax
- \let\bbl at language@opts\@empty
+ \def\bbl at opt@safe{BR}
+ \ifx\@uclclist\@undefined\let\@uclclist\@empty\fi
+ \ifx\bbl at trace\@undefined\def\bbl at trace#1{}\fi
\fi
-\input switch.def\relax
+% \end{macrocode}
+%
+% And continue.
+%
+% \begin{macrocode}
+\ifx\bbl at switchflag\@undefined % Prevent double input
+ \let\bbl at switchflag\relax
+ \input switch.def\relax
+\fi
+\bbl at trace{Compatibility with language.def}
\ifx\bbl at languages\@undefined
\ifx\directlua\@undefined
\openin1 = language.def
@@ -4768,6 +4836,7 @@
% undefined in Plain}
%
% \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}}%
@@ -4831,6 +4900,7 @@
% \cs{today} must be given explicitly in \cs{babelensure}}
%
% \begin{macrocode}
+\bbl at trace{Defining babelensure}
\newcommand\babelensure[2][]{% TODO - revise test files
\AddBabelHook{babel-ensure}{afterextras}{%
\ifcase\bbl at select@type
@@ -4937,6 +5007,7 @@
% Finally we check |\originalTeX|.
%
% \begin{macrocode}
+\bbl at trace{Macros for setting language files up}
\def\bbl at ldfinit{%
\let\bbl at screset\@empty
\let\BabelStrings\bbl at opt@string
@@ -5077,6 +5148,7 @@
% \changes{3.10}{2017/05/14}{Refactored. Add to \cs{nfss at catcodes} too.}
%
% \begin{macrocode}
+\bbl at trace{Shorhands}
\def\bbl at add@special#1{% 1:a macro like \", \?, etc.
\bbl at add\dospecials{\do#1}% test @sanitize = \relax, for back. compat.
\bbl at ifunset{@sanitize}{}{\bbl at add\@sanitize{\@makeother#1}}%
@@ -5384,7 +5456,7 @@
\bbl at usehooks{initiateactive}{{#1}{#2}{#3}}}
% \end{macrocode}
%
-% The following package options control the behaviour of shorthands
+% The following package options control the behavior of shorthands
% in math mode.
%
% \begin{macrocode}
@@ -5956,6 +6028,7 @@
% attribute in the list.
%
% \begin{macrocode}
+\bbl at trace{Language attributes}
\newcommand\languageattribute[2]{%
\def\bbl at tempc{#1}%
\bbl at fixname\bbl at tempc
@@ -6173,6 +6246,7 @@
% zero.
%
% \begin{macrocode}
+\bbl at trace{Macros for saving definitions}
\def\babel at beginsave{\babel at savecnt\z@}
% \end{macrocode}
%
@@ -6252,6 +6326,7 @@
% \changes{babel~3.9i}{2014/02/21}{Macro \cs{babeltags} added}
%
% \begin{macrocode}
+\bbl at trace{Short tags}
\def\babeltags#1{%
\edef\bbl at tempa{\zap at space#1 \@empty}%
\def\bbl at tempb##1=##2\@@{%
@@ -6283,6 +6358,7 @@
% \changes{babel~3.9a}{2012/08/28}{Macro added}
%
% \begin{macrocode}
+\bbl at trace{Hyphens}
\@onlypreamble\babelhyphenation
\AtEndOfPackage{%
\newcommand\babelhyphenation[2][\@empty]{%
@@ -6356,7 +6432,7 @@
% \end{macrocode}
%
% The following two commands are used to wrap the ``hyphen'' and
-% set the behaviour of the rest of the word -- the version with a
+% set the behavior of the rest of the word -- the version with a
% single |@| is used when further hyphenation is allowed, while
% that with |@@| if no more hyphen are allowed. In both cases, if
% the hyphen is preceded by a positive space, breaking after the
@@ -6438,6 +6514,7 @@
% variable. This is not the best solution, but it works.
%
% \begin{macrocode}
+\bbl at trace{Multiencoding strings}
\def\bbl at toglobal#1{\global\let#1#1}
\def\bbl at recatcode#1{%
\@tempcnta="7F
@@ -6491,7 +6568,7 @@
%<</More package options>>
% \end{macrocode}
%
-% The following package options control the behaviour of |\SetString|.
+% The following package options control the behavior of |\SetString|.
%
% \begin{macrocode}
%<<*More package options>>
@@ -6549,7 +6626,7 @@
%
% Parse the encoding info to get the label, input, and font parts.
%
-% Select the behaviour of |\SetString|. Thre are two main cases,
+% Select the behavior of |\SetString|. Thre are two main cases,
% depending of if there is an optional argument: without it and
% |strings=encoded|, strings are defined
% always; otherwise, they are set only if they are still undefined
@@ -6767,7 +6844,7 @@
%
% \paragraph{Case mapping}
%
-% The command |\SetCase| provides a way to change the behaviour of
+% The command |\SetCase| provides a way to change the behavior of
% |\MakeUppercase| and |\MakeLowercase|. |\bbl at tempa| is set by the
% patched |\@uclclist| to the parsing command.
%
@@ -6832,7 +6909,7 @@
\bbl at tempa}
% \end{macrocode}
%
-% The following package options control the behaviour of
+% The following package options control the behavior of
% hyphenation mapping.
%
% \changes{babel~3.9t}{2017/04/28}{Renamed \cs{bbl at hymapopt} to
@@ -6848,7 +6925,7 @@
%<</More package options>>
% \end{macrocode}
%
-% Initial setup to provide a default behaviour if |hypenmap|
+% Initial setup to provide a default behavior if |hypenmap|
% is not set.
%
% \begin{macrocode}
@@ -6866,6 +6943,7 @@
% the comma. It prepares its argument in box register~0.
%
% \begin{macrocode}
+\bbl at trace{Macros related to glyphs}
\def\set at low@box#1{\setbox\tw@\hbox{,}\setbox\z@\hbox{#1}%
\dimen\z@\ht\z@ \advance\dimen\z@ -\ht\tw@%
\setbox\z@\hbox{\lower\dimen\z@ \box\z@}\ht\z@\ht\tw@ \dp\z@\dp\tw@}
@@ -7334,6 +7412,7 @@
% least a tool useful in general.
%
% \begin{macrocode}
+\bbl at trace{Bidi layout}
\providecommand\IfBabelLayout[3]{#3}%
\newcommand\BabelPatchSection[1]{%
\@ifundefined{#1}{}{%
@@ -7344,6 +7423,7 @@
\def\bbl at presec@x#1[#2]#3{%
\bbl at exp{%
\\\select at language@x{\bbl at main@language}%
+ \\\@nameuse{bbl at sspre@#1}%
\\\@nameuse{bbl at ss@#1}%
[\\\foreignlanguage{\languagename}{\unexpanded{#2}}]%
{\\\foreignlanguage{\languagename}{\unexpanded{#3}}}%
@@ -7351,10 +7431,11 @@
\def\bbl at presec@s#1#2{%
\bbl at exp{%
\\\select at language@x{\bbl at main@language}%
+ \\\@nameuse{bbl at sspre@#1}%
\\\@nameuse{bbl at ss@#1}*%
{\\\foreignlanguage{\languagename}{\unexpanded{#2}}}%
\\\select at language@x{\languagename}}}
-\IfBabelLayout{sectioning}% at begin document ???
+\IfBabelLayout{sectioning}%
{\BabelPatchSection{part}%
\BabelPatchSection{chapter}%
\BabelPatchSection{section}%
@@ -7364,11 +7445,14 @@
\BabelPatchSection{subparagraph}%
\def\babel at toc#1{%
\select at language@x{\bbl at main@language}}}{}
+\IfBabelLayout{captions}%
+ {\BabelPatchSection{caption}}{}
% \end{macrocode}
%
% Now we load definition files for engines.
%
% \begin{macrocode}
+\bbl at trace{Input engine specific macros}
\ifcase\bbl at engine
\input txtbabel.def
\or
@@ -7378,32 +7462,9 @@
\fi
% \end{macrocode}
%
-% \section{The kernel of Babel (\texttt{babel.def}, only \LaTeX)}
+% \changes{babel~3.18}{2018/02/14}{Moved \cs{babelprovide}, also for
+% plain}
%
-% \subsection{The redefinition of the style commands}
-%
-% The rest of the code in this file can only be processed by
-% \LaTeX, so we check the current format. If it is plain \TeX,
-% processing should stop here. But, because of the need to limit
-% the scope of the definition of |\format|, a macro that is used
-% locally in the following |\if|~statement, this comparison is done
-% inside a group. To prevent \TeX\ from complaining about an
-% unclosed group, the processing of the command |\endinput| is
-% deferred until after the group is closed. This is accomplished by
-% the command |\aftergroup|.
-%
-% \begin{macrocode}
-{\def\format{lplain}
-\ifx\fmtname\format
-\else
- \def\format{LaTeX2e}
- \ifx\fmtname\format
- \else
- \aftergroup\endinput
- \fi
-\fi}
-% \end{macrocode}
-%
% \subsection{Creating languages}
%
% |\babelprovide| is a general purpose tool for creating
@@ -7422,6 +7483,7 @@
%
%
% \begin{macrocode}
+\bbl at trace{Creating languages and reading ini files}
\newcommand\babelprovide[2][]{%
\let\bbl at savelangname\languagename
\def\languagename{#2}%
@@ -7809,6 +7871,32 @@
{\setbox\z@\hbox{\InputIfFileExists{babel-#1.tex}{}{}}}}
% \end{macrocode}
%
+% \section{The kernel of Babel (\texttt{babel.def}, only \LaTeX)}
+%
+% \subsection{The redefinition of the style commands}
+%
+% The rest of the code in this file can only be processed by
+% \LaTeX, so we check the current format. If it is plain \TeX,
+% processing should stop here. But, because of the need to limit
+% the scope of the definition of |\format|, a macro that is used
+% locally in the following |\if|~statement, this comparison is done
+% inside a group. To prevent \TeX\ from complaining about an
+% unclosed group, the processing of the command |\endinput| is
+% deferred until after the group is closed. This is accomplished by
+% the command |\aftergroup|.
+%
+% \begin{macrocode}
+{\def\format{lplain}
+\ifx\fmtname\format
+\else
+ \def\format{LaTeX2e}
+ \ifx\fmtname\format
+ \else
+ \aftergroup\endinput
+ \fi
+\fi}
+% \end{macrocode}
+%
% \subsection{Cross referencing macros}
%
% The \LaTeX\ book states:
@@ -7866,6 +7954,7 @@
% arguments immediately expands to its non-active self.
%
% \begin{macrocode}
+\bbl at trace{Cross referencing macros}
\ifx\bbl at opt@safe\@empty\else
\def\@newl at bel#1#2#3{%
{\@safe at activestrue
@@ -8164,6 +8253,7 @@
% \cs{@safe at activestrue} is in effect.
%
% \begin{macrocode}
+\bbl at trace{Marks}
\IfBabelLayout{sectioning}
{\ifx\bbl at opt@headfoot\@nnil
\g at addto@macro\@resetactivechars{%
@@ -8260,6 +8350,7 @@
% time.
%
% \begin{macrocode}
+\bbl at trace{Preventing clashes with other packages}
\bbl at xin@{R}\bbl at opt@safe
\ifin@
\AtBeginDocument{%
@@ -8500,6 +8591,7 @@
% executed only with LaTeX}
%
% \begin{macrocode}
+\bbl at trace{Encoding and fonts}
\newcommand\BabelNonASCII{LGR,X2,OT2,OT3,OT6,LHE,LWN,LMA,LMC,LMS,LMU,}
\let\org at TeX\TeX
\let\org at LaTeX\LaTeX
@@ -8616,10 +8708,23 @@
%
% \subsection{Basic bidi support}
%
-% \textbf{Work in progress.} This code is currently placed here for
-% practical reasons. It is loosely based on |rlbabel.def|, but most
-% of it has been developed from scratch.
+% \textbf{Work in progress.} This code is currently placed here for
+% practical reasons.
%
+% It is loosely based on |rlbabel.def|, but most of it has been
+% developed from scratch. This \babel{} module (by Johannes Braams and
+% Boris Lavva) has served the purpose of typesetting R documents for
+% two decades, and despite its flaws I think it is still a good starting
+% point (some parts have been copied here almost verbatim), partly
+% thanks to its simplicity. I've also looked at \textsc{arabi} (by
+% Youssef Jabri), which is compatible with \babel{}.
+%
+% There are two ways of modifying macros to make them “bidi”, namely,
+% by patching the internal low level macros (which is what I have done
+% with lists, columns, counters, tocs, much like |rlbabel| did), and
+% by introducing a “middle layer” just below the user interface
+% (sectioning, footnotes).
+%
% \begin{itemize}
% \item pdftex provides a minimal support for bidi text, and it
% must be done by hand. Vertical typesetting is not possible.
@@ -8644,6 +8749,7 @@
% \changes{3.15}{2017/10/30}{Store direction in @wdir@<lang>.}
%
% \begin{macrocode}
+\bbl at trace{Basic (internal) bidi support}
\def\bbl at alscripts{,Arabic,Syriac,Thaana,}
\def\bbl at rscripts{%
,Imperial Aramaic,Avestan,Cypriot,Hatran,Hebrew,%
@@ -8795,6 +8901,7 @@
% of |\loadlocalcfg| from \file{plain.def}.
%
% \begin{macrocode}
+\bbl at trace{Local Language Configuration}
\ifx\loadlocalcfg\@undefined
\@ifpackagewith{babel}{noconfigs}%
{\let\loadlocalcfg\@gobble}%
@@ -9165,7 +9272,6 @@
% temporarily |\set at hyphenmins| and hyphenation. It can be done in
% hooks if necessary.}
%
-%
% The switching of the values of |\lefthyphenmin| and
% |\righthyphenmin| is somewhat different. First we save their
% current values, then we check if |\|\langvar|hyphenmins| is
@@ -9324,7 +9430,7 @@
% (3.11) Also experimental are the hook |foreign| and
% |foreign*|. With them you can redefine |\BabelText| which by
% default does nothing. Its
-% behaviour is not well defined yet. So, use it in
+% behavior is not well defined yet. So, use it in
% horizontal mode only if you do not want surprises.
%
% In other words, at the beginning of a paragraph |\foreignlanguage|
@@ -9466,6 +9572,7 @@
% the correct value (PR3997)}
% \changes{babel~3.8l}{2008/07/06}{Use \cs{bbl at patterns}}
% \changes{3.15}{2017/10/30}{Don't set language name. Use temp macro.}
+% \changes{3.15}{2018/02/14}{Fix - didn't work with polyglossia}
%
% \begin{macrocode}
\def\hyphenrules#1{%
@@ -9474,9 +9581,12 @@
\bbl at iflanguage\bbl at tempf{%
\expandafter\bbl at patterns\expandafter{\bbl at tempf}%
\languageshorthands{none}%
- \bbl at ifunset{\bbl at tempf hyphenmins}%
- {\set at hyphenmins\tw@\thr@@\relax}%
- {\bbl at exp{\\\set at hyphenmins\@nameuse{\bbl at tempf hyphenmins}}}}}
+ \expandafter\ifx\csname\bbl at tempf hyphenmins\endcsname\relax
+ \set at hyphenmins\tw@\thr@@\relax
+ \else
+ \expandafter\expandafter\expandafter\set at hyphenmins
+ \csname\bbl at tempf hyphenmins\endcsname\relax
+ \fi}}
\let\endhyphenrules\@empty
% \end{macrocode}
%
@@ -9861,7 +9971,7 @@
% the name of the language. The macro |\bbl at get@enc| extracts the
% font encoding from the language name and stores it in
% |\bbl at hyph@enc|. The latter can be used in hyphenation files if
-% you need to set a behaviour depending on the given encoding (it
+% you need to set a behavior depending on the given encoding (it
% is set to empty if no encoding is given).
%
% Pattern files may contain assignments to |\lefthyphenmin| and
@@ -10178,7 +10288,8 @@
% don't. Just wait and see if the language is actually activated.
%
% \begin{macrocode}
-%<<*Font selection>>
+%<<*Font selection>>
+\bbl at trace{Font handling with fontspec}
\@onlypreamble\babelfont
\newcommand\babelfont[2][]{% 1=langs/scripts 2=fam
\edef\bbl at tempa{#1}%
@@ -10397,6 +10508,7 @@
%
% \begin{macrocode}
%<<*Footnote changes>>
+\bbl at trace{Bidi footnotes}
\ifx\bbl at beforeforeign\leavevmode
\def\bbl at footnote#1#2#3{%
\@ifnextchar[%
@@ -10476,17 +10588,18 @@
% \changes{babel~3.16}{2018/01/02}{Option layout - first available options:
% sectioning, counters, lists, columns, contents}
%
-% In progress.
+% \textit{In progress.}
%
-% Unfortunately, for proper support for \xetex{} lots of macros and
-% packages must be patched somehow. At least at this stage, \babel{}
-% will not do it and therefore a package similar to \textsf{bidi} will
-% be required. Any help in making \babel{} and \textsf{bidi}
-% collaborate will be welcome, although the underlying concepts in
-% both packages seem very different. Note as well, elements like
-% headlines and margins can be modified easily with packages like
-% \textsf{fancyhdr}, \textsf{typearea} or \textsf{titleps}, and
-% \textsf{geometry}.
+% Unfortunately, proper support for \xetex{} requires patching somehow
+% lots of macros and packages (and some issues related to |\special|s
+% remain, like color and hyperlinks). At least at this stage, \babel{}
+% will not do it and therefore a package like \textsf{bidi} (by Vafa
+% Khalighi) would be necessary to overcome the limitations of
+% \xetex. Any help in making \babel{} and \textsf{bidi} collaborate
+% will be welcome, although the underlying concepts in both packages
+% seem very different. Note also elements like headlines and margins
+% can be modified easily with packages like \textsf{fancyhdr},
+% \textsf{typearea} or \textsf{titleps}, and \textsf{geometry}.
%
% |\bbl at startskip| and |\bbl at endskip| are available to package
% authors. Thanks to the \TeX{} expansion mechanism the following
@@ -10494,10 +10607,13 @@
% |\advance\bbl at startskip\adim|, |\bbl at startskip\adim|.
%
% Consider |txtbabel| as a shorthand for \textit{tex--xet babel},
-% which the bidi model in both \pdftex{} and \xetex{}.
+% which is the bidi model in both \pdftex{} and \xetex{}.
%
% \begin{macrocode}
%<*texxet>
+\bbl at trace{Redefinitions for bidi layout}
+\def\bbl at sspre@caption{%
+ \bbl at exp{\everyhbox{\\\bbl at textdir\bbl at cs{wdir@\bbl at main@language}}}}
\ifx\bbl at opt@layout\@nnil\endinput\fi % No layout
\def\bbl at startskip{\ifcase\bbl at thepardir\leftskip\else\rightskip\fi}
\def\bbl at endskip{\ifcase\bbl at thepardir\rightskip\else\leftskip\fi}
@@ -10736,6 +10852,7 @@
% \begin{macrocode}
%<*luatex>
\ifx\AddBabelHook\@undefined
+\bbl at trace{Read language.dat}
\begingroup
\toks@{}
\count@\z@ % 0=start, 1=0th, 2=normal
@@ -10816,6 +10933,7 @@
\repeat
\fi
\endgroup
+\bbl at trace{Macros for reading patterns files}
\def\bbl at get@enc#1:#2:#3\@@@{\def\bbl at hyph@enc{#2}}
\ifx\babelcatcodetablenum\@undefined
\def\babelcatcodetablenum{5211}
@@ -11050,9 +11168,29 @@
% |\parbox| and |\hangindent| are involved. Fortunately, latest
% releases of \luatex{} simplify a lot the solution with |\shapemode|.
%
+% \changes{3.18}{2018/02/14}{\cs{bbl at nextfake}, similar to the old
+% \cs{nextfakemath} in Omega}
+%
% \begin{macrocode}
+\bbl at trace{Redefinitions for bidi layout}
\ifx\bbl at opt@layout\@nnil\endinput\fi % if no layout
\ifx\bbl at beforeforeign\leavevmode % A poor test for bidi=
+ \def\bbl at nextfake#1{%
+ \mathdir\bodydir % non-local, use always inside a group!
+ \bbl at exp{%
+ #1% Once entered in math, set boxes to restore values
+ \everyvbox{%
+ \the\everyvbox
+ \bodydir\the\bodydir
+ \mathdir\the\mathdir
+ \everyhbox{\the\everyhbox}%
+ \everyvbox{\the\everyvbox}}%
+ \everyhbox{%
+ \the\everyhbox
+ \bodydir\the\bodydir
+ \mathdir\the\mathdir
+ \everyhbox{\the\everyhbox}%
+ \everyvbox{\the\everyvbox}}}}%
\def\@hangfrom#1{%
\setbox\@tempboxa\hbox{{#1}}%
\hangindent\wd\@tempboxa
@@ -11061,6 +11199,12 @@
\fi
\noindent\box\@tempboxa}
\fi
+\IfBabelLayout{tabular}
+ {\def\@tabular{%
+ \leavevmode\hbox\bgroup\bbl at nextfake$%
+ \let\@acol\@tabacol \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}}
+ {}
\IfBabelLayout{lists}
{\def\list#1#2{%
\ifnum \@listdepth >5\relax
@@ -17254,6 +17398,8 @@
% excels, because everything related to bidi writing is under our
% control.
%
+% TODO: math mode (as weak L?)
+%
% \begin{macrocode}
%<*basic-r>
Babel = Babel or {}
@@ -17387,7 +17533,7 @@
% nil, ie, a non-char), the textdir is set. This means you cannot
% insert, say, a whatsit, but this is what I would expect (with
% \textsf{luacolor} you may colorize some digits). Anyway, this
-% behaviour could be changed with a switch in the future. Note in the
+% behavior could be changed with a switch in the future. Note in the
% first branch only <an> is relevant if <al>.
%
% \begin{macrocode}
@@ -18147,39 +18293,6 @@
\ifx\scriptsize\@undefined
\let\scriptsize\sevenrm
\fi
-% \end{macrocode}
-%
-% \subsection{\Babel{} options}
-%
-% \changes{babel~3.9k}{2014/03/22}{Moved code from babel.def, and add
-% some new tools (not yet documented)}
-%
-% The file |babel.def| expects some definitions made in the \LaTeX{}
-% style file. So we must provide them at least some predefined values as
-% well some tools to set them (even if not all options are
-% available). There in no package options, and therefore and alternative
-% mechanism is provided. For the moment, only |\babeloptionstrings| and
-% |\babeloptionmath| are provided, which can be defined before loading
-% \babel. |\BabelModifiers| can be set too (but not sure it works).
-%
-% \begin{macrocode}
-\let\bbl at opt@shorthands\@nnil
-\def\bbl at ifshorthand#1#2#3{#2}%
-\ifx\babeloptionstrings\@undefined
- \let\bbl at opt@strings\@nnil
-\else
- \let\bbl at opt@strings\babeloptionstrings
-\fi
-\def\bbl at tempa{normal}
-\ifx\babeloptionmath\bbl at tempa
- \def\bbl at mathnormal{\noexpand\textormath}
-\fi
-\def\BabelStringsDefault{generic}
-\ifx\BabelModifiers\@undefined\let\BabelModifiers\relax\fi
-\let\bbl at afterlang\relax
-\let\bbl at language@opts\@empty
-\ifx\@uclclist\@undefined\let\@uclclist\@empty\fi
-\def\AfterBabelLanguage#1#2{}
%</plain>
% \end{macrocode}
%
Modified: trunk/Master/texmf-dist/source/latex/babel/babel.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/babel/babel.ins 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/source/latex/babel/babel.ins 2018-02-14 21:34:13 UTC (rev 46640)
@@ -3,7 +3,7 @@
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
-%% Copyright 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright 2012-2018 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{2018/01/24}
+\def\filedate{2018/02/14}
\def\batchfile{babel.ins}
\input docstrip.tex
Modified: trunk/Master/texmf-dist/source/latex/babel/bbcompat.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/babel/bbcompat.dtx 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/source/latex/babel/bbcompat.dtx 2018-02-14 21:34:13 UTC (rev 46640)
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2018/01/24 v3.17]
+\ProvidesFile{bbcompat.dtx}[2018/02/14 v3.18]
%</dtx>
%
%% File 'bbcompat.dtx'
Modified: trunk/Master/texmf-dist/source/latex/babel/locale.zip
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
-- babel.dtx (with options: `basic-r')
--
--
--- Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+-- Copyright (C) 2012-2018 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.
Modified: trunk/Master/texmf-dist/tex/generic/babel/babel-bidi.lua
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/babel-bidi.lua 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/babel-bidi.lua 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
-- babel.dtx (with options: `bidi')
--
--
--- Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+-- Copyright (C) 2012-2018 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.
Modified: trunk/Master/texmf-dist/tex/generic/babel/babel.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/babel.def 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/babel.def 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `core')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -40,18 +40,36 @@
\wlog{File: #1 #4 #3 <#2>}%
\let\ProvidesFile\@undefined}
\fi
-\ProvidesFile{babel.def}[2018/01/24 3.17 Babel common definitions]
+\ProvidesFile{babel.def}[2018/02/14 3.18 Babel common definitions]
\ifx\AtBeginDocument\@undefined
\input plain.def\relax
\fi
\ifx\bbl at ifshorthand\@undefined
+ \let\bbl at opt@shorthands\@nnil
\def\bbl at ifshorthand#1#2#3{#2}%
- \def\bbl at opt@safe{BR}
+ \let\bbl at language@opts\@empty
+ \ifx\babeloptionstrings\@undefined
+ \let\bbl at opt@strings\@nnil
+ \else
+ \let\bbl at opt@strings\babeloptionstrings
+ \fi
+ \def\BabelStringsDefault{generic}
+ \def\bbl at tempa{normal}
+ \ifx\babeloptionmath\bbl at tempa
+ \def\bbl at mathnormal{\noexpand\textormath}
+ \fi
\def\AfterBabelLanguage#1#2{}
+ \ifx\BabelModifiers\@undefined\let\BabelModifiers\relax\fi
\let\bbl at afterlang\relax
- \let\bbl at language@opts\@empty
+ \def\bbl at opt@safe{BR}
+ \ifx\@uclclist\@undefined\let\@uclclist\@empty\fi
+ \ifx\bbl at trace\@undefined\def\bbl at trace#1{}\fi
\fi
-\input switch.def\relax
+\ifx\bbl at switchflag\@undefined % Prevent double input
+ \let\bbl at switchflag\relax
+ \input switch.def\relax
+\fi
+\bbl at trace{Compatibility with language.def}
\ifx\bbl at languages\@undefined
\ifx\directlua\@undefined
\openin1 = language.def
@@ -78,6 +96,7 @@
\input luababel.def
\fi
\fi
+\bbl at trace{Basic macros}
\def\bbl at stripslash{\expandafter\@gobble\string}
\def\bbl at add#1#2{%
\bbl at ifunset{\bbl at stripslash#1}%
@@ -228,6 +247,7 @@
{\bbl at exp{\let\<org@\bbl at tempa>\<\bbl at tempa\space>}}%
\@namedef{\bbl at tempa\space}}
\@onlypreamble\bbl at redefinerobust
+\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}}%
@@ -249,6 +269,7 @@
adddialect=2,patterns=2,defaultcommands=0,encodedcommands=2,write=0,%
beforeextras=0,afterextras=0,stopcommands=0,stringprocess=0,%
hyphenation=2,initiateactive=3,afterreset=0,foreign=0,foreign*=0}
+\bbl at trace{Defining babelensure}
\newcommand\babelensure[2][]{% TODO - revise test files
\AddBabelHook{babel-ensure}{afterextras}{%
\ifcase\bbl at select@type
@@ -308,6 +329,7 @@
\contentsname\listfigurename\listtablename\indexname\figurename
\tablename\partname\enclname\ccname\headtoname\pagename\seename
\alsoname\proofname\glossaryname}
+\bbl at trace{Macros for setting language files up}
\def\bbl at ldfinit{%
\let\bbl at screset\@empty
\let\BabelStrings\bbl at opt@string
@@ -366,6 +388,7 @@
\else
\select at language{#1}%
\fi}
+\bbl at trace{Shorhands}
\def\bbl at add@special#1{% 1:a macro like \", \?, etc.
\bbl at add\dospecials{\do#1}% test @sanitize = \relax, for back. compat.
\bbl at ifunset{@sanitize}{}{\bbl at add\@sanitize{\@makeother#1}}%
@@ -683,6 +706,7 @@
\ifx\f at encoding\@undefined
\def\f at encoding{OT1}
\fi
+\bbl at trace{Language attributes}
\newcommand\languageattribute[2]{%
\def\bbl at tempc{#1}%
\bbl at fixname\bbl at tempc
@@ -749,6 +773,7 @@
\def\bbl at clear@ttrib#1-#2.{%
\expandafter\let\csname#1 at attr@#2\endcsname\@undefined}
\AtBeginDocument{\bbl at clear@ttribs}
+\bbl at trace{Macros for saving definitions}
\def\babel at beginsave{\babel at savecnt\z@}
\newcount\babel at savecnt
\babel at beginsave
@@ -769,6 +794,7 @@
\let\bbl at nonfrenchspacing\nonfrenchspacing
\fi}
\let\bbl at nonfrenchspacing\nonfrenchspacing
+\bbl at trace{Short tags}
\def\babeltags#1{%
\edef\bbl at tempa{\zap at space#1 \@empty}%
\def\bbl at tempb##1=##2\@@{%
@@ -783,6 +809,7 @@
\bbl at tempc}%
\bbl at for\bbl at tempa\bbl at tempa{%
\expandafter\bbl at tempb\bbl at tempa\@@}}
+\bbl at trace{Hyphens}
\@onlypreamble\babelhyphenation
\AtEndOfPackage{%
\newcommand\babelhyphenation[2][\@empty]{%
@@ -846,6 +873,7 @@
\def\bbl at hy@empty{\hskip\z at skip}
\def\bbl at hy@@empty{\discretionary{}{}{}}
\def\bbl at disc#1#2{\nobreak\discretionary{#2-}{}{#1}\bbl at allowhyphens}
+\bbl at trace{Multiencoding strings}
\def\bbl at toglobal#1{\global\let#1#1}
\def\bbl at recatcode#1{%
\@tempcnta="7F
@@ -1070,6 +1098,7 @@
\bbl at xin@{,}{\bbl at language@opts}%
\chardef\bbl at opt@hyphenmap\ifin at 4\else\@ne\fi
\fi}
+\bbl at trace{Macros related to glyphs}
\def\set at low@box#1{\setbox\tw@\hbox{,}\setbox\z@\hbox{#1}%
\dimen\z@\ht\z@ \advance\dimen\z@ -\ht\tw@%
\setbox\z@\hbox{\lower\dimen\z@ \box\z@}\ht\z@\ht\tw@ \dp\z@\dp\tw@}
@@ -1227,6 +1256,7 @@
\chardef\l at english\z@
\fi
\main at language{english}
+\bbl at trace{Bidi layout}
\providecommand\IfBabelLayout[3]{#3}%
\newcommand\BabelPatchSection[1]{%
\@ifundefined{#1}{}{%
@@ -1237,6 +1267,7 @@
\def\bbl at presec@x#1[#2]#3{%
\bbl at exp{%
\\\select at language@x{\bbl at main@language}%
+ \\\@nameuse{bbl at sspre@#1}%
\\\@nameuse{bbl at ss@#1}%
[\\\foreignlanguage{\languagename}{\unexpanded{#2}}]%
{\\\foreignlanguage{\languagename}{\unexpanded{#3}}}%
@@ -1244,10 +1275,11 @@
\def\bbl at presec@s#1#2{%
\bbl at exp{%
\\\select at language@x{\bbl at main@language}%
+ \\\@nameuse{bbl at sspre@#1}%
\\\@nameuse{bbl at ss@#1}*%
{\\\foreignlanguage{\languagename}{\unexpanded{#2}}}%
\\\select at language@x{\languagename}}}
-\IfBabelLayout{sectioning}% at begin document ???
+\IfBabelLayout{sectioning}%
{\BabelPatchSection{part}%
\BabelPatchSection{chapter}%
\BabelPatchSection{section}%
@@ -1257,6 +1289,9 @@
\BabelPatchSection{subparagraph}%
\def\babel at toc#1{%
\select at language@x{\bbl at main@language}}}{}
+\IfBabelLayout{captions}%
+ {\BabelPatchSection{caption}}{}
+\bbl at trace{Input engine specific macros}
\ifcase\bbl at engine
\input txtbabel.def
\or
@@ -1264,15 +1299,7 @@
\or
\input xebabel.def
\fi
-{\def\format{lplain}
-\ifx\fmtname\format
-\else
- \def\format{LaTeX2e}
- \ifx\fmtname\format
- \else
- \aftergroup\endinput
- \fi
-\fi}
+\bbl at trace{Creating languages and reading ini files}
\newcommand\babelprovide[2][]{%
\let\bbl at savelangname\languagename
\def\languagename{#2}%
@@ -1563,6 +1590,16 @@
\bbl at read@ini{##1}%
\endgroup}% boxed, to avoid extra spaces:
{\setbox\z@\hbox{\InputIfFileExists{babel-#1.tex}{}{}}}}
+{\def\format{lplain}
+\ifx\fmtname\format
+\else
+ \def\format{LaTeX2e}
+ \ifx\fmtname\format
+ \else
+ \aftergroup\endinput
+ \fi
+\fi}
+\bbl at trace{Cross referencing macros}
\ifx\bbl at opt@safe\@empty\else
\def\@newl at bel#1#2#3{%
{\@safe at activestrue
@@ -1640,6 +1677,7 @@
\let\org at bibcite\bibcite
\let\org@@bibitem\@bibitem
\fi
+\bbl at trace{Marks}
\IfBabelLayout{sectioning}
{\ifx\bbl at opt@headfoot\@nnil
\g at addto@macro\@resetactivechars{%
@@ -1670,6 +1708,7 @@
{\@temptokena\expandafter{\bbl at tempb{#2}}}%
\bbl at exp{\\\org at markboth{\the\toks@}{\the\@temptokena}}}
\bbl at tempc} % end \IfBabelLayout
+\bbl at trace{Preventing clashes with other packages}
\bbl at xin@{R}\bbl at opt@safe
\ifin@
\AtBeginDocument{%
@@ -1741,6 +1780,7 @@
\closeout15
}
\@onlypreamble\substitutefontfamily
+\bbl at trace{Encoding and fonts}
\newcommand\BabelNonASCII{LGR,X2,OT2,OT3,OT6,LHE,LWN,LMA,LMC,LMS,LMU,}
\let\org at TeX\TeX
\let\org at LaTeX\LaTeX
@@ -1798,6 +1838,7 @@
\else
\DeclareTextFontCommand{\textlatin}{\latintext}
\fi
+\bbl at trace{Basic (internal) bidi support}
\def\bbl at alscripts{,Arabic,Syriac,Thaana,}
\def\bbl at rscripts{%
,Imperial Aramaic,Avestan,Cypriot,Hatran,Hebrew,%
@@ -1915,6 +1956,7 @@
\bbl at severypar{\bbl at xeeverypar\the\everypar}}
\fi
\DeclareRobustCommand\babelsublr[1]{\leavevmode{\bbl at textdir\z@#1}}
+\bbl at trace{Local Language Configuration}
\ifx\loadlocalcfg\@undefined
\@ifpackagewith{babel}{noconfigs}%
{\let\loadlocalcfg\@gobble}%
Modified: trunk/Master/texmf-dist/tex/generic/babel/babel.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/babel.sty 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/babel.sty 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `package')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -32,16 +32,22 @@
%% extension |.ins|) which are part of the distribution.
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{babel}[2018/01/24 3.17 The Babel package]
+\ProvidesPackage{babel}[2018/02/14 3.18 The Babel package]
\@ifpackagewith{babel}{debug}
- {\let\bbl at debug\@firstofone}
- {\let\bbl at debug\@gobble}
-\input switch.def\relax
+ {\providecommand\bbl at trace[1]{\message{^^J[ #1 ]}}%
+ \let\bbl at debug\@firstofone}
+ {\providecommand\bbl at trace[1]{}%
+ \let\bbl at debug\@gobble}
+\ifx\bbl at switchflag\@undefined % Prevent double input
+ \let\bbl at switchflag\relax
+ \input switch.def\relax
+\fi
\ifx\directlua\@undefined\else
\ifx\bbl at luapatterns\@undefined
\input luababel.def
\fi
\fi
+\bbl at trace{Basic macros}
\def\bbl at stripslash{\expandafter\@gobble\string}
\def\bbl at add#1#2{%
\bbl at ifunset{\bbl at stripslash#1}%
@@ -198,6 +204,7 @@
luatexbase.priority_in_callback('hpack_filter',
'luaotfload.node_processor') or nil)}}{}
\fi
+\bbl at trace{Defining option 'base'}
\@ifpackagewith{babel}{base}{%
\ifx\directlua\@undefined
\DeclareOption*{\bbl at patterns{\CurrentOption}}%
@@ -212,6 +219,7 @@
\global\let\@ifl at ter@@\@ifl at ter
\def\@ifl at ter#1#2#3#4#5{\global\let\@ifl at ter\@ifl at ter@@}%
\endinput}{}%
+\bbl at trace{key=value and another general options}
\bbl at csarg\let{tempa\expandafter}\csname opt at babel.sty\endcsname
\def\bbl at tempb#1.#2{%
#1\ifx\@empty#2\else,\bbl at afterfi\bbl at tempb#2\fi}%
@@ -305,6 +313,7 @@
\bbl at add@list\bbl at language@opts{\CurrentOption}%
\fi}
\ProcessOptions*
+\bbl at trace{Conditional loading of shorthands}
\def\bbl at sh@string#1{%
\ifx#1\@empty\else
\ifx#1t\string~%
@@ -346,6 +355,7 @@
\ifx\bbl at language@opts\@empty\else\bbl at language@opts,\fi
\bbl at opt@main}
\fi
+\bbl at trace{Defining IfBabelLayout}
\ifx\bbl at opt@layout\@nnil
\newcommand\IfBabelLayout[3]{#3}%
\else
@@ -357,6 +367,7 @@
\expandafter\@secondoftwo
\fi}
\fi
+\bbl at trace{Language options}
\let\bbl at afterlang\relax
\let\BabelModifiers\relax
\let\bbl at loaded\@empty
Modified: trunk/Master/texmf-dist/tex/generic/babel/blplain.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/blplain.tex 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/blplain.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `blplain')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
Modified: trunk/Master/texmf-dist/tex/generic/babel/bplain.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/bplain.tex 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/bplain.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `bplain')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
Modified: trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `patterns')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -36,7 +36,7 @@
\wlog{File: #1 #4 #3 <#2>}%
\let\ProvidesFile\@undefined}
\fi
-\ProvidesFile{hyphen.cfg}[2018/01/24 3.17 Babel hyphens]
+\ProvidesFile{hyphen.cfg}[2018/02/14 3.18 Babel hyphens]
\xdef\bbl at format{\jobname}
\ifx\AtBeginDocument\@undefined
\def\@empty{}
@@ -67,7 +67,7 @@
\countdef\last at language=19
\def\addlanguage{\alloc at 9\language\chardef\@cclvi}
\fi
-\toks8{Babel <3.17> and hyphenation patterns for }%
+\toks8{Babel <3.18> and hyphenation patterns for }%
\def\process at line#1#2 #3 #4 {%
\ifx=#1%
\process at synonym{#2}%
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-DZ.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-DZ.ini (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-DZ.ini 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,153 @@
+; This file is part of babel. For further details see:
+; https://www.ctan.org/pkg/babel
+; Data has been collected mainly from the following sources:
+; * babel language styles (license LPPL):
+; https://www.ctan.org/pkg/babel-contrib
+; * polyglossia language styles (license LPPL)
+; https://www.ctan.org/pkg/polyglossia
+; * Common Locale Data Repository (license Unicode):
+; http://cldr.unicode.org/
+; http://unicode.org/copyright.html
+
+[identification]
+charset = utf8
+version = 1.0
+date = 2018-02-05
+name.local = العربية
+name.english = Arabic
+name.babel = arabic-dz
+name.babel.A = arabic-algeria
+tag.bcp47 = ar
+tag.opentype = ARA
+region.local = الجزائر
+region.english = Algeria
+region.tag.bcp47 = DZ
+script.name = Arabic
+script.tag.bcp47 = Arab
+script.tag.opentype = arab
+level = 1
+encodings =
+derivate = no
+
+[captions]
+preface = مدخل
+ref = المراجع
+abstract = ملخص
+bib = المصادر
+chapter = باب
+appendix = الملاحق
+contents = المحتويات
+listfigure = قائمة الأشكال
+listtable = قائمة الجداول
+index = الفهرس
+figure = شكل
+table = جدول
+part = القسم
+encl = المرفقات
+cc = نسخة ل
+headto = إلى
+page = صفحة
+see = راجع
+also = راجع أيضًا
+proof = برهان
+glossary = قاموس
+
+[date.gregorian]
+date.long = [d] [MMMM]، [y]
+date.short = [d]/[M]/[y]
+months.wide.1 = جانفي
+months.wide.2 = فيفري
+months.wide.3 = مارس
+months.wide.4 = أفريل
+months.wide.5 = ماي
+months.wide.6 = جوان
+months.wide.7 = جويلية
+months.wide.8 = أوت
+months.wide.9 = سبتمبر
+months.wide.10 = أكتوبر
+months.wide.11 = نوفمبر
+months.wide.12 = ديسمبر
+months.narrow.1 = ج
+months.narrow.2 = ف
+months.narrow.3 = م
+months.narrow.4 = أ
+months.narrow.5 = م
+months.narrow.6 = ج
+months.narrow.7 = ج
+months.narrow.8 = أ
+months.narrow.9 = س
+months.narrow.10 = أ
+months.narrow.11 = ن
+months.narrow.12 = د
+days.wide.mon = الاثنين
+days.wide.tue = الثلاثاء
+days.wide.wed = الأربعاء
+days.wide.thu = الخميس
+days.wide.fri = الجمعة
+days.wide.sat = السبت
+days.wide.sun = الأحد
+days.abbreviated.mon = الاثنين
+days.abbreviated.tue = الثلاثاء
+days.abbreviated.wed = الأربعاء
+days.abbreviated.thu = الخميس
+days.abbreviated.fri = الجمعة
+days.abbreviated.sat = السبت
+days.abbreviated.sun = الأحد
+days.narrow.mon = ن
+days.narrow.tue = ث
+days.narrow.wed = ر
+days.narrow.thu = خ
+days.narrow.fri = ج
+days.narrow.sat = س
+days.narrow.sun = ح
+dayPeriods.abbreviated.am = ص
+dayPeriods.abbreviated.pm = م
+dayPeriods.narrow.am = ص
+dayPeriods.narrow.pm = م
+dayPeriods.wide.am = ص
+dayPeriods.wide.pm = م
+
+[time.gregorian]
+time.medium = [h]:[mm]:[ss] [a]
+time.short = [h]:[mm] [a]
+
+[typography]
+frenchspacing =
+hyphenrules =
+lefthyphenmin =
+righthyphenmin =
+hyphenchar =
+prehyphenchar =
+posthyphenchar =
+exhyphenchar =
+preexhyphenchar =
+postexhyphenchar =
+hyphenationmin =
+
+[characters]
+delimiters.quotes = ”“’‘
+auxiliary = [\u200C\u200D\u200E\u200F پ چ ژ ڜ ڢ ڤ ڥ ٯ ڧ ڨ ک گ ی]
+exemplarCharacters = [\u064B \u064C \u064D \u064E \u064F \u0650 \u0651 \u0652 \u0670 ء أ ؤ إ ئ ا آ ب ة ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ى ي]
+index = [ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي]
+punctuation = [\\- ‐ – — ، ؛ \\: ! ؟ . ' \" ( ) \\[ \\]]
+
+[numbers]
+defaultNumberingSystem = latn
+minimumGroupingDigits = 1
+decimal = ,
+exponential = E
+group = .
+infinity = ∞
+list = ;
+minusSign = -
+nan = ليس رقمًا
+perMille = ‰
+percentSign = %
+plusSign = +
+superscriptingExponent = ×
+
+[counters]
+alph =
+Alph =
+ordinals =
+
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-DZ.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-MA.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-MA.ini (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-MA.ini 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,153 @@
+; This file is part of babel. For further details see:
+; https://www.ctan.org/pkg/babel
+; Data has been collected mainly from the following sources:
+; * babel language styles (license LPPL):
+; https://www.ctan.org/pkg/babel-contrib
+; * polyglossia language styles (license LPPL)
+; https://www.ctan.org/pkg/polyglossia
+; * Common Locale Data Repository (license Unicode):
+; http://cldr.unicode.org/
+; http://unicode.org/copyright.html
+
+[identification]
+charset = utf8
+version = 1.0
+date = 2018-02-05
+name.local = العربية
+name.english = Arabic
+name.babel = arabic-ma
+name.babel.A = arabic-morocco
+tag.bcp47 = ar
+tag.opentype = ARA
+region.local = المغرب
+region.english = Morocco
+region.tag.bcp47 = MA
+script.name = Arabic
+script.tag.bcp47 = Arab
+script.tag.opentype = arab
+level = 1
+encodings =
+derivate = no
+
+[captions]
+preface = مدخل
+ref = المراجع
+abstract = ملخص
+bib = المصادر
+chapter = باب
+appendix = الملاحق
+contents = المحتويات
+listfigure = قائمة الأشكال
+listtable = قائمة الجداول
+index = الفهرس
+figure = شكل
+table = جدول
+part = القسم
+encl = المرفقات
+cc = نسخة ل
+headto = إلى
+page = صفحة
+see = راجع
+also = راجع أيضًا
+proof = برهان
+glossary = قاموس
+
+[date.gregorian]
+date.long = [d] [MMMM]، [y]
+date.short = [d]/[M]/[y]
+months.wide.1 = يناير
+months.wide.2 = فبراير
+months.wide.3 = مارس
+months.wide.4 = أبريل
+months.wide.5 = ماي
+months.wide.6 = يونيو
+months.wide.7 = يوليوز
+months.wide.8 = غشت
+months.wide.9 = شتنبر
+months.wide.10 = أكتوبر
+months.wide.11 = نونبر
+months.wide.12 = دجنبر
+months.narrow.1 = ي
+months.narrow.2 = ف
+months.narrow.3 = م
+months.narrow.4 = أ
+months.narrow.5 = م
+months.narrow.6 = ن
+months.narrow.7 = ل
+months.narrow.8 = غ
+months.narrow.9 = ش
+months.narrow.10 = ك
+months.narrow.11 = ب
+months.narrow.12 = د
+days.wide.mon = الاثنين
+days.wide.tue = الثلاثاء
+days.wide.wed = الأربعاء
+days.wide.thu = الخميس
+days.wide.fri = الجمعة
+days.wide.sat = السبت
+days.wide.sun = الأحد
+days.abbreviated.mon = الاثنين
+days.abbreviated.tue = الثلاثاء
+days.abbreviated.wed = الأربعاء
+days.abbreviated.thu = الخميس
+days.abbreviated.fri = الجمعة
+days.abbreviated.sat = السبت
+days.abbreviated.sun = الأحد
+days.narrow.mon = ن
+days.narrow.tue = ث
+days.narrow.wed = ر
+days.narrow.thu = خ
+days.narrow.fri = ج
+days.narrow.sat = س
+days.narrow.sun = ح
+dayPeriods.abbreviated.am = ص
+dayPeriods.abbreviated.pm = م
+dayPeriods.narrow.am = ص
+dayPeriods.narrow.pm = م
+dayPeriods.wide.am = ص
+dayPeriods.wide.pm = م
+
+[time.gregorian]
+time.medium = [HH]:[mm]:[ss]
+time.short = [HH]:[mm]
+
+[typography]
+frenchspacing =
+hyphenrules =
+lefthyphenmin =
+righthyphenmin =
+hyphenchar =
+prehyphenchar =
+posthyphenchar =
+exhyphenchar =
+preexhyphenchar =
+postexhyphenchar =
+hyphenationmin =
+
+[characters]
+delimiters.quotes = ”“’‘
+auxiliary = [\u200C\u200D\u200E\u200F پ چ ژ ڜ ڢ ڤ ڥ ٯ ڧ ڨ ک ڭ گ ݣ ی]
+exemplarCharacters = [\u064B \u064C \u064D \u064E \u064F \u0650 \u0651 \u0652 \u0670 ء أ ؤ إ ئ ا آ ب ة ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ى ي]
+index = [ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي]
+punctuation = [\\- ‐ – — ، ؛ \\: ! ؟ . ' \" ( ) \\[ \\]]
+
+[numbers]
+defaultNumberingSystem = latn
+minimumGroupingDigits = 1
+decimal = ,
+exponential = E
+group = .
+infinity = ∞
+list = ;
+minusSign = -
+nan = ليس رقمًا
+perMille = ‰
+percentSign = %
+plusSign = +
+superscriptingExponent = ×
+
+[counters]
+alph =
+Alph =
+ordinals =
+
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-MA.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-SY.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-SY.ini (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-SY.ini 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,151 @@
+; This file is part of babel. For further details see:
+; https://www.ctan.org/pkg/babel
+; Data has been collected mainly from the following sources:
+; * babel language styles (license LPPL):
+; https://www.ctan.org/pkg/babel-contrib
+; * polyglossia language styles (license LPPL)
+; https://www.ctan.org/pkg/polyglossia
+; * Common Locale Data Repository (license Unicode):
+; http://cldr.unicode.org/
+; http://unicode.org/copyright.html
+
+[identification]
+charset = utf8
+version = 1.0
+date = 2018-02-05
+name.local = العربية
+name.english = Arabic
+name.babel = arabic-sy
+name.babel.A = arabic-syria
+tag.bcp47 = ar
+tag.opentype = ARA
+region.local = سوريا
+region.english = Syria
+region.tag.bcp47 = SY
+script.name = Arabic
+script.tag.bcp47 = Arab
+script.tag.opentype = arab
+level = 1
+encodings =
+derivate = no
+
+[captions]
+preface = مدخل
+ref = المراجع
+abstract = ملخص
+bib = المصادر
+chapter = باب
+appendix = الملاحق
+contents = المحتويات
+listfigure = قائمة الأشكال
+listtable = قائمة الجداول
+index = الفهرس
+figure = شكل
+table = جدول
+part = القسم
+encl = المرفقات
+cc = نسخة ل
+headto = إلى
+page = صفحة
+see = راجع
+also = راجع أيضًا
+proof = برهان
+glossary = قاموس
+
+[date.gregorian]
+months.wide.1 = كانون الثاني
+months.wide.2 = شباط
+months.wide.3 = آذار
+months.wide.4 = نيسان
+months.wide.5 = أيار
+months.wide.6 = حزيران
+months.wide.7 = تموز
+months.wide.8 = آب
+months.wide.9 = أيلول
+months.wide.10 = تشرين الأول
+months.wide.11 = تشرين الثاني
+months.wide.12 = كانون الأول
+months.narrow.1 = ك
+months.narrow.2 = ش
+months.narrow.3 = آ
+months.narrow.4 = ن
+months.narrow.5 = أ
+months.narrow.6 = ح
+months.narrow.7 = ت
+months.narrow.8 = آ
+months.narrow.9 = أ
+months.narrow.10 = ت
+months.narrow.11 = ت
+months.narrow.12 = ك
+days.wide.mon = الاثنين
+days.wide.tue = الثلاثاء
+days.wide.wed = الأربعاء
+days.wide.thu = الخميس
+days.wide.fri = الجمعة
+days.wide.sat = السبت
+days.wide.sun = الأحد
+days.abbreviated.mon = الاثنين
+days.abbreviated.tue = الثلاثاء
+days.abbreviated.wed = الأربعاء
+days.abbreviated.thu = الخميس
+days.abbreviated.fri = الجمعة
+days.abbreviated.sat = السبت
+days.abbreviated.sun = الأحد
+days.narrow.mon = ن
+days.narrow.tue = ث
+days.narrow.wed = ر
+days.narrow.thu = خ
+days.narrow.fri = ج
+days.narrow.sat = س
+days.narrow.sun = ح
+dayPeriods.abbreviated.am = ص
+dayPeriods.abbreviated.pm = م
+dayPeriods.narrow.am = ص
+dayPeriods.narrow.pm = م
+dayPeriods.wide.am = ص
+dayPeriods.wide.pm = م
+
+[time.gregorian]
+time.medium = [h]:[mm]:[ss] [a]
+time.short = [h]:[mm] [a]
+
+[typography]
+frenchspacing =
+hyphenrules =
+lefthyphenmin =
+righthyphenmin =
+hyphenchar =
+prehyphenchar =
+posthyphenchar =
+exhyphenchar =
+preexhyphenchar =
+postexhyphenchar =
+hyphenationmin =
+
+[characters]
+delimiters.quotes = ”“’‘
+auxiliary = [\u200C\u200D\u200E\u200F پ چ ژ ڜ ڢ ڤ ڥ ٯ ڧ ڨ ک گ ی]
+exemplarCharacters = [\u064B \u064C \u064D \u064E \u064F \u0650 \u0651 \u0652 \u0670 ء أ ؤ إ ئ ا آ ب ة ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ى ي]
+index = [ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي]
+punctuation = [\\- ‐ – — ، ؛ \\: ! ؟ . ' \" ( ) \\[ \\]]
+
+[numbers]
+defaultNumberingSystem = arab
+minimumGroupingDigits = 1
+decimal = .
+exponential = E
+group = ,
+infinity = ∞
+list = ;
+minusSign = -
+nan = ليس رقمًا
+perMille = ‰
+percentSign = %
+plusSign = +
+superscriptingExponent = ×
+
+[counters]
+alph =
+Alph =
+ordinals =
+
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar-SY.ini
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar.ini 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-ar.ini 2018-02-14 21:34:13 UTC (rev 46640)
@@ -11,8 +11,8 @@
[identification]
charset = utf8
-version = 1.0
-date = 2017-09-01
+version = 1.1
+date = 2018-02-05
name.local = العربية
name.english = Arabic
name.babel = arabic
@@ -32,7 +32,7 @@
bib = المصادر
chapter = باب
appendix = الملاحق
-contents = الفهرس
+contents = المحتويات
listfigure = قائمة الأشكال
listtable = قائمة الجداول
index = الفهرس
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-algeria.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-algeria.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-algeria.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,12 @@
+% This file is part of babel. For further details see:
+% https://www.ctan.org/pkg/babel
+\ifx\BabelBeforeIni\undefined
+ \PackageError{babel}%
+ {This file is a component of babel and cannot\MessageBreak
+ be loaded directly. I'll stop immediately}%
+ {Just use babel as documented.}%
+ \stop
+\fi
+\BabelBeforeIni{ar-DZ}{%
+}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-algeria.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-dz.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-dz.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-dz.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,4 @@
+% This file is part of babel. For further details see:
+% https://www.ctan.org/pkg/babel
+\input{babel-arabic-algeria}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-dz.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-ma.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-ma.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-ma.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,4 @@
+% This file is part of babel. For further details see:
+% https://www.ctan.org/pkg/babel
+\input{babel-arabic-morocco}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-ma.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-morocco.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-morocco.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-morocco.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,12 @@
+% This file is part of babel. For further details see:
+% https://www.ctan.org/pkg/babel
+\ifx\BabelBeforeIni\undefined
+ \PackageError{babel}%
+ {This file is a component of babel and cannot\MessageBreak
+ be loaded directly. I'll stop immediately}%
+ {Just use babel as documented.}%
+ \stop
+\fi
+\BabelBeforeIni{ar-MA}{%
+}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-morocco.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-sy.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-sy.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-sy.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,4 @@
+% This file is part of babel. For further details see:
+% https://www.ctan.org/pkg/babel
+\input{babel-arabic-syria}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-sy.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-syria.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-syria.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-syria.tex 2018-02-14 21:34:13 UTC (rev 46640)
@@ -0,0 +1,12 @@
+% This file is part of babel. For further details see:
+% https://www.ctan.org/pkg/babel
+\ifx\BabelBeforeIni\undefined
+ \PackageError{babel}%
+ {This file is a component of babel and cannot\MessageBreak
+ be loaded directly. I'll stop immediately}%
+ {Just use babel as documented.}%
+ \stop
+\fi
+\BabelBeforeIni{ar-SY}{%
+}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/babel/locale/ar/babel-arabic-syria.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/generic/babel/luababel.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/luababel.def 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/luababel.def 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `luatex')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -32,6 +32,7 @@
%% extension |.ins|) which are part of the distribution.
%%
\ifx\AddBabelHook\@undefined
+\bbl at trace{Read language.dat}
\begingroup
\toks@{}
\count@\z@ % 0=start, 1=0th, 2=normal
@@ -112,6 +113,7 @@
\repeat
\fi
\endgroup
+\bbl at trace{Macros for reading patterns files}
\def\bbl at get@enc#1:#2:#3\@@@{\def\bbl at hyph@enc{#2}}
\ifx\babelcatcodetablenum\@undefined
\def\babelcatcodetablenum{5211}
@@ -335,6 +337,7 @@
\ifx\DisableBabelHook\@undefined\endinput\fi
\AddBabelHook{babel-fontspec}{afterextras}{\bbl at switchfont}
\DisableBabelHook{babel-fontspec}
+\bbl at trace{Font handling with fontspec}
\@onlypreamble\babelfont
\newcommand\babelfont[2][]{% 1=langs/scripts 2=fam
\edef\bbl at tempa{#1}%
@@ -448,8 +451,25 @@
\expandafter\addto\csname extras#1\endcsname{%
\babel at save\bbl at langfeatures
\edef\bbl at langfeatures{#2,}}}
+\bbl at trace{Redefinitions for bidi layout}
\ifx\bbl at opt@layout\@nnil\endinput\fi % if no layout
\ifx\bbl at beforeforeign\leavevmode % A poor test for bidi=
+ \def\bbl at nextfake#1{%
+ \mathdir\bodydir % non-local, use always inside a group!
+ \bbl at exp{%
+ #1% Once entered in math, set boxes to restore values
+ \everyvbox{%
+ \the\everyvbox
+ \bodydir\the\bodydir
+ \mathdir\the\mathdir
+ \everyhbox{\the\everyhbox}%
+ \everyvbox{\the\everyvbox}}%
+ \everyhbox{%
+ \the\everyhbox
+ \bodydir\the\bodydir
+ \mathdir\the\mathdir
+ \everyhbox{\the\everyhbox}%
+ \everyvbox{\the\everyvbox}}}}%
\def\@hangfrom#1{%
\setbox\@tempboxa\hbox{{#1}}%
\hangindent\wd\@tempboxa
@@ -458,6 +478,12 @@
\fi
\noindent\box\@tempboxa}
\fi
+\IfBabelLayout{tabular}
+ {\def\@tabular{%
+ \leavevmode\hbox\bgroup\bbl at nextfake$%
+ \let\@acol\@tabacol \let\@classz\@tabclassz
+ \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}}
+ {}
\IfBabelLayout{lists}
{\def\list#1#2{%
\ifnum \@listdepth >5\relax
@@ -500,6 +526,7 @@
\def\@Roman#1{\babelsublr{\ensureascii{\bbl at asciiRoman#1}}}%
\def\labelenumii{)\theenumii(}%
\def\p at enumiii{\p at enumii)\theenumii(}}{}}{}
+\bbl at trace{Bidi footnotes}
\ifx\bbl at beforeforeign\leavevmode
\def\bbl at footnote#1#2#3{%
\@ifnextchar[%
Modified: trunk/Master/texmf-dist/tex/generic/babel/nil.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/nil.ldf 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/nil.ldf 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `nil')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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 @@
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension |.ins|) which are part of the distribution.
%%
-\ProvidesLanguage{nil}[2018/01/24 3.17 Nil language]
+\ProvidesLanguage{nil}[2018/02/14 3.18 Nil language]
\LdfInit{nil}{datenil}
\ifx\l at nohyphenation\@undefined
\@nopatterns{nil}
Modified: trunk/Master/texmf-dist/tex/generic/babel/plain.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/plain.def 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/plain.def 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `plain')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -352,23 +352,6 @@
\ifx\scriptsize\@undefined
\let\scriptsize\sevenrm
\fi
-\let\bbl at opt@shorthands\@nnil
-\def\bbl at ifshorthand#1#2#3{#2}%
-\ifx\babeloptionstrings\@undefined
- \let\bbl at opt@strings\@nnil
-\else
- \let\bbl at opt@strings\babeloptionstrings
-\fi
-\def\bbl at tempa{normal}
-\ifx\babeloptionmath\bbl at tempa
- \def\bbl at mathnormal{\noexpand\textormath}
-\fi
-\def\BabelStringsDefault{generic}
-\ifx\BabelModifiers\@undefined\let\BabelModifiers\relax\fi
-\let\bbl at afterlang\relax
-\let\bbl at language@opts\@empty
-\ifx\@uclclist\@undefined\let\@uclclist\@empty\fi
-\def\AfterBabelLanguage#1#2{}
\endinput
%%
%% End of file `plain.def'.
Modified: trunk/Master/texmf-dist/tex/generic/babel/switch.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/switch.def 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/switch.def 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `kernel')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -36,7 +36,7 @@
\wlog{File: #1 #4 #3 <#2>}%
\let\ProvidesFile\@undefined}
\fi
-\ProvidesFile{switch.def}[2018/01/24 3.17 Babel switching mechanism]
+\ProvidesFile{switch.def}[2018/02/14 3.18 Babel switching mechanism]
\ifx\AtBeginDocument\@undefined
\input plain.def\relax
\fi
@@ -57,8 +57,8 @@
\countdef\last at language=19
\def\addlanguage{\alloc at 9\language\chardef\@cclvi}
\fi
-\def\bbl at version{3.17}
-\def\bbl at date{2018/01/24}
+\def\bbl at version{3.18}
+\def\bbl at date{2018/02/14}
\def\adddialect#1#2{%
\global\chardef#1#2\relax
\bbl at usehooks{adddialect}{{#1}{#2}}%
@@ -283,9 +283,12 @@
\bbl at iflanguage\bbl at tempf{%
\expandafter\bbl at patterns\expandafter{\bbl at tempf}%
\languageshorthands{none}%
- \bbl at ifunset{\bbl at tempf hyphenmins}%
- {\set at hyphenmins\tw@\thr@@\relax}%
- {\bbl at exp{\\\set at hyphenmins\@nameuse{\bbl at tempf hyphenmins}}}}}
+ \expandafter\ifx\csname\bbl at tempf hyphenmins\endcsname\relax
+ \set at hyphenmins\tw@\thr@@\relax
+ \else
+ \expandafter\expandafter\expandafter\set at hyphenmins
+ \csname\bbl at tempf hyphenmins\endcsname\relax
+ \fi}}
\let\endhyphenrules\@empty
\def\providehyphenmins#1#2{%
\expandafter\ifx\csname #1hyphenmins\endcsname\relax
Modified: trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `texxet')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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,6 +31,9 @@
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension |.ins|) which are part of the distribution.
%%
+\bbl at trace{Redefinitions for bidi layout}
+\def\bbl at sspre@caption{%
+ \bbl at exp{\everyhbox{\\\bbl at textdir\bbl at cs{wdir@\bbl at main@language}}}}
\ifx\bbl at opt@layout\@nnil\endinput\fi % No layout
\def\bbl at startskip{\ifcase\bbl at thepardir\leftskip\else\rightskip\fi}
\def\bbl at endskip{\ifcase\bbl at thepardir\rightskip\else\leftskip\fi}
@@ -171,6 +174,7 @@
\endgroup
\fi}}%
{}
+\bbl at trace{Bidi footnotes}
\ifx\bbl at beforeforeign\leavevmode
\def\bbl at footnote#1#2#3{%
\@ifnextchar[%
Modified: trunk/Master/texmf-dist/tex/generic/babel/xebabel.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/xebabel.def 2018-02-14 21:33:18 UTC (rev 46639)
+++ trunk/Master/texmf-dist/tex/generic/babel/xebabel.def 2018-02-14 21:34:13 UTC (rev 46640)
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `xetex')
%%
%%
-%% Copyright (C) 2012-2017 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2018 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.
@@ -76,6 +76,7 @@
\ifx\DisableBabelHook\@undefined\endinput\fi
\AddBabelHook{babel-fontspec}{afterextras}{\bbl at switchfont}
\DisableBabelHook{babel-fontspec}
+\bbl at trace{Font handling with fontspec}
\@onlypreamble\babelfont
\newcommand\babelfont[2][]{% 1=langs/scripts 2=fam
\edef\bbl at tempa{#1}%
More information about the tex-live-commits
mailing list