From 888f911fa4efc6e1ba96947cfeed781c955b6d92 Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Thu, 3 Jul 2008 18:58:45 -0600 Subject: [PATCH] Add convesion rule for fret-diagram-details --- python/convertrules.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) 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""")) + -- 2.39.5