[Top][All Lists]

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

Re: Rehearsal mark and hairpin don't cooperate after line break

From: Neil Puttock
Subject: Re: Rehearsal mark and hairpin don't cooperate after line break
Date: Fri, 9 Oct 2009 23:08:21 +0100

2009/10/6 Neil Thornock <address@hidden>:
> %%After the line break, the horizontal space of the rehearsal mark suppresses
> the hairpin
> \version "2.12.1"
> \paper {ragged-right = ##t}
> \new Score { c'\< c' c' c' \break \mark \markup {"really really long markup"} 
> c'
> c' c' c' c'\! }

This is the same bug as #492:

It afflicts any left-broken (and many right-broken) spanners, since
these bounds are NonMusicalPaperColumn grobs whose extent is swamped
by the RehearsalMark element: normally this doesn't matter, since the
default extent is made up of the prefatory material (i.e., clef, key
signature and time signature).

A trial-and-error workaround is to override 'X-extent:

\overrideProperty #"Score.NonMusicalPaperColumn" #'X-extent #'(0 . 4)

(setting 'cross-staff for RehearsalMark also works, but will mess up
its vertical alignment)

A proper fix would involve reworking ly:axis-group-interface::width
for NonMusicalPaperColumn; in its current implementation, only
cross-staff and empty grobs are filtered out when calculating the
group extent (I'm pretty sure this could be implemented in Scheme as a
better workaround than the above).


reply via email to

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