[XeTeX] a package for transition ryles based on unicode block (allowing amongst other things automatic font switching between languages)

Michiel Kamermans pomax at nihongoresources.com
Mon Oct 19 11:28:56 CEST 2009


Will Robertson wrote:
> Looks quite handy, well done. Glad to hear that those code tables are 
> being generated automatically :)
Technically they're not =/

Every class's tex file was auto-generated, but is a series of 
[\XeTeXinterchar \'... \RelevantBlockClass] commands. I couldn't quite 
figure out how to easily go from integers to hexacdecimal, so that I 
could generate them in xetex by using \char"XXXX, plus of course this 
approach wouldn't allow autogeneration of any glyphs from the unicode 
blocks above FFFF, which actually covers a decent number of blocks.

> Just a quick pass over the code and docs before my morning coffee: In 
> newxetexintercharclass.sty (which you can probably drop in, say, a 
> year from now), where you have
>
>     \PackageWarning{uccalloc}{newXeTeXintercharclass already defined, 
> not redeclaring.}
>
> it's probably better to use \PackageInfo instead -- no need to add 
> extra information to the console output just to say "not doing 
> anything". (I think fontspec is guilty of this sometimes, however!)
Good point, done and done.

And if you know of a way to make TeX perform the equivalent of a 
dec2utf8(integer) function, I'll be more than happy to replace the 
individual glyph commands with some automated loopage =)

One more thing I think I'll try to add before putting on CTAN is an 
options list that lets you pick which unicode blocks to use, if you know 
which you'll be using, so that only the relevant ones are loaded.

- Mike


More information about the XeTeX mailing list