From: Reinhold Kainhofer Date: Fri, 12 Dec 2008 23:34:39 +0000 (+0100) Subject: MusicXML: Improve barline style conversions X-Git-Tag: release/2.12.0-1~31 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e8867ac075238fedb4d4549674df6bf6d1e7f987;p=lilypond.git MusicXML: Improve barline style conversions -) Dashed barlines are implemented as \bar "dashed" -) Convert short barlines to \bar"|" rather than \bar"'" --- diff --git a/python/musicexp.py b/python/musicexp.py index b1df9417f7..440fcbfb3f 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -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: