]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Improve barline style conversions
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 12 Dec 2008 23:34:39 +0000 (00:34 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 13 Dec 2008 12:33:38 +0000 (13:33 +0100)
-) Dashed barlines are implemented as \bar "dashed"
-) Convert short barlines to \bar"|" rather than \bar"'"

python/musicexp.py

index b1df9417f7531cfadcddf8bd72f9cd87d6852ccd..440fcbfb3f1c12c87957c79b2f204f95b2efcf0f 100644 (file)
@@ -892,10 +892,10 @@ class BarLine (Music):
         self.type = None
         
     def print_ly (self, printer):
-        bar_symbol = { 'regular': "|", 'dotted': ":", 'dashed': ":",
+        bar_symbol = { 'regular': "|", 'dotted': ":", 'dashed': "dashed",
                        'heavy': "|", 'light-light': "||", 'light-heavy': "|.",
                        'heavy-light': ".|", 'heavy-heavy': ".|.", 'tick': "'",
-                       'short': "'", 'none': "" }.get (self.type, None)
+                       'short': "'|", 'none': "" }.get (self.type, None)
         if bar_symbol <> None:
             printer.dump ('\\bar "%s"' % bar_symbol)
         else: