在这个 RTL 文档的例子中,我添加了行\setupdirections[bidi=global]
,并在标题中产生了重叠的文本(相同的例子会用 TL 2022 给出正确的结果)
\setuppapersize[A4]
\mainlanguage[arabic]
\setupdirections[bidi=global]
\setupalign[r2l]
\setupbodyfontenvironment[default][em=italic]
\definefontfamily [myfont][serif][Amiri] [features=arabic]
\definefontfamily [myfont][mono] [Latin Modern Mono]
\setupbodyfont [myfont]
\setuppagenumbering[state=none]
%\setupheadertexts [left][يمين] % this give correct result (non overlapped texts)
\setupheadertexts [يسار][يمين]
\starttext
text
\stoptext