X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Ftest%2Fbar-lines-lyric-only.ly;h=13fa76ed5396b863428031408470a348ee0bff7c;hb=d624f4dd03ff018529f5e285407100dd828b0e1c;hp=d716dc1a620decd3c62b6d7479564c7e474644a8;hpb=70048d99398924e7ca0eb481925145ec243700c5;p=lilypond.git diff --git a/input/test/bar-lines-lyric-only.ly b/input/test/bar-lines-lyric-only.ly index d716dc1a62..13fa76ed53 100644 --- a/input/test/bar-lines-lyric-only.ly +++ b/input/test/bar-lines-lyric-only.ly @@ -1,40 +1,38 @@ -\version "1.9.4" +\version "2.10.0" \header { texidoc = "@cindex Bar line lyric only -You can move around @code{Bar_engraver} and -@code{Span_bar_engraver} if you want bar lines on lyrics. " +You can move @code{Bar_engraver} and @code{Span_bar_engraver} to +a different engraving context, if you want, for example, bar lines +on lyrics. " } \score { -\notes \relative c' \context ChoirStaff << - \new Staff { c1 c1 c1} - \context Lyrics \lyrics << - { bla1 die bla } - { foo bar foo } - { foo bar foo } - >> - \new Staff { c1 c1 c1} - >> + \relative c' \context ChoirStaff << + \new Staff { c1 c1 c1} + \lyricmode << + \new Lyrics { bla1 die bla } + >> + \new Staff { c1 c1 c1} + >> -\paper { - raggedright = ##t -\translator { - \LyricsVoiceContext - \consists Bar_engraver - % need procedure, since lyrics doesn't have a staff_sym engraver. - BarLine \override #'bar-size-procedure = #(lambda (x) 3.0) -} -\translator { - \LyricsContext - \consists "Span_bar_engraver" -} -\translator{ - \ChoirStaffContext - \remove "Span_bar_engraver" -} -\translator { - \StaffContext - \remove "Bar_engraver" + \layout { + ragged-right = ##t + \context { + \Lyrics + \consists Bar_engraver + + + %% need procedure, since lyrics doesn't have a staff_sym engraver. + \override BarLine #'bar-size = #3.0 + } + \context{ + \ChoirStaff + \remove "Span_bar_engraver" + } + \context { + \Staff + \remove "Bar_engraver" + } + } } -}}