]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/framework-ps.scm (dump-stencil-as-EPS): fix thinkos.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 12 Oct 2006 12:58:06 +0000 (12:58 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 12 Oct 2006 12:58:06 +0000 (12:58 +0000)
* scm/lily.scm (type-p-name-alist): add rhythmic-location? type name.

* scm/lily.scm (define-scheme-options): add clip-systems option.

* scm/framework-ps.scm (dump-stencil-as-EPS-with-bbox): new
function
(dump-stencil-as-EPS): move bbox calculation from previous
dump-stencil-as-EPS
(output-framework): use -dclip-systems

* scm/framework-ps.scm (clip-system-EPS): new function.
(clip-system-EPSes): new function.

* scm/define-grob-properties.scm (all-user-grob-properties): add
rhythmic-location property.

ChangeLog
scm/define-grob-properties.scm
scm/framework-ps.scm
scm/lily.scm

index e9aba0fb54fc8b225b9c0cbfff216c54b5d00521..df6663c9541a2c916722435bceafc6b14de65cbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-10-12  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * scm/framework-ps.scm (dump-stencil-as-EPS): fix thinkos.
+
+       * scm/lily.scm (type-p-name-alist): add rhythmic-location? type name.
+
        * Documentation/topdocs/NEWS.tely (Top): doc new clipping feature
 
        * input/regression/clip-systems.ly (Notes): new file. 
index 4edb3c336a8e0434a948e75d069aea89bf37c67d..44f55aa52b23af416965c86afb931a2ea57034bd 100644 (file)
@@ -352,7 +352,7 @@ quicker the slur attains it @code{height-limit}.")
      (remove-empty ,boolean? "If set, remove group if it contains no
 @code{interesting-items}")
      (remove-first ,boolean? "Remove the first staff of a orchestral score?")
-     (rhythmic-location ,ly:moment? "Where (bar number, measure position) in the score.")
+     (rhythmic-location ,rhythmic-location? "Where (bar number, measure position) in the score.")
      (right-padding ,ly:dimension? "Space to insert on the right side  of an object (eg. between note and its accidentals.)")
      (rotation ,list? "Number of degrees to rotate this object, and what point
 to rotate around. #'(45 0 0) means rotate 45 degrees around the center of this object.")
index 957ef0d2da1fd4c62f24b84213451b4e72b8ff91..8cb0d3610bf8b32ef3534d05315da05214c1097d 100644 (file)
   (let*
       ((xext (ly:stencil-extent dump-me X))
        (yext (ly:stencil-extent dump-me Y))
+       (left-overshoot -3)
        (bbox
        (map
         (lambda (x)
                     ;; FIXME: huh?
                   (equal? (format #f "~S" x) "+#.#")
                   (equal? (format #f "~S" x) "-#.#"))
-              0.0 x))))
+              0.0 x))
 
           ;; the left-overshoot is to make sure that
           ;; bar numbers  stick out of margin uniformly.
            (if (ly:get-option 'pad-eps-boxes) 
                (min left-overshoot (car xext))
                (car xext))
-           (car yext) (cdr xext) (cdr yext)))
+           (car yext) (cdr xext) (cdr yext)))))
 
-       (dump-stencil-as-EPS-with-bbox paper dump-me filename load-fonts bbox)))
+       (dump-stencil-as-EPS-with-bbox paper dump-me filename load-fonts bbox)
+       ))
         
           
 (define-public (dump-stencil-as-EPS-with-bbox paper dump-me filename
                     (open-file (format "~a.eps" filename) "wb")
                     "ps"))
 
-        (left-overshoot -3)
         (port (ly:outputter-port outputter))
 
         
index a36cd5eb84e1c76c28de1a1b7e640bc3cd1a13e0..b3fd34aa332a9b522c3f995a15e69adc72edab4c 100644 (file)
@@ -80,7 +80,10 @@ on errors, and print a stack trace.")
             (oop goops)
             (srfi srfi-1)
             (srfi srfi-13)
-            (srfi srfi-14))
+            (srfi srfi-14)
+            (scm clip-region)
+
+            )
 
 
 ;; my display
@@ -329,7 +332,8 @@ The syntax is the same as `define*-public'."
        (,number? . "number")
        (,output-port? . "output port")   
        (,pair? . "pair")
-       (,procedure? . "procedure") 
+       (,procedure? . "procedure")
+       (,rhythmic-location? . "rhythmic location")
        (,scheme? . "any type")
        (,string? . "string")
        (,symbol? . "symbol")
@@ -449,7 +453,8 @@ The syntax is the same as `define*-public'."
         (lambda () (ly:parse-file file-name))
         (lambda (x . args) (handler x file-name))))
 
-(use-modules (scm editor))
+(use-modules (scm editor)
+            )
 
 (define-public (gui-main files)
   (if (null? files)