EPS bounding boxes and corrected call to ly:warning. Note that
serious problems with the \epsfile command remain!
+2005-08-11 Mats Bengtsson <mabe@drongo.s3.kth.se>
+
+ * scm/define-markup-commands.scm: Improved regexp to search for
+ EPS bounding boxes and corrected call to ly:warning.
+
2005-08-10 Nicolas Sceaux <nicolas.sceaux@free.fr>
* Documentation/user/programming-interface.itely (Displaying music
stil)
(define bbox-regexp
- (make-regexp "%%BoundingBox: ([0-9-]+) ([0-9-]+) ([0-9-]+) ([0-9-]+)"))
+ (make-regexp "%%BoundingBox:[ \t]+([0-9-]+)[ \t]+([0-9-]+)[ \t]+([0-9-]+)[ \t]+([0-9-]+)"))
(define (get-postscript-bbox string)
"Extract the bbox from STRING, or return #f if not present."
(if bbox
(map (lambda (x) (/ x 10)) bbox)
(begin
- (ly:warn (_ "can't find bounding box of `~a'")
+ (ly:warning (_ "can't find bounding box of `~a'")
file-name)
'()))))