From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80354 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-filter for LilyPond enhancements Date: Sun, 20 Jan 2013 11:57:41 -0500 (EST) Message-ID: References: <4707DFCF-783C-439F-B3F0-F80D74943C3F@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-294027921-1358701072=:2676" X-Trace: ger.gmane.org 1358701083 31340 80.91.229.3 (20 Jan 2013 16:58:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 16:58:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 17:58:21 2013 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 1TwyDs-0001DB-HD for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 17:58:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C512101EF; Sun, 20 Jan 2013 17:58:03 +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 HI2IQpxRIETd; Sun, 20 Jan 2013 17:58:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 14297101E5; Sun, 20 Jan 2013 17:58:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 49D31101E5 for ; Sun, 20 Jan 2013 17:57:58 +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 TEiLIh2e8iuI for ; Sun, 20 Jan 2013 17:57:57 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id F2A25101E2 for ; Sun, 20 Jan 2013 17:57:56 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KGvsh8013201 for ; Sun, 20 Jan 2013 17:57:55 +0100 Original-Received: FROM mint (bas3-montreal02-1096680382.dsl.bell.ca [65.94.3.190]) By hackers.mr.itd.umich.edu ID 50FC2210.B35F5.26832 ; Authuser adityam; 20 Jan 2013 11:57:52 EST In-Reply-To: <4707DFCF-783C-439F-B3F0-F80D74943C3F@fiee.net> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIOgVSVC - 0e2e59e492bb - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:80354 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-294027921-1358701072=:2676 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 20 Jan 2013, Henning Hraban Ramm wrote: > I'm using t-filter with LilyPond for my songbooklets like this: > > ----- > > \def\readPDFfile#1{\externalfigure[#1]} > > \usemodule[filter] > \defineexternalfilter[lilypond] > =09[continue=3Dyes, > =09readcommand=3D\readPDFfile, > =09directory=3Dlilytemp/, > =09output=3D{\externalfilterbasefile.pdf}, > =09filtercommand=3D{lilypond -dbackend=3Deps -dinclude-eps-fonts -dno-gs-= load-fonts -o"lilytemp/\externalfilterbasefile" "\externalfilterinputfile"}= ] > > ----- > > Now, I'd like my lilypond sections/buffers to have different names than j= ust numbers; I'd prefer some unique IDs or even manually set names to be ab= le to re-order them without the need of re-compiling. > I.e. if I change the order of songs in my songbook, all LilyPond snippets= must get recalculated, even if they didn=92t change. Does \startlilypond[name=3Done] =2E... \stoplilypond what you are looking for? (see the docs for how this behaves behind the=20 scenes) > There are some more enhancements that I=92d like to implement, e.g.=20 > checking the resulting files if there are several pages or using single= =20 > notelines to let ConTeXt do the page breaking (like lilypond-book does=20 > with LaTeX). I guess that would be as simple as replacing my=20 > \readPDFfile with some Lua code - can you give me a hint how to do that? See grph-inc.*. I'll post an example later on how to handle single page=20 and multipage pdfs differently. Aditya --8323329-294027921-1358701072=:2676 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323329-294027921-1358701072=:2676--