Re: making a TextSpanner not re-print the text after a line break
Hello list, hello Keith, You wrote: > [ ... ] > > > \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. Okay, good to know. Thanks. > For version 2.12, I do this: > > \override TextSpanner #'(bound-details left-broken X) = #8 This solves the problem with the beginning of the TextSpanner in the next line, but together with this solution the vertical alignment of the TextSpanner (middle of the PianoStaff) is lost, see the attached .ly-file. How can I correct this? Thanks and Best Regards Roland \version "2.12.2" rechts = \relative c'' { \textSpannerDown \override TextSpanner #'(bound-details left text) = "dimin." \override TextSpanner #'(bound-details left-broken text) = ##f a1 \startTextSpan a a a \break a a a a \stopTextSpan } rechtsII = \relative c'' { \textSpannerDown \override TextSpanner #'(bound-details left text) = "dimin." \override TextSpanner #'(bound-details left-broken text) = ##f \once\override TextSpanner #'(bound-details left-broken X) = #8 a1 \startTextSpan a a a \break a a a a \stopTextSpan } links = \relative c' { \clef bass s1*8 } \new PianoStaff << \new Staff = "up" { \rechts } \new Staff = "down" { \links } >> \new PianoStaff << \new Staff = "up" { \rechtsII } \new Staff = "down" { \links } >> ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: making a TextSpanner not re-print the text after a line break
On 07/03/11 17:50, Keith OHara wrote: Roland Goretzki 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 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: making a TextSpanner not re-print the text after a line break
Roland Goretzki 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 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: making a TextSpanner not re-print the text after a line break
Hello list, I have a problem concerning textspanner, and found this E-Mail: > On Thu, 11 Nov 2010 10:58:13 +0100, Steve Yegge > wrote: > >I've got a text spanners with a relatively long string for its > >#'bound-details #'left #'text property, and the spanner spans > >several line breaks. The result is something like > > > >long spanner text ... \break > >long spanner text ... \break > >long spanner text .. > > > >whereas I'd prefer it to be > > > >long spanner text ... \break > >... \break > >.. > > > >I didn't see a way to control this behavior, though. Did I miss > >something obvious? > > > >Thanks, > > > >-steve > > use: > > \override TextSpanner #'(bound-details left-broken text) = ##f > > greetings, > > Vicente 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. Can someone help, please, or tell me, where I'm wrong? A small .ly-file is attached Best Regards Roland \version "2.12.2" rechts = \relative c'' { \textSpannerDown \override TextSpanner #'(bound-details left text) = "dimin." \override TextSpanner #'(bound-details left-broken text) = ##f a1 \startTextSpan a a a \break a a a a \stopTextSpan } links = \relative c' { \clef bass s1*8 } \new PianoStaff << \new Staff = "up" { \rechts } \new Staff = "down" { \links } >> ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: making a TextSpanner not re-print the text after a line break
On Thu, 11 Nov 2010 10:58:13 +0100, Steve Yegge wrote: I've got a text spanners with a relatively long string for its #'bound-details #'left #'text property, and the spanner spans several line breaks. The result is something like long spanner text ... \break long spanner text ... \break long spanner text .. whereas I'd prefer it to be long spanner text ... \break ... \break .. I didn't see a way to control this behavior, though. Did I miss something obvious? Thanks, -steve use: \override TextSpanner #'(bound-details left-broken text) = ##f greetings, Vicente ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
making a TextSpanner not re-print the text after a line break
I've got a text spanners with a relatively long string for its #'bound-details #'left #'text property, and the spanner spans several line breaks. The result is something like long spanner text ... \break long spanner text ... \break long spanner text .. whereas I'd prefer it to be long spanner text ... \break ... \break .. I didn't see a way to control this behavior, though. Did I miss something obvious? Thanks, -steve ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user