From 4687d2d90133864e6dfb0518268d00096f1bc65b Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Fri, 1 Jul 2011 16:42:02 -0600 Subject: [PATCH] Clean up regtests for usable-duration-logs (issues 1655, 1716) Add convert-ly rule Fix vesions on regtests to be the version to which the commit applied. --- input/regression/multi-measure-rest-standard.ly | 2 +- input/regression/multi-measure-rest-tweaks.ly | 2 +- python/convertrules.py | 16 ++++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/input/regression/multi-measure-rest-standard.ly b/input/regression/multi-measure-rest-standard.ly index 8a398aab44..a5809f3e7b 100644 --- a/input/regression/multi-measure-rest-standard.ly +++ b/input/regression/multi-measure-rest-standard.ly @@ -2,7 +2,7 @@ texidoc = "Only whole, breve, longa and maxima rests are used by default for multi-measure rests." } -\version "2.15.0" +\version "2.15.2" \paper { ragged-right = ##t diff --git a/input/regression/multi-measure-rest-tweaks.ly b/input/regression/multi-measure-rest-tweaks.ly index f1ef48c275..5a70e23f50 100644 --- a/input/regression/multi-measure-rest-tweaks.ly +++ b/input/regression/multi-measure-rest-tweaks.ly @@ -2,7 +2,7 @@ texidoc = "Multi-measure rests standard values can be tweaked." } -\version "2.15.0" +\version "2.15.2" \new Staff { \override MultiMeasureRest #'usable-duration-logs = #'(2 1) \time 1/4 R4-"Use non-standard multi-measure rests." diff --git a/python/convertrules.py b/python/convertrules.py index 2761626997..56bdb9cc76 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3196,10 +3196,10 @@ def conv(str): @rule ((2, 13, 51), _ ("Woodwind diagrams: Changes to the clarinet diagram.")) def conv(str): - if re.search(r'\\woodwind-diagram\s*#[^#]*clarinet\s', str): - stderr_write("\n") - stderr_write(NOT_SMART % _("woodwind-diagrams. Clarinet fingering changed to reflect actual anatomy of instrument.\n")) - stderr_write(UPDATE_MANUALLY) + if re.search (r'\\woodwind-diagram\s*#[^#]*clarinet\s', str): + stderr_write ("\n") + stderr_write (NOT_SMART % _("woodwind-diagrams. Clarinet fingering changed to reflect actual anatomy of instrument.\n")) + stderr_write (UPDATE_MANUALLY) return str @rule ((2, 14, 0), @@ -3207,6 +3207,14 @@ def conv(str): def conv (str): return str +@rule ((2, 15, 2), + _ ("Change in internal property for MultiMeasureRest")) +def conv (str): + if re.search (r'use-breve-rest',str): + stderr_write (NOT_SMART % _("use-breve-rest. This internal property has been replaced by round-to-longer-rest and usable-duration-logs.\n")) + stderr_write (UPDATE_MANUALLY) + return str + # Guidelines to write rules (please keep this at the end of this file) # -- 2.39.2