[NTG-context] aligning \placetable with bidi

Hans Hagen pragma at wxs.nl
Mon Nov 17 19:02:33 CET 2014


On 11/16/2014 8:53 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>
> In the following, we middle align both \placetable's:
>
> ================
> \setupbodyfont[tt]
> \definefont[ALM][file:almfixed.otf*arabic at 12pt]
> \setupdirections[bidi=global]
>
> \setupxtable[width=1in]
>
> \showframe
>
> \starttext
> \startalignment[middle]
> \ALM
> \placetable[middle,none]{}
> {\startxtable
>   \startxrow
>       \startxcell Text 1 \stopxcell
>       \startxcell[align=r2l] النص ١ \stopxcell
>   \stopxrow
> \stopxtable}
>
> \placetable[middle,none]{}
> {\righttoleft \startxtable
>   \startxrow
>       \startxcell[align=r2l] النص ١ \stopxcell
>       \startxcell Text 1 \stopxcell
>   \stopxrow
> \stopxtable}
> \stopalignment
> \stoptext
> ================
>
> Only the first \placetable is aligned correctly; how do we get the
> second one -- \righttoleft table -- middle aligned? See attached.

i can fix the funny lap but still we need to have some concept of cells 
running from l2r or r2l ..

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------


More information about the ntg-context mailing list