[XeTeX] Charis SIL glyph variants

Jonathan Kew jonathan at jfkew.plus.com
Fri Nov 21 17:42:42 CET 2008


On 21 Nov 2008, at 16:25, Will Robertson wrote:

> On 21/11/2008, at 7:42 PM, Benct Philip Jonsson wrote:
>
>> BTW would XeTeX tolerate Unicode characters in
>> command names so that I can use \ŋ ?
>
> You can write single-letter command names with basically any unicode
> character (so \ŋ itself would be okay), but multi-letter command  
> names
> can only be composed of characters that are assigned a catcode of 11,
> which is only [a-zA-Z] by default (so \ŋz would not be okay unless  
> you
> wrote \catcode`\ŋ=11 beforehand).

Actually, the default xetex and xelatex formats assign \catcode 11 to  
everything that's classified as a "letter" in Unicode, so you  
shouldn't need to do anything special for this to work.

Alternatively, you could make ŋ an active character, and then you  
wouldn't even need to prefix it with backslash or leave a space after:

   \catcode`\ŋ=\active
   \def ŋ{\your\definition\for\eng\goes\here}

JK



More information about the XeTeX mailing list