summaryrefslogtreecommitdiff
path: root/tex/context/base/scrp-eth.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/scrp-eth.lua
parent9798ccd13ea7e74f5fd25c5975fbc8d3048ced9d (diff)
downloadcontext-a51f6cf6ee087046a2ae5927ed4edff0a1acec1b.tar.gz
beta 2013.03.05 16:40
Diffstat (limited to 'tex/context/base/scrp-eth.lua')
-rw-r--r--tex/context/base/scrp-eth.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tex/context/base/scrp-eth.lua b/tex/context/base/scrp-eth.lua
index 75fad2481..e1b8df432 100644
--- a/tex/context/base/scrp-eth.lua
+++ b/tex/context/base/scrp-eth.lua
@@ -9,7 +9,6 @@ if not modules then modules = { } end modules ['scrp-eth'] = {
-- at some point I will review the script code but for the moment we
-- do it this way; so space settings like with cjk yet
-local has_attribute = node.has_attribute
local insert_node_before = node.insert_before
local nodepool = nodes.pool
@@ -38,7 +37,7 @@ local inter_character_stretch_factor = 1
local inter_character_shrink_factor = 1
local function space_glue(current)
- local data = numbertodataset[has_attribute(current,a_preproc)]
+ local data = numbertodataset[current[a_preproc]]
if data then
inter_character_space_factor = data.inter_character_space_factor or 1
inter_character_stretch_factor = data.inter_character_stretch_factor or 1
@@ -107,7 +106,7 @@ local function process(head,first,last)
while current do
local id = current.id
if id == glyph_code then
- local prestat = has_attribute(current,a_prestat)
+ local prestat = current[a_prestat]
local category = numbertocategory[prestat]
if injector then
local action = injector[category]