summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otn.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-05-24 21:20:13 +0300
committerMarius <mariausol@gmail.com>2012-05-24 21:20:13 +0300
commit7f26897aecc7d4bc71486a4cb658cb6b4843aa5d (patch)
tree75e2cf8d2c8a2078fc71341bb6032697227078ce /tex/context/base/font-otn.lua
parente6e3ff321b035d7d3ed512871d0cbd802c4b7368 (diff)
downloadcontext-7f26897aecc7d4bc71486a4cb658cb6b4843aa5d.tar.gz
beta 2012.05.24 19:36
Diffstat (limited to 'tex/context/base/font-otn.lua')
-rw-r--r--tex/context/base/font-otn.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/font-otn.lua b/tex/context/base/font-otn.lua
index 7a5708583..d97ef7363 100644
--- a/tex/context/base/font-otn.lua
+++ b/tex/context/base/font-otn.lua
@@ -1167,7 +1167,11 @@ function chainprocs.gsub_ligature(start,stop,kind,chainname,currentcontext,looku
logwarning("%s: no ligatures starting with %s",cref(kind,chainname,chainlookupname,lookupname,chainindex),gref(startchar))
end
else
- local s, discfound, last, nofreplacements = start.next, false, stop, 0
+ local s = start.next
+ local discfound = false
+ local last = stop
+ local nofreplacements = 0
+ local skipmark = currentlookup.flags[1]
while s do
local id = s.id
if id == disc_code then
@@ -1175,7 +1179,7 @@ function chainprocs.gsub_ligature(start,stop,kind,chainname,currentcontext,looku
discfound = true
else
local schar = s.char
- if marks[schar] then -- marks
+ if skipmark and marks[schar] then -- marks
s = s.next
else
local lg = ligatures[schar]