]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/convertrules.py
Change space to basic-distance in spacing alists.
[lilypond.git] / python / convertrules.py
index 3ea4739db0d091dbe138b736d62dc0c6ea692029..b01e1bbaba46b74f8eed3174911645434a1d3391 100644 (file)
@@ -3108,6 +3108,13 @@ def conv(str):
 
     return str
 
+@rule ((2, 13, 42),
+    _ ("Rename space to basic-distance in various spacing alists."))
+def conv(str):
+    str = re.sub (r'\(space\s+\.\s+([0-9]*\.?[0-9]*)\)', r'(basic-distance . \1)', str)
+    str = re.sub (r"#'space\s+=\s+#?([0-9]*\.?[0-9]*)", r"#'basic-distance = #\1", str)
+    return str
+
 
 # Guidelines to write rules (please keep this at the end of this file)
 #