Hi David,
Am 10.01.2014 10:15, schrieb David Kastrup:
> guile> (format "LilyPond ~:@{~a.~a~}" (ly:version))
> "LilyPond 2.19"
>
> That does not really require a command of its own.
That is indeed quite short and usable. I am still a stranger to scheme.
I suppose it does something like in python "%d.%d".format(version) but
the ~, : and @ signs look like magic to me.
I will read this:
http://www.gnu.org/software/guile/manual/html_node/Formatted-Output.html
>> Why integrated?
>
> You'll likely be writing a format string anyway.
So far not, I always did this (which I find much more readable):
\markup { "Lilypond" #(lilypond-version) }
Thanks,
Joram
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user