]> git.donarmstrong.com Git - lilypond.git/commitdiff
(make_preview): don't suppress progress for
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 5 Jan 2003 11:29:35 +0000 (11:29 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 5 Jan 2003 11:29:35 +0000 (11:29 +0000)
bbox extraction.

ChangeLog
python/lilylib.py

index fbb6e5e8723481e4cdb54619057fcf67c8df5429..ec500175216ed6b4a3f76f82ba4432ff5626cc64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-05  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * python/lilylib.py (make_preview): don't suppress progress for
+       bbox extraction.
+
 2003-01-04  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
        * Documentation/user/appendices.itely (scheme): update for new syntax.
index 2eeb328440e01e3bc5c0b0f903d1540c10bebe2a..f33cb6bef15a424651129ea56827728d130996be 100644 (file)
@@ -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'