From: David Kastrup Date: Fri, 18 May 2012 14:25:41 +0000 (+0200) Subject: Issue 2543: Allow tweaks in Lyrics. X-Git-Tag: release/2.15.39-1~3 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=840f47a0f0617b3ab69380a0a33d6725741a4bd8;p=lilypond.git Issue 2543: Allow tweaks in Lyrics. Since lyrics are no longer wrapped in EventChord, there is no point in keeping tweaks from working inside of Lyrics contexts. --- diff --git a/input/regression/lyric-tweak.ly b/input/regression/lyric-tweak.ly new file mode 100644 index 0000000000..8b7b6977e0 --- /dev/null +++ b/input/regression/lyric-tweak.ly @@ -0,0 +1,18 @@ +\header +{ + texidoc = "The @code{\\tweak} function can be used in Lyrics." +} + +\version "2.15.39" +\paper { + ragged-right = ##t +} + +\new Lyrics \lyricmode +{ + \markup \raise #1 \rotate #30 One 4 + \tweak #'extra-offset #'(0 . 2) fish, + \markup \raise #1 \rotate #-30 two fish, + \tweak #'color #red red fish, + \tweak #'color #blue blue fish. +} diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly index 5710d4f6b2..c4ecf261aa 100644 --- a/ly/engraver-init.ly +++ b/ly/engraver-init.ly @@ -435,6 +435,7 @@ printing of a single line of lyrics." \consists "Lyric_engraver" \consists "Extender_engraver" \consists "Hyphen_engraver" + \consists "Tweak_engraver" \consists "Stanza_number_engraver" \consists "Instrument_name_engraver" \consists "Font_size_engraver"