]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/lyric-tweak.ly
Issue 2929: Allow \tweak to act as a stand-in for \once\override
[lilypond.git] / input / regression / lyric-tweak.ly
index 10631bd2d9e7d1ebe492bacaec7d2c020c7bf643..ccaad3d46931e6ae3713344eecef11f8daedc5e2 100644 (file)
@@ -1,6 +1,8 @@
 \header
 {
-  texidoc = "The @code{\\tweak} function can be used in Lyrics."
+  texidoc = "The @code{\\tweak} function can be used in Lyrics.  Where
+confusion of lyric words with grob names is possible, explicit use of
+@code{\\markup} can be used for resolving the ambiguity."
 }
 
 \version "2.17.6"
@@ -11,8 +13,8 @@
 \new Lyrics \lyricmode
 {
   \markup \raise #1 \rotate #30 One 4
-  \tweak extra-offset #'(0 . 2) fish,
+  \tweak extra-offset #'(0 . 2) \markup fish,
   \markup \raise #1 \rotate #-30 two fish,
-  \tweak color #red red fish,
-  \tweak color #blue blue fish.
+  \tweak color #red \markup red fish,
+  \tweak color #blue \markup blue fish.
 }