]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyrics-bar.ly
Make StaffGroup accept the new
[lilypond.git] / input / regression / lyrics-bar.ly
1 \version "2.3.22"
2
3 \header{
4 texidoc="
5 Adding a @code{Bar_engraver} to the Lyrics context makes sure that
6 lyrics do not collide with barlines.
7 "
8 }
9
10 \score {
11         \context StaffGroup <<
12          \context Staff=foo {
13                 b1 \bar "|:" b1 \bar ":|"
14         }
15                 \context LyricsWithBars \lyricmode {
16 %                       thisContextHasBarEngraver1  added
17                         ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1.  HereThereWhere.
18                 }
19                 \context Lyrics \lyricmode {
20                         this4 one has no BarEngraverAddedToContext1
21                 }
22          \context Staff=bar { b1 b1 }
23         >>
24         \layout {
25                 raggedright = ##t
26                 \context {
27                         \StaffGroup
28                         \accepts "LyricsWithBars"
29                 }
30                 \context {
31                         \Lyrics
32                         \consists "Bar_engraver"
33                         \name "LyricsWithBars"
34                 }
35         }
36 }
37