[NTG-context] parenthesis in Arabic text

Sam Ḥilluc shilluc at gmx.com
Sun May 17 15:50:17 CEST 2015


On 2015-05-17 12:20, Wolfgang Schuster wrote:
> 
> > 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

Works perfectly, thanks.


More information about the ntg-context mailing list