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-ovr.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 otfl-luat-ovr.lua (limited to 'otfl-luat-ovr.lua') diff --git a/otfl-luat-ovr.lua b/otfl-luat-ovr.lua new file mode 100644 index 0000000..3670df7 --- /dev/null +++ b/otfl-luat-ovr.lua @@ -0,0 +1,35 @@ +if not modules then modules = { } end modules ['luat-ovr'] = { + version = 1.001, + comment = "companion to luatex-*.tex", + author = "Khaled Hosny and Elie Roux", + copyright = "Luaotfload Development Team", + license = "GPL" +} + + +local write_nl, format, name = texio.write_nl, string.format, "luaotfload" +local dummyfunction = function() end + +callbacks = { + register = dummyfunction, +} + +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