From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80349 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: t-filter for LilyPond enhancements Date: Sun, 20 Jan 2013 13:15:37 +0100 Message-ID: <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 1358684143 22177 80.91.229.3 (20 Jan 2013 12:15:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 12:15:43 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 13:16:02 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 1Twtof-0005mt-PJ for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 13:16:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F6EA101E2; Sun, 20 Jan 2013 13:15:44 +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 mI1UdD5HwO8m; Sun, 20 Jan 2013 13:15:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E055B101E5; Sun, 20 Jan 2013 13:15:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13046101E5 for ; Sun, 20 Jan 2013 13:15:41 +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 Z7wZWBTk8wKV for ; Sun, 20 Jan 2013 13:15:39 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id ACD0E101E2 for ; Sun, 20 Jan 2013 13:15:39 +0100 (CET) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KC4r7R025085 for ; Sun, 20 Jan 2013 13:04:54 +0100 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=p+K3+wKjMQIjYin3mzLUJUVfG/NtHVVWcZUQqu7BrZtKz20dL1eWgKAumj0HLQZlIzl2ufjphbj/YYYmJt7Fwvk4CRFM/h+UGaA4hT0OBFh33jDqc/pEMAHZgskyc9eu; h=Received:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Date:Message-Id:To:Mime-Version:X-Mailer; Original-Received: (qmail 19719 invoked from network); 20 Jan 2013 13:15:38 +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 13:15:38 +0100 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: 0WIOc4RVu - 0217a5a50727 - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:80349 Archived-At: Hi Aditya et.al., I'm using t-filter with LilyPond for my songbooklets like this: ----- \def\readPDFfile#1{\externalfigure[#1]} \usemodule[filter] \defineexternalfilter[lilypond] [continue=3Dyes, readcommand=3D\readPDFfile, directory=3Dlilytemp/, output=3D{\externalfilterbasefile.pdf}, filtercommand=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 jus= t numbers; I'd prefer some unique IDs or even manually set names to be able= 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 m= ust get recalculated, even if they didn=92t change. Sorry if that=92s mentioned in t-filter=92s docs - I didn=92t see it. There are some more enhancements that I=92d like to implement, e.g. checkin= g the resulting files if there are several pages or using single notelines = 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 Lua c= ode - can you give me a hint how to do that? 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 ___________________________________________________________________________= ________