summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-dig.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-05 18:00:17 +0200
committerMarius <mariausol@gmail.com>2013-03-05 18:00:17 +0200
commita51f6cf6ee087046a2ae5927ed4edff0a1acec1b (patch)
treea57b34df3ba55e79713ebc52d5cfd3c42dee2c2f /tex/context/base/typo-dig.lua
parent9798ccd13ea7e74f5fd25c5975fbc8d3048ced9d (diff)
downloadcontext-a51f6cf6ee087046a2ae5927ed4edff0a1acec1b.tar.gz
beta 2013.03.05 16:40
Diffstat (limited to 'tex/context/base/typo-dig.lua')
-rw-r--r--tex/context/base/typo-dig.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/tex/context/base/typo-dig.lua b/tex/context/base/typo-dig.lua
index a3a0feb3e..30d7d96ac 100644
--- a/tex/context/base/typo-dig.lua
+++ b/tex/context/base/typo-dig.lua
@@ -19,9 +19,6 @@ local report_digits = logs.reporter("typesetting","digits")
local nodes, node = nodes, node
-local has_attribute = node.has_attribute
-local unset_attribute = node.unset_attribute
-local set_attribute = node.set_attribute
local hpack_node = node.hpack
local traverse_id = node.traverse_id
local insert_node_before = node.insert_before
@@ -109,9 +106,9 @@ local function process(namespace,attribute,head)
local done, current, ok = false, head, false
while current do
if current.id == glyph_code then
- local attr = has_attribute(current,attribute)
+ local attr = current[attribute]
if attr and attr > 0 then
- unset_attribute(current,attribute)
+ current[attribute] = unsetvalue
local action = actions[attr%100] -- map back to low number
if action then
head, current, ok = action(head,current,attribute,attr)