I’ve come across a snag. When using parentheses in Arabic footnotes, they are flipped. In any earlier email (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+...), you had advised adding the following:
\startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups
\setupnote[footnote][setups=note:footnote] % align=righttoleft
However, if one does this with your patch, the second footnote gets dropped. Here is the MWE:
\unprotect
\def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup}
\protect
\definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,] \setupbodyfont [mainface]
\startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups
\setupnote[footnote][paragraph=yes,align=righttoleft,setups=note:footnote,] \setupnotation[footnote][align=righttoleft,alternative=serried,]
\showframe
\starttext
First note.\footnote{هذه هي (التعليقة) الأولى.} Second note.\footnote{هذه هي (التعليقة) الثانية.}
\stoptext
All the best, Talal
On 30 Jul 2015, at 18:54, Wolfgang Schuster
wrote: Pablo Rodriguez mailto:oinos@gmx.es 30. Juli 2015 16:26
I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r:
\setuppapersize[A6] \starttext \showframe
\definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l]
\startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment
\stoptext Can you test the following patch.
\unprotect
\def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup}
\protect
%\setupalign[righttoleft]
\setupnote[footnote][paragraph=yes,align=righttoleft] \setupnotation[footnote][align=righttoleft]
\showframe
\starttext
First note.\footnote{This is the first footnote.} Second note.\footnote{This is the second footnote.}
\stoptext
Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________