summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-lib.mkiv
blob: 1905ee67dab94389ad200a8146d117c3d47c6c84 (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
%D \module
%D   [       file=luat-lib,
%D        version=2006.09.11,
%D          title=\CONTEXT\ Lua Macros,
%D       subtitle=Libraries,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright=PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% \writestatus{loading}{ConTeXt Lua Macros / Libraries}

\registerctxluafile{trac-inf} {1.001}
\registerctxluafile{trac-tra} {1.001}
\registerctxluafile{trac-log} {1.001}

\registerctxluafile{luat-cbk} {1.001}

\registerctxluafile{data-res} {1.001}
\registerctxluafile{data-tmp} {1.001}
\registerctxluafile{data-pre} {1.001}
\registerctxluafile{data-inp} {1.001}
\registerctxluafile{data-out} {1.001}
\registerctxluafile{data-tex} {1.001}
\registerctxluafile{data-bin} {1.001}
\registerctxluafile{data-zip} {1.001}
\registerctxluafile{data-crl} {1.001}
\registerctxluafile{data-tre} {1.001}
\registerctxluafile{data-lua} {1.001}
\registerctxluafile{data-ctx} {1.001}
\registerctxluafile{data-con} {1.001}
\registerctxluafile{data-use} {1.001}

\registerctxluafile{luat-run} {1.001}
\registerctxluafile{luat-fio} {1.001} % not needed, part of startup file
\registerctxluafile{luat-cnf} {1.001} % not needed, part of startup file
\registerctxluafile{luat-lua} {1.001}
\registerctxluafile{luat-sto} {1.001}
\registerctxluafile{luat-ini} {1.001}
\registerctxluafile{luat-env} {1.001}

\registerctxluafile{l-xml}    {1.001} % we want tracking

\startruntimeluacode
    \edef\asciia{\ctxlua{tex.sprint(logs.mode)}}
    \edef\asciib{xml}
    \ifx\asciia\asciib % brrr
        \long\def\writebanner  #1{\writestring  {<m t='banner'>#1</m>}}
        \long\def\writestatus#1#2{\writestring  {<m t='#1'>#2</m>}}
        \long\def\message      #1{\normalmessage{<m t='message'>#1</m>}}
    \else
        \let\writebanner\writestring
       %\let\writestatus\normalwritestatus
        \let\message    \normalmessage
    \fi
\stopruntimeluacode

%registerctxluafile{luat-tmp}{1.001}
\registerctxluafile{luat-exe}{1.001}
\registerctxluafile{luat-iop}{1.001}

\endinput