summaryrefslogtreecommitdiff
path: root/luaotfload-features.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-10 08:41:40 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-10 08:41:40 -0700
commite6b84660875c89de138ebc0e9c9e9e9dbaa6db76 (patch)
tree99b248d6f16a9d226b5d33ac15a625baa7c87662 /luaotfload-features.lua
parentfb67cecbfa8707ece8d26f256b104616dc5810ee (diff)
parent2d352121cddf97e8249c72b58738cb2ede1b1557 (diff)
downloadluaotfload-e6b84660875c89de138ebc0e9c9e9e9dbaa6db76.tar.gz
Merge pull request #58 from phi-gamma/master
sync; various fixes (node mode, manual etc.)
Diffstat (limited to 'luaotfload-features.lua')
-rw-r--r--luaotfload-features.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/luaotfload-features.lua b/luaotfload-features.lua
index 8852596..220b362 100644
--- a/luaotfload-features.lua
+++ b/luaotfload-features.lua
@@ -337,7 +337,9 @@ local import_values = {
--- That’s what the 1.x parser did, not quite as graciously,
--- with an array of branch expressions.
-- "style", "optsize",--> from slashed notation; handled otherwise
- "lookup", "sub", "mode",
+ { "lookup", false },
+ { "sub", false },
+ { "mode", true },
}
local lookup_types = { "anon", "file", "name", "path" }
@@ -411,11 +413,14 @@ local handle_request = function (specification)
end
for n=1, #import_values do
- local feat = import_values[n]
+ local feat = import_values[n][1]
+ local keep = import_values[n][2]
local newvalue = request.features[feat]
if newvalue then
specification[feat] = request.features[feat]
- --request.features[feat] = nil
+ if not keep then
+ request.features[feat] = nil
+ end
end
end