Skip to content

Commit

Permalink
Fix: mirrored parenthesis in math. Added tools/incubator.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Jan 9, 2021
1 parent 1b95528 commit 25e091a
Show file tree
Hide file tree
Showing 10 changed files with 601 additions and 27 deletions.
3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,4 @@
## Babel 3.52.2245
## Babel 3.52.2247

This package manages culturally-determined typographical (and other)
rules, and hyphenation patterns for a wide range of languages. Many
Expand Down Expand Up @@ -51,6 +51,7 @@ respective authors.
* Fixes:
- Not really a fix, but I started working on `picture` with
bidi in lua.
- Parenthesis sometimes mirrored at the end of math.
3.52 2020-12-16
* WARNING. If you need the style for Afrikaans you must update
Expand Down
31 changes: 17 additions & 14 deletions babel.dtx
Expand Up @@ -31,7 +31,7 @@
%
% \iffalse
%<*filedriver>
\ProvidesFile{babel.dtx}[2021/01/07 v3.52.2245 The Babel package]
\ProvidesFile{babel.dtx}[2021/01/09 v3.52.2247 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
Expand Down Expand Up @@ -784,16 +784,16 @@ to be |\begin{otherlanguage*}|\marg{language1}, and so on. Note
|\|\m{tag1} is also allowed, but remember to set it locally inside a
group.

% \begin{warning}
% There is a clear drawback in this feature, namely, the ‘prefix’
% |\text...| is heavily overloaded in \LaTeX{} and there can some
% conflicts with existing macros (|\textlatin|, |\textbar|,
% |\textit|, |\textcolor| and so on). The same applies to
% environments, because |arabic| conflicts with |\arabic|. Except if
% there is a reason for this ‘syntactical sugar’, the best option is
% to stick to the default selectors or to define your own
% alternatives.
% \end{warning}
\begin{warning}
There is a clear drawback in this feature, namely, the ‘prefix’
|\text...| is heavily overloaded in \LaTeX{} and there can some
conflicts with existing macros (|\textlatin|, |\textbar|,
|\textit|, |\textcolor| and so on). The same applies to
environments, because |arabic| conflicts with |\arabic|. Except if
there is a reason for this ‘syntactical sugar’, the best option is
to stick to the default selectors or to define your own
alternatives.
\end{warning}

\begin{example}
With
Expand Down Expand Up @@ -4854,8 +4854,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
%<<version=3.52.2245>>
%<<date=2021/01/07>>
%<<version=3.52.2247>>
%<<date=2021/01/09>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
Expand Down Expand Up @@ -20963,7 +20963,10 @@ function Babel.bidi(head, ispar, hdir)
first_et = nil
has_en = false
end


-- Force mathdir in math (currently works as expected with 'l')
if inmath then d = ('TRT' == tex.mathdir) and 'r' or 'l' end

if d then
if d == 'al' then
d = 'r'
Expand Down
2 changes: 1 addition & 1 deletion babel.ins
Expand Up @@ -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{2021/01/07}
\def\filedate{2021/01/09}
\def\batchfile{babel.ins}
\input docstrip.tex

Expand Down
Binary file modified babel.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion bbcompat.dtx
Expand Up @@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
\ProvidesFile{bbcompat.dtx}[2021/01/07 v3.52.2245]
\ProvidesFile{bbcompat.dtx}[2021/01/09 v3.52.2247]
%</dtx>
%
%% File 'bbcompat.dtx'
Expand Down
Binary file modified samples/lua-hebrew-secenum.pdf
Binary file not shown.
11 changes: 3 additions & 8 deletions samples/lua-hebrew-secenum.tex
Expand Up @@ -6,21 +6,16 @@
\usepackage[
nil,
bidi=basic,
layout=tabular % counters % not for hebrew
layout=tabular % Don't set 'counters' for hebrew
]{babel}

\babelprovide[import,main]{hebrew}
\babelprovide[import, main, alph=letters]{hebrew}

\babelfont{rm}{Libertinus Serif}
\babelfont{sf}[Scale=MatchLowercase]{FreeSans}

\babeltags{lr = nil, he = hebrew}

% A quick dirty trick for Hebrew alph counters:
\makeatletter
\def\@alph#1{\char\numexpr1487+#1\relax}
\makeatother

% See below:
\newcommand\refrange[2]{\babelsublr{\texthe{\ref{#1}}-\texthe{\ref{#2}}}}

Expand Down Expand Up @@ -72,7 +67,7 @@ \section{הקשר בין עבודה לאנרגיה קינטית}

\item מסת כבידה אקטיבית: מדד לכוח הכבידה
שהגוף מפעיל על גופים אחרים.
\begin{enumerate}[\theenumi a,noitemsep]
\begin{enumerate}[\theenumi a),noitemsep]
\item מסת כבידה פסיבית: מדד להשפעה של כוח הכבידה על הגוף.
\end{enumerate}
\end{enumerate}
Expand Down
Binary file modified samples/lua-hebrew.pdf
Binary file not shown.
5 changes: 3 additions & 2 deletions samples/lua-hebrew.tex
Expand Up @@ -153,8 +153,9 @@ \section{Psalms}

Compare with \texttt{http://tanach.us/Tanach.xml?Ps1:1-1:6}.
Cantillation marks (the second paragraph) are wrong with both
\textsf{xetex} and \textsf{luatex}. The font is FreeSerif. Depending on
the font and the engine, the rendering may be better or worse.
\textsf{xetex} and \textsf{luatex} (any renderer). The font is
FreeSerif. Depending on the font and the engine, the rendering may be
better or worse.

\bigskip

Expand Down

0 comments on commit 25e091a

Please sign in to comment.