The attached patch allows convert-ly to convert old
breakAlignOrder blocks to new ones.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/lilypond/lilypond/ChangeLog,v
retrieving revision 1.374
diff -r1.374 ChangeLog
0a1,4
> 2002-08-04 LEC <[EMAIL PROTECTED]>
>
> *Fix convert-ly to convert old breakAlignOrder to new.
>
Index: VERSION
===================================================================
RCS file: /cvsroot/lilypond/lilypond/VERSION,v
retrieving revision 1.435
diff -r1.435 VERSION
5c5
< MY_PATCH_LEVEL=
---
> MY_PATCH_LEVEL=lec1
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/lilypond/lilypond/aclocal.m4,v
retrieving revision 1.102
diff -r1.102 aclocal.m4
3c3
< dnl do not edit! this is aclocal.m4, generated from /users/hanwen/usr/src/lilypond/stepmake/aclocal.m4
---
> dnl do not edit! this is aclocal.m4, generated from /home/lconrad/src/lilypond/cvs/lilypond/stepmake/aclocal.m4
Index: scripts/convert-ly.py
===================================================================
RCS file: /cvsroot/lilypond/lilypond/scripts/convert-ly.py,v
retrieving revision 1.41
diff -r1.41 convert-ly.py
72a73,101
>
> def fix_break_align(str):
> break_dict = {
> "Instrument_name": "instrument-name",
> "Left_edge_item": "left-edge",
> "Span_bar": "span-bar",
> "Breathing_sign": "breathing-sign",
> "Staff_bar": "staff-bar",
> "Clef_item": "clef",
> "Key_item": "key-signature",
> "Time_signature": "time-signature",
> "Custos": "custos"
> }
> #the 1.5.x break align order strings are all different
> start_fix_string = 0
> newstr = str
> while start_fix_string >= 0:
> start_fix_string = string.find(str, ".breakAlignOrder", start_fix_string)
> if start_fix_string == -1:
> return(newstr)
> end_fix_string = string.find(str, ")", start_fix_string)
> fix_string = str[start_fix_string:end_fix_string]
> break_list = break_dict.items()
> for item in break_list:
> fix_string = string.replace(fix_string, item[0], item[1])
> newstr = str[0:start_fix_string] + fix_string + str[end_fix_string:]
> start_fix_string = end_fix_string
> return newstr
>
902a932,938
>
> if 1:
> def conv(str):
> str = fix_break_align(str)
> return(str)
> conversions.append (((1,5,71), conv,
> 'break-align-order -> current break-align-order'))
--
Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ )
(617) 661-8097 fax: (801) 365-6574
233 Broadway, Cambridge, MA 02139