scrn-ini.lua /size: 1048 b    last modification: 2020-07-01 14:35
1
if
not
modules
then
modules
=
{
}
end
modules
[
'
scrn-ini
'
]
=
{
2
version
=
1
.
001
,
3
comment
=
"
companion to scrn-int.mkiv
"
,
4
author
=
"
Hans Hagen, PRAGMA-ADE, Hasselt NL
"
,
5
copyright
=
"
PRAGMA ADE / ConTeXt Development Team
"
,
6
license
=
"
see context related readme files
"
7
}
8 9
local
next
=
next
10 11
interactions
=
{
}
12
interactions
.
general
=
interactions
.
general
or
{
}
13
local
general
=
interactions
.
general
14 15
local
codeinjections
=
backends
.
codeinjections
16 17
local
identitydata
=
{
}
18 19
function
general
.
setupidentity
(
specification
)
20
for
k
,
v
in
next
,
specification
do
21
identitydata
[
k
]
=
v
22
end
23
codeinjections
.
setupidentity
(
specification
)
24
end
25 26
function
general
.
getidentity
(
)
27
return
identitydata
28
end
29 30
interfaces
.
implement
{
31
name
=
"
setupidentity
"
,
32
actions
=
general
.
setupidentity
,
33
arguments
=
{
34
{
35
{
"
title
"
}
,
36
{
"
subtitle
"
}
,
37
{
"
author
"
}
,
38
{
"
creator
"
}
,
39
{
"
date
"
}
,
40
{
"
keywords
"
}
,
41
}
42
}
43
}
44