context.mkiv /size: 14 Kb    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=context,
3
%D version=2008.28.10, % 1995.10.10,
4
%D title=\CONTEXT,
5
%D subtitle=\CONTEXT\ Format Generation,
6
%D author=Hans Hagen, % ɦɑns ɦɑˈχən
7
%D date=\currentdate,
8
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9
%C
10
%C This module is part of the \CONTEXT\ macro||package and is
11
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12
%C details.
13 14
% Here is some timing (2015-04-01) luajittex format generation:
15
%
16
% 2.6 sec : normal make
17
% 2.0 sec : with terminal output piped to file
18
% 0.2 sec : format dumped
19
% 0.2 sec : char-def/char-ini (no bytecode)
20
%
21
%D So a format still saves some 1.5 seconds (with luajjitex) startup and on network
22
%D shares cq. when no files are cached by the os it's of course much worse. A zero
23
%D run is .27 sec with luajittex. In luametatex it's faster anyway (2.4 sec).
24 25
%D The real minimal startup time can be measured by uncommenting \type {\normalend}
26
%D in the \type {cont-new.mkiv} file. When we subtract .250 for \LUA\ initialization
27
%D from 0.300 runtime and also subtract some 0.030 for the resolver, we get about
28
%D 0.020 for format loading which is pretty fast. We're talking \LUAMETATEX\ here.
29 30
% http://build.contextgarden.net/waterfall?tag=c/lua(meta)tex
31 32
%D Welcome to context, pronounced as kontekst (rather dutch) and not as conτεχt.
33 34
\catcode
`
\{
=
1
\catcode
`
\}
=
2
\catcode
`
\#
=
6
35 36
%D From the next string (which is set by the script that assembles the distribution)
37
%D later on we will calculate a number that can be used by use modules to identify
38
%D the feature level. Starting with version 2004.8.30 the low level interface is
39
%D english. Watch out and adapt your styles an modules.
40 41
% \everypar{\writestatus{!!!!}{some spurious input in line \the\inputlineno}\wait}
42 43
%D The order of loading will change when all modules have been cleaned up and the
44
%D dependencies are more consistent. Beware, the version number has to match \type
45
%D {YYYY.MM.DD HH:MM} format.
46 47
\edef
\contextformat
{
\jobname
}
48
\edef
\contextversion
{
2
0
2
0
.
0
6
.
3
0
1
7
:
3
0
}
49
\edef
\contextkind
{
beta
}
50 51
%D Kind of special:
52 53
\chardef
\contextlmtxmode
\directlua{
tex
.
print
(
CONTEXTLMTXMODE
or
0
)
}
\relax
54 55
%D For those who want to use this:
56 57
\let
\fmtname
\contextformat
58
\let
\fmtversion\contextversion
59 60
%D Loading:
61 62
\edef
\mksuffix
{
mkiv
}
63
\edef
\contextmark
{
MKIV
}
64 65
\ifx
\normalinput
\undefined
\let\normalinput\input
\fi
66 67
\def
\loadmarkfile
#
1
{
\normalinput
{
#
1
.
\mksuffix
}}
68
\def
\loadmkivfile
#
1
{
\normalinput
{
#
1
.
mkiv
}}
69
\def
\loadmkvifile
#
1
{
\normalinput
{
#
1
.
mkvi
}}
70
%def\loadmkilfile#1{\normalinput{#1.mkil}}
71
%def\loadmklifile#1{\normalinput{#1.mkli}}
72 73
%D First we load the system modules. These implement a lot of manipulation macros.
74
%D We start with setting up some basic \TEX\ machinery.
75 76
\loadmarkfile
{
syst
-
ini
}
77 78
%D We just quit if new functionality is expected.
79 80
\ifnum
\luatexversion
<
1
1
0
% also change message
81
\writestatus
{
!
!
!
!
}{
Your
luatex
binary
is
too
old
,
you
need
at
least
version
1
.
1
0
!
}
82
\expandafter\end
83
\fi
84 85
%D Some checking (more primitives are now defined):
86 87
\ifdefined
\defaultinterface
\else
\def
\defaultinterface
{
english
}
\fi
88
%ifdefined\messageinterface \else \let\messageinterface \defaultinterface \fi
89
\ifdefined
\defaultlanguagetag
\else
\def
\defaultlanguagetag
{
en
}
\fi
90 91
%D There is only this way to pass the version info to \LUA\ (currently). Hm, we could
92
%D now put it into the environment.
93 94
\newtoks
\contextversiontoks
\contextversiontoks
\expandafter
{
\contextversion
}
95
\newtoks
\contextkindtoks
\contextkindtoks
\expandafter
{
\contextkind
}
96 97
% \normaleverypar{\wait} % uncomment for test of funny injections
98 99
%D Now the more fundamental code gets defined.
100 101
\loadmarkfile
{
norm
-
ctx
}
102
\loadmarkfile
{
syst
-
pln
}
103
\loadmarkfile
{
syst
-
mes
}
104 105
\loadmarkfile
{
luat
-
cod
}
106
\loadmarkfile
{
luat
-
bas
}
107
\loadmarkfile
{
luat
-
lib
}
108
\loadmarkfile
{
luat
-
soc
}
109 110
\loadmarkfile
{
catc
-
ini
}
111
\loadmarkfile
{
catc
-
act
}
112
\loadmarkfile
{
catc
-
def
}
113
\loadmarkfile
{
catc
-
ctx
}
114
\loadmarkfile
{
catc
-
sym
}
115 116
\loadmarkfile
{
toks
-
ini
}
117
\loadmarkfile
{
cldf
-
ini
}
118 119
% \tracecatcodetables
120 121
%D From here on we have \unexpanded being \normalprotected, as we already had
122
%D \type {\unexpanded} long before etex came around.
123 124
\loadmarkfile
{
luat
-
ini
}
125
\loadmarkfile
{
toks
-
scn
}
126 127
\loadmarkfile
{
syst
-
aux
}
128
\loadmarkfile
{
syst
-
lua
}
129
\loadmarkfile
{
syst
-
con
}
130 131
\loadmarkfile
{
syst
-
fnt
}
132
\loadmarkfile
{
syst
-
rtp
}
133 134
\loadmarkfile
{
luat
-
usr
}
135 136
\loadmkvifile
{
file
-
ini
}
137
\loadmkvifile
{
file
-
res
}
138
\loadmkvifile
{
file
-
lib
}
139 140
%D This needs more checking for clashes:
141
%D
142
%D \starttyping
143
%D \doifelsefileexists{l-macro-imp-codes-luatex.lua}{\registerctxluafile{l-macro-imp-codes-luatex}{}}{}
144
%D \stoptyping
145 146
\loadmarkfile
{
supp
-
dir
}
147 148
\loadmarkfile
{
char
-
utf
}
% generic code (i.e. not much tex) ... could become unic-ini
149
\loadmarkfile
{
char
-
ini
}
% tex / context specific
150
\loadmarkfile
{
char
-
act
}
% even more specific
151 152
\loadmarkfile
{
mult
-
ini
}
153
\loadmarkfile
{
mult
-
sys
}
154
\loadmarkfile
{
mult
-
aux
}
155
\loadmarkfile
{
mult
-
def
}
156
\loadmarkfile
{
mult
-
chk
}
157
\loadmkvifile
{
mult
-
dim
}
158 159
\loadmarkfile
{
cldf
-
int
}
% interface
160 161
\loadmarkfile
{
trac
-
ctx
}
% maybe move up
162 163
% \loadmarkfile{luat-ini}
164 165
\loadmarkfile
{
toks
-
tra
}
166
\loadmarkfile
{
toks
-
aux
}
167
%loadmarkfile{toks-map} % obsolete, never used
168 169
\loadmarkfile
{
attr
-
ini
}
170 171
\loadmarkfile
{
core
-
ini
}
172
\loadmarkfile
{
core
-
env
}
173 174
\loadmarkfile
{
layo
-
ini
}
175 176
\loadmarkfile
{
node
-
ini
}
177 178
\loadmarkfile
{
cldf
-
bas
}
% basics / depends on nodes
179 180
\loadmarkfile
{
node
-
fin
}
181
\loadmarkfile
{
node
-
mig
}
182
%loadmarkfile{node-pag}
183 184
\loadmarkfile
{
driv
-
ini
}
% lmtx
185 186
\loadmarkfile
{
back
-
ini
}
187
\loadmarkfile
{
back
-
res
}
188
\loadmarkfile
{
back
-
trf
}
189 190
\loadmarkfile
{
attr
-
col
}
191
\loadmarkfile
{
attr
-
lay
}
192
\loadmarkfile
{
attr
-
neg
}
193
\loadmarkfile
{
attr
-
eff
}
194
\loadmarkfile
{
attr
-
mkr
}
195 196
\loadmarkfile
{
trac
-
tex
}
197
\loadmarkfile
{
trac
-
deb
}
% will move up
198 199
%loadmarkfile{blob-ini} % not to be used, we only use a helper
200 201
\loadmarkfile
{
supp
-
box
}
202 203
\loadmarkfile
{
supp
-
ran
}
204
\loadmarkfile
{
supp
-
mat
}
205 206
\loadmarkfile
{
core
-
uti
}
207
\loadmkvifile
{
file
-
job
}
208 209
\loadmarkfile
{
anch
-
pos
}
210 211
\loadmarkfile
{
typo
-
ini
}
212
\loadmarkfile
{
typo
-
lin
}
213
\loadmarkfile
{
typo
-
bld
}
% par builders
214 215
\loadmarkfile
{
typo
-
inj
}
216 217
\loadmkvifile
{
file
-
syn
}
218
\loadmkvifile
{
file
-
mod
}
219 220
\loadmarkfile
{
core
-
sys
}
221
\loadmarkfile
{
core
-
con
}
222 223
\loadmarkfile
{
cont
-
fil
}
224 225
\loadmarkfile
{
regi
-
ini
}
226
\loadmarkfile
{
enco
-
ini
}
227
\loadmarkfile
{
hand
-
ini
}
228 229
\loadmarkfile
{
lang
-
ini
}
230
\loadmarkfile
{
lang
-
hyp
}
% also loads dis
231
\loadmarkfile
{
lang
-
lab
}
232 233
\loadmarkfile
{
unic
-
ini
}
234 235
% \loadmarkfile{core-uti}
236
\loadmarkfile
{
core
-
two
}
237
\loadmarkfile
{
core
-
dat
}
238 239
\loadmarkfile
{
colo
-
ini
}
240
\loadmarkfile
{
colo
-
grp
}
% optional
241
\loadmarkfile
{
colo
-
ext
}
242 243
\loadmarkfile
{
node
-
bck
}
% overloads anch-pgr (experimental and undocumented)
244 245
\loadmarkfile
{
pack
-
cut
}
246 247
\loadmarkfile
{
lang
-
mis
}
248
\loadmarkfile
{
lang
-
url
}
249
\loadmarkfile
{
lang
-
def
}
250 251
% \loadmkvifile{file-job} % why so late?
252 253
\loadmarkfile
{
symb
-
ini
}
% brrr depends on fonts
254 255
\loadmarkfile
{
sort
-
ini
}
256 257
\loadmkvifile
{
pack
-
mis
}
258
\loadmarkfile
{
pack
-
rul
}
259
\loadmarkfile
{
pack
-
mrl
}
260
\loadmkvifile
{
pack
-
bck
}
261
\loadmarkfile
{
pack
-
fen
}
262 263
\loadmarkfile
{
lxml
-
ini
}
264
\loadmarkfile
{
lxml
-
sor
}
265 266
\loadmkvifile
{
typo
-
prc
}
267 268
% \loadmarkfile{anch-pos}
269 270
\loadmkvifile
{
strc
-
ini
}
271
\loadmarkfile
{
strc
-
tag
}
272
\loadmarkfile
{
strc
-
doc
}
273
\loadmarkfile
{
strc
-
num
}
274
\loadmarkfile
{
strc
-
mar
}
275
\loadmarkfile
{
strc
-
sbe
}
276
\loadmkvifile
{
strc
-
lst
}
277
\loadmarkfile
{
strc
-
sec
}
278
\loadmarkfile
{
strc
-
pag
}
% hm, depends on core-num
279
\loadmarkfile
{
strc
-
ren
}
280
\loadmarkfile
{
strc
-
xml
}
281
\loadmarkfile
{
strc
-
def
}
% might happen later
282
\loadmkvifile
{
strc
-
ref
}
283
%loadmarkfile{strc-reg}
284
\loadmkvifile
{
strc
-
lev
}
% experiment
285 286
\loadmarkfile
{
spac
-
hor
}
287
\loadmarkfile
{
spac
-
ali
}
288
\loadmarkfile
{
spac
-
flr
}
289
\loadmarkfile
{
spac
-
ver
}
% beware, hooks into strc-sec
290
\loadmarkfile
{
spac
-
lin
}
291
\loadmarkfile
{
spac
-
pag
}
292
\loadmarkfile
{
spac
-
par
}
293
\loadmarkfile
{
spac
-
def
}
294
\loadmkvifile
{
spac
-
prf
}
295
\loadmarkfile
{
spac
-
grd
}
296 297
%loadmarkfile{anch-pos}
298 299
\loadmkvifile
{
scrn
-
ini
}
300
\loadmkvifile
{
scrn
-
ref
}
301 302
\loadmarkfile
{
pack
-
obj
}
303 304
\loadmkvifile
{
strc
-
itm
}
305 306
\loadmkvifile
{
strc
-
con
}
307
\loadmkvifile
{
strc
-
des
}
308
\loadmkvifile
{
strc
-
enu
}
309 310
\loadmarkfile
{
strc
-
ind
}
311
\loadmarkfile
{
strc
-
lab
}
312
\loadmarkfile
{
strc
-
syn
}
313 314
% \loadmarkfile{core-sys}
315 316
\loadmarkfile
{
page
-
var
}
317
\loadmkvifile
{
page
-
otr
}
318
\loadmarkfile
{
page
-
ini
}
319
\loadmarkfile
{
page
-
ins
}
320
\loadmarkfile
{
page
-
fac
}
321
\loadmarkfile
{
page
-
brk
}
322
\loadmarkfile
{
page
-
col
}
323
\loadmarkfile
{
page
-
inf
}
324
\loadmarkfile
{
page
-
flt
}
325
\loadmarkfile
{
page
-
bck
}
326
\loadmarkfile
{
page
-
not
}
327
\loadmarkfile
{
page
-
one
}
328
\loadmarkfile
{
page
-
lay
}
329
\loadmkvifile
{
page
-
box
}
330
\loadmkvifile
{
page
-
txt
}
331
\loadmarkfile
{
page
-
sid
}
% when
332 333
\loadmkvifile
{
strc
-
flt
}
334 335
\loadmarkfile
{
page
-
pst
}
336
\loadmkvifile
{
page
-
mbk
}
337
%loadmarkfile{page-mul} % \usecolumns[old-multicolumns]
338
\loadmarkfile
{
page
-
mix
}
339
\loadmarkfile
{
page
-
smp
}
340
%loadmarkfile{page-set} % \usecolumns[old-columnsets]
341
\loadmarkfile
{
page
-
cst
}
342
\loadmarkfile
{
page
-
pcl
}
% new
343
\loadmarkfile
{
pack
-
lyr
}
344
\loadmarkfile
{
pack
-
pos
}
345
\loadmkvifile
{
page
-
mak
}
346 347
\loadmarkfile
{
strc
-
reg
}
% uses mixed columns
348 349
\loadmkvifile
{
page
-
lin
}
350
\loadmarkfile
{
page
-
par
}
351
\loadmarkfile
{
typo
-
pag
}
352
\loadmarkfile
{
typo
-
mar
}
353
\loadmarkfile
{
typo
-
itm
}
354 355
\loadmarkfile
{
buff
-
ini
}
356
\loadmarkfile
{
buff
-
ver
}
357
\loadmkvifile
{
buff
-
par
}
358 359
\loadmarkfile
{
buff
-
imp
-
tex
}
% optional as also runtime if not loaded
360
\loadmarkfile
{
buff
-
imp
-
mp
}
% optional as also runtime if not loaded
361
\loadmarkfile
{
buff
-
imp
-
lua
}
% optional as also runtime if not loaded
362
\loadmarkfile
{
buff
-
imp
-
xml
}
% optional as also runtime if not loaded
363 364
\loadmarkfile
{
buff
-
imp
-
parsed
-
xml
}
% optional
365
%loadmarkfile{buff-imp-parsed-lua} % optional
366 367
\loadmarkfile
{
strc
-
blk
}
368 369
\loadmarkfile
{
page
-
imp
}
370
\loadmkvifile
{
page
-
sel
}
% optional
371
\loadmkvifile
{
page
-
inj
}
% optional
372 373
\loadmkvifile
{
scrn
-
pag
}
374
\loadmkvifile
{
scrn
-
wid
}
375
\loadmkvifile
{
scrn
-
but
}
376
\loadmkvifile
{
scrn
-
bar
}
377 378
\loadmarkfile
{
page
-
com
}
% optional (after scrn-pag)
379 380
\loadmarkfile
{
strc
-
bkm
}
% bookmarks
381 382
\loadmarkfile
{
java
-
ini
}
383 384
\loadmkvifile
{
scrn
-
fld
}
385
\loadmkvifile
{
scrn
-
hlp
}
386 387
\loadmarkfile
{
char
-
enc
}
% will move up
388 389
\loadmkvifile
{
font
-
lib
}
% way too late but after language
390
\loadmkvifile
{
font
-
fil
}
391
\loadmkvifile
{
font
-
var
}
392
\loadmkvifile
{
font
-
fea
}
393
\loadmkvifile
{
font
-
mat
}
394
\loadmkvifile
{
font
-
ini
}
395
\loadmkvifile
{
font
-
sym
}
396
\loadmkvifile
{
font
-
sty
}
397
\loadmkvifile
{
font
-
set
}
398
\loadmkvifile
{
font
-
emp
}
399
\loadmarkfile
{
font
-
pre
}
400
\loadmarkfile
{
font
-
unk
}
401
\loadmarkfile
{
font
-
tra
}
402
\loadmarkfile
{
font
-
chk
}
403
\loadmarkfile
{
font
-
uni
}
404
\loadmkvifile
{
font
-
col
}
405
\loadmkvifile
{
font
-
gds
}
406
\loadmkvifile
{
font
-
aux
}
407
\loadmkvifile
{
font
-
sel
}
408 409
\loadmarkfile
{
typo
-
tal
}
410
\loadmarkfile
{
typo
-
par
}
% par builders (uses fonts)
411 412
\loadmarkfile
{
tabl
-
com
}
413
\loadmarkfile
{
tabl
-
pln
}
414 415
\loadmarkfile
{
tabl
-
tab
}
% thrd-tab stripped and merged
416 417
\loadmarkfile
{
tabl
-
tbl
}
418
\loadmarkfile
{
tabl
-
ntb
}
419
\loadmarkfile
{
tabl
-
nte
}
420
\loadmarkfile
{
tabl
-
ltb
}
421
\loadmarkfile
{
tabl
-
frm
}
422
\loadmarkfile
{
tabl
-
tsp
}
423
\loadmkvifile
{
tabl
-
xtb
}
424
\loadmarkfile
{
tabl
-
mis
}
425 426
\loadmarkfile
{
typo
-
lan
}
427 428
\loadmarkfile
{
lxml
-
css
}
429 430
\loadmarkfile
{
spac
-
chr
}
% depends on fonts
431 432
\loadmarkfile
{
blob
-
ini
}
% not to be used, we only use a helper
433 434
\loadmarkfile
{
trac
-
vis
}
435
\loadmarkfile
{
trac
-
jus
}
436 437
\loadmarkfile
{
typo
-
cln
}
438
\loadmarkfile
{
typo
-
wrp
}
439
\loadmarkfile
{
typo
-
spa
}
440
\loadmarkfile
{
typo
-
krn
}
441
\loadmkvifile
{
typo
-
itc
}
442
\loadmarkfile
{
typo
-
dir
}
443
\loadmarkfile
{
typo
-
brk
}
444
\loadmarkfile
{
typo
-
cap
}
445
\loadmarkfile
{
typo
-
dig
}
446
\loadmarkfile
{
typo
-
rep
}
447
\loadmkvifile
{
typo
-
txt
}
448
\loadmarkfile
{
typo
-
drp
}
449
\loadmarkfile
{
typo
-
fln
}
450
\loadmarkfile
{
typo
-
sus
}
451
\loadmarkfile
{
typo
-
lig
}
452
\loadmarkfile
{
typo
-
chr
}
453
\loadmarkfile
{
typo
-
rub
}
454
\loadmkivfile
{
typo
-
fkr
}
455
\loadmkivfile
{
typo
-
pnc
}
456 457
\loadmkvifile
{
type
-
ini
}
458
\loadmarkfile
{
type
-
set
}
459 460
\loadmarkfile
{
scrp
-
ini
}
461 462
\loadmarkfile
{
symb
-
emj
}
463 464
\loadmarkfile
{
lang
-
wrd
}
% can be optional (discussion with mm sideeffect)
465
\loadmarkfile
{
lang
-
rep
}
% can be optional (bt 2013 side effect)
466 467
\loadmarkfile
{
prop
-
ini
}
% only for downward compatibility
468 469
\loadmarkfile
{
mlib
-
ctx
}
% messy order
470 471
\loadmarkfile
{
meta
-
ini
}
472
\loadmarkfile
{
meta
-
tex
}
473
\loadmarkfile
{
meta
-
fun
}
474
\loadmarkfile
{
meta
-
pag
}
475
\loadmarkfile
{
meta
-
grd
}
476
\loadmarkfile
{
meta
-
fnt
}
477
\loadmarkfile
{
meta
-
nod
}
478
\loadmarkfile
{
meta
-
lua
}
479 480
\loadmarkfile
{
page
-
mrk
}
% depends on mp
481 482
\loadmarkfile
{
page
-
flw
}
483
\loadmarkfile
{
page
-
spr
}
484
\loadmarkfile
{
page
-
plg
}
485
\loadmarkfile
{
page
-
str
}
486 487
\loadmarkfile
{
anch
-
pgr
}
% can be moved up (nicer for dependencies)
488
\loadmkvifile
{
anch
-
bck
}
489
\loadmarkfile
{
anch
-
tab
}
% overloads tabl-tbl
490
\loadmarkfile
{
anch
-
bar
}
491
%loadmarkfile{anch-snc} % when needed this one will be redone
492 493
\loadmarkfile
{
math
-
ini
}
% way after font-pre !
494
\loadmarkfile
{
math
-
pln
}
495
\loadmarkfile
{
math
-
for
}
496
\loadmarkfile
{
math
-
def
}
% also saves some meanings
497
\loadmarkfile
{
math
-
ali
}
498
%loadmarkfile{math-arr}
499
\loadmkvifile
{
math
-
stc
}
500
\loadmarkfile
{
math
-
frc
}
501
\loadmarkfile
{
math
-
mis
}
502
\loadmarkfile
{
math
-
scr
}
503
\loadmarkfile
{
math
-
int
}
504
\loadmarkfile
{
math
-
del
}
505
\loadmarkfile
{
math
-
fen
}
506
\loadmkvifile
{
math
-
acc
}
507
\loadmkvifile
{
math
-
rad
}
508
\loadmarkfile
{
math
-
inl
}
509
\loadmarkfile
{
math
-
dis
}
510
%loadmarkfile{math-lan}
511 512
%loadmarkfile{phys-dim} % moved to after typo-scr
513 514
\loadmarkfile
{
strc
-
mat
}
515 516
\loadmarkfile
{
chem
-
ini
}
517
\loadmarkfile
{
chem
-
str
}
518 519
\loadmarkfile
{
typo
-
scr
}
520
\loadmarkfile
{
phys
-
dim
}
521 522
\loadmarkfile
{
node
-
rul
}
% beware, defined \underbar so after math
523
\loadmkvifile
{
font
-
sol
}
% font solutions
524 525
\loadmkvifile
{
strc
-
not
}
526
\loadmkvifile
{
strc
-
lnt
}
527
\loadmkivfile
{
strc
-
tnt
}
528
\loadmkivfile
{
strc
-
usr
}
529 530
\loadmarkfile
{
pack
-
com
}
531
\loadmarkfile
{
typo
-
del
}
532 533
\loadmarkfile
{
grph
-
trf
}
534
\loadmarkfile
{
grph
-
inc
}
535
\loadmarkfile
{
grph
-
fig
}
536
\loadmarkfile
{
grph
-
raw
}
537
\loadmarkfile
{
grph
-
rul
}
538
\loadmarkfile
{
grph
-
pat
}
539 540
\loadmarkfile
{
pack
-
box
}
541
\loadmarkfile
{
pack
-
bar
}
542
\loadmarkfile
{
page
-
app
}
543
\loadmarkfile
{
meta
-
fig
}
544 545
\loadmarkfile
{
page
-
ffl
}
546 547
\loadmarkfile
{
lang
-
spa
}
% will become obsolete
548 549
\loadmarkfile
{
typo
-
ovl
}
% fuzzy project (tracing) code
550 551
% old bibtex support: (will be m-oldbibtex.mkiv)
552 553
% \loadmarkfile{bibl-bib}
554
% \loadmarkfile{bibl-tra}
555 556
% new bibtex support:
557 558
\loadmarkfile
{
publ
-
ini
}
559
\loadmarkfile
{
publ
-
tra
}
560
\loadmarkfile
{
publ
-
xml
}
561
\loadmarkfile
{
publ
-
old
}
562 563
%loadmarkfile{x-xtag} % no longer preloaded
564 565
\loadmarkfile
{
meta
-
xml
}
566 567
\loadmarkfile
{
cont
-
log
}
568 569
% \loadmarkfile{task-ini}
570 571
\loadmarkfile
{
cldf
-
ver
}
% verbatim, this can come late
572
\loadmarkfile
{
cldf
-
com
}
% commands, this can come late
573 574
\loadmarkfile
{
core
-
ctx
}
% this order might change but we need to check depedencies / move to another namespace
575 576
\loadmarkfile
{
core
-
def
}
577 578
%usemodule[x][res-04] % xml resource libraries
579
%usemodule[x][res-08] % rlx runtime conversion
580
%usemodule[x][res-12] % rli external indentification
581 582
% now we hook in backend code (needs checking)
583 584
\loadmarkfile
{
back
-
exp
}
585
\loadmarkfile
{
back
-
pdf
}
586 587
\loadmarkfile
{
mlib
-
pdf
}
588
\loadmarkfile
{
mlib
-
pps
}
589
\loadmarkfile
{
meta
-
pdf
}
590
\loadmarkfile
{
meta
-
blb
}
591
\loadmarkfile
{
grph
-
epd
}
592 593
\loadmarkfile
{
math
-
inc
}
% an experiment
594
\loadmarkfile
{
publ
-
inc
}
% an experiment
595 596
\loadmarkfile
{
task
-
ini
}
597 598
\loadmarkfile
{
syst
-
cmp
}
% compatibility stuff moved here
599 600
\loadmarkfile
{
cont
-
run
}
% the main runner (used in cont-yes.mkiv)
601 602
\setupcurrentlanguage
[
\defaultlanguagetag
]
603 604
\prependtoks
605
\ctxlua{
statistics
.
starttiming
(
statistics
)
}
%
606
\to
\everyjob
607 608
\appendtoks
609
\ctxlua{
statistics
.
stoptiming
(
statistics
)
}
%
610
\to
\everyjob
611 612
% \appendtoks
613
% \ctxlua{job.prepare()}%
614
% \to \everyjob
615 616
% \appendtoks
617
% \enabletrackers[*]%
618
% \to \everyjob
619 620
\appendtoks
621
\ctxlua{
statistics
.
savefmtstatus
(
"
\jobname
"
,
"
\contextversion
"
,
"
context.mkiv
"
,
"
\contextkind
"
,
"
\contextbanner
"
)
}
% can become automatic
622
\to
\everydump
623 624
\errorstopmode
\dump
\endinput
625