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

All the best
Idris


_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to