luat-lib.mkiv /size: 3432 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=luat-lib,
3
%D version=2006.09.11,
4
%D title=\CONTEXT\ Lua Macros,
5
%D subtitle=Libraries,
6
%D author=Hans Hagen,
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
\writestatus
{
loading
}{
ConTeXt
Lua
Macros
/
Libraries
}
15 16
\registerctxluafile
{
util
-
str
}{}
17
\registerctxluafile
{
util
-
tab
}{}
18
\registerctxluafile
{
util
-
fil
}{
optimize
}
19
\registerctxluafile
{
util
-
sac
}{
optimize
}
20
\registerctxluafile
{
util
-
sto
}{}
% could also be done in trac-deb.mkiv
21
\registerctxluafile
{
util
-
pck
}{}
22
\registerctxluafile
{
util
-
prs
}{}
23
\registerctxluafile
{
util
-
fmt
}{}
24
\registerctxluafile
{
util
-
dim
}{}
25 26
\registerctxluafile
{
trac
-
set
}{}
27
\registerctxluafile
{
trac
-
log
}{}
28
\registerctxluafile
{
trac
-
inf
}{}
29
\registerctxluafile
{
util
-
lua
}{}
30
\registerctxluafile
{
util
-
deb
}{}
% could also be done in trac-deb.mkiv
31 32
\registerctxluafile
{
util
-
tpl
}{}
% needs tracker
33
\registerctxluafile
{
util
-
seq
}{}
34 35
\registerctxluafile
{
util
-
sta
}{}
36 37
\registerctxluafile
{
util
-
sbx
}{}
% needs tracker and templates
38 39
\registerctxluafile
{
util
-
soc
-
imp
-
reset
}
{}
40
\registerctxluafile
{
util
-
soc
-
imp
-
socket
}
{}
41
\registerctxluafile
{
util
-
soc
-
imp
-
ltn
1
2
}
{}
42
\registerctxluafile
{
util
-
soc
-
imp
-
mime
}
{}
43
\registerctxluafile
{
util
-
soc
-
imp
-
url
}
{}
44
\registerctxluafile
{
util
-
soc
-
imp
-
headers
}{}
45
\registerctxluafile
{
util
-
soc
-
imp
-
http
}
{}
46
\registerctxluafile
{
util
-
soc
-
imp
-
tp
}
{}
47 48
\ifcase
\contextlmtxmode
\else
49
\registerctxluafile
{
util
-
zip
}{}
50
\fi
51 52
\registerctxluafile
{
data
-
ini
}{}
53
\registerctxluafile
{
data
-
exp
}{}
54
\registerctxluafile
{
data
-
env
}{}
55
\registerctxluafile
{
data
-
tmp
}{}
56
\registerctxluafile
{
data
-
met
}{}
57
\registerctxluafile
{
data
-
res
}{}
58
\registerctxluafile
{
data
-
inp
}{}
59
\registerctxluafile
{
data
-
out
}{}
60
\registerctxluafile
{
data
-
fil
}{}
% opener gets overloaded in data-tex
61 62
\registerctxluafile
{
data
-
pre
}{}
% after data-res
63
\registerctxluafile
{
data
-
bin
}{}
% before data-tex
64
\registerctxluafile
{
data
-
tex
}{}
% after data-pre
65
\registerctxluafile
{
data
-
vir
}{}
66
\registerctxluafile
{
data
-
zip
}{}
67
%registerctxluafile{data-crl}{}
68
\registerctxluafile
{
data
-
sch
}{}
69
\registerctxluafile
{
data
-
tre
}{}
70
\registerctxluafile
{
data
-
lua
}{}
71
\registerctxluafile
{
data
-
ctx
}{}
72
\registerctxluafile
{
data
-
con
}{}
73
\registerctxluafile
{
data
-
use
}{}
74
\registerctxluafile
{
data
-
aux
}{}
75 76
% \ifcase\contextlmtxmode
77
% \registerctxluafile{util-lib}{}
78
% \fi
79 80
\registerctxluafile
{
luat
-
cbk
}{}
81
\registerctxluafile
{
luat
-
run
}{}
82
\registerctxluafile
{
luat
-
fio
}{}
83
\registerctxluafile
{
luat
-
cnf
}{}
84
\registerctxluafile
{
luat
-
lua
}{}
85
\registerctxluafile
{
luat
-
sto
}{}
86
\registerctxluafile
{
luat
-
ini
}{}
87
\registerctxluafile
{
util
-
env
}{}
88
\registerctxluafile
{
luat
-
env
}{}
89
\registerctxluafile
{
luat
-
exe
}{}
% simplified
90
\registerctxluafile
{
luat
-
iop
}{}
% simplified
91
%registerctxluafile{luat-bwc}{}
92
\registerctxluafile
{
trac
-
lmx
}{}
% might become l-lmx or luat-lmx
93
\registerctxluafile
{
luat
-
mac
}{}
94
%registerctxluafile{luat-prp}{} % for the moment of not much use
95 96
\registerctxluafile
{
lxml
-
tab
}{}
97
\registerctxluafile
{
lxml
-
lpt
}{}
98
\registerctxluafile
{
lxml
-
xml
}{}
99
\registerctxluafile
{
lxml
-
aux
}{}
100
\registerctxluafile
{
lxml
-
mis
}{}
101 102
\normalprotected\def
\writestatus
#
1
#
2
{
\ctxlua{
logs
.
status
(
[
=
=
[
#
1
]
=
=
]
,
[
=
=
[
#
2
]
=
=
]
)
}
}
103
\normalprotected\def
\writestring
#
1
{
\ctxlua{
logs
.
writer
(
[
=
=
[
#
1
]
=
=
]
,
"
\string\n
"
)
}
}
104
\normalprotected\def
\writeline
{
\ctxlua{
logs
.
newline
(
)
}
}
105 106
\endinput
107