from rational import Rational
+lilypond_version = "@TOPLEVEL_VERSION@"
+
# Store command-line options in a global variable, so we can access them everywhere
options = None
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());
+
+ # <miscellaneous><miscellaneous-field name="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
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 <hanwen@xs4all.nl>,
# \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()