From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50978 Path: news.gmane.org!not-for-mail From: Lutz Haseloff Newsgroups: gmane.comp.tex.context Subject: Re: Lilypond module problem Date: Wed, 3 Jun 2009 09:08:42 +0200 Message-ID: References: <77A1B818-2594-4B53-B18B-85438FB507C7@fiee.net> <09BED4B6-277A-4BEE-96E7-07224C89653D@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0885011011==" X-Trace: ger.gmane.org 1244012979 11797 80.91.229.12 (3 Jun 2009 07:09:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 07:09:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 03 09:09:37 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MBkbQ-0001Br-0I for gctc-ntg-context-518@m.gmane.org; Wed, 03 Jun 2009 09:09:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9467D1FD2D; Wed, 3 Jun 2009 09:09:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13656-05; Wed, 3 Jun 2009 09:08:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 295F61FCA0; Wed, 3 Jun 2009 09:08:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2201F1FCA0 for ; Wed, 3 Jun 2009 09:08:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18182-02-4 for ; Wed, 3 Jun 2009 09:08:43 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 78E8F1FC9B for ; Wed, 3 Jun 2009 09:08:43 +0200 (CEST) Original-Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com [209.85.218.226]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n5378g2N031475 for ; Wed, 3 Jun 2009 09:08:42 +0200 Original-Received: by bwz26 with SMTP id 26so8854364bwz.2 for ; Wed, 03 Jun 2009 00:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=D+agfK1qj8b0O7H2qYILkkQaWOs5iilAnYQCSEONiAk=; b=pWPcouEh6gkX6vK3PrQP5u28CKg+uxmWwO/sj/kR7qAYT7Qk9HvXD/mdE5ICKpEHRg bD0Q8VktEolbqddDmsZAyTwOCBGUEBxFs2nf2bqR4YGuycdUeQbUA4ep52p3DKz1A2Dj /ivP/RLEjz3sTzMh+fvZgZE2A+PWK7+SxcxKU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Z5VVzLxQiCmim6zieZtHt+QMWJ/PL/1PE7FWnmbcCBlYrtw60F00ntma8FP9KrSNbO OLkIXfrO5iPr5/vE22k+jfA3KwcTW07gjmEfmuXMEJoh53KnHseUb++UJhVyicgHBIds DMyRDgp30CQ1AGTftwhf7+IR+BrZt27GHvQt4= Original-Received: by 10.204.54.65 with SMTP id p1mr541825bkg.195.1244012922159; Wed, 03 Jun 2009 00:08:42 -0700 (PDT) In-Reply-To: <09BED4B6-277A-4BEE-96E7-07224C89653D@fiee.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.226; 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: 236362550 - 5b10256a36ce - 20090603 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50978 Archived-At: --===============0885011011== Content-Type: multipart/alternative; boundary=001636c5b9e852452f046b6c5490 --001636c5b9e852452f046b6c5490 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 2009/6/2 Henning Hraban Ramm > Am 2009-06-02 um 13:07 schrieb Lutz Haseloff: > >> Here it works with ConTeXt MkIV beta as of 2009.05.27 11:27. >>> >> I use ConTeXt ver: 2009.06.02 09:30 MKIV. >> > > Works still with 2009.06.02 09:30 on MacOS X / Intel. > > So it seems it's only a Windows problem - probably calling the LilyPond > binary, but could also be Lua's os.rename doesn't move? Or your flavour of > Windows doesn't understand forwards slashes as directory delimiters any > more... > This code (t-lilypond.tex at line 289) works now for me: \ctxlua{ buffers.save("lilypond-\lily!figures") } \directlua{ os.remove('\tmpdir/\lily!filename.tmp') } % new \directlua{ os.rename('\lily!filename.tmp', '\tmpdir/\lily!filename.tmp') } \writestatus{LilyPond}{\lily!filename} \executesystemcommand{\LP} % compile LilyPond \executesystemcommand{\PDF} % convert EPS to PDF \directlua{ os.remove('\lily!img') } % new \directlua{ os.rename('\tmpdir/\lily!filename.pdf', '\lily!img') } Is it possible to get these two lines (or some better code) into t-lilypond.tex to get it working for Windows? Greetings Lutz 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --001636c5b9e852452f046b6c5490 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2009/6/2 Henning Hraban Ramm <hraban@fiee.net>
Am 2009-06-02 um 13:07 schrieb Lutz Haseloff:

Here it works with ConTeXt MkIV beta as of 2009.05.27 11:27.
I use ConTeXt =C2=A0ver: 2009.06.02 09:30 MKIV.

Works still with 2009.06.02 09:30 on MacOS X / Intel.

So it seems it's only a Windows problem - probably calling the LilyPond= binary, but could also be Lua's os.rename doesn't move? Or your fl= avour of Windows doesn't understand forwards slashes as directory delim= iters any more...
This code (t-lilypond.tex at line 289) works now for me:


=C2=A0= =C2=A0=C2=A0 \ctxlua{ buffers.save("lilypond-\lily!figures") }=C2=A0=C2=A0=C2=A0 \directlua{ os.remove('\tmpdir/\lily!filename.tmp&#= 39;) } % new
=C2=A0=C2=A0=C2=A0 \directlua{ os.rename('\lily!filename.tmp', '= ;\tmpdir/\lily!filename.tmp') }
=C2=A0=C2=A0=C2=A0 \writestatus{Lily= Pond}{\lily!filename}
=C2=A0=C2=A0=C2=A0 \executesystemcommand{\LP} % co= mpile LilyPond
=C2=A0=C2=A0=C2=A0 \executesystemcommand{\PDF} % convert = EPS to PDF
=C2=A0=C2=A0=C2=A0 \directlua{ os.remove('\lily!img') } % new
= =C2=A0=C2=A0=C2=A0 \directlua{ os.rename('\tmpdir/\lily!filename.pdf= 9;, '\lily!img') }


Is it possible to get these two lines= (or some better code) into t-lilypond.tex
to get it working for Windows?

Greetings Lutz


Greetlings from Lake Constance!
Hraban
---
http://www.fiee= .net/texnique/
http://wiki.con= textgarden.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-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =C2=A0: http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive =C2=A0: https://foundry.supelec.fr/projects/contextrev/
wiki =C2=A0 =C2=A0 : http://contextgarden.net
___________________________________________________________________________= ________

--001636c5b9e852452f046b6c5490-- --===============0885011011== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0885011011==--