lilypond-devel
[Top][All Lists]
Advanced

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

Re: MediaWiki support


From: Johannes Schindelin
Subject: Re: MediaWiki support
Date: Fri, 26 Nov 2004 17:10:24 +0100 (CET)

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).

Ciao,
Dscho

Attachment: ps2png.patch
Description: Text document


reply via email to

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