9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "John A. Murdie" <john@cs.york.ac.uk>
To: 9fans@cse.psu.edu, john@cs.york.ac.uk
Subject: [9fans] Re: psutils et al
Date: Thu, 15 Feb 2001 09:43:35 +0000	[thread overview]
Message-ID: <E14TKx9-0002eE-00@minster.cs.york.ac.uk> (raw)


nemo@gsyc.escet.urjc.es wrote:
>Yep. I knew them, but almost all of them I tried in Linux either
>did not work as they said, or broke the postscript. Nevertheless,
>mpage -1 -l worked fine in linux. Perhaps it's time to consider a
>port of mpage to Plan9, since my problem was that I was
>unable to do this under plan9.
>
>I read the gs documentation and seems that viewers that
>do the rotate thing are using postscript routines to change
>the page orientation, so I think that unless page could go the
>same way, there is no simple gs option to rotate the ps.
>In any case, I'd say that's  the job of a filter and not of
>page.
>
>hth to others with the same problem.

The psutils are fine; it's usually bad PostScript that causes
them to go wrong. Their manual pages emphasise that they will
only cope with Document Structure Convention -conforming PostScript
(see Appendix G of the second edition of the PostScript LRM; this
appendix has been taken out of the current third edition). This
means much more than their having all the correct DSC pseudo
PostScript comments, by the way; a common misbelief. It's
not really the psutils author's fault that the psutils would
require to use a PostScript program analyser to detect bad input,
and even more effort to process non-conforming PostScript correctly.
He had the option of doing nothing, or making the best of a bad
job and writing something that worked most of the time.

The major offender providing bad PostScript is, in my experience,
- yes, you've guessed it - Microsoft. I spend many minutes a
week dealing with badly generated PostScript from various sources.
If anyone wants me to explain how to fix Microsoft PostScript to
be DSC compatible, ask. At various times I've attempted to write
an rc/awk script to do the job automatically, but it's just too messy.

I'm sad to see these consequences of bad design decisions attempting
to invade Plan 9. (I hope and believe the Plan 9 devotees won't let it
happen.) PostScript is too low a level to be carrying out *everyday*
page transformations; it's just too flexible a language. I think
that such page transformations should be done at a higher level of
document description. On Unix and Plan 9, I'd say that was probably
at the ditroff output level. ditnup, ditselect, dittodit etc, anyone?
In one way, Microsoft had the right idea (if not the right implementation)
with their device-independent DGI page description interface, though
the recent GDI Plus has made this more complex.

John A. Murdie
Department of Computer Science
University of York
England



             reply	other threads:[~2001-02-15  9:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-15  9:43 John A. Murdie [this message]
2001-02-15 17:53 ` Douglas A. Gwyn
2001-02-16  9:52   ` Douglas A. Gwyn
2001-02-15  9:44 John A. Murdie
2001-02-15 13:28 John A. Murdie
2001-02-15 17:44 nemo
2001-02-15 17:47 nemo
2001-02-16 10:31 John A. Murdie
2001-02-16 11:36 John A. Murdie
2001-02-19  9:58 ` Douglas A. Gwyn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E14TKx9-0002eE-00@minster.cs.york.ac.uk \
    --to=john@cs.york.ac.uk \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).