On Mon, 2023-12-11 at 19:41 +0100, Jean Abou Samra wrote:
> Put
> 
> break = {}
> pageBreak = {}
> in the -dinclude-settings file?

Wow.  That's deceptively simple!

> You can put
> 
> #(set! toplevel-music-functions (cons unfoldRepeats toplevel-music-
> functions))
> in -dinclude-settings.

This is fantastic!  I only briefly tested it and the page breaks and I
think almost all of it can be done via -dinclude-settings.  Thank you
so much.

If I can find a way to append to the input file, I can probably get rid
of that scraping/parsing code completely.  I came across -dread-file-
list.  If I understand I would need to create a file:

$ cat list-of-files.txt
first.ly
song.ly
last.ly

And then

lilypond -dread-file-list list-of-files.txt

However, this doesn't join all the files into one long file.  It
processes each file on it's own.

Right now I can do

cat first.ly second.ly third.ly > out.ly
lilypond out.ly

But it's not portable.  I'd have to do the equivalent in python if
there's no way to do it with lilypond.

Reply via email to