At 03:30 PM 2/9/2003 -0700, Idris S Hamid wrote:
\long\def\startarabictext#1\stoparabictext {{\bfd\processisolatedwords{#1}\struttedbox}} ^^ otp switches
\long\def\arabictext#1{\startarabictext#1\stoparabictext}
\dorecurse{10} {test test \startarabictext well o well\stoparabictext test }
i have no idea if this works well with arabic
This works beautifully! There is only one (unfortunately major) glitch:
I have defined my inserts to use `<' and `>', but I'm having problems defining the above macros in these terms. Compare the first and second paragraphs in the following: the first works fine but the second reports a "Runaway Argument?" How can I fix this? I don't want to activate the angle brackets inside of the definition since in some applications I use them for other things (like in critical editions).
The following test file illustrates the problem.
========================== \long\def\startarabictext#1\stoparabictext {{\bfd\processisolatedwords{#1}\struttedbox}}
\long\def\arabictext#1{\startarabictext#1\stoparabictext}
\catcode`\<=\active \catcode`\>=\active \def\startarabictextv{\startarabictext} \let<=\startarabictextv \let>=\stoparabictext
\starttext
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first \startarabictext test \stoparabictext large-scale user; the designer should also write the first user manual.
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first <test> large-scale user; the designer should also write the first user manual.
\stoptext ==========================
you need a delimited def, so \catcode`\<=\active \def<#1>{\startarabictext#1\stoparabictext} or nicer: \defineactivecharacter < {\quickanddirtyarabic} \def\quickanddirtyarabic#1>{\startarabictext#1\stoparabictext} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------