1% xu-glhyph.tex 2% Wrapper for XeTeX to read glhyph.tex 3% Jonathan Kew, 2006-09-13 4% Updated for glhyph 2.2, 2007-05-05 5% Public domain 6 7\begingroup 8 9\expandafter\ifx\csname XeTeXrevision\endcsname\relax 10\else 11 12 % at the first comment in the file, we will switch input encoding 13 14 \catcode`\$=14 % temporary comment char 15 \catcode`\%=\active $ make percent active 16 \catcode`\^^M=12 $ 17 \def\gobbleline#1^^M{\catcode`\^^M=5 } $ macro to gobble line 18 \catcode`\^^M=5 $ 19 \def%{\XeTeXinputencoding "iso-8859-1" 20 \catcode`\%=14 $ restore catcode of percent 21 \catcode`\^^M=12 $ prepare for gobbleline macro 22 \gobbleline} $ and ignore the rest of the line 23\fi 24 25\input glhyph.tex 26 27\endgroup 28\endinput 29