From 190afdecb3f4d133e472fd17a140c57100219b7b Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Thu, 23 Apr 2009 15:22:25 +0200 Subject: sync with the latest ConTeXt beta, and using luaotfload in DVI mode too (for dvipdfmx) --- otfl-luat-dum.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'otfl-luat-dum.lua') diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua index 5c53115..4d7d9c5 100644 --- a/otfl-luat-dum.lua +++ b/otfl-luat-dum.lua @@ -32,12 +32,11 @@ tasks = { prependaction = dummyfunction, } - -- we need to cheat a bit here texconfig.kpse_init = true -input = { } -- no fancy file helpers used +resolvers = resolvers or { } -- no fancy file helpers used local remapper = { otf = "opentype fonts", @@ -45,14 +44,14 @@ local remapper = { ttc = "truetype fonts" } -function input.find_file(name,kind) - name = name:gsub("\\","\/") +function resolvers.find_file(name,kind) + name = string.gsub(name,"\\","\/") return kpse.find_file(name,(kind ~= "" and kind) or "tex") end -function input.findbinfile(name,kind) +function resolvers.findbinfile(name,kind) if not kind or kind == "" then kind = file.extname(name) -- string.match(name,"%.([^%.]-)$") end - return input.find_file(name,(kind and remapper[kind]) or kind) + return resolvers.find_file(name,(kind and remapper[kind]) or kind) end -- cgit v1.2.3