Am 11.05.2009 um 14:41 schrieb Yue Wang:
Hi Wolfgang:
nice script.
Can the module meet my needs discussed in http://www.ntg.nl/pipermail/ntg-context/2009/040831.html ? or is it possible to extend the support to xetex?
When you take care about font switching in your module it's easy, large part of the code can be left out because XeTeX can find the regular/italic/... styles itself. \unprotect \def\setmainfont[#1]{\definetypeface[simplefonts][rm][Xserif][#1] [default]} \def\setsansfont[#1]{\definetypeface[simplefonts][ss][Xsans] [#1] [default]} \def\setmonofont[#1]{\definetypeface[simplefonts][tt][Xmono] [#1] [default]} \appendtoks\setupbodyfont[simplefonts]\to\everystarttext \protect \setmainfont[Times New Roman] \setsansfont[Arial] \setmonofont[Courier New] \starttext \rm\tf roman \it italic \bf bold \bi bolditalic \ss\tf roman \it italic \bf bold \bi bolditalic \tt\tf roman \it italic \bf bold \bi bolditalic \stoptext Wolfgang