summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-spa.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/typo-spa.lua')
-rw-r--r--tex/context/base/mkiv/typo-spa.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/typo-spa.lua b/tex/context/base/mkiv/typo-spa.lua
index d1aa2e277..bda139719 100644
--- a/tex/context/base/mkiv/typo-spa.lua
+++ b/tex/context/base/mkiv/typo-spa.lua
@@ -14,8 +14,6 @@ local report_spacing = logs.reporter("typesetting","spacing")
local nodes, fonts, node = nodes, fonts, node
-local tasks = nodes.tasks
-
local fonthashes = fonts.hashes
local quaddata = fonthashes.quads
@@ -31,8 +29,7 @@ local tonode = nuts.tonode
local getnext = nuts.getnext
local getprev = nuts.getprev
local getfont = nuts.getfont
-local getattr = nuts.getattr
-local setattr = nuts.setattr
+local takeattr = nuts.takeattr
local isglyph = nuts.isglyph
local insert_node_before = nuts.insert_before
@@ -50,6 +47,8 @@ local math_code = nodecodes.math
local somespace = nodes.somespace
local somepenalty = nodes.somepenalty
+local enableaction = nodes.tasks.enableaction
+
typesetters = typesetters or { }
local typesetters = typesetters
@@ -82,12 +81,11 @@ function spacings.handler(head)
while start do
local char, id = isglyph(start)
if char then
- local attr = getattr(start,a_spacings)
+ local attr = takeattr(start,a_spacings)
if attr and attr > 0 then
local data = mapping[attr]
if data then
local map = data.characters[char]
- setattr(start,a_spacings,unsetvalue) -- needed?
if map then
local left = map.left
local right = map.right
@@ -210,7 +208,7 @@ function spacings.set(name)
local data = numbers[name]
if data then
if not enabled then
- tasks.enableaction("processors","typesetters.spacings.handler")
+ enableaction("processors","typesetters.spacings.handler")
enabled = true
end
n = data.number or unsetvalue