luat-ini.lmt /size: 1334 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.version
27LUATEXVERBOSE       = status.luatex_verbose
28LUATEXENGINE        = string.lower(status.luatex_engine or "luametatex")
29LUATEXFUNCTIONALITY = status.development_id or 6346
30LUATEXFORMATID      = status.format_id or 0
31INITEXMODE          = status.ini_version
32CONTEXTLMTXMODE     = 1
33
34function os.setlocale()
35    -- no need for a message
36end
37