From 0da58d888b0a125c9c44aa99c957d88f96c59f1f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 11 Jan 2016 07:18:26 +0100 Subject: [features] import feature loading code --- src/luaotfload-features.lua | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'src/luaotfload-features.lua') diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index 8a7000c..fd43e58 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -1147,20 +1147,26 @@ local utfchar = unicode.utf8.char local otf = handlers and handlers.otf --- filled in later during initialization local normalized = { - substitution = "substitution", - single = "substitution", - ligature = "ligature", - alternate = "alternate", - multiple = "multiple", - kern = "kern", + substitution = "substitution", + single = "substitution", + ligature = "ligature", + alternate = "alternate", + multiple = "multiple", + kern = "kern", + pair = "pair", + chainsubstitution = "chainsubstitution", + chainposition = "chainposition", } local types = { - substitution = "gsub_single", - ligature = "gsub_ligature", - alternate = "gsub_alternate", - multiple = "gsub_multiple", - kern = "gpos_pair", + substitution = "gsub_single", + ligature = "gsub_ligature", + alternate = "gsub_alternate", + multiple = "gsub_multiple", + kern = "gpos_pair", + pair = "gpos_pair", + chainsubstitution = "gsub_contextchain", + chainposition = "gpos_contextchain", } setmetatableindex(types, function(t,k) t[k] = k return k end) -- "key" @@ -1168,7 +1174,7 @@ setmetatableindex(types, function(t,k) t[k] = k return k end) -- "key" --- stop locals for addfeature() local everywhere = { ["*"] = { ["*"] = true } } -- or: { ["*"] = { "*" } } -local noflags = { } +local noflags = { false, false, false, false } local tohash = table.tohash -- cgit v1.2.3