From: David Kastrup Date: Fri, 27 Sep 2013 13:40:54 +0000 (+0200) Subject: Add one-time convert-ly rule for grace beaming X-Git-Tag: release/2.17.28-1~11 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bbdf994d643ea96c3cabfb40fbe2f4d22af93233;p=lilypond.git Add one-time convert-ly rule for grace beaming --- diff --git a/python/convertrules.py b/python/convertrules.py index 1ab911cca2..2202cf0d99 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3672,6 +3672,12 @@ def conv(str): stderr_write (_ ("Staff-padding now controls the distance to the baseline, not the nearest point.")) return str +@rule((2, 17, 28), r'''\grace { x[ ... ] } -> \grace { x ... }''') +def conv(str): + str = re.sub (r"(\\(?:grace|appoggiatura|acciaccatura|slashedGrace)\s*\{\s*(?:[()a-zA-Z',0-9.]|\\[()])*)\[([^][{}]*)\]((?:[()]|\\[()]|\s)*\})", + r"\1\2\3", str) + return str + # Guidelines to write rules (please keep this at the end of this file) # # - keep at most one rule per version; if several conversions should be done,