bug-lilypond
[Top][All Lists]
Advanced

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

Issue 1351 in lilypond: Y-extent of a modified LyricExtender stencil is


From: lilypond
Subject: Issue 1351 in lilypond: Y-extent of a modified LyricExtender stencil is not accounted for in the skyline
Date: Thu, 21 Oct 2010 09:26:52 +0000

Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Low skyline

New issue 1351 by v.villenave: Y-extent of a modified LyricExtender stencil is not accounted for in the skyline
http://code.google.com/p/lilypond/issues/detail?id=1351

% Reported by Werner, based on http://lsr.dsi.unimi.it/LSR/Item?id=643

\version "2.13.36"
#(ly:set-option 'debug-skylines #t)
\layout {
  \context {
    \Lyrics
    \consists "Tweak_engraver"
  }
}

#(define (extend text)
   (let ((extender (make-music 'ExtenderEvent)))
     (set! (ly:music-property extender 'tweaks)
           (acons 'stencil (lambda (grob)
                             (ly:stencil-combine-at-edge
                              (ly:lyric-extender::print grob)
                              X RIGHT
                              (grob-interpret-markup grob text)
                              0 0))
                  (ly:music-property extender 'tweaks)))
     extender))

extendComma = #(extend ",")

\relative c' {
  c4( d e f)
}
\addlyrics {
  AAA \extendComma
}

% As you can see, whatever goes below the extender line won't be
% taken into account when calculating the skyline, and therefore may
% be cropped, for instance, if used in a lilypond-book context.

Attachments:
        ex.png  3.3 KB




reply via email to

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