music-system-heights property to the page layout output.
* scm/page.scm (make-page-stencil): take footer into account when
computing the 'space-left page property
(annotate-space-left): take footer into account when annonating
space left.
+2006-02-28 Nicolas Sceaux <nicolas.sceaux@free.fr>
+
+ * scm/layout-page-layout.scm (write-page-breaks): add a
+ music-system-heights property to the page layout output.
+
+ * scm/page.scm (make-page-stencil): take footer into account when
+ computing the 'space-left page property
+ (annotate-space-left): take footer into account when annonating
+ space left.
+
2006-02-28 Graham Percival <gpermus@gmail.com>
* Documentation/user/ advanced-notation, global: more (final)
(define (handle-page page)
(define index 0)
+ (define music-system-heights
+ (map-in-order (lambda (sys)
+ (* -1 (car (paper-system-extent sys Y))))
+ (remove (lambda (sys)
+ (ly:prob-property? sys 'is-title))
+ (page-lines page))))
(define (handle-system sys)
(let*
((props `((line-break . #t)
. ((system-Y-extent . ,(paper-system-extent sys Y))
(system-refpoint-Y-extent . ,(paper-system-staff-extents sys))
(system-index . ,index)
+ (music-system-heights . ,music-system-heights)
(page-system-count . ,(length (page-lines page)))
(page-printable-height . ,(page-printable-height page))
(page-space-left . ,(page-property page 'space-left))))
(layout (ly:paper-book-paper p-book))
(arrow (annotate-y-interval layout
"space left"
- (cons (- (page-property page 'bottom-edge))
+ (cons (- 0.0
+ (page-property page 'bottom-edge)
+ (let ((foot (page-property page 'foot-stencil)))
+ (if (and (ly:stencil? foot)
+ (not (ly:stencil-empty? foot)))
+ (car (ly:stencil-extent foot Y))
+ 0.0)))
(page-property page 'bottom-system-edge))
#t)))
(ly:prob-set-property! page 'bottom-system-edge
(car (ly:stencil-extent page-stencil Y)))
(ly:prob-set-property! page 'space-left
- (car (ly:stencil-extent page-stencil Y)))
+ (+ (prop 'bottom-edge)
+ (prop 'bottom-system-edge)
+ (if (and (ly:stencil? foot)
+ (not (ly:stencil-empty? foot)))
+ (car (ly:stencil-extent foot Y))
+ 0.0)))
(if (annotate? layout)
(set! page-stencil