From: Carl Sorensen Date: Fri, 4 Jul 2008 00:58:45 +0000 (-0600) Subject: Add convesion rule for fret-diagram-details X-Git-Tag: release/2.11.51-1~24^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=888f911fa4efc6e1ba96947cfeed781c955b6d92;p=lilypond.git Add convesion rule for fret-diagram-details --- diff --git a/python/convertrules.py b/python/convertrules.py index 28577d9140..5a4bbe0c6b 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3064,4 +3064,29 @@ def conv (str): "\t(format-metronome-markup text dur count context)\n") return str -conversions.append (((2, 11, 50), conv, """metronomeMarkFormatter uses text markup as second argument""")) \ No newline at end of file +conversions.append (((2, 11, 50), conv, """metronomeMarkFormatter uses text markup as second argument""")) + + +def conv (str): + fret_props = ['barre-type', + 'dot-color', + 'dot-radius', + 'finger-code', + 'fret-count', + 'label-dir', + 'number-type', + 'string-count', + 'xo-font-magnification', + 'mute-string', + 'open-string', + 'orientation'] + for prop in fret_props: + if re.search ( prop, str): + stderr_write ('\n') + stderr_write (NOT_SMART % + prop + " in fret-diagram properties. Use fret-diagram-details.") + stderr_write ('\n') + return str + +conversions.append (((2, 11, 50), conv, """Fret diagram properties moved to fret-diagram-details""")) +