summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/scrn-ini.lua
blob: ce9f9f71b0674649ce3445f5e99dea41ba5f8412 (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
if not modules then modules = { } end modules ['scrn-ini'] = {
    version   = 1.001,
    comment   = "companion to scrn-int.mkiv",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files"
}

local next = next

interactions         = { }
interactions.general = interactions.general or { }
local general        = interactions.general

local codeinjections = backends.codeinjections

local identitydata   = { }

function general.setupidentity(specification)
    for k, v in next, specification do
        identitydata[k] = v
    end
    codeinjections.setupidentity(specification)
end

function general.getidentity()
    return identitydata
end

interfaces.implement {
    name      = "setupidentity",
    actions   = general.setupidentity,
    arguments = {
        {
            { "title" },
            { "subtitle" },
            { "author" },
            { "creator" },
            { "date" },
            { "keywords" },
        }
    }
}