Macros in \start-stopTABLE
![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
Dear gang, In the following, the first table works and the second one does not: ===================== \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global] \define\NCR{\NC \righttoleft \ } \define\NCL{\NC \lefttoright \ } \setupTABLE[c][each][width=1in] \starttext \ALM \placetable[right,none]{} {\startTABLE \NC Text 1 \NC \righttoleft النص 1 \NC\NR \stopTABLE} \placetable[right,none]{} {\startTABLE \NC Text 2 \NCR النص 2 \NC\NR \stopTABLE} \stopalignment ===================== gives "I've run across a `}' that doesn't seem to match anything." What do I need to do to get this macro right here? Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523
![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
On Sat, 15 Nov 2014 21:50:06 -0700, Idris Samawi Hamid ادريس سماوي حامد
\stopalignment
Note: That line is spurious and is *not* part of the problem (as it might appear at first guess). Removing it will give the same error. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 11/16/2014 05:50 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Dear gang,
In the following, the first table works and the second one does not: [...] What do I need to do to get this macro right here?
Hi Idris, I don’t know how you could make it work with TABLE, but your macro seems to work with xtables: \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global] \define\NCD{\stopxcell\startxcell\righttoleft} \setupxtable[width=1in] \starttext \ALM \placetable[right,none]{} {\startxtable \startxrow \startxcell Text 2 \NCD النص 2 \stopxcell \stopxrow \stopxtable} \stoptext Just in case it helps, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
On Sun, 16 Nov 2014 00:24:57 -0700, Pablo Rodriguez
On 11/16/2014 05:50 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Dear gang,
In the following, the first table works and the second one does not: [...] What do I need to do to get this macro right here?
Hi Idris,
I don’t know how you could make it work with TABLE, but your macro seems to work with xtables:
\setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global]
\define\NCD{\stopxcell\startxcell\righttoleft}
\setupxtable[width=1in]
\starttext \ALM \placetable[right,none]{} {\startxtable \startxrow \startxcell Text 2 \NCD النص 2 \stopxcell \stopxrow \stopxtable} \stoptext
Just in case it helps,
Very helpful, I'm switching to xtables. I hope we can get bidi-paragraph options for the cell commands built into the core so we needn't write out \righttoleft etc.... e.g. \start-stopxcellR, \start-stopxcellL Thanks a lot and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 11/16/2014 5:50 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Dear gang,
In the following, the first table works and the second one does not:
===================== \setupbodyfont[tt] \definefont[ALM][file:almfixed.otf*arabic at 12pt] \setupdirections[bidi=global]
\define\NCR{\NC \righttoleft \ } \define\NCL{\NC \lefttoright \ }
\setupTABLE[c][each][width=1in]
\starttext \ALM \placetable[right,none]{} {\startTABLE \NC Text 1 \NC \righttoleft النص 1 \NC\NR \stopTABLE}
\placetable[right,none]{} {\startTABLE \NC Text 2 \NCR النص 2 \NC\NR \stopTABLE} \stopalignment =====================
gives
"I've run across a `}' that doesn't seem to match anything."
What do I need to do to get this macro right here?
don't confuse starttable and startTABLE (used \bTR etc) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/a4358949522f2efc1bab8ed68385b00c.jpg?s=120&d=mm&r=g)
On Sun, 16 Nov 2014 06:18:02 -0700, Hans Hagen
don't confuse starttable and startTABLE (used \bTR etc)
Ah.. looking at the code here: http://wiki.contextgarden.net/TABLE#TABLEs_with_old_table_syntax I guess it's not worth investing in the low-level trickery to force this; I'll try a different tables method. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523
participants (3)
-
Hans Hagen
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Pablo Rodriguez