From 791047494c64b96aa5bb985b616375b901e1fb2f Mon Sep 17 00:00:00 2001 From: Valentin Villenave Date: Mon, 1 Nov 2010 17:17:20 +0100 Subject: [PATCH] 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. --- python/convertrules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), -- 2.39.2