[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken TextSpanner does affect horizontal spacing
From: |
James |
Subject: |
Re: Broken TextSpanner does affect horizontal spacing |
Date: |
Mon, 20 Oct 2014 19:30:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 20/10/14 17:43, David Nalesnik 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
> }
> }
>
Thanks, added as:
http://code.google.com/p/lilypond/issues/detail?id=4173
James