涉及多行词形的行号在阿拉伯语中无法正确显示。(为了进行比较,我添加了一个包含多行词形的英文段落。这没有问题。)在这个最小的工作示例中,第一个阿拉伯语词形的行号正确显示为“1”,但第二个词形的行号显示为“0”,而它们应该是“2-4”。(注意:在编译时,我收到错误消息“!Extra },或忘记了 \endgroup。”。)
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = xelatex
\documentclass[12pt]{article}
\usepackage[series={A,B},noend,noeledsec,noledgroup]{reledmac}
\Xbeforeinserting[A]{\LTR} % I took these commands from the example 2-reledmac-right-to-left.tex, where they edited a Hebrew text.
\Xlemmaseparator[A]{[} % Will be reversed by Arabic font
\Xafterlemmaseparator[A]{0.5em}
\Xbeforelemmaseparator[A]{0.25em}
\Xwrapcontent[A]{\textenglish}
\Xwraplemma[A]{\RL}
%polyglossia packages - polyglossia must be first
\usepackage{polyglossia}
\usepackage{bidi}
\setmainlanguage{english}
\setotherlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Traditional Arabic}
\title{Minimal Working Example}
\author{Emre Coşkun}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
\begin{Arabic}
\beginnumbering
\pstart
\edtext{كتبه وشكّله وصحّحه}{\Afootnote{om. \textbf{A}}}
\edtext{كتبه وشكّله وصحّحه مقابلة وحلّاً الفقير إلى الله تعالى محمّد بن عمر بن أحمد بن أبي جرادة. وفرغ منه في الثاني من ذي الحجّة سنة أربع وثمانين وستّمائة حامداً لله تعالى ومصلّياً على سيّدنا محمّد وعلى آله وصحبه ومسلّماً.}{\Afootnote{om. \textbf{A}}}
\pend
\endnumbering
\end{Arabic}
\section{New Section}
\begin{english}
\beginnumbering
\pstart
\edtext{We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know that is not true. (Robert Wilensky)}{\Bfootnote{om. \textbf{B}}}
\pend
\endnumbering
\end{english}
\end{document}
答案1
reledmac 2.18.0 版本刚刚在 CTAN 上发送,解决了从右到左模式下长编辑文本的这个错误。