* 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.
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.
(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.")
(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))
(oop goops)
(srfi srfi-1)
(srfi srfi-13)
- (srfi srfi-14))
+ (srfi srfi-14)
+ (scm clip-region)
+
+ )
;; my display
(,number? . "number")
(,output-port? . "output port")
(,pair? . "pair")
- (,procedure? . "procedure")
+ (,procedure? . "procedure")
+ (,rhythmic-location? . "rhythmic location")
(,scheme? . "any type")
(,string? . "string")
(,symbol? . "symbol")
(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)