summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/scrn-ini.lua
blob: 4831408f983c0f0c7c6812ac364754429406d04b (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
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   = { }

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

function general.getidentity()
    return identitydata
end

general.setupidentity  = setupidentity

commands.setupidentity = setupidentity