]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/layout-page-layout.scm (page-headfoot): annotate
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 24 Oct 2005 08:48:35 +0000 (08:48 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 24 Oct 2005 08:48:35 +0000 (08:48 +0000)
pagetopspace too.

* scm/stencil.scm (dimension-arrows): shorten arrowed lines a bit.

* scm/layout-page-layout.scm (annotate-y-interval): y-annotation
doesn't take y-space.

* scm/paper.scm (paper-alist): fix A7 dimensions.

ChangeLog
lily/grob-property.cc
scm/layout-page-layout.scm
scm/paper.scm
scm/stencil.scm

index a269eb38ec1aa8d1db71922faa9d8674ad6cfa3e..bce6caa934c3d94c635c2637b91a1aa16be33da5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-10-24  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scm/layout-page-layout.scm (page-headfoot): annotate
+       pagetopspace too.
+
+       * scm/stencil.scm (dimension-arrows): shorten arrowed lines a bit. 
+
+       * scm/layout-page-layout.scm (annotate-y-interval): y-annotation
+       doesn't take y-space.
+
+       * scm/paper.scm (paper-alist): fix A7 dimensions. 
+
 2005-10-24  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * stepmake/stepmake/generic-vars.make (DIST_FILES): Fix
index 9e217b33be3e91221efed1eb47947b8e3a076574..3c8a07db5cf5d79e0cc3300fe4e74813303e18cb 100644 (file)
@@ -68,12 +68,6 @@ Grob::internal_set_property (SCM sym, SCM v)
 }
 
 //#define PROFILE_PROPERTY_ACCESSES
-
-/*
-  Ugh C&P Coding.
-
-  Retrieve property without triggering callback.
- */
 SCM
 Grob::get_property_data (SCM sym) const
 {
index 64259c0263714dfe44f2b507259c5bea66b4ba60..85e19ab95cbc647615577d36896df27f3cd70ba6 100644 (file)
     (set! annotation (ly:stencil-translate annotation
                          (cons 0 (interval-center extent))))
 
-    (ly:stencil-combine-at-edge arrows X RIGHT annotation 0.5 0)
-    ))
+    (set! annotation
+         (ly:stencil-combine-at-edge arrows X RIGHT annotation 0.5 0))
+
+    (set! annotation
+         (ly:make-stencil (ly:stencil-expr annotation)
+                          (ly:stencil-extent annotation X)
+                          (cons 10000 -10000)))
+    annotation))
 
 (define (paper-system-annotate-last system layout)
   (let*
                           #t)
       1 X))
     
+
     (add-stencil
      (ly:stencil-translate-axis 
       (annotate-y-interval layout "topmargin"
                                           #t)
                      (/ (ly:output-def-lookup layout 'linewidth) 2)
                      X)
+                    (if (= dir UP)
+                        (ly:stencil-translate-axis
+                         (annotate-y-interval layout
+                                             "topspace"
+                                             (cons
+                                              (- (min 0 (* dir sep))
+                                                 (ly:output-def-lookup layout 'pagetopspace))
+                                              (min 0 (* dir sep)))
+                                             #t)
+                         (+ 7 (interval-center (ly:stencil-extent head-stencil X))) X)
+                        empty-stencil
+                        )
                     head-stencil
                     ))
              )))
index 0085a158397d994fa7a429d139a2e6d7cc89c758..f86aeb0161591d6f7a36b245e51dcc4fb6569012 100644 (file)
@@ -73,7 +73,7 @@
     (module-define! old-mod '$defaultpaper new-paper)))
 
 (define-public paper-alist
-  '(("a7" . (cons (* 74.48 mm) (* 148.95 mm)))
+  '(("a7" . (cons (* 74.48 mm) (* 105 mm)))
     ("a6" . (cons (* 105 mm) (* 148.95 mm)))
     ("a5" . (cons (* 148.95 mm) (* 210 mm)))
     ("a4" . (cons (* 210 mm) (* 297.9 mm)))
index 4cc57b39fde0e2317592205fbb02c6090d9956a7..3fb0df8b2dc3b16a20ececd1eb010971e3447bad 100644 (file)
@@ -129,6 +129,7 @@ encloses the contents.
                            (list (real-part z) (imag-part z))))
        
        (z-dest (+ (* e_x (car destination)) (* e_y (cdr destination))))
+       (e_z (/ z-dest (magnitude z-dest)))
        (triangle-points '(-1+0.25i
                          0
                          -1-0.25i))
@@ -149,10 +150,16 @@ encloses the contents.
         `(polygon (quote ,(concatenate (map complex-to-offset p2s)))
                   0.0
                   #t) null null ) )
+       (thickness 0.1)
+       (shorten-line 0.5)
+       (start (complex-to-offset (/ (* e_z shorten-line) 2)))
+       (end (complex-to-offset (- z-dest (/ (* e_z shorten-line) 2))))
+       
        (line (ly:make-stencil
-             `(draw-line 0.1 0 0
-                         ,(car destination)
-                         ,(cdr destination))
+             `(draw-line ,thickness
+                         ,(car start) ,(cadr start)
+                         ,(car end) ,(cadr end)
+                         )
              (cons (min 0 (car destination))
                    (min 0 (cdr destination)))
              (cons (max 0 (car destination))