From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65595 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: \bufferprefix in MKIV Date: Fri, 28 Jan 2011 14:55:06 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296222922 30597 80.91.229.12 (28 Jan 2011 13:55:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 13:55:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 28 14:55:18 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PionE-0005e6-9p for gctc-ntg-context-518@m.gmane.org; Fri, 28 Jan 2011 14:55:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B940CAA12; Fri, 28 Jan 2011 14:55:15 +0100 (CET) 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 bGYlUNJkNpjY; Fri, 28 Jan 2011 14:55:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DE35CA9FE; Fri, 28 Jan 2011 14:55:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C65ACA9FE for ; Fri, 28 Jan 2011 14:55:11 +0100 (CET) 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 kTBRQIL-u-QE for ; Fri, 28 Jan 2011 14:55:09 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 01FF8CA9F4 for ; Fri, 28 Jan 2011 14:55:08 +0100 (CET) Original-Received: from turan.fiee.net (turan.fiee.net [87.230.77.106]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0SDt8bS030532 for ; Fri, 28 Jan 2011 14:55:08 +0100 X-No-Auth: unauthenticated sender Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id 4DEF72DD4C002 for ; Fri, 28 Jan 2011 14:55:07 +0100 (CET) Original-Received: from [10.128.9.9] (163-191.77-83.cust.bluewin.ch [83.77.191.163]) by turan.fiee.net (Postfix) with ESMTP for ; Fri, 28 Jan 2011 14:55:07 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.936) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=87.230.77.106; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BE11T8F8 - 14a45e545e2f - 20110128 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:65595 Archived-At: Am 2011-01-27 um 20:08 schrieb Aditya Mahajan: > On a unrelated note, I have been thinking if I can extend the filter > module to take care of features provided by lilypond and gnuplot > modules. IIUC, in both these modules, the input is transformed > before being written to an output file, then an external filter is > run and the output is read back again. If we restrict ourselves to > MkIV, then the transforming the input can be done in a lua function; > the filter module already takes care of the rest of the book-keeping. > > Do you think that it makes sense to have such a feature? Then you > could just define the gnuplot module as: > > \usemodule[filter] > > \defineexternalfilter[GNUPLOT] > [filter={gnuplot --appropriate options}, > conitnue=yes, > transformation=thirddata.GNUPLOT.transformation, > ] > > where thirddata.GNUPLOT.transformation is a lua function that does > all the fancy processing. > > What do you think? I already replaced the LilyPond module by a filter setup, see http://wiki.contextgarden.net/LilyPond It doesn't work completely the same, but good enough. And since every user has different needs, the filter approach is more flexible and thus better than a bunch of hardcoded setup options. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________________ 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 ___________________________________________________________________________________