X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fconvertrules.py;h=063da1f4f9ca6d35f184b975cf2cff62d6ab5d0d;hb=a64a249d392abb438c598c319ea544fb23d626ca;hp=05bdbd813772268afb2703255e62b1c5d80db536;hpb=de0fb7239295233a76b26fbda5b989142653cac7;p=lilypond.git diff --git a/python/convertrules.py b/python/convertrules.py index 05bdbd8137..063da1f4f9 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3044,6 +3044,18 @@ def conv(str): stderr_write(UPDATE_MANUALLY) return str +@rule ((2, 13, 31), + _ ("Woodwind diagrams: Move size, thickness, and graphic from argument list to properties.\n\ +Deprecate negative dash-period for hidden lines: use #'style = #'none instead.")) +def conv(str): + if re.search(r'woodwind-diagram', str): + stderr_write("\n") + stderr_write(NOT_SMART % _("woodwind-diagrams. Move size, thickness, and graphic to properties. Argument should be just the key list.\n")) + stderr_write(UPDATE_MANUALLY) + str = re.sub (r"dash-period\s+=\s*#\s*-[0-9.]+", + r"style = #'none", + 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,