]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/backend-svg.ly
Fix backend-svg.ly for ubuntu 6.06
[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 \version "2.11.16"
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
17 %% LD_LIBRARY_PATH is necesssary, otherwise, it doesn't build in GUB.  
18 #(ly:system (format #f "inkscape -T -E ~a-inkscape.eps ~a-1.svg" outname outname)
19   (cons
20    (format #f "FONTCONFIG_FILE=~a/fonts/fonts.conf" (ly:effective-prefix))
21    (ly:start-environment)))
22
23 #(set! output-count 0)
24 #(set-default-paper-size "a5")
25
26 \book { 
27   \header {
28     texidoc = "SVG output, rendered through inkscape."
29     title = "SVG"
30   } 
31
32   \score {
33     \lyrics {
34       \markup {
35         \epsfile #X #30.0 #(format #f "~a-inkscape.eps" outname)
36       }
37       bla bla bla
38     }
39   }
40 }