diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/font-vir.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/font-vir.lua | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/font-vir.lua b/Master/texmf-dist/tex/context/base/mkiv/font-vir.lua index c3071cac0b6..03ad7fc8551 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/font-vir.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/font-vir.lua @@ -14,7 +14,7 @@ if not modules then modules = { } end modules ['font-vir'] = { -- -- vf.rule vf.special vf.right vf.push vf.down vf.char vf.node vf.fontid vf.pop vf.image vf.nop -local next, setmetatable, getmetatable = next, setmetatable, getmetatable +local next = next local allocate = utilities.storage.allocate local setmetatableindex = table.setmetatableindex @@ -66,7 +66,11 @@ local combinations = { } local combiner = { } local whatever = allocate() local helpers = allocate() -local predefined = fonts.helpers.commands +local predefined = allocate { + dummy = { "comment" }, + push = { "push" }, + pop = { "pop" }, +} methods.variants = variants -- todo .. wrong namespace vf.combinations = combinations @@ -106,10 +110,8 @@ local function combine_assign(g, name, from, to, start, force) if not from then from, to = 0, 0xFF00 end if not to then to = from end if not start then start = from end - local fc = f.characters - local gc = g.characters - local fd = f.descriptions - local gd = g.descriptions + local fc, gc = f.characters, g.characters + local fd, gd = f.descriptions, g.descriptions local hn = #g.fonts+1 g.fonts[hn] = { id = id } -- no need to be sparse for i=from,to do @@ -135,10 +137,8 @@ end local function combine_names(g,name,force) local f, id = constructors.readanddefine(name,g.specification.size) if f and id then - local fc = f.characters - local gc = g.characters - local fd = f.descriptions - local gd = g.descriptions + local fc, gc = f.characters, g.characters + local fd, gd = f.descriptions, g.descriptions g.fonts[#g.fonts+1] = { id = id } -- no need to be sparse local hn = #g.fonts for k, v in next, fc do @@ -153,8 +153,7 @@ local function combine_names(g,name,force) end local combine_feature = function(g,v) - local key = v[2] - local value = v[3] + local key, value = v[2], v[3] if key then if value == nil then value = true |