X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmusicxml2ly.py;h=172f1a8d3e44b5e36bd07141c6e7db899f9052d4;hb=1f6e0e7a473c909c5577cba57d93e5a1c6f9f975;hp=fa6e69c0cee9d63b7862805ca5c61502d8ded923;hpb=dc90b895668826a09e06ad1ef94e5e90569a870c;p=lilypond.git diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index fa6e69c0ce..172f1a8d3e 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -24,6 +24,8 @@ import musicexp from rational import Rational +lilypond_version = "@TOPLEVEL_VERSION@" + # Store command-line options in a global variable, so we can access them everywhere options = None @@ -227,7 +229,10 @@ def extract_score_information(tree): set_if_exists('encoder', ids.get_encoding_person()) set_if_exists('encodingdescription', ids.get_encoding_description()) set_if_exists('source', ids.get_source()) - set_if_exists('miscellaneous', ids.get_file_description()); + + # ... becomes + # \header { texidoc = ... + set_if_exists('texidoc', ids.get_file_description()); # Finally, apply the required compatibility modes # Some applications created wrong MusicXML files, so we need to @@ -2776,7 +2781,7 @@ If the given filename is -, musicxml2ly reads from the command line. action="help", help=_("show this help and exit")) - p.version = ('''%prog (LilyPond) @TOPLEVEL_VERSION@\n\n''' + p.version = ('%prog (LilyPond) ' + lilypond_version + '\n\n' + _ ("""Copyright (c) 2005--2015 by Han-Wen Nienhuys , @@ -3056,8 +3061,8 @@ def update_layout_information(): # \n\t\t\t\t\\override StringNumber #\'stencil = ##f def print_ly_preamble(printer, filename): - printer.dump_version() - printer.print_verbatim('% automatically converted by philomelos musicxml2ly v0.2.41\n') + printer.dump_version(lilypond_version) + printer.print_verbatim('% automatically converted by musicxml2ly from ' + filename) printer.newline() printer.dump(r'\pointAndClickOff') printer.newline()