summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/trac-vis.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-07-20 21:48:33 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-07-20 21:48:33 +0200
commitdeab0bfe7f4be57121779e93bf291e518fda7cf3 (patch)
treed206a8e495944e2f6ce1d3dea688309012904825 /tex/context/base/mkiv/trac-vis.lua
parente09328e5e3230ee408f6af2cd454848c4d056702 (diff)
downloadcontext-deab0bfe7f4be57121779e93bf291e518fda7cf3.tar.gz
2018-07-20 21:28:00
Diffstat (limited to 'tex/context/base/mkiv/trac-vis.lua')
-rw-r--r--tex/context/base/mkiv/trac-vis.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/trac-vis.lua b/tex/context/base/mkiv/trac-vis.lua
index 5c92a80f8..6ae65509b 100644
--- a/tex/context/base/mkiv/trac-vis.lua
+++ b/tex/context/base/mkiv/trac-vis.lua
@@ -63,7 +63,7 @@ local getdisc = nuts.getdisc
local getwhd = nuts.getwhd
local getkern = nuts.getkern
local getpenalty = nuts.getpenalty
-local getdir = nuts.getdir
+----- getdirection = nuts.getdirection
local getwidth = nuts.getwidth
local getdepth = nuts.getdepth
local getshift = nuts.getshift
@@ -118,6 +118,10 @@ local stoptiming = statistics.stoptiming
local a_visual = attributes.private("visual")
local a_layer = attributes.private("viewerlayer")
+----- dirvalues = nodes.dirvalues
+----- LTL = dirvalues.LTL
+----- RTT = dirvalues.RTT
+
local band = bit32.band
local bor = bit32.bor
@@ -705,8 +709,8 @@ local ruledbox do
local wd, ht, dp = getwhd(current)
if wd ~= 0 then
local shift = getshift(current)
- -- local dir = getdir(current)
- -- if dir == "LTL" or dir == "RRT" then
+ -- local dir = getdirection(current)
+ -- if dir == LTL or dir == RRT then
-- wd, ht, dp = ht + dp, wd, 0
-- end
local next = getnext(current)
@@ -854,8 +858,8 @@ local ruledglyph do
-- local wd = chardata[getfont(current)][getchar(current)].width
if wd ~= 0 then
local wd, ht, dp = getwhd(current)
- -- local dir = getdir(current)
- -- if dir == "LTL" or dir = "RTT" then
+ -- local dir = getdirection(current)
+ -- if dir == LTL or dir == RTT then
-- wd, ht, dp = ht + dp, wd, 0
-- end
local next = getnext(current)