From 450b2db3142cef89adf1d880e96e27dac88f7413 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 5 Jul 2008 03:35:04 -0700 Subject: [PATCH] Do \octave -> \octaveCheck. --- ly/music-functions-init.ly | 2 +- python/convertrules.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly index f978e36daa..a9d38dbad1 100644 --- a/ly/music-functions-init.ly +++ b/ly/music-functions-init.ly @@ -446,7 +446,7 @@ markups), or inside a score.") %% doing %% define-music-function in a .scm causes crash. -octave = +octaveCheck = #(define-music-function (parser location pitch-note) (ly:music?) (_i "octave check") diff --git a/python/convertrules.py b/python/convertrules.py index 78d9e84187..fd483a8e2c 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -2735,8 +2735,7 @@ def conv (str): "\t(format-metronome-markup text dur count context)\n") return str -@rule ((2,11,50), "Fret diagram properties moved to -fret-diagram-details") +@rule ((2,11,50), "Fret diagram properties moved to fret-diagram-details") def conv (str): fret_props = ['barre-type', 'dot-color', @@ -2758,4 +2757,9 @@ def conv (str): stderr_write ('\n') return str +@rule ((2, 11, 48), "\\octave -> \\octaveCheck") +def conv (str): + str = re.sub (r"\\octave", r"\\octaveCheck", str) + return str + -- 2.39.2