texlive[56581] Master/texmf-dist: babel (6oct20)
commits+karl at tug.org
commits+karl at tug.org
Wed Oct 7 22:48:10 CEST 2020
Revision: 56581
http://tug.org/svn/texlive?view=revision&revision=56581
Author: karl
Date: 2020-10-07 22:48:10 +0200 (Wed, 07 Oct 2020)
Log Message:
-----------
babel (6oct20)
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.def
trunk/Master/texmf-dist/tex/generic/babel/babel.sty
trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg
trunk/Master/texmf-dist/tex/generic/babel/locale/zh/babel-zh-Hant.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/txtbabel.def
Modified: trunk/Master/texmf-dist/doc/latex/babel/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/babel/README.md 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/doc/latex/babel/README.md 2020-10-07 20:48:10 UTC (rev 56581)
@@ -1,4 +1,4 @@
-## Babel 3.49
+## Babel 3.50
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -7,9 +7,9 @@
The latest stable version is available on <https://ctan.org/pkg/babel>.
-Changes in version 3.49 are described in:
+Changes in version 3.50 are described in:
-https://github.com/latex3/babel/wiki/What's-new-in-babel-3.49
+https://github.com/latex3/babel/wiki/What's-new-in-babel-3.50
Included is a set of ini files for about 250 languages.
@@ -43,12 +43,19 @@
### Latest changes
```
+3.50 2020-10-06
+ - Fixes:
+ - main=<language> stopped working in some cases (#96).
+ - Footnotes were not \long with layout=footnotes.
+
3.49 2020-10-03
+ - BUG. This version has a severe bug with main= (fixed in 3.50).
- Allow standard LaTeX syntax to recognize locales based on ini
files in the most common cases.
- frenchspacing is set with ini files.
- Fixes:
- layout.lists=off didn't work (#94)
+https://github.com/latex3/babel/wiki/What's-new-in-babel-3.49
3.48 2020-09-01
- New (tentative) tools to customize some labels (like chapters
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 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/source/latex/babel/babel.dtx 2020-10-07 20:48:10 UTC (rev 56581)
@@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2020/10/03 v3.49 The Babel package]
+\ProvidesFile{babel.dtx}[2020/10/06 v3.50 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -2405,8 +2405,8 @@
|\usepackage|, then |\babelprovide| redefines the requested data.
\Describe{import=}{\meta{language-tag}}
-\New{3.13} Imports data from an |ini| file, including captions, date,
-and hyphenmins. For example:
+\New{3.13} Imports data from an |ini| file, including captions and date
+(also line breaking rules in newly defined languages). For example:
\begin{verbatim}
\babelprovide[_import=hu_]{hungarian}
\end{verbatim}
@@ -2422,11 +2422,11 @@
\babelprovide[_import_]{hungarian}
\end{verbatim}
-There are about 200 |ini| files, with data taken from the |ldf| files
+There are about 250 |ini| files, with data taken from the |ldf| files
and the CLDR provided by Unicode. Not all languages in the latter are
complete, and therefore neither are the |ini| files. A few languages
-will show a warning about the current lack of suitability of the date
-format (\textsf{french}, \textsf{breton}, and \textsf{occitan}).
+may show a warning about the current lack of suitability of some
+features.
Besides |\today|, this option defines an additional command for dates:
|\<language>date|, which takes three arguments, namely, year, month and
@@ -2508,12 +2508,14 @@
\Describe{onchar=}{\texttt{ids} $\string|$ \texttt{fonts}}
\New{3.38} This option is much like an ‘event’ called when a character
-belonging to the script of this locale is found. There are currently
-two ‘actions’, which can be used at the same time (separated by a
-space): with |ids| the |\language| and the |\localeid| are set to the
-values of this locale; with |fonts|, the fonts are changed to those of
-this locale (as set with |\babelfont|). This option is not compatible
-with |mapfont|. Characters can be added with |\babelcharproperty|.
+belonging to the script of this locale is found (as its name implies,
+it acts on characters, not on spaces). There are currently two
+‘actions’, which can be used at the same time (separated by a space):
+with |ids| the |\language| and the |\localeid| are set to the values of
+this locale; with |fonts|, the fonts are changed to those of this
+locale (as set with |\babelfont|). This option is not compatible with
+|mapfont|. Characters can be added or modified with
+|\babelcharproperty|.
\begin{note}
An alternative approach with \luatex{} and Harfbuzz is the font
@@ -2522,16 +2524,6 @@
cases it can be enough.
\end{note}
-\Describe{mapfont=}{\texttt{direction}}
-Assigns the font for the writing direction of this language (only with
-|bidi=basic|). Whenever possible, instead of this option use |onchar|,
-based on the script, which usually makes more sense. More precisely,
-what |mapfont=direction| means is, ‘when a character has the same
-direction as the script for the “provided” language, then change its
-font to that set for this language’. There are 3 directions, following
-the bidi Unicode algorithm, namely, Arabic-like, Hebrew-like and left
-to right. So, there should be at most 3 directives of this kind.
-
\Describe{intraspace=}{\meta{base} \meta{shrink} \meta{stretch}}
Sets the interword space for the writing system of the language, in em
units (so, |0 .1 0| is |0em plus .1em|). Like |\spaceskip|, the em unit
@@ -2544,6 +2536,16 @@
Currently used only in Southeast Asian scrips, like Thai. Ignored if 0
(which is the default value).
+\Describe{mapfont=}{\texttt{direction}}
+Assigns the font for the writing direction of this language (only with
+|bidi=basic|). Whenever possible, instead of this option use |onchar|,
+based on the script, which usually makes more sense. More precisely,
+what |mapfont=direction| means is, ‘when a character has the same
+direction as the script for the “provided” language, then change its
+font to that set for this language’. There are 3 directions, following
+the bidi Unicode algorithm, namely, Arabic-like, Hebrew-like and left
+to right. So, there should be at most 3 directives of this kind.
+
\begin{note}
(1) If you need shorthands, you can define them with |\useshorthands|
and |\defineshorthand| as described above. (2) Captions and |\today|
@@ -4776,8 +4778,8 @@
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.49>>
-%<<date=2020/10/03>>
+%<<version=3.50>>
+%<<date=2020/10/06>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -6828,6 +6830,7 @@
\else % case 0,2
\chardef\bbl at iniflag\z@ % Force ldf
\expandafter\let\csname ds@\bbl at opt@main\endcsname\bbl at loadmain
+ \ExecuteOptions{\bbl at opt@main}
\DeclareOption*{}%
\ProcessOptions*
\fi
@@ -10469,7 +10472,7 @@
\let\bbl at KVP@main\@nil
\let\bbl at KVP@script\@nil
\let\bbl at KVP@language\@nil
- \let\bbl at KVP@hyphenrules\@nil % only for provide at new
+ \let\bbl at KVP@hyphenrules\@nil
\let\bbl at KVP@mapfont\@nil
\let\bbl at KVP@maparabic\@nil
\let\bbl at KVP@mapdigits\@nil
@@ -11090,6 +11093,7 @@
From babel-\bbl at cs{lini@\languagename}.ini:\\%
\bbl at cs{@kv at identification.warning#1}\\%
Reported }}}
+%
\let\bbl at inikv@identification\bbl at inikv
\def\bbl at secpost@identification{%
\bbl at iniwarning{}%
@@ -11113,9 +11117,23 @@
\ifbbl at bcptoname
\bbl at csarg\xdef{bcp at map@\bbl at cl{lbcp}}{\languagename}%
\fi}
+% \end{macrocode}
+%
+% By default, the following sections are just read. Actions are taken
+% later.
+%
+% \begin{macrocode}
\let\bbl at inikv@typography\bbl at inikv
\let\bbl at inikv@characters\bbl at inikv
\let\bbl at inikv@numbers\bbl at inikv
+% \end{macrocode}
+%
+% Additive numerals require an additional definition. When |.1| is
+% found, two macros are defined -- the basic one, without |.1| called
+% by |\localenumeral|, and another one preserving the trailing |.1| for
+% the ‘units’.
+%
+% \begin{macrocode}
\def\bbl at inikv@counters#1=#2\@@{%
\bbl at ifsamestring{#1}{digits}%
{\bbl at error{The counter name 'digits' is reserved for mapping\\%
@@ -12465,12 +12483,12 @@
\@ifnextchar[%
{\bbl at footnote@o{#1}{#2}{#3}}%
{\bbl at footnote@x{#1}{#2}{#3}}}
- \def\bbl at footnote@x#1#2#3#4{%
+ \long\def\bbl at footnote@x#1#2#3#4{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnote{#2#1{\ignorespaces#4}#3}%
\egroup}
- \def\bbl at footnote@o#1#2#3[#4]#5{%
+ \long\def\bbl at footnote@o#1#2#3[#4]#5{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnote[#4]{#2#1{\ignorespaces#5}#3}%
@@ -12479,12 +12497,12 @@
\@ifnextchar[%
{\bbl at footnotetext@o{#1}{#2}{#3}}%
{\bbl at footnotetext@x{#1}{#2}{#3}}}
- \def\bbl at footnotetext@x#1#2#3#4{%
+ \long\def\bbl at footnotetext@x#1#2#3#4{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnotetext{#2#1{\ignorespaces#4}#3}%
\egroup}
- \def\bbl at footnotetext@o#1#2#3[#4]#5{%
+ \long\def\bbl at footnotetext@o#1#2#3[#4]#5{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnotetext[#4]{#2#1{\ignorespaces#5}#3}%
@@ -14043,7 +14061,8 @@
\AtBeginDocument
{\ifx\tikz at atbegin@node\@undefined\else
\let\bbl at OL@pgfpicture\pgfpicture
- \bbl at sreplace\pgfpicture{\pgfpicturetrue}{\bbl at pictsetdir\pgfpicturetrue}%
+ \bbl at sreplace\pgfpicture{\pgfpicturetrue}%
+ {\bbl at pictsetdir\pgfpicturetrue}%
\bbl at add\pgfsys at beginpicture{\bbl at pictsetdir}%
\bbl at add\tikz at atbegin@node{\bbl at pictresetdir}%
\fi}}
Modified: trunk/Master/texmf-dist/source/latex/babel/babel.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/babel/babel.ins 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/source/latex/babel/babel.ins 2020-10-07 20:48:10 UTC (rev 56581)
@@ -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{2020/10/03}
+\def\filedate{2020/10/06}
\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 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/source/latex/babel/bbcompat.dtx 2020-10-07 20:48:10 UTC (rev 56581)
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2020/10/03 v3.49]
+\ProvidesFile{bbcompat.dtx}[2020/10/06 v3.50]
%</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.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/babel.def 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/babel.def 2020-10-07 20:48:10 UTC (rev 56581)
@@ -39,7 +39,7 @@
\wlog{File: #1 #4 #3 <#2>}%
\let\ProvidesFile\@undefined}
\fi
-\ProvidesFile{babel.def}[2020/10/03 3.49 Babel common definitions]
+\ProvidesFile{babel.def}[2020/10/06 3.50 Babel common definitions]
\ifx\AtBeginDocument\@undefined % TODO. change test.
% == Code for plain ==
\def\@empty{}
@@ -397,8 +397,8 @@
\fi
\countdef\last at language=19 % TODO. why? remove?
\def\addlanguage{\csname newlanguage\endcsname}
-\def\bbl at version{3.49}
-\def\bbl at date{2020/10/03}
+\def\bbl at version{3.50}
+\def\bbl at date{2020/10/06}
\def\adddialect#1#2{%
\global\chardef#1#2\relax
\bbl at usehooks{adddialect}{{#1}{#2}}%
@@ -2243,7 +2243,7 @@
\let\bbl at KVP@main\@nil
\let\bbl at KVP@script\@nil
\let\bbl at KVP@language\@nil
- \let\bbl at KVP@hyphenrules\@nil % only for provide at new
+ \let\bbl at KVP@hyphenrules\@nil
\let\bbl at KVP@mapfont\@nil
\let\bbl at KVP@maparabic\@nil
\let\bbl at KVP@mapdigits\@nil
Modified: trunk/Master/texmf-dist/tex/generic/babel/babel.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/babel.sty 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/babel.sty 2020-10-07 20:48:10 UTC (rev 56581)
@@ -33,7 +33,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{babel}[2020/10/03 3.49 The Babel package]
+\ProvidesPackage{babel}[2020/10/06 3.50 The Babel package]
\@ifpackagewith{babel}{debug}
{\providecommand\bbl at trace[1]{\message{^^J[ #1 ]}}%
\let\bbl at debug\@firstofone}
@@ -1138,6 +1138,7 @@
\else % case 0,2
\chardef\bbl at iniflag\z@ % Force ldf
\expandafter\let\csname ds@\bbl at opt@main\endcsname\bbl at loadmain
+ \ExecuteOptions{\bbl at opt@main}
\DeclareOption*{}%
\ProcessOptions*
\fi
Modified: trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/hyphen.cfg 2020-10-07 20:48:10 UTC (rev 56581)
@@ -37,10 +37,10 @@
\wlog{File: #1 #4 #3 <#2>}%
\let\ProvidesFile\@undefined}
\fi
-\ProvidesFile{hyphen.cfg}[2020/10/03 3.49 Babel hyphens]
+\ProvidesFile{hyphen.cfg}[2020/10/06 3.50 Babel hyphens]
\xdef\bbl at format{\jobname}
-\def\bbl at version{3.49}
-\def\bbl at date{2020/10/03}
+\def\bbl at version{3.50}
+\def\bbl at date{2020/10/06}
\ifx\AtBeginDocument\@undefined
\def\@empty{}
\let\orig at dump\dump
Modified: trunk/Master/texmf-dist/tex/generic/babel/locale/zh/babel-zh-Hant.ini
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/locale/zh/babel-zh-Hant.ini 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/locale/zh/babel-zh-Hant.ini 2020-10-07 20:48:10 UTC (rev 56581)
@@ -8,11 +8,13 @@
; * Common Locale Data Repository (license Unicode):
; http://cldr.unicode.org/
; http://unicode.org/copyright.html
+; * CTEX, by Liam Huang, Qing Lee, Leo Liu, et al
+; https://ctan.org/pkg/ctex
[identification]
charset = utf8
-version = 1.7
-date = 2020-06-30
+version = 1.8
+date = 2020-10-05
name.local = 中文
name.english = Chinese
name.opentype = Chinese Traditional
@@ -29,19 +31,25 @@
derivate = no
[captions]
+; bib, contents - with en space
+; todo - all spaces must be non breaking
preface =
-ref =
-abstract =
-bib =
-chapter =
-appendix =
-contents =
-listfigure =
-listtable =
-index =
-figure =
-table =
-part =
+ref = 參 考 資 料
+abstract = 摘 要
+bib = 文 獻
+chapter.template = [[prechapter]] [chapter] [[postchapter]]
+prechapter = 第
+postchapter = 章
+appendix = 附 錄
+contents = 目 錄
+listfigure = 圖 目 錄
+listtable = 表 目 錄
+index = 索 引
+figure = 圖
+table = 表
+part.template = [[prepart]] [part] [[postpart]]
+prepart = 第
+postpart = 部
encl =
cc =
headto =
Modified: trunk/Master/texmf-dist/tex/generic/babel/luababel.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/luababel.def 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/luababel.def 2020-10-07 20:48:10 UTC (rev 56581)
@@ -1398,7 +1398,8 @@
\AtBeginDocument
{\ifx\tikz at atbegin@node\@undefined\else
\let\bbl at OL@pgfpicture\pgfpicture
- \bbl at sreplace\pgfpicture{\pgfpicturetrue}{\bbl at pictsetdir\pgfpicturetrue}%
+ \bbl at sreplace\pgfpicture{\pgfpicturetrue}%
+ {\bbl at pictsetdir\pgfpicturetrue}%
\bbl at add\pgfsys at beginpicture{\bbl at pictsetdir}%
\bbl at add\tikz at atbegin@node{\bbl at pictresetdir}%
\fi}}
@@ -1426,12 +1427,12 @@
\@ifnextchar[%
{\bbl at footnote@o{#1}{#2}{#3}}%
{\bbl at footnote@x{#1}{#2}{#3}}}
- \def\bbl at footnote@x#1#2#3#4{%
+ \long\def\bbl at footnote@x#1#2#3#4{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnote{#2#1{\ignorespaces#4}#3}%
\egroup}
- \def\bbl at footnote@o#1#2#3[#4]#5{%
+ \long\def\bbl at footnote@o#1#2#3[#4]#5{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnote[#4]{#2#1{\ignorespaces#5}#3}%
@@ -1440,12 +1441,12 @@
\@ifnextchar[%
{\bbl at footnotetext@o{#1}{#2}{#3}}%
{\bbl at footnotetext@x{#1}{#2}{#3}}}
- \def\bbl at footnotetext@x#1#2#3#4{%
+ \long\def\bbl at footnotetext@x#1#2#3#4{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnotetext{#2#1{\ignorespaces#4}#3}%
\egroup}
- \def\bbl at footnotetext@o#1#2#3[#4]#5{%
+ \long\def\bbl at footnotetext@o#1#2#3[#4]#5{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnotetext[#4]{#2#1{\ignorespaces#5}#3}%
Modified: trunk/Master/texmf-dist/tex/generic/babel/nil.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/nil.ldf 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/nil.ldf 2020-10-07 20:48:10 UTC (rev 56581)
@@ -32,7 +32,7 @@
%% extension |.ins|) which are part of the distribution.
%%
-\ProvidesLanguage{nil}[2020/10/03 3.49 Nil language]
+\ProvidesLanguage{nil}[2020/10/06 3.50 Nil language]
\LdfInit{nil}{datenil}
\ifx\l at nil\@undefined
\newlanguage\l at nil
Modified: trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def 2020-10-07 00:46:46 UTC (rev 56580)
+++ trunk/Master/texmf-dist/tex/generic/babel/txtbabel.def 2020-10-07 20:48:10 UTC (rev 56581)
@@ -99,12 +99,12 @@
\@ifnextchar[%
{\bbl at footnote@o{#1}{#2}{#3}}%
{\bbl at footnote@x{#1}{#2}{#3}}}
- \def\bbl at footnote@x#1#2#3#4{%
+ \long\def\bbl at footnote@x#1#2#3#4{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnote{#2#1{\ignorespaces#4}#3}%
\egroup}
- \def\bbl at footnote@o#1#2#3[#4]#5{%
+ \long\def\bbl at footnote@o#1#2#3[#4]#5{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnote[#4]{#2#1{\ignorespaces#5}#3}%
@@ -113,12 +113,12 @@
\@ifnextchar[%
{\bbl at footnotetext@o{#1}{#2}{#3}}%
{\bbl at footnotetext@x{#1}{#2}{#3}}}
- \def\bbl at footnotetext@x#1#2#3#4{%
+ \long\def\bbl at footnotetext@x#1#2#3#4{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnotetext{#2#1{\ignorespaces#4}#3}%
\egroup}
- \def\bbl at footnotetext@o#1#2#3[#4]#5{%
+ \long\def\bbl at footnotetext@o#1#2#3[#4]#5{%
\bgroup
\select at language@x{\bbl at main@language}%
\bbl at fn@footnotetext[#4]{#2#1{\ignorespaces#5}#3}%
More information about the tex-live-commits
mailing list.