Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Low

New issue 1133 by PhilEHolmes: Linebreaking calculation problem
http://code.google.com/p/lilypond/issues/detail?id=1133

In the example below, the first score ends up with a stave with a huge amount of white space in it, to accommodate the text. When there's a little more text, the line is broken to accommodate the text far more cleanly. As Kieren says "if the markup/tempo/rehearsalmark is going to cause the spacing to be so poor, the line should automagically break so that the item happens "mid-system" (like the last example)."


#(set-global-staff-size 17)

\paper { indent = 0 }

\score {
  {
    \override Score.PaperColumn #'keep-inside-line = ##t
    \clef "treble"
    \time 4/4
    \repeat "unfold" 31 { b'4 }
    b'4^\markup { \normalsize \italic "Some text to test linebreaking" }
    \repeat "unfold" 40 { b'4 }
    \bar "|."
  }
}

\score {
  {
    \override Score.PaperColumn #'keep-inside-line = ##t
    \clef "treble"
    \time 4/4
    \repeat "unfold" 31 { b'4 }
b'4^\markup { \normalsize \italic "Some text to test linebreaking calculation" }
    \repeat "unfold" 40 { b'4 }
    \bar "|."
  }
}


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to