On 2-10-2012 13:41, Andre Caldas wrote:
I am trying to redefine the ’open_read_file’ callback.
[...] utilities.sequencers.appendaction(textfileactions, "system","document.MyCharacterMess")
All I want is to get the full path (or path relative to lfs.currentdir()). Is "textfileactions" the action I should trap?
Also, shall I use "after" or "before" instead of "system"? Since it is a module, probably I should use "system", right? Just want to be sure...
\startluacode resolvers.installinputfilehandler("before",function(str,filename,...) logs.report(string.format("path: %s",file.dirname(filename))) return str, filename, ... end) \stopluacode ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------