X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fbackend-svg.ly;h=59cef068bce4b3a4e9e99182471f4c5ed0233e2a;hb=96daa4430aac946efe392e8ee9986c88e55a3d9e;hp=f1db2af060ee4378bce543506af8e085427fd603;hpb=49c958671d81893981685a58a52bc2ae5723d02a;p=lilypond.git diff --git a/input/regression/backend-svg.ly b/input/regression/backend-svg.ly index f1db2af060..59cef068bc 100644 --- a/input/regression/backend-svg.ly +++ b/input/regression/backend-svg.ly @@ -1,35 +1,47 @@ - +%{ #(ly:set-option 'backend 'svg) #(set! output-count 1) \include "typography-demo.ly" - +\version "2.11.51" #(define outname (ly:parser-output-name parser)) #(ly:set-option 'backend 'eps) %% TODO: what to do if inkscape fails? -#(display "Invoking inkscape...\n") -#(system (format #f "inkscape -T -E ~a-1.eps ~a-1.svg" outname outname)) +#(ly:progress "Invoking inkscape...\n") + +%% LD_LIBRARY_PATH is necesssary, otherwise, it doesn't build in GUB. +%% LD_LIBRARY_PATH is part of the start-environment but should be switched off +%% for external inkscape. +#(let* + ((cmd (format #f + "LD_LIBRARY_PATH= inkscape --without-gui --export-text-to-path --export-eps ~a-inkscape.eps ~a-1.svg" outname outname))) + (ly:progress "Running ~a" cmd) + (ly:system cmd) + (cons + (format #f "FONTCONFIG_FILE=~a/fonts/fonts.conf" (ly:effective-prefix)) + (ly:start-environment))) + #(set! output-count 0) #(set-default-paper-size "a5") + \book { \header { texidoc = "SVG output, rendered through inkscape." title = "SVG" } - - \score { \lyrics { \markup { - \epsfile #X #30.0 #(format #f "s-1.eps" outname) + \epsfile #X #30.0 #(format #f "~a-inkscape.eps" outname) } - x x x + bla bla bla } } } +%}