From e8867ac075238fedb4d4549674df6bf6d1e7f987 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sat, 13 Dec 2008 00:34:39 +0100 Subject: [PATCH] MusicXML: Improve barline style conversions -) Dashed barlines are implemented as \bar "dashed" -) Convert short barlines to \bar"|" rather than \bar"'" --- python/musicexp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5