Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inverted parenthesis in numbered paragraphs #979

Open
lueck opened this issue Jan 16, 2025 · 1 comment
Open

inverted parenthesis in numbered paragraphs #979

lueck opened this issue Jan 16, 2025 · 1 comment

Comments

@lueck
Copy link

lueck commented Jan 16, 2025

Babel makes that Parenthesis are printed out correctly (following the bidi algorithms) for right-to-left scripts. However, in reledmac's numbered paragraph, parenthesis come out inverted.

Minimal example for TeXing with LuaLaTeX below. As you can see, I have tried to execute different macros at the start of the numbered paragraph, but none of them make the parenthesis come out correctly.

%! TEX program = lualatex
\documentclass{article}
\usepackage{luabidi}
\usepackage[english,bidi=basic]{babel}
\babelprovide[import=he,mapfont=direction]{hebrew}
\babelfont{rm}[Ligatures=TeX]{Linux Libertine O}

\usepackage{reledmac}

\newcommand{\hebrewWithParens}{אלף (בית) גימל;}
\newcommand{\englishWithParens}{Alpha (Beta) Gamma}

\begin{document}

\beginnumbering

\selectlanguage{english}
\englishWithParens

\pstart
\englishWithParens
\pend

\selectlanguage{hebrew}
\hebrewWithParens

\pstart
\hebrewWithParens
\pend

\pstart[\selectlanguage{hebrew}]
\hebrewWithParens
\pend

\pstart[][\selectlanguage{hebrew}]
\hebrewWithParens
\pend

\pstart[\setRTL]
\hebrewWithParens
\pend

\pstart[][\setRTL]
\hebrewWithParens
\pend

\pstart[\RTL]
\hebrewWithParens
\pend

\pstart[][\RTL]
\hebrewWithParens
\pend

\endnumbering

\end{document}

Result:
rtl-parens.pdf

reledmac: 2024/05/11 v2.40.1 (current git)

engine: LuaHBTeX, Version 1.17.0 (TeX Live 2023) (format=lualatex 2024.2.27)

babel: babel 2023/08/09 v3.92.22182

@maieul
Copy link
Owner

maieul commented Jan 16, 2025

I don't reproduce, see the result of the running enclosed.

toto.pdf

But I have Package: babel 2024/09/18 v24.10 The Babel package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants