summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-03 22:22:56 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-03 22:22:56 +0200
commit24ef88fda9d592e880c4694b50c64c5ae0b74a92 (patch)
tree8435e1cc315e00790a99cbbc107072c15ae156a7 /luaotfload-tool.lua
parent8d890cb8e98d50f13bfe2a279da5ce3518458ac1 (diff)
downloadluaotfload-24ef88fda9d592e880c4694b50c64c5ae0b74a92.tar.gz
[tool] make --find process normal requests
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index 11013e9..a187e12 100755
--- a/luaotfload-tool.lua
+++ b/luaotfload-tool.lua
@@ -753,7 +753,7 @@ end
actions.blacklist = function (job)
names.read_blacklist()
local n = 0
- for n, entry in next, table.sortedkeys(fonts.names.blacklist) do
+ for n, entry in next, table.sortedkeys(names.blacklist) do
texiowrite_nl(stringformat("(%d %s)", n, entry))
end
return true, false
@@ -803,16 +803,22 @@ end
actions.query = function (job)
+ require "luaotfload-features"
+
local query = job.query
+
local tmpspec = {
name = query,
lookup = "name",
- specification = "name:" .. query,
+ specification = query,
optsize = 0,
+ features = { },
}
+ tmpspec = names.handle_request (tmpspec)
+
local foundname, subfont, success =
- fonts.names.resolve(nil, nil, tmpspec)
+ names.resolve(nil, nil, tmpspec)
if success then
logs.names_report(false, 0,
@@ -835,7 +841,7 @@ actions.query = function (job)
if job.fuzzy == true then
logs.names_report(false, 0,
"resolve", "Looking for close matches, this may take a while ...")
- local success = fonts.names.find_closest(query, job.fuzzy_limit)
+ local success = names.find_closest(query, job.fuzzy_limit)
end
end
return true, true