Improbable offset for stencil
Yotam Medini יותם מדיני <[email protected]>
| Newsgroups | gmane.comp.gnu.lilypond.bugs |
|---|---|
| Message-ID | <CAAE-6rYHTHEo1B=Y2T_6XDhCsGbkSmULEF__xOLUngCm6cEazw@mail.gmail.com> |
Attached and pasted a small example,
for which LilyPond 2.25.18 runs successfully
but complains with a message:
programming error: Improbable offset for stencil: -inf staff space
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.25.18"
\include "english.ly"
\paper{
#(set-paper-size "a4")
oddFooterMarkup = \markup { \hspace #7 }
}
\relative c' {
c d e f
\pageBreak
c d e f
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Also attached is a log and a suggested fix.
regards -- yotam
improbable-offset-stencil.ly
(text/x-lilypond, 171 B)
\version "2.25.18"
\include "english.ly"
\paper{
#(set-paper-size "a4")
oddFooterMarkup = \markup { \hspace #7 }
}
\relative c' {
c d e f
\pageBreak
c d e f
}
lily.log
(text/x-log, 553 B)
GNU LilyPond 2.25.18 (running Guile 3.0) Processing `improbable-offset-stencil.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 or 2 pages... Drawing systems... programming error: Improbable offset for stencil: -inf staff space Setting to zero. continuing, cross fingers programming error: Improbable offset for stencil: -inf staff space Setting to zero. continuing, cross fingers Converting to `improbable-offset-stencil.pdf'... Success: compilation successfully completed
2e2f7de6.diff
(text/x-patch, 1.5 KB)
commit 2e2f7de6d575a98e039b84e38e4113e5935ecbe4 Author: Yotam Medini <[email protected]> Date: Fri Jul 12 14:22:02 2024 +0300 define hspace & vspace with (0 . 0) instead of empty-interval diff --git a/scm/define-markup-commands.scm b/scm/define-markup-commands.scm index ab09763c3e..8b591cb244 100644 --- a/scm/define-markup-commands.scm +++ b/scm/define-markup-commands.scm @@ -1279,7 +1279,7 @@ Create an invisible object taking up @var{amount} horizontal space. @end lilypond See also @code{\\abs-hspace}." - (ly:make-stencil "" (cons 0 amount) empty-interval)) + (ly:make-stencil "" (cons 0 amount) '(0 . 0))) (define-markup-command (abs-hspace layout props amount) (number?) @@ -1301,7 +1301,7 @@ points. @end lilypond See also @code{\\hspace}." - (ly:make-stencil "" (cons 0 (to-staff-space amount)) empty-interval)) + (ly:make-stencil "" (cons 0 (to-staff-space amount)) '(0 . 0))) (define-markup-command (vspace layout props amount) (number?) @@ -1326,7 +1326,7 @@ of @var{amount} multiplied by 3. See also @code{\\abs-vspace}." (let ((amount (* amount 3.0))) - (ly:make-stencil "" empty-interval (cons 0 amount)))) + (ly:make-stencil "" '(0 . 0) (cons 0 amount)))) (define-markup-command (abs-vspace layout props amount) (number?) @@ -1350,7 +1350,7 @@ points. @end lilypond See also @code{\\vspace}." - (ly:make-stencil "" empty-interval (cons 0 (to-staff-space amount)))) + (ly:make-stencil "" '(0 . 0) (cons 0 (to-staff-space amount)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;