]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/layout-page-layout.scm (write-page-breaks): add a
authorNicolas Sceaux <nicolas.sceaux@free.fr>
Tue, 28 Feb 2006 18:42:27 +0000 (18:42 +0000)
committerNicolas Sceaux <nicolas.sceaux@free.fr>
Tue, 28 Feb 2006 18:42:27 +0000 (18:42 +0000)
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.

ChangeLog
scm/layout-page-layout.scm
scm/page.scm

index 667f88bb36762e1b075cde4b0999492d06a56c97..d527dd4fb1c9f5cc0b9d2229e30962d29cb45a2b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+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)
index 8370ea8a403aaa425039f6d0bff8cc75a99a7184..a0a35027a35ca50c3a6e36679927b161189e7184 100644 (file)
 
   (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))))
index 616efe3469a290bc364829e1ecc4cd656c63bdff..041edd3a72dacb64e27ea023c4511ffe173eec1a 100644 (file)
        (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)))
 
@@ -336,7 +342,12 @@ create offsets.
     (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