<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial Unicode MS">Hello</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Michael Trausch recently asked about
accessing a separate font for just a few characters missing from the main font
that he wanted to use. The answer that JK gave was to make the character
active so that it could become a single-character macro. I seem to have
misunderstood the syntax, so would be grateful for some help.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">I want to make < and > go to another
font and access the obtuse-angled tall brackets (Unicode values 3008 and 3009)
rather than the mathematical less-than and greater-than signs (values 003C and
003E), but I find that having made < and > active and defining them
as e.g. {{\altfont \char"3008}} and {{\altfont \char"3009}} (the two pairs of {}
being necessary, of course, so that subsequent text is not given in the
wrong font) I have to give {\<} and {\>} rather than just <
and > to produce the desired result. This isn't a great burden and can
easily be taken care of by global search-and-replace, but I'd like to know what
the trick is that I'm missing. JK's answer (referring to a different
character) was:</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">\catcode"2191 = \active</FONT></DIV>
<DIV><FONT
face="Arial Unicode MS">\def^^^^2191{{\arrowfont\char"2191}}</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">But I find that XeTeX halts at \def^^^^,
which it can't understand.</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Should there be some preceding code that
makes \def^^^^ comprehensible to XeTeX?</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">Many thanks in advance</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV>
<DIV><FONT face="Arial Unicode MS">John</FONT></DIV>
<DIV><FONT face="Arial Unicode MS"></FONT> </DIV></BODY></HTML>