]> git.donarmstrong.com Git - lilypond.git/commitdiff
(make_pixmap): let gs write to
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 15 Sep 2002 11:29:11 +0000 (11:29 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 15 Sep 2002 11:29:11 +0000 (11:29 +0000)
outputfile directly

ChangeLog
scripts/lilypond-book.py

index 9191077ff5b7b8cb74f4917d485253fedd67e331..f1996ef337f570d97c2928a1da474a781fe8158d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,44 @@
+2002-09-15  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * scripts/lilypond-book.py (make_pixmap): let gs write to
+       outputfile directly
+
+2002-09-15  Werner Lemberg  <wl@gnu.org>
+
+       Improving LilyPond's output to make them ordinary TeX boxes with
+       predictable dimensions.  System boxes are now vertically centered on
+       the baseline; this offset can be further controlled with
+       \lilypondscoreshift.
+
+       * lily/system.cc (System::post_processing): Pass length of current
+       system to `start-system' (including any horizontal indentation).
+
+       * scm/tex.scm, scm/pdftex.scm: Make output of various functions
+       prettier.
+       (lily-def): Append `%'.
+       (start-system): Add parameter `wd'.  Output more TeX code to specify
+       box dimensions.
+       (stop-system, stop-last-system): Complement changes in
+       `start-system'.
+       * scm/sketch.scm, scm/ps.scm, scm/pdf.scm, scm/ascii-script.scm:
+       Updated.
+
+       * scripts/ly2dvi.py (global_latex_definition): Set \parindent to 0.
+       * buildscripts/mf-to-table.py (write_tex_defs): Append `%'.
+       Write final `\endinput'.
+
+       * tex/lily-ps-defs.tex, tex/lily-pdf-defs.tex,
+       tex/lilypond-plaintex.tex, tex/lilypond-latex.tex,
+       tex/lilyponddefs.tex, tex/titledefs.tex: Reformat code.  Assure that
+       files and macro definitions don't produce spurious spaces and
+       paragraphs (using \endlinechar).
+       * tex/lilyponddefs.tex: New dimension `\scoreshift'.
+
+       * Documentation/user/internals.itely: Improved formatting, fixing
+       typos
+       Added a section `Output details' to describe how the TeX code
+       looks like.
+
 2002-09-15  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
        * lily/simultaneous-music-iterator.cc
index d1882ce2ec5e43a3731e8f66359febe2009f5108..47db68f0b36f31bdb9e4caeb2ab69fc5bd877ce0 100644 (file)
@@ -1074,7 +1074,9 @@ def quiet_system (cmd, name):
        return system (cmd)
 
 def get_bbox (filename):
-       system ('gs -sDEVICE=bbox -q  -sOutputFile=- -dNOPAUSE %s -c quit > %s.bbox 2>&1 ' % (filename, filename))
+
+       # gs bbox device is ugh, it always prints of stderr.
+       system ('gs -sDEVICE=bbox -q  -sOutputFile=- -dNOPAUSE %s -c quit > %s.bbox 2>&1' % (filename, filename))
 
        box = open (filename + '.bbox').read()
        m = re.match ('^%%BoundingBox: ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)', box)
@@ -1096,9 +1098,9 @@ def make_pixmap (name):
        x = (2* margin + bbox[2] - bbox[0]) * res / 72.
        y = (2* margin + bbox[3] - bbox[1]) * res / 72.
 
-       cmd = r'''gs -g%dx%d -sDEVICE=pnggray  -dTextAlphaBits=4 -dGraphicsAlphaBits=4  -q -sOutputFile=- -r%d -dNOPAUSE %s %s -c quit  > %s'''
+       cmd = r'''gs -g%dx%d -sDEVICE=pnggray  -dTextAlphaBits=4 -dGraphicsAlphaBits=4  -q -sOutputFile=%s -r%d -dNOPAUSE %s %s -c quit '''
        
-       cmd = cmd % (x, y, res, name + '.trans.eps', name + '.eps',name + '.png')
+       cmd = cmd % (x, y, name + '.png', res, name + '.trans.eps', name + '.eps')
        status = 0
        try:
                status = system (cmd)