Excellent. This seems to solve the problem completely. I even tried mixing Arabic and English text in the RTL footnotes, switched on the “alternative=serried” option, and defined my own custom note streams — everything worked very well. The only thing that didn’t work is to mix, in the same stream, footnotes that are LTR with footnotes that are RTL. But I did not expect this to work, and I cannot think of a real world scenario in which such footnotes would/should be mixed in the same stream.
Attached are both the .tex file and the PDF with a perfectly working example. Many thanks to you both, Wolfgang and Hans. Hans, I assume we’ll know if the patch eventually makes it into a beta? Best, Talal
RTL-paragraphed-footnotes.tex
Description: Binary data
RTL-paragraphed-footnotes.pdf
Description: Adobe PDF document
> On 31 Jul 2015, at 09:39, Hans Hagen <pra...@wxs.nl> wrote: > > On 7/31/2015 1:51 AM, tala...@fastmail.fm wrote: >> You’re right. The patch gets us half way to the desired behaviour >> (namely, correct ordering of the footnotes within the paragraph). But it >> seems that the ‘paragraph’ option doesn’t play well with RTL generally, >> resulting in the second note disappearing when using >> \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups. > > can you try > > \unprotect > > \unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi} > > \def\strc_notes_flush_global > {\begingroup > \useinterlinespaceparameter\noteparameter > \doifelse{\noteparameter\c!paragraph}\v!yes > {\leftorrightvbox > {\starthboxestohbox > \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber > \stophboxestohbox}} > {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% > \endgroup} > > \protect > > >>> On 30 Jul 2015, at 20:04, Wolfgang Schuster >>> <schuster.wolfg...@gmail.com <mailto:schuster.wolfg...@gmail.com>> wrote: >>> >>>> tala...@fastmail.fm <mailto:tala...@fastmail.fm> >>>> 30. Juli 2015 20:37 >>>> 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+bidi+global), >>>> 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: >>>> >>> The second note disappears even without the patch, the problem this >>> the paragraph option for the notes. >>> >>> Wolfgang >>> ___________________________________________________________________________________ >>> If your question is of interest to others as well, please add an entry >>> to the Wiki! >>> >>> maillist : ntg-context@ntg.nl <mailto: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 >>> ___________________________________________________________________________________ >> >> >> >> ___________________________________________________________________________________ >> 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 >> ___________________________________________________________________________________ >> > > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________