summaryrefslogtreecommitdiff
path: root/otfl-luat-dum.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2009-04-23 15:22:25 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2009-04-23 15:22:25 +0200
commit190afdecb3f4d133e472fd17a140c57100219b7b (patch)
treec4dce7c6e609147c6709581bf52f6443b10b95ad /otfl-luat-dum.lua
parentfed311d67f0258a26530e04c43acf3d0261a25ce (diff)
downloadluaotfload-190afdecb3f4d133e472fd17a140c57100219b7b.tar.gz
sync with the latest ConTeXt beta, and using luaotfload in DVI mode too (for dvipdfmx)
Diffstat (limited to 'otfl-luat-dum.lua')
-rw-r--r--otfl-luat-dum.lua11
1 files changed, 5 insertions, 6 deletions
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