]> git.donarmstrong.com Git - lilypond.git/commitdiff
Adds NOT_SMART rule for auto-footnote numbering.
authorMike Solomon <mike@apollinemike.com>
Thu, 28 Jul 2011 15:39:03 +0000 (17:39 +0200)
committerMike Solomon <mike@apollinemike.com>
Thu, 28 Jul 2011 15:39:03 +0000 (17:39 +0200)
python/convertrules.py

index 56bdb9cc768402d57eb84c0ea51c43746dd710cb..bedfaaaf54cff148ee922d504a9e2dddb0e9c23c 100644 (file)
@@ -3215,6 +3215,15 @@ def conv (str):
         stderr_write (UPDATE_MANUALLY)
     return str
 
+@rule ((2, 15, 8),
+    _ ("Handling of non-automatic footnotes."))
+def conv(str):
+    if re.search (r'\\footnote', str):
+        stderr_write ("\n")
+        stderr_write (NOT_SMART % _("If you are using non-automatic footnotes, make sure to set footnote-auto-numbering = ##f in the paper block.\n"))
+        stderr_write (UPDATE_MANUALLY)
+    return str
+
 
 # Guidelines to write rules (please keep this at the end of this file)
 #