bug-lilypond
[Top][All Lists]
Advanced

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

Re: lilypond-book: filename option


From: Han-Wen Nienhuys
Subject: Re: lilypond-book: filename option
Date: Tue, 5 Apr 2005 01:16:08 +0200

address@hidden writes:
> On Mon, 4 Apr 2005, Han-Wen Nienhuys wrote:
> 
> > address@hidden writes:
> > > This resurrects the filename option and makes it do something useful.
> > >
> > > If <lilypond filename="bach"> is given, "bach" will be used as the
> > > basename for the files (instead of "lily-12345678").
> > >
> > > This allows the files to have friendlier names, and for the snippets
> > > to be managed better.
> >
> > Can you explain this in more detail?
> 
> Having predictable filenames for the music snippets in a project makes
> them a whole lot easier to manage, especially if it turns out that you
> need to do something which the lilypond authors did not think of for you.

Sorry, I've mistaken your patch. I thought you were going to do

        bach-124748.ly

> For example, say lilypond-book chokes on your source file because python's
> regexp engine could not handle a file that large.  You might pull the

Can you file a bugreport for this?  IIRC, this has been rectified in
recent Python releases.

> Or maybe you would like some of the music images to link to midi files
> instead of lilypond source files.  (For example, if you are *not* trying
> to educate your readers on how to use lilypond.)  Creating the midi files
> and linking to them is a lot easier if you know what the names of the the
> .ly and .midi files will be.  Especially if you do not want to link to
> _all_ of them because some are rather trivial, like a single quarter note.
> 
> Or maybe you would just prefer that your user see "bach-cantata-1.png" in
> the browser or html source instead of "lily-394747432.png".

I'm missing one thing: how do you make sure that files are recompiled
when the .ly source inside the .html is changed?

I think it would be better to keep the lily-NUMBER naming scheme, and
have lilypond-book (sym)link those with the user-supplied file
names. In this way, we can have both dependency tracking and readable
links.

-- 

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





reply via email to

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