summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/plain/config
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/plain/config
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/plain/config')
-rw-r--r--Master/texmf-dist/tex/plain/config/xetex.ini20
1 files changed, 19 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/plain/config/xetex.ini b/Master/texmf-dist/tex/plain/config/xetex.ini
index f66b58467af..7a4bde4d631 100644
--- a/Master/texmf-dist/tex/plain/config/xetex.ini
+++ b/Master/texmf-dist/tex/plain/config/xetex.ini
@@ -1,7 +1,7 @@
% xetex.ini
% jonathan kew
% public domain
-% updated: 15 Sept 2006
+% updated: 7 June 2009
%% Disable the \font\preloaded=... entries from plain.tex
%% as xetex is primarily intended for use with other fonts
@@ -29,6 +29,24 @@
\let\d@ntpreload=\und@fined
\let\sk@pf@nt=\und@fined
\let\s@vef@nt=\und@fined
+
+%
+% Allocator for \XeTeXintercharclass values, from Enrico Gregorio
+%
+\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
\XeTeXuseglyphmetrics=1