[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken TextSpanner does affect horizontal spacing
From: |
David Nalesnik |
Subject: |
Re: Broken TextSpanner does affect horizontal spacing |
Date: |
Mon, 20 Oct 2014 11:50:08 -0500 |
Note that this also happens with Hairpin.
\score {
\relative c' {
\override Hairpin.minimum-length = 50
c4\< d e f
\break
c4 d e f
\break
c4 d e f\!
}
\layout {
ragged-right = ##t
}
}
Hairpin has the same sort of bounding grobs: NoteColumn for unbroken
bounds, NonMusicalPaperColumn for broken. The middle line has
NonMusicalPaperColumn as both bounds.
On Mon, Oct 20, 2014 at 11:43 AM, David Nalesnik <address@hidden>
wrote:
> In the following snippet, horizontal spacing is not stretched to fit the
> broken spanner with long text on its second line.
>
> It may be that proper accommodation requires at least one bound of
> TextSpanner to be set to NoteColumn. In the snippet, one of the bounds of
> the sibling on either the first or third line is set to NoteColumn, while
> the sibling on the middle line is bounded on left and right by
> NonMusicalPaperColumn.
>
> (The snippet outputs the bound information.)
>
> #(define (display-bounds grob)
> (format #t "spanner: ~a LEFT: ~a RIGHT: ~a~%"
> grob
> (ly:spanner-bound grob LEFT)
> (ly:spanner-bound grob RIGHT)))
>
> \score {
> \relative c' {
> \override TextSpanner.after-line-breaking = #display-bounds
> \override TextSpanner.minimum-length = #50
> \override TextSpanner.springs-and-rods = #ly:spanner::set-spacing-rods
> \override TextSpanner.bound-details.left.text =
> \markup { \upright "an excessively long text indication" }
> a4 \startTextSpan c d e
> \break
> a4 b c d
> \break
> a b c d\stopTextSpan
> }
> \layout {
> ragged-right = ##t
> }
> }
>