lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a TextSpanner not re-print the text after a line break


From: Nick Payne
Subject: Re: making a TextSpanner not re-print the text after a line break
Date: Mon, 07 Mar 2011 21:25:42 +1100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 07/03/11 17:50, Keith OHara wrote:
Roland Goretzki<roland<at>  roland-goretzki.de>  writes:
I have a problem concerning textspanner, and found this E-Mail:

\override TextSpanner #'(bound-details left-broken text) = ##f

This is just half of the solution I'm looking for:
The dashed line after the linebreak should begin together with the first
note in the new line, but it does begin at the big brace, and in my
opinion this does look quite bad.
This problem was fixed in the development version (issue 654 fixed in 2.13.9) so
the dashed line will be drawn correctly in version 2.14.

For version 2.12, I do this:

\override TextSpanner #'(bound-details left-broken X) = #8

TestSpanners seem to default to ending at the LHS of the note on which they terminate. If I extend the right-hand end of the spanner slightly by using

\once \override TextSpanner #'bound-details #'right #'padding = #-0.5

to get it to end on the RHS side of the note, then if the spanner wraps to a new stave, this also causes the broken spanner line to be extended by the same amount. I have to also add

\once \override TextSpanner #'bound-details #'right-broken #'padding = #0.5

to get around this problem. Does this qualify as a bug (i.e. if a value is not set for #'right-broken #'padding then it seems to automatically get the value assigned to #'right #'padding) or merely something that should be noted in the documentation. If the line in the source below for #'right-broken #'padding is commented out, the spanner line extends past the end of the stave.

\version "2.13.52"

\paper {
    ragged-last = ##t
}

\relative c'' {
    \repeat unfold 16 { c4 }
    \once \override TextSpanner #'bound-details #'left #'text = "Spanner "
    \once \override TextSpanner #'style = #'line
    \once \override TextSpanner #'font-shape = #'upright
\once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . -1) } \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER
    \once \override TextSpanner #'bound-details #'right #'padding = #-0.5
\once \override TextSpanner #'bound-details #'right-broken #'padding = #0.5
    \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
    \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
    c\startTextSpan \repeat unfold 22 { c } c\stopTextSpan
}


Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]