From: fred Date: Wed, 27 Mar 2002 00:35:15 +0000 (+0000) Subject: lilypond-1.3.121 X-Git-Tag: release/1.5.59~1009 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff93b3f30ab75df037be9c90dd297acc1993b50a;p=lilypond.git lilypond-1.3.121 --- diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py index 01e5b31020..045371f4e5 100644 --- a/scripts/convert-ly.py +++ b/scripts/convert-ly.py @@ -612,6 +612,22 @@ if 1: conversions.append (((1,3,117), conv, 'identifier names: $!foo_bar_123 -> xfooBarABC')) +if 1: + def conv (str): + def regularize_paper (match): + return regularize_id (match.group (1)) + + str = re.sub ('(paper_[a-z]+)', regularize_paper, str) + str = re.sub ('sustainup', 'sustainUp', str) + str = re.sub ('sustaindown', 'sustainDown', str) + str = re.sub ('sostenutoup', 'sostenutoUp', str) + str = re.sub ('sostenutodown', 'sostenutoDown', str) + str = re.sub ('unachorda', 'unaChorda', str) + str = re.sub ('trechorde', 'treChorde', str) + + return str + + conversions.append (((1,3,120), conv, 'paper_xxx -> paperXxxx, pedalup -> pedalUp.')) ############################