lilypond-user
[Top][All Lists]
Advanced

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

Re: text block as spanner


From: Thomas Morley
Subject: Re: text block as spanner
Date: Sun, 3 Feb 2019 20:47:42 +0100

Hi David,

Am Sa., 2. Feb. 2019 um 21:35 Uhr schrieb David Nalesnik
<address@hidden>:
>
> Hi,
>
> On Sat, Feb 2, 2019 at 2:13 PM Thomas Morley <address@hidden> wrote:
> >
> > Am Sa., 2. Feb. 2019 um 21:09 Uhr schrieb Thomas Morley
> > <address@hidden>:
> >
> > > A bold workaround is to define the whole infrastructure for
> > > TextSpanners with new/renamed events (class and type), grobs,
> > > engravers and
> > > start/stop-commands.
> >
> > I forgot to point to a limitation
> > The provided 'text-spanner->text' doesn't care for line-breaks.

To clarify, 'text-spanner->text' has nothing to do with multiple TextSpanners.
It's a stencil-override. special line-breaking behaviour is not coded, though.

> There is this: https://www.mail-archive.com/address@hidden/msg105826.html

Looks we have the same conversation every few years lol
Your approach is far less invasive, so preferable.

> Not sure if anything needs to be updated.

The fix mentioned here
http://lists.gnu.org/archive/html/lilypond-user/2017-11/msg00016.html
should be applied, then it still works.

Though, I noticed a little problem here and in scheme-text-spanner
from our regtests, too:
Usually one can set the direction via direction-modifiers, i.e. for
_\startTextSpan the TextSpanner is printed below. This does not work.

The direction may be catched in listener and applied to the grob in
process-music.
So I did in the attached file, not sure whether it's the best fix ...

Thanks,
  Harm

Attachment: multiple-text-spanners-via-id-01.ly
Description: Text Data


reply via email to

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