2 Oct
2012
2 Oct
'12
12:30 a.m.
I am trying to redefine the ’open_read_file’ callback.
[...] direct callback access is disabled. There are usually some layers of abstraction on top of them, different ones for different callbacks. Mapping them all is a huge effort, so best refer to the source.
In your case the function resolvers.openers.helpers.textopener() takes the place of the open_read_file callback. It can be found in data-tex.lua.
Shall I simply do something like this? local function textopener(tag, filename, filehandle, coding) result = old_textopener(tag, filename, filehandle, coding) -- Do lots of things return result end resolvers.openers.helpers.textopener = textopener Thank you, André Caldas.