Hi,
I uploaded a beta with additional bidi code. There are now three methods:
default : the original one, the fastest, wil be improved a bit
one : unicode bidi, derived from khaleds t-bidi, cleaned up and
optimized plus some thingies, but in working still close to the original
two : unicode bidi, the version that will evolve
All methods come with the usual context kind of tracing.
Some of these methods have different options (default has local and
global behaviour), one has no options, and for two one can disable fancy
fences heuristics. More will follow once we have investigated all
upcoming changes, circulating wishes, conflicting demands etc.
Eventually there will be a manual about these matters.
Here is an example (follow up on some post about hebrew on this list):
\starttext
\definefont[arabicfont][arabtype*arabic at 20pt]
\definefont[hebrewfont][arial*hebrew at 12pt]
\startbuffer[fences]
\hebrewfont
ש)ל(א none\par
ש(ל]א none\par
ש(ל)א 2-4\par
ש(ל[א)כ] 2-6\par
ש(ל]א)כ 2-6\par
ש(ל)א)כ 2-4\par
ש(ל(א)כ 4-6\par
ש(ל(א)כ) 2-8, 4-6\par
ש(ל[א]כ) 2-8, 4-6\par
\stopbuffer
\startbuffer[junk]
\hebrewfont
\dorecurse{100}{
\dorecurse{20}{
שלום (אני) כותבשלום (אני) $ $ כותבשלום (אני) $x$ כותבשלום (אני)
\ruledhbox {hans כותבשלום}
(אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום
(אני) כותבשלום (אני) כותבשלום (אני) כותב
}
\par
}
\stopbuffer
\setupalign[r2l,verytolerant]
\start
\setupdirections[bidi=global,method=default]
\getbuffer[fences] \blank
\stop
\start
\setupdirections[bidi=global,method=one]
\enabletrackers[typesetters.directions.one]
\enabletrackers[typesetters.directions.one.details]
\getbuffer[fences] \blank
\disabletrackers[typesetters.directions.one]
\disabletrackers[typesetters.directions.one.details]
\stop
\start
\setupdirections[bidi=global,method=two,fences=yes]
\enabletrackers[typesetters.directions.two]
\enabletrackers[typesetters.directions.two.details]
\getbuffer[fences] \blank
\disabletrackers[typesetters.directions.two]
\disabletrackers[typesetters.directions.two.details]
\stop
\start
\setupdirections[bidi=global,method=two,fences=no]
\enabletrackers[typesetters.directions.two]
\enabletrackers[typesetters.directions.two.details]
\getbuffer[fences] \blank
\disabletrackers[typesetters.directions.two]
\disabletrackers[typesetters.directions.two.details]
\stop
\page
\start
\setupdirections[bidi=global,method=two]
\getbuffer[junk] \blank
\stop
\stoptext
-----------------------------------------------------------------
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
___________________________________________________________________________________