[NTG-context] parenthesis in Arabic text

Wolfgang Schuster schuster.wolfgang at gmail.com
Sun May 17 12:20:01 CEST 2015


> Am 17.05.2015 um 00:58 schrieb Sam Ḥilluc <shilluc at gmx.com>:
> 
> Greetings,
> 
> I'm trying to typeset an Arabic text, but I have a problem with parenthesis in
> footnotes. The following example:
> 
>    \usemodule[simplefonts]
> 
>    \setmainfont[amiri][features=arabic,range=arabic]
>    \setupdirections[bidi=global]
>    \setupalign[righttoleft]
> 
>    \def\text{(ب)}
> 
>    \startdocument
>    \text\footnote{\text}.
>    \stopdocument
> 
> gives the correct order in the text but the parenthesis are not adapted in the
> footnote.
> 
> So in the text I get: (ب)
> And in the footnote: )ب(.

You have to set the bidi settings again for the footnotes because
the notes mechanism resets many of these setups.

\startsetups[note:footnote]
  \setupdirections[bidi=global]
\stopsetups

\setupnote[footnote][setups=note:footnote] % align=righttoleft

Wolfgang



More information about the ntg-context mailing list