use new lilypond 2.25 regexes and font definitions
This commit is contained in:
@ -217,16 +217,16 @@ songs =
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Include Images once and reference them:
|
||||
#(define bbox-regexp
|
||||
(make-regexp "%%BoundingBox:[ \t]+([0-9-]+)[ \t]+([0-9-]+)[ \t]+([0-9-]+)[ \t]+([0-9-]+)"))
|
||||
(ly:make-regex "%%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."
|
||||
(let*
|
||||
((match (regexp-exec bbox-regexp string)))
|
||||
((match (ly:regex-exec bbox-regexp string)))
|
||||
|
||||
(if match
|
||||
(map (lambda (x)
|
||||
(string->number (match:substring match x)))
|
||||
(string->number (ly:regex-match-substring match x)))
|
||||
(cdr (iota 5)))
|
||||
|
||||
#f)))
|
||||
|
Reference in New Issue
Block a user