From 09208005665f3c7239e84f9d4a65773a5695ebfb Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Sat, 5 May 2007 17:53:11 +0000 Subject: update xu-glhyph wrapper for glhyph version 2.2 git-svn-id: svn://tug.org/texlive/trunk@4247 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/generic/xu-hyphen/xu-glhyph.tex | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Master/texmf-dist/tex/generic/xu-hyphen/xu-glhyph.tex b/Master/texmf-dist/tex/generic/xu-hyphen/xu-glhyph.tex index f8a8c3d64f1..56a6c41eff0 100644 --- a/Master/texmf-dist/tex/generic/xu-hyphen/xu-glhyph.tex +++ b/Master/texmf-dist/tex/generic/xu-hyphen/xu-glhyph.tex @@ -1,6 +1,7 @@ % xu-glhyph.tex % Wrapper for XeTeX to read glhyph.tex % Jonathan Kew, 2006-09-13 +% Updated for glhyph 2.2, 2007-05-05 % Public domain \begingroup @@ -8,15 +9,17 @@ \expandafter\ifx\csname XeTeXrevision\endcsname\relax \else - % glhyph.tex includes \catcode and \lccode settings for Latin-1 - % but these are harmless (and are written using ^^xx notation) - - \let\PATTERNS=\patterns - \def\patterns{% at the \patterns command... - \XeTeXinputencoding "bytes" % read the rest of the file as raw bytes - \PATTERNS % and then load the real patterns - } - + % at the first comment in the file, we will switch input encoding + + \catcode`\$=14 % temporary comment char + \catcode`\%=\active $ make percent active + \catcode`\^^M=12 $ + \def\gobbleline#1^^M{\catcode`\^^M=5 } $ macro to gobble line + \catcode`\^^M=5 $ + \def%{\XeTeXinputencoding "iso-8859-1" + \catcode`\%=14 $ restore catcode of percent + \catcode`\^^M=12 $ prepare for gobbleline macro + \gobbleline} $ and ignore the rest of the line \fi \input glhyph.tex -- cgit v1.2.3