[latex3-commits] [latex3/babel] main: Fix #241. #Fix 246. (ea1b219)
github at latex-project.org
github at latex-project.org
Sun Jul 2 11:15:05 CEST 2023
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/ea1b21935952d73638a8be4fbd23ba331ff1eec7
>---------------------------------------------------------------
commit ea1b21935952d73638a8be4fbd23ba331ff1eec7
Author: Javier <email at localhost>
Date: Sun Jul 2 11:15:05 2023 +0200
Fix #241. #Fix 246.
>---------------------------------------------------------------
ea1b21935952d73638a8be4fbd23ba331ff1eec7
README.md | 8 ++++++--
babel-code.pdf | Bin 625101 -> 625298 bytes
babel.dtx | 45 ++++++++++++++++++++++++++-------------------
babel.ins | 2 +-
babel.pdf | Bin 404372 -> 404611 bytes
bbcompat.dtx | 2 +-
6 files changed, 34 insertions(+), 23 deletions(-)
diff --git a/README.md b/README.md
index 12e18a9..75ce05b 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-## Babel 3.90
+## Babel 3.90.18344
-2023-06-26
+**Draft**
This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
@@ -48,6 +48,10 @@ respective authors.
### Summary of latest changes
```
+3.91 (dev)
+ * Fixes:
+ - #241
+ - #246
3.90 2023-06-26
* Main language selected at begindocument/before (#240).
* Option to limit the number of inserted tatweel.
diff --git a/babel-code.pdf b/babel-code.pdf
index 8ac1424..c153521 100644
Binary files a/babel-code.pdf and b/babel-code.pdf differ
diff --git a/babel.dtx b/babel.dtx
index 1477fd0..b5d46dd 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2023/06/26 v3.90 The Babel package]
+\ProvidesFile{babel.dtx}[2023/07/02 v3.90.18344 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -2941,7 +2941,7 @@ Languages providing native digits in all or some variants are:
Arabic\\
Assamese\\
Bangla\\
-Tibetar\\
+Tibetan\\
Bodo\\
Central Kurdish\\
Dzongkha\\
@@ -5466,8 +5466,8 @@ wouldn’t exist.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.90>>
-%<<date=2023/06/26>>
+%<<version=3.90.18344>>
+%<<date=2023/07/02>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -14436,13 +14436,8 @@ end
\gdef\bbl at arabicjust{%
\let\bbl at arabicjust\relax
\newattribute\bblar at kashida
- \newattribute\bblar at kashida@aux % 0, 1=tatweel, 2=diacritics
- \directlua{% WIP
- Babel.attr_kashida = luatexbase.registernumber'bblar at kashida'
- Babel.attr_kashida_aux = luatexbase.registernumber'bblar at kashida@aux'
- }%
+ \directlua{ Babel.attr_kashida = luatexbase.registernumber'bblar at kashida' }%
\bblar at kashida=\z@
- \bblar at kashida@aux=\z@
\bbl at patchfont{{\bbl at parsejalt}}%
\directlua{
Babel.arabic.elong_map = Babel.arabic.elong_map or {}
@@ -14904,7 +14899,6 @@ end
\@ifnextchar[{\bbl at settransform{0}}{\bbl at settransform{0}[]}}
\gdef\babelposthyphenation{&%
\@ifnextchar[{\bbl at settransform{1}}{\bbl at settransform{1}[]}}
-\gdef\bbl at postlinebreak{\bbl at settransform{2}[]} &% WIP
\gdef\bbl at settransform#1[#2]#3#4#5{&%
\ifcase#1
\bbl at activateprehyphen
@@ -14985,7 +14979,7 @@ end
local lbkr = Babel.linebreaking.replacements[#1]
local u = unicode.utf8
local id, attr, label
- if #1 == 0 or #1 == 2 then
+ if #1 == 0 then
id = \the\csname bbl at id@@#3\endcsname\space
else
id = \the\csname l@#3\endcsname\space
@@ -15000,7 +14994,7 @@ end
\fi
&% Convert pattern:
local patt = string.gsub([==[#4]==], '%s', '')
- if #1 == 0 or #1 == 2 then
+ if #1 == 0 then
patt = string.gsub(patt, '|', ' ')
end
if not u.find(patt, '()', nil, true) then
@@ -15488,11 +15482,23 @@ end
{}}%
\fi}
\fi
+% \end{macrocode}
+%
+% Very likely the |\output| routine must be patched in a quite general
+% way to make sure the |\bodydir| is set to |\pagedir|. Note outside
+% |\output| they can be different (and often are). For the moment, two
+% \textit{ad hoc} changes.
+%
+% \begin{macrocode}
\AtBeginDocument{%
\@ifpackageloaded{multicol}%
{\toks@\expandafter{\multi at column@out}%
\edef\multi at column@out{\bodydir\pagedir\the\toks@}}%
- {}}
+ {}%
+ \@ifpackageloaded{paracol}%
+ {\edef\pcol at output{%
+ \bodydir\pagedir\unexpanded\expandafter{\pcol at output}}}%
+ {}}%
\fi
\ifx\bbl at opt@layout\@nnil\endinput\fi % if no layout
% \end{macrocode}
@@ -15684,9 +15690,12 @@ end
%
% \begin{macrocode}
\IfBabelLayout{extras}%
- {\let\bbl at OL@underline\underline
- \bbl at sreplace\underline{$\@@underline}{\bbl at nextfake$\@@underline}%
- \let\bbl at OL@LaTeX2e\LaTeX2e
+ {\bbl at ncarg\let\bbl at OL@underline{underline }%
+ \bbl at carg\bbl at sreplace{underline }%
+ {$\@@underline}{\bgroup\bbl at nextfake$\@@underline}%
+ \bbl at carg\bbl at sreplace{underline }%
+ {\m at th$}{\m at th$\egroup}%
+ \let\bbl at OL@LaTeXe\LaTeXe
\DeclareRobustCommand{\LaTeXe}{\mbox{\m at th
\if b\expandafter\@car\f at series\@nil\boldmath\fi
\babelsublr{%
@@ -15720,7 +15729,6 @@ end
Babel.linebreaking.replacements = {}
Babel.linebreaking.replacements[0] = {} -- pre
Babel.linebreaking.replacements[1] = {} -- post
-Babel.linebreaking.replacements[2] = {} -- post-line WIP
-- Discretionaries contain strings as nodes
function Babel.str_to_nodes(fn, matches, base)
@@ -15872,7 +15880,6 @@ Babel.us_char = string.char(31)
function Babel.hyphenate_replace(head, mode)
local u = unicode.utf8
local lbkr = Babel.linebreaking.replacements[mode]
- if mode == 2 then mode = 0 end -- WIP
local word_head = head
diff --git a/babel.ins b/babel.ins
index 9aae84b..28b4f8d 100644
--- a/babel.ins
+++ b/babel.ins
@@ -26,7 +26,7 @@
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%%
-\def\filedate{2023/06/26}
+\def\filedate{2023/07/02}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 1372db8..eb7b43e 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index a755722..b4bdaf1 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2023/06/26 v3.90]
+\ProvidesFile{bbcompat.dtx}[2023/07/02 v3.90.18344]
%</dtx>
%
%% File 'bbcompat.dtx'
More information about the latex3-commits
mailing list.