diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-26 02:16:12 -0800 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-26 02:16:12 -0800 |
commit | 3dc8dc735c20093b4a2cfafe62bc591e76a3e0ca (patch) | |
tree | 106890e7a4f55291980701fddc59b202925bfc28 /luaotfload-fontloader.lua | |
parent | c50d8e0a04f829640f1a80858587e85768104321 (diff) | |
parent | 4f0b302847fc0176f37b96f45caff9c60f7e02ff (diff) | |
download | luaotfload-3dc8dc735c20093b4a2cfafe62bc591e76a3e0ca.tar.gz |
Merge pull request #153 from phi-gamma/masterv2.4-beta-3
[fontloader] sync with Context as of 2013-11-26
Diffstat (limited to 'luaotfload-fontloader.lua')
-rw-r--r-- | luaotfload-fontloader.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/luaotfload-fontloader.lua b/luaotfload-fontloader.lua index e869d44..6d1450d 100644 --- a/luaotfload-fontloader.lua +++ b/luaotfload-fontloader.lua @@ -1,6 +1,6 @@ -- merged file : luatex-fonts-merged.lua -- parent file : luatex-fonts.lua --- merge date : 11/15/13 15:04:59 +-- merge date : 11/25/13 20:09:50 do -- begin closure to overcome local limits and interference @@ -10075,9 +10075,9 @@ function handlers.gsub_ligature(head,start,kind,lookupname,ligature,sequence) break end end - if stop then - local lig=ligature.ligature - if lig then + local lig=ligature.ligature + if lig then + if stop then if trace_ligatures then local stopchar=getchar(stop) head,start=toligature(kind,lookupname,head,start,stop,lig,skipmark,discfound) @@ -10085,9 +10085,14 @@ function handlers.gsub_ligature(head,start,kind,lookupname,ligature,sequence) else head,start=toligature(kind,lookupname,head,start,stop,lig,skipmark,discfound) end - return head,start,true else + setfield(start,"char",lig) + if trace_ligatures then + logprocess("%s: replacing %s by (no real) ligature %s case 3",pref(kind,lookupname),gref(startchar),gref(lig)) + end end + return head,start,true + else end end return head,start,false |