lilypond-user
[Top][All Lists]
Advanced

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

Re: Lyric word engraver bug


From: David Nalesnik
Subject: Re: Lyric word engraver bug
Date: Sat, 6 Sep 2014 16:32:48 -0500

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]