(ly:input-file-line-column music-origin)
#f
))
+ (file (if location (string-append (getcwd) "/" (car location))
+ #f))
(x-ext (ly:grob-extent grob grob X))
(y-ext (ly:grob-extent grob grob Y))
)
- (if location
- (format "~a ~a ~a ~a (~a:~a:~a) mark_file_line\n"
+ (if (and location
+ (< 0 (interval-length x-ext))
+ (< 0 (interval-length y-ext)))
+
+ (format "~a ~a ~a ~a (textedit://~a:~a:~a) mark_URI\n"
(+ (car offset) (car x-ext))
(+ (cdr offset) (car y-ext))
(+ (car offset) (cdr x-ext))
(+ (cdr offset) (cdr y-ext))
- (car location)
+ file
(cadr location)
(caddr location))
"")))
+(define (url-link url x y)
+ (format "~a ~a ~a ~a (~a) mark_URI"
+ (car x)
+ (car y)
+ (cdr x)
+ (cdr y)
+ url))
+
;; WTF is this in every backend?
(define (horizontal-line x1 x2 th)
(draw-line th x1 0 x2 0))