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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
%D \module
%D [ file=metatex,
%D version=2008.10.10,
%D title=\METATEX,
%D subtitle=\METATEX\ Format Generation,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
%D We can experiment here with runtime loading, i.e. no longer
%D use a format. However, we still need a stub then but it could
%D as well be luatools (mtxrun) itself then.
%D This format is just a minimal layer on top of the \LUATEX\
%D engine and will not provide high level functionality. It can
%D be used as basis for dedicated (specialized) macro packages.
%D
%D A format is generated with the command;
%D
%D \starttyping
%D luatools --make --compile metatex
%D \stoptyping
%D
%D Remark: this is far from complete. We will gradually add
%D more. Also, it's not yet clean what exactly will be part
%D of it. This is a prelude to a configureable macro package.
\catcode`\{=1 \catcode`\}=2 \catcode`\#=6
\edef\metatexformat {\jobname}
\edef\metatexversion{2007.04.03 13:01}
\let\fmtname \metatexformat
\let\fmtversion\metatexversion
\ifx\normalinput\undefined \let\normalinput\input \fi
\def\loadcorefile#1{\normalinput#1.tex \relax}
\def\loadmarkfile#1{\normalinput#1.mkiv\relax}
\loadmarkfile{syst-ini}
\ifnum\luatexversion<60 % also change message
\writestatus{!!!!}{Your luatex binary is too old, you need at least version 0.60!}
\expandafter\end
\fi
\newtoks\metatexversiontoks \metatexversiontoks\expandafter{\metatexversion} % at the lua end
\loadmarkfile{syst-pln} % plain tex initializations of internal registers (no further code)
\loadmarkfile{syst-mes}
\loadmarkfile{luat-cod} %
\loadmarkfile{luat-bas} %
\loadmarkfile{luat-lib} %
% needs stripping:
\loadmarkfile{catc-ini} % catcode table management
\loadmarkfile{catc-act} % active character definition mechanisms
\loadmarkfile{catc-def} % some generic catcode tables
\loadmarkfile{catc-ctx} % a couple of context specific tables but expected by later modules
\loadmarkfile{catc-sym} % some definitions related to \letter<tokens>
% helpers, maybe less
\loadmarkfile{syst-aux} % a whole lot of auxiliary macros
%loadmarkfile{syst-lua} % some helpers using lua instead
%loadmarkfile{syst-con} % some rather basic conversions
%loadmarkfile{syst-fnt}
%loadmarkfile{syst-str}
%loadmarkfile{syst-rtp}
% not needed
% \loadmarkfile{supp-fil}
% \loadmarkfile{supp-dir}
% characters
\loadmarkfile{char-utf}
\loadmarkfile{char-ini}
\loadmarkfile{char-enc} % \registerctxluafile{char-enc}{1.001}
% attributes
\loadmarkfile{attr-ini}
% nodes
\loadmarkfile{node-ini}
%loadmarkfile{node-fin}
%loadmarkfile{node-par}
% attributes, not needed:
%loadmarkfile{attr-ini}
% regimes
% \loadmarkfile{regi-ini}
% \loadcorefile{regi-syn}
% languages
% fonts
% \loadcorefile{enco-ini.mkiv}
% \loadcorefile{hand-ini.mkiv}
\registerctxluafile{font-ini}{1.001}
\registerctxluafile{node-fnt}{1.001}
\registerctxluafile{font-enc}{1.001}
\registerctxluafile{font-map}{1.001}
\registerctxluafile{font-syn}{1.001}
\registerctxluafile{font-tfm}{1.001}
\registerctxluafile{font-afm}{1.001}
\registerctxluafile{font-cid}{1.001}
\registerctxluafile{font-ott}{1.001}
\registerctxluafile{font-otf}{1.001}
\registerctxluafile{font-otb}{1.001}
\registerctxluafile{font-otn}{1.001}
\registerctxluafile{font-ota}{1.001}
\registerctxluafile{font-otp}{1.001}
\registerctxluafile{font-otc}{1.001}
%registerctxluafile{font-vf} {1.001}
\registerctxluafile{font-def}{1.001}
%registerctxluafile{font-ctx}{1.001}
\registerctxluafile{font-xtx}{1.001}
%registerctxluafile{font-fbk}{1.001}
%registerctxluafile{font-ext}{1.001}
\registerctxluafile{font-pat}{1.001}
%registerctxluafile{font-chk}{1.001}
%registerctxluafile{math-ini}{1.001}
%registerctxluafile{math-dim}{1.001}
%registerctxluafile{math-ent}{1.001}
%registerctxluafile{math-ext}{1.001}
%registerctxluafile{math-vfu}{1.001}
%registerctxluafile{math-map}{1.001}
%registerctxluafile{math-noa}{1.001}
\registerctxluafile{task-ini}{1.001}
%registerctxluafile{l-xml}{1.001} % needed for font database
% why not ...
\pdfoutput\plusone
% too
\appendtoks
\ctxlua{statistics.savefmtstatus("\jobname","\metatexversion","metatex.tex")}% can become automatic
\to \everydump
% done
\errorstopmode \dump \endinput
|