]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2543: Allow tweaks in Lyrics.
authorDavid Kastrup <dak@gnu.org>
Fri, 18 May 2012 14:25:41 +0000 (16:25 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 21 May 2012 18:06:44 +0000 (20:06 +0200)
Since lyrics are no longer wrapped in EventChord, there is no point
in keeping tweaks from working inside of Lyrics contexts.

input/regression/lyric-tweak.ly [new file with mode: 0644]
ly/engraver-init.ly

diff --git a/input/regression/lyric-tweak.ly b/input/regression/lyric-tweak.ly
new file mode 100644 (file)
index 0000000..8b7b697
--- /dev/null
@@ -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.
+}
index 5710d4f6b214ff67eeda820c083d603c52060ad0..c4ecf261aa358dd79bcbd2ec7be99eae42fc3bd9 100644 (file)
@@ -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"