From be33069c51a83bcb8579ec37e2527527a316a4a6 Mon Sep 17 00:00:00 2001 From: Jean-Charles Malahieude Date: Sat, 20 Nov 2010 22:57:52 +0100 Subject: [PATCH] musicxml2ly: dealing with languages - adapt the -l --language=LANG option to the new \language "LANG" clause - reflect this in the appropriate section of the Usage Manual --- Documentation/usage/external.itely | 3 +-- scripts/musicxml2ly.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/usage/external.itely b/Documentation/usage/external.itely index 2b00222b34..95f7e86481 100644 --- a/Documentation/usage/external.itely +++ b/Documentation/usage/external.itely @@ -339,8 +339,7 @@ convert pitches in absolute mode. print usage and option summary. @item -l, --language=LANG -use a different language file 'LANG.ly' and corresponding pitch names, -e.g. 'deutsch' for deutsch.ly and German note names. +use LANG for pitch names, e.g. 'deutsch' for note names in German. @item --lxml use the lxml.etree Python package for XML-parsing; uses less memory and cpu time. diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 2f4b807080..6f70baea07 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -2707,7 +2707,7 @@ information.""") % 'lilypond') p.add_option ('-l', '--language', metavar = _ ("LANG"), action = "store", - help = _ ("use a different language file 'LANG.ly' and corresponding pitch names, e.g. 'deutsch' for deutsch.ly")) + help = _ ("use LANG for pitch names, e.g. 'deutsch' for note names in German")) p.add_option ('--nd', '--no-articulation-directions', action = "store_false", @@ -3000,7 +3000,7 @@ def main (): if options.language: musicexp.set_pitch_language (options.language) needed_additional_definitions.append (options.language) - additional_definitions[options.language] = "\\include \"%s.ly\"\n" % options.language + additional_definitions[options.language] = "\\language \"%s\"\n" % options.language conversion_settings.ignore_beaming = not options.convert_beaming conversion_settings.convert_page_layout = options.convert_page_layout -- 2.39.5