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