ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* aligning \placetable with bidi
@ 2014-11-16 19:53 Idris Samawi Hamid ادريس سماوي حامد
  2014-11-17 18:02 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2014-11-16 19:53 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

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.

Best wishes
Idris
-- 
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

[-- Attachment #2: xtable-bidi.pdf --]
[-- Type: application/pdf, Size: 7382 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: aligning \placetable with bidi
  2014-11-16 19:53 aligning \placetable with bidi Idris Samawi Hamid ادريس سماوي حامد
@ 2014-11-17 18:02 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-11-17 18:02 UTC (permalink / raw)
  To: ntg-context

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-17 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-16 19:53 aligning \placetable with bidi Idris Samawi Hamid ادريس سماوي حامد
2014-11-17 18:02 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).