[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users 00823] mgp2ps bugfix and suggestion



Dear mgp devellopers,

here is a small bugfix and a suggestion for mgp2ps:

1) mgp2ps 1.09a prints an "EPSF" marker in the very first
   line of the PS output. This must be omitted because
   multi page EPSF files are not allowed. When such a file
   is printed via Aladdin Ghostscript, all pages are collapsed
   into one page.

2) Vertical space between lines in the PS output is unequal;
   consider eg. the example below.
   The problem is that the vertical space is calculated from
   the text outline (macro /calcy). This should be altered
   so that calcy returns
    a) a value only dependant from the font size
    b) the image size, if it is greater
   In the mentime the following quick and dirty workaround
   is possible:

   $ mgp2ps infile.mgp | sed 's/([^)]*) calcy/(Q) calcy/'

Any comments?

Christoph Dalitz

-- example for odd vertical spacing --------------------------------------

%page

Vertical spacing in mgp2ps


The following poem has odd vertical spacing
in the postscript output of mgp2ps:

    The sun may set and rise
    but we contrariwise
    sleep after our short light
    one everlasting night.