我在阿拉伯语环境中使用时遇到了一个问题reledmac
。问题是\sameword
命令没有产生预期的效果。我附上了一个 MWE,其中包含文档中给出的相同示例。
\documentclass[12pt]{article}
\usepackage[series={A},noend,noeledsec,noledgroup]{reledmac}
\usepackage{reledpar}
\usepackage{zref-abspage}
\usepackage{perpage}
\MakePerPage{footnote}
\usepackage{scrextend}
\usepackage{fontspec}
\usepackage{marginnote}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage[locale = tunisia]{arabic}
\setmainfont[Script = Arabic]{Amiri}
\newfontfamily\arabicfont[Script = Arabic]{Amiri}
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\Xnotefontsize[A]{\scriptsize}
\bhookgroupX[A]{\RTL}
\arrangementX[A]{paragraph}
\wrapcontentX[A]{\textarabic}
\Xarrangement{paragraph}
\Xbhookgroup[A]{\RTL}
\Xafterlemmaseparator[A]{0.5em}
\Xbeforelemmaseparator[A]{0.25em}
\Xlinerangeseparator{\null-\null}
\Xbeforeinserting{\LTR}
\makeatletter
\renewcommand{\Afootnoterule}{\right@footnoterule}
\makeatother
\firstlinenum{1}\linenumincrement{1} \lineation{page}
\fnpos{familiar-critical}
\usepackage{scrextend}
\XeTeXinputnormalization 1 % for \sameword see reledmac, p. 28
\linenumberstyle{arabic}
\Xnotenumfont{\arabicfont\bfseries}
\begin{document}
\beginnumbering
\pstart
\linenummargin{right}
% Shows which word number in the critical footnote
Lupus \sameword{aut} canis \edtext{\sameword{aut}}{\Afootnote{et}} felix
\pend
\pstart[\setRL]
% does not show the word number in the critical footnote
Lupus \sameword{aut} canis \edtext{\sameword{aut}}{\Afootnote{et}} felix
\pend
\endnumbering
\end{document}