From 1ef10e57241a65e8ce2aeefdd83874e8999b7b44 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Wed, 10 Jun 2009 20:21:00 +0300 Subject: syncing with latest ConTeXt version (more feautures, less bugs), thanks to Khaled Hosny --- otfl-luat-dum.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'otfl-luat-dum.lua') diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua index 4d7d9c5..f2ff505 100644 --- a/otfl-luat-dum.lua +++ b/otfl-luat-dum.lua @@ -20,6 +20,7 @@ trackers = { } storage = { register = dummyfunction, + shared = { }, } logs = { report = dummyfunction, @@ -41,12 +42,14 @@ resolvers = resolvers or { } -- no fancy file helpers used local remapper = { otf = "opentype fonts", ttf = "truetype fonts", - ttc = "truetype fonts" + ttc = "truetype fonts", + cid = "other text files", -- will become "cid files" } function resolvers.find_file(name,kind) name = string.gsub(name,"\\","\/") - return kpse.find_file(name,(kind ~= "" and kind) or "tex") + kind = string.lower(kind) + return kpse.find_file(name,(kind and kind ~= "" and (remapper[kind] or kind)) or "tex") end function resolvers.findbinfile(name,kind) -- cgit v1.2.3