lilypond-user
[Top][All Lists]
Advanced

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

Re: Lyric word engraver bug


From: Simon Albrecht
Subject: Re: Lyric word engraver bug
Date: Sun, 07 Sep 2014 12:27:39 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.0

Hello David,

many thanks for the proposed solution. For what I can see now, it works fine.
And sorry for wrongly attributing authorship – no idea how I came to do that. Anyway, I corrected it now.
Best regards,
Simon

Am 06.09.2014 um 23:32 schrieb David Nalesnik:
Hi,


On Sat, Sep 6, 2014 at 4:04 PM, David Nalesnik <address@hidden> wrote:

I don't yet know what is causing the problem...

OK, I think I may have solved it.  Fingers crossed.

The problem occurs when the callback which creates a stencil for the hyphen creates nothing.  Now why that would be the case I couldn't say.  After all, a hyphen does appear!  (I wonder if that is a bug.)

Anyway, your example and mine compiles nicely with a simple change from the > operator to >=  in a function from your file lyric-word.ily (as I've done below)

#(define (compress-pair syl-a hyphen syl-b threshold)
   (let* ((hyphen-sten (ly:lyric-hyphen::print hyphen))
          (hyphen-ex
           (if (ly:stencil? hyphen-sten)
               (ly:stencil-extent hyphen-sten X)
               (cons (/ threshold -2) (/ threshold 2)))))
     (if (>= (interval-length hyphen-ex) threshold) ;; now greater-than-or-equal-to
         '() ; no compression--DO NOTHING!
         

Let me know if you run into any problems with this change.
 


reply via email to

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