"Trevor Daniels" <t.dani...@treda.co.uk> wrote in message news:assp.0697eb5db6.EB380C5E80F04264B181F9417B1D3AAD@TrevorLaptop...
The predefined command \textLengthOn no longer always permits
TextScripts to align.  I suspect it broke when the new skylining code
was implemented, but I haven't verified this.

\textLengthOn is defined to be

 \override TextScript.extra-spacing-width = #'(0 . 0)
 \override TextScript.extra-spacing-height = #'(-inf.0 . +inf.0)

A workaround is to change extra-spacing-width to #'(0 . 0.2),
but this seems a bit arbitrary.  So I'm not sure if the bug is in the
skylining code or whether \textLengthOn just needs to be adjusted.

The example in the snippet Vertically aligned dynamics and textscripts
as it appears in the NR in section
http://www.lilypond.org/doc/v2.17/Documentation/notation/expressive-marks-attached-to-notes#dynamics
unfortunately now demonstrates this fault.

Mike: could you please comment?

Here's an example:

music = \relative c' {
 c2^\markup { \huge gorgeous } c^\markup { \huge fantastic }
}

\score {
{
 \music
 \break
 \textLengthOn
 \override TextScript.Y-extent = #'(-1.5 . 1.5)
 \override TextScript.staff-padding = #0.1
 \music
 \textLengthOff
 \break
 \override TextScript.Y-extent = #'(-1.5 . 1.5)
 \override TextScript.staff-padding = #0.1
 \override TextScript.extra-spacing-width = #'(0 . 0.2)
 \override TextScript.extra-spacing-height = #'(-inf.0 . +inf.0)
 \music
}
\layout {
 ragged-right = ##t
 indent = 0
}
}

Using this as a test:

music = \relative c' {
 a'2\p b\f
 e4\p f\f\> g, b\p
 c2^\markup { \huge gorgeous } c^\markup { \huge fantastic }
}

{
 \music
 \break
 \textLengthOn
 \override DynamicLineSpanner #'staff-padding = #2.0
 \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
 \override TextScript #'Y-extent = #'(-1.5 . 1.5)
 \music
}
\layout {
 ragged-right = ##t
 indent = 0
}

(almost the same as the snippet in the manual, but with an added \textLengthOn)

I get the words aligning in 2.17.0 but failing to align in 2.17.1

--
Phil Holmes
Bug Squad


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to