]> git.donarmstrong.com Git - lilypond.git/commitdiff
musicxml2ly: dealing with languages
authorJean-Charles Malahieude <lilyfan@orange.fr>
Sat, 20 Nov 2010 21:57:52 +0000 (22:57 +0100)
committerJean-Charles Malahieude <lilyfan@orange.fr>
Sat, 20 Nov 2010 21:57:52 +0000 (22:57 +0100)
- 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
scripts/musicxml2ly.py

index 2b00222b3402b79be7b7d560ff16f785391510fe..95f7e86481f51c58c25f98f4c5fc6ecdabcb1edf 100644 (file)
@@ -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.
index 2f4b807080b82b615973bef22e00988dd4697d24..6f70baea076de06f18ecc608fc496d16c084869a 100644 (file)
@@ -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