From c008960197e46adf37ad126669d2de1802d082e1 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 8 Jun 2007 00:21:09 -0300 Subject: [PATCH] fix convertly problem. Junk fault lsr import file. --- input/lsr/text/creating-text-spanners.ly | 42 ------------------------ python/convertrules.py | 6 +++- 2 files changed, 5 insertions(+), 43 deletions(-) delete mode 100644 input/lsr/text/creating-text-spanners.ly diff --git a/input/lsr/text/creating-text-spanners.ly b/input/lsr/text/creating-text-spanners.ly deleted file mode 100644 index 26fb9398f3..0000000000 --- a/input/lsr/text/creating-text-spanners.ly +++ /dev/null @@ -1,42 +0,0 @@ -%% Do not edit this file; it is auto-generated from LSR! -\version "2.11.23" - -\header { texidoc = " -The \startTextSpan and \stopTextSpan commands give you the ability to -create text spanners as easily as pedals indications or octavations. -Override some properties of the TextSpanner object to modify its -output. -" } - -\relative c''{ - \override TextSpanner #'edge-text = #'("bla" . "blu") - a \startTextSpan - b c - a \stopTextSpan - - \override TextSpanner #'dash-period = #2 - \override TextSpanner #'dash-fraction = #0.0 - a \startTextSpan - b c - a \stopTextSpan - - \revert TextSpanner #'style - \override TextSpanner #'style = #'dashed-lineNone \override TextSpanner #'bound-details #'left #'text = \markup { \draw-line #'(0 . 1) } -None \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . -2) } - - a \startTextSpan - b c - a \stopTextSpan - - - \set Staff.middleCPosition = #-13 - - \override TextSpanner #'dash-period = #10 - \override TextSpanner #'dash-fraction = #.5 - \override TextSpanner #'thickness = #10 - a \startTextSpan - b c - a \stopTextSpan - \set Staff.middleCPosition = #-6 -} - diff --git a/python/convertrules.py b/python/convertrules.py index f2d9dbd9ca..147813ef19 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -2986,8 +2986,12 @@ def conv (str): ('right', m.group (4))]: if h and float (h): + once = m.group(1) + if not once: + once = '' + s += (r"%s \override %s #'bound-details #'%s #'text = \markup { \draw-line #'(0 . %s) }" - % (m.group(1), m.group (2), var, h)) + % (once, m.group (2), var, h)) s += '\n' -- 2.39.5