lilypond-user
[Top][All Lists]
Advanced

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

Re: Text centralized above a TextSpan


From: David Nalesnik
Subject: Re: Text centralized above a TextSpan
Date: Sun, 6 Sep 2015 12:17:35 -0500

Hi,
 
On Thu, Sep 3, 2015 at 2:42 PM, Caio Giovaneti de Barros <address@hidden> wrote:
Hello David!

On 02-09-2015 10:19, David Nalesnik wrote:

Try this out:

http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00405.html


This looks ok, but I'm not sure it'll work form me. I need to tweak the Spanner a bit to centralize the line height vertically in relation to the left and right bounds
 
[...]
 
 
and also use custom symbols for each bound.

 
I worked with Harm's function (link above) and produced the attached.  It uses the same technique of \fill-line (or rather, \justify-line) to space the text items, but draws the connecting lines differently.  Instead of using \whiteout to break the line, it draws each line individually.

The function will accept a list of markups or strings.  "" acts as a spacer, forcing text elements farther apart and others correspondingly closer  (exactly as multiple dashes do in Harm's function).

The syntax for inputting a list of markups is unwieldy.   Is there a nicer way to handle this sort of input?

+Important*:  This needs the to-be-released 2.19.27 (or current master) to be fully functional.  You'd just need to uncomment the lines indicated in justify-line-helper to get fully overridable lines: dashed, dotted, zigzag, customization of dashes, etc.  At the moment you'll see solid lines.  (Though there's a pretty unsatisfactory workaround for dashed lines included.)

Hopefully another step forward!

David

Image attached in further post. 
%%%%

Attachment: text-spanner-centered-text.ly
Description: Text Data


reply via email to

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