summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-08 22:58:09 +0000
committerKarl Berry <karl@freefriends.org>2019-02-08 22:58:09 +0000
commitaa1c258640d2c95f349e4160664d613bf5836bde (patch)
tree499e3eea94f2f9f9794aeeced2e404cdaed87d0c /Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua
parentc2f5f1c59926d4978f29940a871b9548e15f8035 (diff)
luaotfload (8feb19)
git-svn-id: svn://tug.org/texlive/trunk@49978 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua30
1 files changed, 4 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua
index b33bb861227..d4b24f73dc6 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua
@@ -5,8 +5,8 @@
local ProvidesLuaModule = {
name = "luaotfload-features",
- version = "2.94", --TAGVERSION
- date = "2018-12-19", --TAGDATE
+ version = "2.95", --TAGVERSION
+ date = "2019-01-28", --TAGDATE
description = "luaotfload submodule / features",
license = "GPL v2.0",
author = "Hans Hagen, Khaled Hosny, Elie Roux, Philipp Gesang, Marcel Krüger",
@@ -1124,21 +1124,6 @@ local import_values = {
{ "sub", false },
}
-local lookup_types = { "anon" , "file", "kpse"
- , "my" , "name", "path"
- , "combo"
- }
-
-local select_lookup = function (request)
- for i=1, #lookup_types do
- local lookup = lookup_types[i]
- local value = request[lookup]
- if value then
- return lookup, value
- end
- end
-end
-
local supported = {
b = "b",
i = "i",
@@ -1212,9 +1197,9 @@ local handle_request = function (specification)
return specification
end
- local lookup, name = select_lookup (request)
+ local lookup, name = request.lookup, request.name
if lookup == "combo" then
- return handle_combination (request.combo, specification)
+ return handle_combination (name, specification)
end
local features = specification.features
@@ -1235,12 +1220,6 @@ local handle_request = function (specification)
request.features = apply_default_features(request.features)
if name then
- if lookup == "file" then
- local suffix = file.suffix (name)
- specification.forcedname = name
- specification.forced = suffix
- name = file.removesuffix (name)
- end
specification.name = name
specification.lookup = lookup or specification.lookup
end
@@ -1276,7 +1255,6 @@ local handle_request = function (specification)
if request.features and request.features.mode
and fonts.readers[request.features.mode] then
specification.forced = request.features.mode
- return specification
end
return specification