Lilypond 2.10.0 and Denemo

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Lilypond 2.10.0 and Denemo

Joseph Rushton Wakeling
Hello everyone,

I've just installed the new Lilypond 2.10.0 on my Ubuntu system and was
wondering whether Denemo is compatible with this new version.  Can
anyone advise?

Although I've experimented with Lilypond before I'm still a novice, and
don't know Denemo at all, so any comments on good practice for using the
two together would be welcome. :-)

Many thanks,

    -- Joe


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Lilypond 2.10.0 and Denemo

Mats Bengtsson-4
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

Quoting Joseph Wakeling <[hidden email]>:

> Hello everyone,
>
> I've just installed the new Lilypond 2.10.0 on my Ubuntu system and was
> wondering whether Denemo is compatible with this new version.  Can
> anyone advise?
>
> Although I've experimented with Lilypond before I'm still a novice, and
> don't know Denemo at all, so any comments on good practice for using the
> two together would be welcome. :-)
>
> Many thanks,
>
>    -- Joe
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>





_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Lilypond 2.10.0 and Denemo

Tapio Tuovila
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
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Lilypond 2.10.0 and Denemo

Mats Bengtsson-4
Please send bug reports (and even better, bug fixes like below) to
[hidden email]. 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
> [hidden email]
> 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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user