lilypond-user
[Top][All Lists]
Advanced

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

Re: new behavior of lilypond-book-preamble.ly?


From: Carl Sorensen
Subject: Re: new behavior of lilypond-book-preamble.ly?
Date: Wed, 30 Mar 2022 09:59:59 -0600



On Wed, Mar 30, 2022 at 9:25 AM K. Blum <benbignoise@gmx.de> wrote:

Am 30.03.2022 um 17:15 schrieb Carl Sorensen:

Is it not possible to make OOoLilyPond check for the LilyPond version and respond differently based on the LilyPond version?

No, unfortunatly not:
The use of lilypond-book-preamble.ly takes place in templates.
These are dedicated *.ly files that can be modified by the user. Many people might build their own from scratch.
Having OOoLilyPond responding differently would imply that users would have to modify all of their templates manually. I hope that there is a way to avoid that.

But when I look at the code in OOoLilyPond/LilyPond.xba I see that 
  1. There is a way to check the LilyPond version
  2. The code already modifies include statements to add an appropriate path
  3. The code builds the command used to call lilypond
Given these three things it seems that OOoLilyPond can modify its treatment of both include files and the lilypond command to account for different versions of LilyPond.  Whether it should have to or not is open for discussion.

Thanks,

Carl


reply via email to

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