On Wed, Mar 30, 2022 at 9:25 AM K. Blum <benbigno...@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
<https://github.com/OOoLilyPond/OOoLilyPond/blob/master/extension/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