One solution is to widen the spacing between the notes slightly, so
that the spanner gets sufficiently long even when shortened. Try to
insert something like
\once \override Score.SeparationItem #'padding = #2
between the two notes.
Also, I don't really understand why you don't specify the \open
and \stopped as an edge-text of the text spanner. Try
\override TextSpanner #'edge-text = #(cons (markup #:musicglyph
"scripts.open" ) (markup #:musicglyph "scripts.stopped" ) )
/Mats
Quoting Martin Bergande <address@hidden>:
Please have a look at this:
%%%%% start .ly
\version "2.8.1"
\score {
\new Staff { \override Staff.Script #'staff-padding = #2.32 \relative
c' {
\once \override TextSpanner #'staff-padding = #2.65
\once \override TextSpanner #'dash-fraction = #'()
\once \override TextSpanner #'arrow = ##t
\once \override TextSpanner #'arrow-length = #0.75
\once \override TextSpanner #'arrow-width = #0.25
%this is about what I need, but the spanner disappears
\once \override TextSpanner #'shorten-pair = #'(1.5 . 1.3)
%with this shorten-pair the spanner appears, but is too long
%\once \override TextSpanner #'shorten-pair = #'(1.2 . 1.3)
\once \override Staff.TextScript #'extra-offset = #'(-1.5 . -3.17)
f8.~^\markup { \fontsize #-3 \bold "- 1/8" }[\open\startTextSpan
\once \override Staff.TextScript #'extra-offset = #'(-3.64 . -1.55)
f16~]\stopped^\markup { \fontsize #-3 \musicglyph #"flags.ugrace"
}\stopTextSpan }
}
\layout { ragged-last = ##t }
}
%%%%% stop .ly
-------- Original-Nachricht --------
Datum: Sun, 10 Sep 2006 18:33:30 +0200
Von: Mats Bengtsson <address@hidden>
An: Martin Bergande <address@hidden>
Betreff: Re: text spanner collapse
It's much easier to answer a question like that if you include
a short (but complete) example that illustrates the problem.
/Mats
Quoting Martin Bergande <address@hidden>:
hi,
dose anyone know how to avoid the collapse of text spanners when they
are shortened a lot?
version 2.8.1
thank you in advance,
martin
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user