This is part of the SVG Tiny 1.2 spec
Note that the "path" stencil expression still needs
rounding treatment too.
;; Helper functions
(define-public (attributes attributes-alist)
(apply string-append
- (map (lambda (x) (format " ~s=\"~a\"" (car x) (cdr x)))
+ (map (lambda (x)
+ (let ((attr (car x))
+ (value (cdr x)))
+ (if (number? value)
+ (set! value (ly:format "~4f" value)))
+ (format " ~s=\"~a\"" attr value)))
attributes-alist)))
(define-public (eo entity . attributes-alist)