blob: 969e7081ee7a3b5ac749e43f0be80a3f30c50005 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
% Jonathan Kew
% 2006-09-15
% Public domain
% hyphenation is set up in language.dat
% based on eplain.ini ("xeplain" = the eplain macros with xetex)
\input unicode-letters % required before patterns are loaded
%% Disable the \font\preloaded=... entries from plain.tex
%% as xetex is primarily intended for use with other fonts
\catcode`\{=1 \catcode`\}=2 \catcode`\#=6 \catcode`\^=7 \catcode`\@=11
\let\s@vef@nt=\font
\let\preloaded=2
\def\font{\futurelet\next\d@ntpreload}
\def\d@ntpreload{\ifx\next\preloaded
\let\next\sk@pf@nt
\begingroup \catcode`\%=12 \catcode13=12
\else
\let\next\s@vef@nt
\fi \next}
\lccode1=13
\lowercase{\def\sk@pf@nt\preloaded=#1^^A{\endgroup}}
\input bplain
% restore the \font command and undefine other stuff
\catcode`\@=11
\let\font=\s@vef@nt
\let\d@ntpreload=\und@fined
\let\sk@pf@nt=\und@fined
\let\s@vef@nt=\und@fined
\catcode`\@=12
\input eplain
\XeTeXuseglyphmetrics=1
\dump
\endinput
|