luat-ini.lua /size: 1482 b    last modification: 2023-12-21 09:44
1if not modules then modules = { } end modules ['luat-ini'] = {
2    version   = 1.001,
3    comment   = "companion to luat-lib.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-- We cannot load anything yet. However what we will do us reserve a few tables.
10-- These can be used for runtime user data or third party modules and will not be
11-- cluttered by macro package code.
12
13userdata      = userdata      or { } -- for users (e.g. functions etc)
14thirddata     = thirddata     or { } -- only for third party modules
15moduledata    = moduledata    or { } -- only for development team
16documentdata  = documentdata  or { } -- for users (e.g. raw data)
17parametersets = parametersets or { } -- for special purposes
18
19table.setmetatableindex(moduledata,"table")
20table.setmetatableindex(thirddata, "table")
21
22if not global then
23    global  = _G
24end
25
26LUATEXVERSION       = status.luatex_version/100 + tonumber(status.luatex_revision)/10000
27LUATEXENGINE        = status.luatex_engine and string.lower(status.luatex_engine) or "luametatex"
28LUATEXFUNCTIONALITY = status.development_id or 6346
29LUATEXFORMATID      = status.format_id or 0
30JITSUPPORTED        = false
31INITEXMODE          = status.run_state == 0 -- initializing updating production
32CONTEXTLMTXMODE     = 0
33
34status.ini_version = INITEXMODE -- for a while
35
36function os.setlocale()
37    -- no need for a message
38end
39