font resources from a PS file.
* scripts/lilypond-book.py (option_definitions): --psfonts option.
(Compile_error.process_include): do_file returns chunks.
* scripts/lilypond-book.py (write_if_updated): new function.
if extract_from_this:
sys.stderr.write ("Failed to extract %s from %s\n"
- % (string.join (extract_from_this, ', '), f))
+ % (string.join (extract_from_this, ', '), filename))
def write_extracted_fonts (output_file_name, font_dict):
output = open (output_file_name, 'w')
try:
chunks = do_file (file)
if psfonts_file:
+ fontextract.verbose = verbose_p
snippet_chunks = filter (lambda x: is_derived_class (x.__class__,
Lilypond_snippet),
chunks)