[NTG-context] footnotes when using RtL (Arabic)
talazem at fastmail.fm
talazem at fastmail.fm
Fri Jul 31 13:07:45 CEST 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RTL-paragraphed-footnotes.tex
Type: application/octet-stream
Size: 2900 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150731/f8966dc7/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RTL-paragraphed-footnotes.pdf
Type: application/pdf
Size: 14537 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150731/f8966dc7/attachment-0001.pdf>
-------------- next part --------------
> On 31 Jul 2015, at 09:39, Hans Hagen <pragma at wxs.nl> wrote:
>
> On 7/31/2015 1:51 AM, talazem at 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.wolfgang at gmail.com <mailto:schuster.wolfgang at gmail.com>> wrote:
>>>
>>>> talazem at fastmail.fm <mailto:talazem at 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 at ntg.nl <mailto:ntg-context at 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 at 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 at 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
> ___________________________________________________________________________________
More information about the ntg-context
mailing list