lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MediaWiki support


From: Han-Wen Nienhuys
Subject: Re: MediaWiki support
Date: Sun, 28 Nov 2004 01:47:44 +0100

address@hidden writes:
> Hi,
> 
> On Fri, 26 Nov 2004, Han-Wen Nienhuys wrote:
> 
> > My suggestion is to skip lilypond-book altogether. Extract the ly code
> > directly, and invoke as
> >
> >        lilypond --safe --format=ps --png --pdf FILE
> >
> > this will make a .png and .pdf for the file specified.
> 
> Okay, I translate
> 
>       <lilypond fragment relative=2>
>       \key c \minor c4 es g2
>       </lilypond>
> 
> to
> 
>       \paper {
>         raggedright = ##t
>         indent = 0\mm
>       }
>       \relative c'' {
>         \key c \minor c4 es g2
>       }
> 
> As I don't need a PDF, I used the command line
> 
>       lilypond --safe --format=ps --preview --png FILE
> 
> However, in order to use ps2png, I had to patch lilylib.py (see
> attachment). Is this patch okay? It replaces a re.match by re.search (as
> the %%BoundingBox cannot be at the beginning of the file), and it adds
> "-c showpage" to the gs command line (else I don't get BBoxes or PNGs).

Thanks, added.

-- 

 Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]