In a separate thread ("r2l alignment and linenumbering conflict? "), we've gotten numerals in an Arabic RTL document to (a) display as Arabic numerals, and (b) to order their digits in the right order (e.g. 2015 instead of 5102). By defining the headstyle of linenotes, we can even get linenotes to display the digits within individual numbers in the correct order (see below). 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 ===== Best, Talal > On 2 Aug 2015, at 12:11, Pablo Rodriguez wrote: > > On 08/02/2015 12:47 PM, Pablo Rodriguez wrote: >> [...] >> Hi Talal, >> >> replace you bidi settings with these ones: >> [...] >> At least, they work for me. > > Talal, > > sorry for the noise, the first linenote has the problem you described. > > I thought it belonged to the second linenote. > > > Pablo > -- > http://www.ousia.tk > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________