However, when there is a line range in the linenote head, it is flipping the order of the page ranges. In the example PDF attached below, where it should read ١٥-١٦ (16-15, with the fifteen on the right and the sixteen on the left, for R2L word ordering), instead the output is ١٦-١٥.
This seems to be a further example of the problems arising from not being able to apply bidi to the linenote stream, due to the bug or conflict between footnotes/linenotes and R2L. In the minimal example below, I have commented out the \startsetups[note:linenote]. The lines may be toggled to see the effect it has.
\mainlanguage[arabic]
\definefontfamily [mainface] [rm] [ALM Fixed] [range=arabic,features=arabic]
\setupbodyfont[mainface,12pt]
\setupdirections[bidi=global,method=two]
\setupalign[r2l]
%% CONVERSION INTO ARABIC-HINDI NUMERALS
\defineconversion[myconversion][١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,]
%% HEADINGS
\setuppagenumber[numberconversion=myconversion]
%%% LINENUMBERING
\setuplinenumbering[%
style=\tfxx,
referencing=on,
step=1,
location=outer,
method=page,
align=left,
distance=1em,
width=0.4em,
conversion=myconversion,
]
\definelinenote[linenote][%
setups=note:linenote,
before={\blank[3.2em]},
align=righttoleft,
rule={on,right},
paragraph=yes,
frame=on,framecolor=red,
]
\setupnotations[linenote][%
align=righttoleft,
alternative=serried,
width=broad,
distance=.5em,
display=no,
numberconversion=arabic-hindi,
headstyle=\lefttoright,
]
\unexpanded\def\doVariant#1#2#3%
{\startlinenote[#1]{#2[ #3}#2\stoplinenote[#1]}
\newcounter\countvariants
\unexpanded\def\variant
{\doglobal\increment\countvariants
\normalexpanded{\doVariant{Varia:\countvariants}}}
%%% DOCUMENT
%\startsetups[note:linenote]
% \setupdirections[bidi=on,method=default,fences=no]
%\stopsetups
\starttext \showframe
\startlinenumbering
\input ward\linenote{هذه تعليقة أولى.}
\input ward\linenote{هذه تعليقة ثانية.}
\input ward\linenote{هذه تعليقة ثالثة.}
مرحباً بالعالم مرحباً بالعالم مرحباً بالعالم . هذا مثال على استعمال كونتكست لأجل تحقيق المخطوطات في اللغة العربية . وقد قربنا من
\variant{الوصول إلى الحلول}{الحصول على الحلول}
التي نحتاجها لتصميم الخطوط التي تكتب من اليمين إلى الشمال .
\linenote{هذه تعليقة خامسة.}
\stoplinenumbering
\stoptext