From: fred Date: Wed, 27 Mar 2002 02:04:51 +0000 (+0000) Subject: lilypond-1.5.27 X-Git-Tag: release/1.5.59~367 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e685b1093b92bb4bb906d70a5fdc69e2c023ac49;p=lilypond.git lilypond-1.5.27 --- diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 2e13e651fd..4e431b030f 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -467,7 +467,11 @@ re_dict = { 'verb': r"""(?P@code{.*?})""", 'lilypond-file': '(?m)^(?!@c)(?P@lilypondfile(\[(?P.*?)\])?{(?P[^}]+)})', 'lilypond' : '(?m)^(?!@c)(?P@lilypond(\[(?P.*?)\])?{(?P.*?)})', +# pyton2.2b2 barfs on this 'lilypond-block': r"""(?m)^(?!@c)(?P(?s)(?P@lilypond(\[(?P.*?)\])?\s(?P.*?)@end lilypond\s))""", + +# 1.5.2 barfs on this. +# 'lilypond-block': r"""(?m)^(?!@c)(?P@lilypond(\[(?P.*?)\])?\s(?P.*?)@end lilypond\s)""", 'option-sep' : ',\s*', 'intertext': r',?\s*intertext=\".*?\"', 'multiline-comment': r"(?sm)^\s*(?!@c\s+)(?P@ignore\s.*?@end ignore)\s", @@ -511,8 +515,8 @@ def bounding_box_dimensions(fname): str = fd.read () s = re.search('%%BoundingBox: ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)', str) if s: - return (int(s.group(3))-int(s.group(1)), - int(s.group(4))-int(s.group(2))) + return (int (s.group (3) - s.group (1) + 0.5), + int (s.group (4) - s.group (2) + 0.5)) else: return (0,0)