From: Han-Wen Nienhuys Date: Sun, 5 Jan 2003 11:29:35 +0000 (+0000) Subject: (make_preview): don't suppress progress for X-Git-Tag: release/1.7.11~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f40813b7e2f8ee1d82dd24de911d8eaa96f58ee9;p=lilypond.git (make_preview): don't suppress progress for bbox extraction. --- diff --git a/ChangeLog b/ChangeLog index fbb6e5e872..ec50017521 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-05 Han-Wen Nienhuys + + * python/lilylib.py (make_preview): don't suppress progress for + bbox extraction. + 2003-01-04 Han-Wen Nienhuys * Documentation/user/appendices.itely (scheme): update for new syntax. diff --git a/python/lilylib.py b/python/lilylib.py index 2eeb328440..f33cb6bef1 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -375,15 +375,11 @@ def print_environment (): sys.stderr.write ("%s=\"%s\"\n" % (k, v)) def get_bbox (filename): - ####system ('gs -sDEVICE=bbox -q -sOutputFile=- -dNOPAUSE %s -c quit > %s.bbox 2>&1 ' % (filename, filename)) - #### FIXME: 2>&1 ? --jcn bbox = filename + '.bbox' ## -sOutputFile does not work with bbox? - ##cmd = 'gs -sDEVICE=bbox -q -sOutputFile=%s -dNOPAUSE %s -c quit' % \ - ## (bbox, filename) cmd = 'gs -sDEVICE=bbox -q -dNOPAUSE %s -c quit 2>%s' % \ (filename, bbox) - system (cmd) + system (cmd, progress_p = 1) box = open (bbox).read () m = re.match ('^%%BoundingBox: ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)', box) @@ -399,7 +395,6 @@ def make_preview (name): if not os.path.isfile (preview_ps): preview_ps = name + '.eps' bbox = get_bbox (preview_ps) - print 'bbox:' + `bbox` trans_ps = name + '.trans.ps' png = name + '.png'