+2006-04-22 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scm/stencil.scm (eps-file->stencil): fix EPS PS embedding code
+
2006-04-21 Erlend Aasland <erlenda@gmail.com>
* ly/engraver-init.ly: remove old comments from TabVoice
shiftDurations =
#(define-music-function (parser location dur dots arg) (integer? integer? ly:music?)
+ ""
+
+
(music-map
(lambda (x)
(shift-one-duration-log x dur dots)) arg))
(define-public (object-type obj)
(match-predicate obj type-p-name-alist))
-
+(define-public (object-type-name obj)
+ (type-name (match-predicate obj type-p-name-alist)))
(define-public (type-name predicate)
(let ((entry (assoc predicate type-p-name-alist)))
(if (pair? entry) (cdr entry)
(NoteEvent
. (
(description . "A note.")
-
(types . (general-music event note-event rhythmic-event melodic-event))
))
((null? stils) empty-stencil)
((null? (cdr stils)) (car stils))
(else (ly:stencil-combine-at-edge
- (car stils) axis dir (stack-stencils-padding-list axis dir (cdr padding) (cdr stils))
+ (car stils)
+ axis dir
+ (stack-stencils-padding-list axis dir (cdr padding) (cdr stils))
(car padding)))))
(define-public (centered-stencil stencil)
'embedded-ps
(string-append
(format
- "BeginEPSF
+ "
+gsave
+currentpoint translate
+BeginEPSF
~a ~a scale
%%BeginDocument: ~a
" factor factor
)
contents
"%%EndDocument
-EndEPSF"))
+EndEPSF
+grestore
+"))
(cons (list-ref scaled-bbox 0) (list-ref scaled-bbox 2))
(cons (list-ref scaled-bbox 1) (list-ref scaled-bbox 3)))