summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2009-06-07 17:17:52 +0000
committerJonathan Kew <jfkthame@googlemail.com>2009-06-07 17:17:52 +0000
commitdc1c34928a4b35b5f377940b8bdd7406820ddd70 (patch)
treeea019310dc30e6cde043164b636b31f2be8aa45c /Master/texmf-dist/tex/latex/latexconfig
parent54e3c992e5fdbef6a726b9df1f541ce568a710ae (diff)
updated .ini files for xetex, xelatex to include char-class allocator
git-svn-id: svn://tug.org/texlive/trunk@13658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/xelatex.ini21
1 files changed, 20 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
index 6a2b7efebd7..c139c3aaa29 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
@@ -1,6 +1,6 @@
% xelatex.ini
% jonathan kew
-% updated: 16 June 2008
+% updated: 7 June 2009
% Public domain
\XeTeXuseglyphmetrics=1
\input unicode-letters
@@ -8,6 +8,25 @@
\expandafter\let\csname saved-dump-cs\endcsname\dump
\let\dump=\relax
\input latex.ltx
+%
+% Allocator for \XeTeXintercharclass values, from Enrico Gregorio
+%
+\catcode`\@=11
+\newcount\xe@alloc@intercharclass % allocates intercharclass
+\xe@alloc@intercharclass=\thr@@ % from 4 (1,2 and 3 are used by CJK, AFAIK)
+\def\xe@alloc@#1#2#3#4#5{\global\advance#1\@ne
+ \xe@ch@ck#1#4#2% make sure there's still room
+ \allocationnumber#1%
+ \global#3#5\allocationnumber
+ \wlog{\string#5=\string#2\the\allocationnumber}}
+\def\xe@ch@ck#1#2#3{%
+ \ifnum#1<#2\else
+ \errmessage{No room for a new #3}%
+ \fi}
+\def\newXeTeXintercharclass{%
+ \xe@alloc@\xe@alloc@intercharclass\XeTeXintercharclass\chardef\@cclv} %at most 254
+\catcode`\@=12
+%
% Because latex.ltx sets up character code tables for T1 encoding by default,
% we need to reset values from unicode-letters that may have been overridden
\begingroup