summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-legacy-attributes.lua
blob: c6130b4f78175d597b3f82adff843515d2d336e9 (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
-----------------------------------------------------------------------
--         FILE:  otfl-luat-att.lua
--        USAGE:  with old luaotfload
--  DESCRIPTION:  setting attributes abide luatexbase rules
-- REQUIREMENTS:  some old luatex
--       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com>
--      CREATED:  2013-05-10 20:37:19+0200
-----------------------------------------------------------------------
--

if not modules then modules = { } end modules ['otfl-luat-att'] = {
    version   = math.pi/42,
    comment   = "companion to luaotfload.lua",
    author    = "Philipp Gesang",
    copyright = "Luaotfload Development Team",
    license   = "GNU GPL v2"
}

function attributes.private(name)
    local attr   = "otfl@" .. name
    local number = luatexbase.attributes[attr]
    if not number then
        number = luatexbase.new_attribute(attr)
    end
    return number
end