From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80359 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: t-filter for LilyPond enhancements Date: Sun, 20 Jan 2013 21:02:05 +0100 Message-ID: <48E85065-3C8A-4E01-8E02-E946A24321D9@fiee.net> 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 (Apple Message framework v1085) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358712133 26265 80.91.229.3 (20 Jan 2013 20:02:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 20:02:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 21:02:32 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 1Tx168-0004Le-0F for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 21:02:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77D4C101E9; Sun, 20 Jan 2013 21:02:14 +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 zaYCpWmgag3q; Sun, 20 Jan 2013 21:02:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 938E2101E5; Sun, 20 Jan 2013 21:02:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71FEF101E5 for ; Sun, 20 Jan 2013 21:02: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 mmBsXRRD5TnT for ; Sun, 20 Jan 2013 21:02:10 +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 F0675101E2 for ; Sun, 20 Jan 2013 21:02:09 +0100 (CET) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KK26Mj019771 for ; Sun, 20 Jan 2013 21:02:07 +0100 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=YH9Z3Z+B8xT6dWUxD655W1X4RopaGveb3R7W7pVu9+e+/9V65YYPbYDKM9pbNovoAF68HC54Fs3OBw8KyMsAeTc91cVHoOWQGXsPOiqIEYXKtKaYsteEFhUn6yHcNFXC; h=Received:Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; Original-Received: (qmail 26261 invoked from network); 20 Jan 2013 21:02:06 +0100 Original-Received: from hsi-kbw-149-172-52-191.hsi13.kabel-badenwuerttemberg.de (HELO ixchel.fritz.box) (149.172.52.191) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 20 Jan 2013 21:02:05 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=07; city=Duisburg; latitude=51.4333; longitude=6.7500; http://maps.google.com/maps?q=51.4333,6.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIOk26sj - b38222a34aba - 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:80359 Archived-At: Am 2013-01-20 um 17:57 schrieb Aditya Mahajan: >> Now, I'd like my lilypond sections/buffers to have different names than = just numbers; I'd prefer some unique IDs or even manually set names to be a= ble to re-order them without the need of re-compiling. >> I.e. if I change the order of songs in my songbook, all LilyPond snippet= s must get recalculated, even if they didn=92t change. > = > Does > = > \startlilypond[name=3Done] > .... > \stoplilypond > = > what you are looking for? (see the docs for how this behaves behind the s= cenes) Oh, so simple? Great, that=92s exactly what I meant. Since I would normally= set [name=3D\currentcomponent], can I make that default? >> There are some more enhancements that I=92d like to implement, e.g. chec= king the resulting files if there are several pages or using single notelin= es to let ConTeXt do the page breaking (like lilypond-book does with LaTeX)= . I guess that would be as simple as replacing my \readPDFfile with some Lu= a 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 a= nd multipage pdfs differently. Thanks, handling of multipage PDFs might help, but I=92d try a different ap= proach: LilyPond can generate EPS/PDF for single note systems and writes th= e number of them into a simple text file. I=92d parse that with Lua and pla= ce all those small PDFs. I just need a clue how I must define t-filter=92s = "readcommand" as a Lua function. Greetlings, 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 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 ___________________________________________________________________________= ________