From cac52b5f4cfdc934cd3c5a68777c77d8d70f4b7c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 20 Feb 2010 07:16:46 +0200 Subject: Add a new |luat-over| module To minimize differences between original ConTeXt files, this module overrides functions defined in |luat-dum| module. --- otfl-luat-dum.lua | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'otfl-luat-dum.lua') diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua index a594b64..19e95e2 100644 --- a/otfl-luat-dum.lua +++ b/otfl-luat-dum.lua @@ -43,7 +43,7 @@ tasks = { prependaction = dummyfunction, } callbacks = { - register = dummyfunction, + register = function(n,f) return callback.register(n,f) end, } -- we need to cheat a bit here @@ -72,25 +72,3 @@ function resolvers.findbinfile(name,kind) end return resolvers.find_file(name,(kind and remapper[kind]) or kind) end - -local write_nl, format, name = texio.write_nl, string.format, "luaotfload" - -function logs.report(category,fmt,...) - if fmt then - write_nl('log', format("%s | %s: %s",name,category,format(fmt,...))) - elseif category then - write_nl('log', format("%s | %s",name,category)) - else - write_nl('log', format("%s |",name)) - end -end - -function logs.simple(fmt,...) - if fmt then - write_nl('log', format("%s | %s",name,format(fmt,...))) - else - write_nl('log', format("%s |",name)) - end -end - -tex.ctxcatcodes = luatextra.catcodetables.latex -- cgit v1.2.3