@@ -62,16 +62,20 @@ Function CallLilyPond() As Boolean
62
62
End If
63
63
If sFormat=" png" Then
64
64
If bTransparentBackground Then
65
- sCommand = sCommand & " -dno-delete-intermediate-files -dpixmap-format=pngalpha --png " & sBackendOpt & " -dresolution=" & iGraphicDPI & " " & constOLyFileName & " .ly >" & constOLyFileName & " .out 2>& 1; "
65
+ sCommand = sCommand & " -dno-delete-intermediate-files -dpixmap-format=pngalpha --png " & sBackendOpt & " -dresolution=" _
66
+ & iGraphicDPI & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
67
+ & " >" & constOLyFileName & " .out 2>& 1; "
66
68
Else
67
- sCommand = sCommand & " -dno-delete-intermediate-files --png " & sBackendOpt & " -dresolution=" & iGraphicDPI & " " & constOLyFileName & " .ly >" & constOLyFileName & " .out 2>& 1; "
69
+ sCommand = sCommand & " -dno-delete-intermediate-files --png " & sBackendOpt & " -dresolution=" _
70
+ & iGraphicDPI & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
71
+ & " >" & constOLyFileName & " .out 2>& 1; "
68
72
End If
69
73
ElseIf sFormat=" eps" Then
70
- sCommand = sCommand & " " & sBackendOpt & " -f eps " & constOLyFileName & " .ly >" & constOLyFileName & " .out 2>& 1; "
74
+ sCommand = sCommand & " " & sBackendOpt & " -f eps " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
75
+ & " >" & constOLyFileName & " .out 2>& 1; "
71
76
ElseIf sFormat=" svg" Then
72
- sCommand = sCommand & " " & sBackendOpt & " " & constOLyFileName & " .ly >" & constOLyFileName & " .out 2>& 1; "
73
- ' sCommand = sCommand & " " & sBackendOpt & " " & Chr(34) & ConvertFromURL(sTmpPath) & " /" & constOLyFileName & " .ly" & Chr (34) _
74
- ' & " >" & constOLyFileName & " .out 2>& 1; "
77
+ sCommand = sCommand & " " & sBackendOpt & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
78
+ & " >" & constOLyFileName & " .out 2>& 1; "
75
79
End If
76
80
sCommand=sCommand & " if [ $? -ge 126 ]; then touch LilyPond-cannot_execute; fi" ' not found -> 127, denied -> 126
77
81
BashCommand(sCommand)
0 commit comments