Hello Marc, hello Jakob, hello list,
I just wanted to share a tiny extension of the lyrics->markup function:
...
(cond
((eq? (ly:music-property lyrics 'name) 'LyricEvent)
(ly:music-property lyrics 'text))
((eq? (ly:music-property lyrics 'name) 'HyphenEvent)
(list "--"))
((eq? (ly:music-property lyrics 'name) 'LineBreakEvent)
(list linebreakindicator))
;; to include stanza, copy the following three lines into the
conditional of the function
((and (equal? (ly:music-property lyrics 'name) 'PropertySet)
(equal? (ly:music-property lyrics 'symbol) 'stanza))
(markup #:bold (ly:music-property lyrics 'value)))
...
So if there are \set stanza statements, they will go into the markup.
Best regards,
Jan-Peter
On 24.01.2011 20:36, Marc Hohl wrote:
Am 24.01.2011 15:33, schrieb Jan-Peter Voigt:
Hello Phil,
I posted the "improved" version this morning with a bit more text
about the possible overrides. So you can approve that and delete the
old one or copy either the code of the new snippet (or the attached
one) to the old and delete the new one. ... huh???
OK, I try once more ;-)
- Delete old snippet and approve new one
or
- update old snippet with code from the new one (or the attached) and
delete pending new snippet.
The uploaded code and the attached differ only very slightly in the
verse-markup-command. (howto get override props)
Whatever - looks great! Thanks to you both, Jan-Peter and Jakob for
improving this stuff,
it will be very helpful for my current project!
Regards,
Marc
Cheers,
Jan-Peter
On 24.01.2011 15:12, Phil Holmes wrote:
I've slightly lost the plot of what's needed here. There's
http://lsr.dsi.unimi.it/LSR/Item?id=744 which I think could be
edited for the new improvements, and there's an improved version
waiting for approval. Please let me know if the old version is to be
edited or deleted, and whether the new version should be approved.
--
Phil Holmes
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user