On 21-12-2010 6:37, Thomas Schmitz wrote:
I was wondering: is something similar possible in mkiv yet? I know that
with the font fallback mechanism, it's trivial to change fonts for
unicode ranges, but is it possible to change hyphenation patterns (or
even insert "arbitrary code") according to unicode blocks? Would be
quite helpful for those of us working with different scripts.
For latin an unicode block does not relate to a language so it would be
broken by design to add such an automatism, however, for a while already
it is possible in mkiv to load multiple patterns.
See mixed-001.tex in the test suits
\setuplanguage[ru][patterns={ru,us}]
\setuplanguage[en][patterns={us,ru}]
\setuplanguage[de][patterns={de,ru}]
I suppose that greek can also be happily mixed in as well (I suppose
that's what you want).
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________