* scm/lily-library.scm (offset-flip-y): New function.
* scm/framework-gnome.scm (tweak): Use it.
* scm/lily.scm (ly:all-stencil-expressions): Add url-link.
* scm/output-ps.scm (url-link): Move.
(white-text): Warn user about brokenness.
2005-03-01 Jan Nieuwenhuizen <janneke@gnu.org>
+ * scm/output-ps.scm (offset-add): Remove.
+
+ * scm/lily-library.scm (offset-flip-y): New function.
+ * scm/framework-gnome.scm (tweak): Use it.
+
* scm/output-gnome.scm (grob-cause): Add parameter.
* scm/lily.scm (ly:all-stencil-expressions): Add url-link.
(let* ((grob (hashq-ref (item-grobs go) item #f))
(extra-offset (ly:grob-property grob 'extra-offset))
(origin (if (null? extra-offset) '(0 . 0)
- (cons (car extra-offset)
- (- 0 (cdr extra-offset))))))
+ (offset-flip-y extra-offset))))
(if grob
- (ly:insert-tweak grob (list tweak-grob-property
- 'extra-offset
- (offset-add origin offset))))))
+ (ly:insert-tweak
+ grob (list tweak-grob-property
+ 'extra-offset
+ (offset-flip-y (offset-add origin offset)))))))
(define-method (save-tweaks (go <gnome-outputter>))
(let* ((dumper (ly:make-dumper))
(cons (+ (car a) (car b))
(+ (cdr a) (cdr b))))
+(define-public (offset-flip-y o)
+ (cons (car o) (- (cdr o))))
+
(define-public (ly:list->offsets accum coords)
(if (null? coords)
accum
(define (escape-parentheses s)
(regexp-substitute/global #f "(^|[^\\])([\\(\\)])" s 'pre 1 "\\" 2 'post))
-(define (offset-add a b)
- (cons (+ (car a) (car b))
- (+ (cdr a) (cdr b))))
-
(define (ps-encoding text)
(escape-parentheses text))