lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond 2.10.0 and Denemo


From: Mats Bengtsson
Subject: Re: Lilypond 2.10.0 and Denemo
Date: Wed, 15 Nov 2006 13:05:58 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060909)

Please send bug reports (and even better, bug fixes like below) to
address@hidden I forward this email there!

  /Mats

Tapio Tuovila wrote:
Mats Bengtsson kirjoitti:
Probably, you will have to update the syntax of the file from Denemo
using convert-ly, but I wouldn't expect any other problems.

  /Mats

But yes, there seems to be a minor problem with convert-ly in 2.10.0

I would suggest that there are two possible mistakes in convertrules.py
of 2.10.0 (linux-x86 GUB, on Suse10.1)
so that convert-ly gets stuck at 2.7.14 conversion if the original .ly
file is some earlier version. (Currently Denemo exports .ly file
\version "2.6.0")

It seems to me that convertrules.py line 2636 and line 2638 there is
missing ", str" before the last ")"
I added those and then convert-ly seemed to work OK also with version
2.6.0 files as exported by Denemo.  Is this correct solution?

Greetings, Tapio


Snippet follows

<< convertrules.py, line 2617 -> >>
conversions.append (((2, 7, 13), conv,
             '''layout engine refactoring. [FIXME] '''))



def conv (str):
    str = re.sub (r"\\override +([A-Z.a-z]+) #'callbacks",
          r"\\override \1", str)
    str = re.sub (r"\\revert ([A-Z.a-z]+) #'callbacks % ([a-zA-Z]+)",
          r"\\revert \1 #'\2", str)
    str = re.sub (r"([XY]-extent)-callback", r'\1', str)
    str = re.sub (r"RemoveEmptyVerticalGroup", "VerticalAxisGroup", str)
    str = re.sub (r"\\set ([a-zA-Z]*\.?)minimumVerticalExtent",
          r"\\override \1VerticalAxisGroup #'minimum-Y-extent",
          str)
    str = re.sub (r"minimumVerticalExtent",
          r"\\override VerticalAxisGroup #'minimum-Y-extent",
          str)
    str = re.sub (r"\\set ([a-zA-Z]*\.?)extraVerticalExtent",
          r"\\override \1VerticalAxisGroup #'extra-Y-extent", str) <==
here I added the ", str"; this is line 2636 ***************************
    str = re.sub (r"\\set ([a-zA-Z]*\.?)verticalExtent",
          r"\\override \1VerticalAxisGroup #'Y-extent", str) <== here I
also added the ", str"; this is line 2638 ***************************
    return str




_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]