![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Idris Samawi Hamid wrote:
On Sun, 23 Sep 2007 11:45:41 -0600, Mojca Miklavec
wrote: On 9/23/07, Wolfgang Schuster wrote:
this would be nice because many chinese and japanese fonts have very ugly characters for normal latin texts and would be nice to choose another font for them.
The second point is some it often neccesary to choose differents fonts for arabic, greek ... and this method can used to switch to the corresponding font without inserting font switching commands in the text but handle this with character classes. I guess that in LuaTeX you can "compose your own font" on the fly. So you can say "please take this region from Arial, another region from some Greek fonts, and yet another from Chineese, perhaps some more characters from somewhere else ... And then you can use a single font for everything. (Don't ask me how this can be done, though.)
Let's get even more funky: we could define "text direction classes" such that switching from LR to RL automatically switches from, say, the latin group (or cyrillic) to the arabic group (or hebrew), and direction switching could be done using the appropriate unicode characters instead of control sequences (ie, unicode direction charaters should be made active).
didn't i send you the code for that trick a while ago? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------