]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/mup2ly.py
vim/indent/lilypond.vim: new file.
[lilypond.git] / scripts / mup2ly.py
index 958f889fcbf6c70cda0d79868e743f776d3e5dcb..bec71107cdda3f042bdbc988e6096d4bf5aa0cba 100644 (file)
@@ -127,7 +127,7 @@ def identify ():
 def warranty ():
        identify ()
        sys.stdout.write ('\n')
-       sys.stdout.write (_ ('Copyright (c) %s by' % ' 2001--2003'))
+       sys.stdout.write (_ ('Copyright (c) %s by' % ' 2001--2004'))
        sys.stdout.write ('\n')
        sys.stdout.write ('  Han-Wen Nienhuys')
        sys.stdout.write ('  Jan Nieuwenhuizen')
@@ -183,9 +183,9 @@ def option_help_str (o):
        if o[1]:
                sh = '-%s' % o[1]
 
-       sep = ' '
+       sep = '  '
        if o[1] and o[2]:
-               sep = ','
+               sep = ', '
                
        long = ''
        if o[2]:
@@ -638,8 +638,8 @@ class Staff:
                                str = str + v.dump()
                                refs = refs + '\n  \\' + v.idstring ()
                str = str + '''
-%s = \context Staff = %s <%s
->
+%s = \context Staff = %s <<%s
+>>
 
 ''' % (self.idstring (), self.idstring (), refs)
                return str
@@ -727,7 +727,7 @@ class Chord:
                str = self.note_prefix +str  + self.note_suffix
                
                if len (self.pitches) > 1:
-                       str = '<<%s>>' % str
+                       str = '<%s>' % str
                elif self.multimeasure:
                        str = 'R'
                elif len (self.pitches) == 0:
@@ -1100,8 +1100,8 @@ class Parser:
                str = str + '''
 
 \score {
-  <%s
-  >
+  <<%s
+  >>
   \paper {}
   \midi {}
 }