summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-itc.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-07-30 00:12:09 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-07-30 00:12:09 +0200
commit488dc02c27841eced466d9b6594666c923fef649 (patch)
tree4f47b6abe28679284a27f6edcfa1f4e7af782730 /tex/context/base/mkiv/typo-itc.lua
parentc6715fb7e284831f7172cbac1df945f63c0abbed (diff)
downloadcontext-488dc02c27841eced466d9b6594666c923fef649.tar.gz
2017-07-29 23:14:00
Diffstat (limited to 'tex/context/base/mkiv/typo-itc.lua')
-rw-r--r--tex/context/base/mkiv/typo-itc.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/typo-itc.lua b/tex/context/base/mkiv/typo-itc.lua
index 312832d5b..781d44d30 100644
--- a/tex/context/base/mkiv/typo-itc.lua
+++ b/tex/context/base/mkiv/typo-itc.lua
@@ -251,7 +251,7 @@ local function domath(head,current, done)
if trace_italics then
report_italics("adding italic between math %C and non punctuation %C",getchar(glyph),char)
end
- insert_node_after(head,glyph,new_correction_kern(a))
+ insert_node_after(head,glyph,correction_kern(a,glyph))
done = true
end
end
@@ -415,7 +415,6 @@ local function texthandler(head)
lastattr = attr
replacechar = char
replacehead = replace
- replace = current
updated = true
end
end
@@ -439,7 +438,7 @@ local function texthandler(head)
if attr and attr > 0 then
local cd = data[char]
if not cd then
- -- this really can happen
+ -- this really can happen
-- postitalic = 0
else
postitalic = cd.italic
@@ -452,8 +451,7 @@ local function texthandler(head)
lastattr = attr
postchar = char
posthead = post
- post = current
- updated = true
+ updated = true
end
end
end