X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fbook_snippets.py;h=a7f99f875f873ed349f300bde6d17bb724b1cc7a;hb=73f5ae879cb12d24eb7522dbe52e1047a2d59c13;hp=17935d635985b38d3217b70b1954302a8ec666e9;hpb=cd147bb219e90dc273602c1bafcc89ce20cf473d;p=lilypond.git diff --git a/python/book_snippets.py b/python/book_snippets.py index 17935d6359..a7f99f875f 100644 --- a/python/book_snippets.py +++ b/python/book_snippets.py @@ -38,7 +38,6 @@ EXAMPLEINDENT = 'exampleindent' FILENAME = 'filename' FILTER = 'filter' FRAGMENT = 'fragment' -LANG = 'lang' ## TODO: This is handled nowhere! LAYOUT = 'layout' LILYQUOTE = 'lilyquote' LINE_WIDTH = 'line-width' @@ -92,7 +91,6 @@ simple_options = [ PRINTFILENAME, DOCTITLE, TEXIDOC, - LANG, VERBATIM, FILENAME, ALT, @@ -196,7 +194,6 @@ PREAMBLE_LY = '''%%%% Generated by %(program_name)s \paper { %(paper_string)s - force-assignment = #"" line-width = #(- line-width (* mm %(padding_mm)f)) } @@ -686,7 +683,8 @@ printing diff against existing file." % filename) # UGH - junk self.global_options skip_lily = self.global_options.skip_lilypond_run - for required in [base + '.ly']: + for required in [base + '.ly', + base + '.txt']: require_file (required) if not skip_lily: require_file (base + '-systems.count') @@ -935,6 +933,8 @@ printing diff against existing file.") % filename) out = file (filename, 'w') out.write (self.full_ly ()) out.close () + file (path + '.txt', 'w').write ('image of music') + class LilyPondVersionString (Snippet):