summaryrefslogtreecommitdiff
path: root/tex/context/base/node-inj.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-04-26 15:13:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-04-26 15:13:00 +0200
commit9a215b83b9b1ba7d2389ae324e838ae145d9d7da (patch)
treef41adc1563f5253ba4d8b9940be41ee76995ee13 /tex/context/base/node-inj.lua
parentc34c2f8a578e27af9b715aa0ccf48c7e365ab1e5 (diff)
downloadcontext-9a215b83b9b1ba7d2389ae324e838ae145d9d7da.tar.gz
beta 2013.04.26 15:13
Diffstat (limited to 'tex/context/base/node-inj.lua')
-rw-r--r--tex/context/base/node-inj.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/tex/context/base/node-inj.lua b/tex/context/base/node-inj.lua
index a53b5df50..91c5d1414 100644
--- a/tex/context/base/node-inj.lua
+++ b/tex/context/base/node-inj.lua
@@ -385,10 +385,10 @@ function injections.handler(head,where,keep)
local w = k[4]
if w then
if rlmode and rlmode >= 0 then
- -- kern(x) glyph(p) kern(w-x)
- n.xoffset = p.xoffset - p.width + d[1] - x
+ -- kern(x) glyph(p) kern(w-x) mark(n)
+ n.xoffset = p.xoffset - p.width + d[1] - (w-x)
else
- -- kern(w-x) glyph(p) kern(x)
+ -- kern(w-x) glyph(p) kern(x) mark(n)
n.xoffset = p.xoffset - d[1] - x
end
else
@@ -432,7 +432,8 @@ function injections.handler(head,where,keep)
if next(wx) then
for n, k in next, wx do
-- only w can be nil (kernclasses), can be sped up when w == nil
- local x, w = k[2] or 0, k[4]
+ local x = k[2]
+ local w = k[4]
if w then
local rl = k[1] -- r2l = k[6]
local wx = w - x