]> git.donarmstrong.com Git - lilypond.git/blob - input/bugs/lyrics-bar.ly
3ebafb9b1aed4ca63b7dbcb005a4846110fc7f84
[lilypond.git] / input / bugs / lyrics-bar.ly
1 \version "1.3.148"
2
3 %
4 % Lyrics with barline colliding is fine now, BUT
5 % There's an horizontal gap between staff and end bar 
6 %
7
8 \header{
9 texidoc = "
10 Adding a @code{Bar_engraver} to the LyricsVoice context makes sure that
11 lyrics don't collide with barlines.
12 "
13 }
14
15 \score {
16         \context StaffGroup <
17         \notes \context Staff {
18                 b1 \bar "|:" b1 \bar ":|"
19         }
20         \lyrics\context Lyrics <
21                 \context LyricsVoiceWithBars {
22 %                       thisContextHasBarEngraver1  added
23                         ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1.  Here.
24                 }
25                 \context LyricsVoice {
26                         this4 one has no BarEngraverAddedToContext1
27                 }
28         >
29         \notes \context Staff = SB { b1 b1 }
30         >
31         \paper {
32                 linewidth = -1.0\cm
33                 \translator {
34                         \LyricsContext
35                         \accepts "LyricsVoiceWithBars"
36                 }
37                 \translator {
38                         \LyricsVoiceContext
39                         \consists "Bar_engraver"
40                         \name "LyricsVoiceWithBars"
41                 }
42                 \translator {
43                         \LyricsVoiceContext
44                 }
45         }
46 }