summaryrefslogtreecommitdiff
path: root/tex/context/base/metatex.tex
blob: df674c11ac01f7e950259fb129958b776333a134 (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
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
%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=Hans Hagen / \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 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\relax}

\loadcorefile{syst-ini}      % some basic commands and allocations that are expected down the line
\loadcorefile{syst-pln}      % plain tex initializations of internal registers (no further code)

\loadmarkfile{luat-cod}      %
\loadmarkfile{luat-bas}      %
\loadmarkfile{luat-lib}      %

% needs stripping:

\loadcorefile{catc-ini.mkiv} % catcode table management
\loadcorefile{catc-act.tex}  % active character definition mechanisms
\loadcorefile{catc-def.tex}  % some generic catcode tables
\loadcorefile{catc-ctx.tex}  % a couple of context specific tables but expected by later modules
\loadcorefile{catc-sym.tex}  % 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}

% 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

% done

\errorstopmode \dump \endinput