Am 02.10.2012 um 13:41 schrieb Andre Caldas <andre.em.cal...@gmail.com>:
>>>>> 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? \starttext \startluacode function document.MyCharacterMess(str,filename) local path = "Path: " .. file.dirname(filename) local text = "Text: " .. str return table.concat({path,text},"\n\n") end local textfileactions = resolvers.openers.helpers.textfileactions utilities.sequencers.appendaction(textfileactions,"system","document.MyCharacterMess") \stopluacode \input ward \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________