2003-09-19 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * scripts/lilypond.py (escape_path): escape spaces in directory names
+
* input/test/text-spanner.ly: fixes.
2003-09-19 Heikki Junes <hjunes@cc.hut.fi>
@itemize
+@item
+Crescendos can now be drawn dotted or stippled.
+
@item
Quarter tones are now supported. They are entered by suffixing
@code{ih} for a half-sharp and @code{eh} for a half-flat. Hence, the
\consists "Instrument_name_engraver"
\consists "Grob_pq_engraver"
\consists "Forbid_line_break_engraver"
+ \consists "String_number_engraver"
\consistsend "Axis_group_engraver"
minimumVerticalExtent = #'(-6 . 6)
dict[key] = [val]
+def escape_path (x):
+ return re.sub ('([ \n\t\\\\])', r'\\\1',x)
+
def run_lilypond (files, dep_prefix):
+ def make_include_option (x):
+ return '-I %s' % escape_path (x)
opts = ''
- opts = opts + ' ' + string.join (map (lambda x : '-I ' + x,
- include_path))
+ opts = opts + ' ' + string.join (map (make_include_option, include_path))
if pseudo_filter_p:
opts = opts + ' --output=lelie'
if paper_p:
if dep_prefix:
opts = opts + ' --dep-prefix=%s' % dep_prefix
- fs = string.join (files)
+ fs = string.join (map (escape_path, files))
global verbose_p
if verbose_p:
outbase = ly.strip_extension (outbase, i)
for i in files[:] + [output_name]:
- if string.find (i, ' ') >= 0:
+ b = os.path.basename (i)
+ print b
+ if string.find (b, ' ') >= 0:
ly.error (_ ("filename should not contain spaces: `%s'") %
i)
ly.exit (1)