Skip to content

direction in paragraph footnote with babel/bidi can not be properly set #980

@u-fischer

Description

@u-fischer

I'm trying to set a german text with some hebrew paragraphs. Footnotes should be LTR. There is one apparatus with paragraph footnotes and one in two column mode. Forcing the german local in the twocolumn worked with \beforeinsertingX, but for the paragraph footnotes the marker is one the wrong side. I had to use \notenumfontX to correct this, which doesn't feel like the right hook.

\documentclass{article}
\usepackage[ngerman,bidi=basic,layout=footnotes]{babel}
  
\babelprovide[import,onchar=ids fonts]{hebrew}
\babelprovide[onchar=ids fonts]{ngerman}
\babelfont[ngerman]{rm}{TeXGyreHeros}
\babelfont[hebrew]{rm}{FreeSerif}

\usepackage[noend]{reledmac}

\arrangementX[A]{paragraph}
\renewcommand\thefootnoteA{\alph{footnoteA}}
\arrangementX[B]{twocol}
%\beforeinsertingX[A]{\selectlanguage{ngerman}} %fails
%\wrapcontentX[A]{\foreignlanguage{ngerman}} %fails
%\notenumfontX[A]{\normalfont\selectlanguage{ngerman}} %works
\beforeinsertingX[B]{\selectlanguage{ngerman}}


\usepackage{kantlipsum}


\begin{document}
blub\footnoteA{footnote A}blub\footnoteB{footnote B}blub\footnoteA{another footnote A}blub\footnoteB{another footnote}

\begin{selectlanguage}{hebrew}
חלוקת עולם הטבע לשלוש ממלכות,\footnoteB{footnote B in heb} בספרו של ארנסט הקל משנת
\footnoteA{footnote A in heb}תורת :
\end{selectlanguage}

blub\footnoteA{footnote A}blub\footnoteB{footnote B}blub\footnoteA{another footnote A}blub\footnoteB{another footnote}
\end{document}  

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions