diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2007-05-05 17:53:11 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2007-05-05 17:53:11 +0000 |
commit | 09208005665f3c7239e84f9d4a65773a5695ebfb (patch) | |
tree | 1e8420c933f2e8db14092a4eff242a1ae1981455 /Master/texmf-dist | |
parent | f50bbbfc7010b65a9b865c1ca16e96bd5f991cce (diff) |
update xu-glhyph wrapper for glhyph version 2.2
git-svn-id: svn://tug.org/texlive/trunk@4247 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/tex/generic/xu-hyphen/xu-glhyph.tex | 21 |
1 files 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 |