]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/backend-svg.ly
thinkos
[lilypond.git] / input / regression / backend-svg.ly
1
2 #(ly:set-option 'backend 'svg)
3 #(set! output-count 1)
4
5
6 \include "typography-demo.ly"
7
8
9
10 #(define outname (ly:parser-output-name parser))
11
12 #(ly:set-option 'backend 'eps)
13
14 %% TODO: what to do if inkscape fails?
15 #(display "Invoking inkscape...\n")
16 #(system (format #f "inkscape -T -E ~a-1.eps ~a-1.svg" outname outname))
17 #(set! output-count 0)
18 #(set-default-paper-size "a5")
19 \book { 
20   \header {
21     texidoc = "SVG output, rendered through inkscape."
22     title = "SVG"
23   } 
24
25
26
27   \score {
28     \lyrics {
29       \markup {
30         \epsfile #X #30.0 #(format #f "~a-1.eps" outname)
31       }
32       x x x
33     }
34   }
35 }