From: Han-Wen Nienhuys Date: Fri, 8 Jun 2007 03:21:09 +0000 (-0300) Subject: fix convertly problem. Junk fault lsr import file. X-Git-Tag: release/2.11.26-1~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c008960197e46adf37ad126669d2de1802d082e1;p=lilypond.git fix convertly problem. Junk fault lsr import file. --- 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'