From: Valentin Villenave Date: Mon, 1 Nov 2010 16:17:20 +0000 (+0100) Subject: Convert-ly: fix regexp for Dynamics context X-Git-Tag: release/2.13.39-1~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=791047494c64b96aa5bb985b616375b901e1fb2f;p=lilypond.git Convert-ly: fix regexp for Dynamics context The regexp was too greedy and also removed Performer_groups (e.g. Piano template). The new rule prints a comment in lieu of the removed \context{} block. --- diff --git a/python/convertrules.py b/python/convertrules.py index 91380958bd..d1d393ae5f 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -2950,8 +2950,8 @@ you must now specify the distances between staves rather than the offset of stav str = re.sub ('ly:(system-start-text::print|note-head::brew-ez-stencil|ambitus::print)', '\\1', str) str = re.sub ('(\\bBeam\\s+#\')(?=thickness\\b)', '\\1beam-', str) - str = re.sub (r'(\\context\s*\{{1}[^\}]+\\name\s+"*Dynamics"*[^\}]*\}{1})', - '', str) + str = re.sub (r'(\\context\s*\{{1}[^\}]+\\type\s+\"?Engraver_group\"?\s+\\name\s+"*Dynamics"*[^\}]*\}{1})', + '% [Convert-ly] The Dynamics context is now included by default.', str) return str @rule ((2, 13, 10),