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: Sat, 19 Sep 2015 14:41:21 -0500

Hi Trevor,

On Sat, Sep 19, 2015 at 1:49 PM, Trevor Daniels <address@hidden> wrote:

David Nalesnik wrote Saturday, September 19, 2015 7:14 PM

On Sat, Sep 19, 2015 at 12:10 PM, David Kastrup <address@hidden> wrote:

[...]
 
> Right now LyricHyphen will draw something resembling the spanner line,
> but comprised of a succession of round-filled boxes.

Actually for the purpose I had in mind (words over music but spoken and out of rhythm)
we wouldn't need a spanner line, just the spaced-out text.


 I could easily allow a switch to turn off all connectors.
 
Using lyrics with explicit durations is the way it's done in the NR now, but it's
difficult to set up and prone to not working under some circumstances.  The
automatic spacing over several lines was the attractive feature of your
TextSpan code.


To do that, you'd need to split the text up into individual words.  That could get irritating, but it wouldn't be hard to break long strings up by whitespace, or some other alternative.

This should give acceptable results, with two conditions:

(1) items will be equally spaced;
(2) Items are currently parceled out between lines solely based on their number, as if they were equal in length.  The distribution algorithm ought to take word-length into account, and I wonder if my math is up to that :(

(As an aside: I must say that David's suggestion of using lyrics produces miraculous results without the hundreds and hundreds of lines of new code!  Don't want a connector line?  Don't write a hyphen.  Etc.) 

David

reply via email to

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