On Sep 8, 2008, at 11:26 AM, Hans Hagen wrote:
indeed; this is a side effect of xetex being opentype and mp only able to deal with 8 bit fonts; in mkiv mp never sees any text (not een the btex .. etex which is replaced by by textext before the mp code is passed to mp); that's why in mkiv your text is a matter of the current run (inlcuding fotn settings and such, i.e. no need to pass anything to MPenvironment either)
Ah OK, thanks for the explanation. This will make it quite hard to support XeTeX. I'll have to look for a sane way to default to lm, then.
concerning your module ... you can have a mymodule.mkiv alongside mymodule.tex if needed
At least for the font setup, I have long runs of \beginXETEX, \beginLUATEX and \beginOLDTEX, that was enough for now. Best Thomas