summaryrefslogtreecommitdiff
path: root/otfl-font-otn.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2009-12-29 15:50:46 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2009-12-29 18:40:22 +0200
commitd4cccf105bb508150dc765c93bb47bf6f9a87f81 (patch)
tree4ab23fe5b33bc6ab12c69e0a254947cb26ecb36a /otfl-font-otn.lua
parentff44e48362f55213318316d53efa5376e06345df (diff)
downloadluaotfload-d4cccf105bb508150dc765c93bb47bf6f9a87f81.tar.gz
Updating to latest ConTeXt beta (2009.12.26)
Diffstat (limited to 'otfl-font-otn.lua')
-rw-r--r--otfl-font-otn.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/otfl-font-otn.lua b/otfl-font-otn.lua
index fb04b36..e58d773 100644
--- a/otfl-font-otn.lua
+++ b/otfl-font-otn.lua
@@ -327,6 +327,7 @@ local function toligature(kind,lookupname,start,stop,char,markflag,discfound) --
next.prev = lignode
end
lignode.next, lignode.prev = next, prev
+ start = lignode
-- print("start->end",nodes.tosequence(start))
else -- start is the ligature
local deletemarks = markflag ~= "mark"
@@ -456,7 +457,8 @@ end
function handlers.gsub_ligature(start,kind,lookupname,ligature,sequence) --or maybe pass lookup ref
local s, stop, discfound = start.next, nil, false
- if marks[start.char] then
+ local startchar = start.char
+ if marks[startchar] then
while s do
local id = s.id
if id == glyph and s.subtype<256 then
@@ -479,7 +481,7 @@ function handlers.gsub_ligature(start,kind,lookupname,ligature,sequence) --or ma
end
if stop and ligature[2] then
if trace_ligatures then
- local startchar, stopchar = start.char, stop.char
+ local stopchar = stop.char
start = markstoligature(kind,lookupname,start,stop,ligature[2])
logprocess("%s: replacing %s upto %s by ligature %s",pref(kind,lookupname),gref(startchar),gref(stopchar),gref(start.char))
else
@@ -518,7 +520,7 @@ function handlers.gsub_ligature(start,kind,lookupname,ligature,sequence) --or ma
end
if stop and ligature[2] then
if trace_ligatures then
- local startchar, stopchar = start.char, stop.char
+ local stopchar = stop.char
start = toligature(kind,lookupname,start,stop,ligature[2],skipmark,discfound)
logprocess("%s: replacing %s upto %s by ligature %s",pref(kind,lookupname),gref(startchar),gref(stopchar),gref(start.char))
else