% llx lly urx ury URI
/mark_URI
-% It's possible to eliminate the coordinate variables by doing [ /Rect [ 7 3
-% roll. That is, however, kind of ugly. It would be nice if this procedure
-% were only included when PDF marks are enabled.
{
- /command exch def
+ /uri exch def
/ury exch def
/urx exch def
/lly exch def
/Action
<<
/Subtype /URI
- /URI command
+ /URI uri
>>
/Subtype /Link
/ANN
(yextent (ly:stencil-extent stil Y))
(old-expr (ly:stencil-expr stil))
(url-expr (list 'url-link url `(quote ,xextent) `(quote ,yextent))))
+
(ly:stencil-add (ly:make-stencil url-expr xextent yextent) stil)))
'(Staff (any-octave . 0) (same-octave . 1)
GrandStaff (any-octave . 0) (same-octave . 1))
pcontext))
+
;; do not set localKeySignature when a note alterated differently from
;; localKeySignature is found.
;; Causes accidentals to be printed at every note instead of
;; remembered for the duration of a measure.
- ;; accidentals not being remembered, causing accidentals always to be typeset relative to the time signature
+ ;; accidentals not being remembered, causing accidentals always to
+ ;; be typeset relative to the time signature
+
((equal? style 'forget)
(set-accidentals-properties '()
'(Staff (same-octave . -1))
"\n unknown\n")
(define (url-link url x y)
- (ly:format "~a ~a ~a ~a (~a) mark_URI"
+ (ly:format "~a ~a currentpoint vector_add ~a ~a currentpoint vector_add (~a) mark_URI"
(car x)
(car y)
(cdr x)