From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78530 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Frozen callback. Date: Tue, 2 Oct 2012 13:54:47 +0200 Message-ID: <76021FEF-36C6-4688-B908-8B0530D5DFF0@gmail.com> References: <20121001200255.GC5059@phlegethon.router_intern> <506AA030.90705@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1349178908 11423 80.91.229.3 (2 Oct 2012 11:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2012 11:55:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 02 13:55:12 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TJ13v-0007BN-FW for gctc-ntg-context-518@m.gmane.org; Tue, 02 Oct 2012 13:54:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69C32101F1; Tue, 2 Oct 2012 13:54:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QqnGz3BpMJ8z; Tue, 2 Oct 2012 13:54:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4FD8E101F2; Tue, 2 Oct 2012 13:54:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C8B7101F2 for ; Tue, 2 Oct 2012 13:54:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CifYfP4vIRe3 for ; Tue, 2 Oct 2012 13:54:45 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 8774F101F1 for ; Tue, 2 Oct 2012 13:54:45 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q92C08Gg032179 for ; Tue, 2 Oct 2012 14:00:09 +0200 Original-Received: by bkcjm1 with SMTP id jm1so6007084bkc.14 for ; Tue, 02 Oct 2012 04:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=GL2tRk41/f54nBG0qmt7uoMIK2Hpo3L4w8Aahc/EzMY=; b=dHmvix0TLEJ9vl4MJ3Hb9zm7bKtvthQB5PUlDQJflvY3zs2ugAnO4VvYzgRnnFv/iF inKMF6exjo9dcwo/G4KtVEs5S9bVUPidlkGNLlN/RkzViQiKgdTy7OpetwngimSGr26P /HXdoejinwsX6FvS/vXpTAkjDyczL+vdXZ43lujKRLfJ6lr0VDhVsCQlrjbDVWSCEu28 b4RSf6QujPN9sC8SEnDUxKNfJvpD70YXomNMEuNsm2lSuZn+p+Qsh8q8q2jgylJqEqUS kOjTPQNGBd2fHdaWrU9bxWcWgi+4ay09ZmfKf+0UW4Vn2+4KAO+/+IUHdB/CZyBTZIgQ NY3A== Original-Received: by 10.204.147.139 with SMTP id l11mr6791079bkv.100.1349178883876; Tue, 02 Oct 2012 04:54:43 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d057479.pool.mediaWays.net. [77.5.116.121]) by mx.google.com with ESMTPS id 9sm957406bkq.13.2012.10.02.04.54.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 04:54:43 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1498) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01I6c099N - b65e7ce20dc4 - 20121002 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78530 Archived-At: Am 02.10.2012 um 13:41 schrieb Andre Caldas : >>>>> I am trying to redefine the =92open_read_file=92 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 =3D "Path: " .. file.dirname(filename) local text =3D "Text: " .. str return table.concat({path,text},"\n\n") end local textfileactions =3D resolvers.openers.helpers.textfileactions utilities.sequencers.appendaction(textfileactions,"system","document.MyChar= acterMess") \stopluacode \input ward \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________