[comp.lang.postscript] indent or pretifier for PostScript.

kincaid@cg-atla.UUCP (Tom Kincaid ) (06/04/91)

Does anybody out there have an indent or PostScript 
pretifier that they'd be willing to share with the world.
A UNIX version would be nice, but anything at all would 
be great.

gerry@seq1.keele.ac.uk (G.D.Pratt) (06/04/91)

kincaid@cg-atla.UUCP (Tom Kincaid ) writes:
> Does anybody out there have an indent or PostScript 
> pretifier that they'd be willing to share with the world.
> A UNIX version would be nice, but anything at all would 
> be great.

The Adobe PostScript File Server <ps-file-server@com.adobe> has one called:-

psformat.shar             10743 Mar 16 1990
    This file contains a makefile, C program, and "lex" source file
    for a program formatting tool. It takes PostScript programs and
    rearranges them according to some indentation rules (makes the
    program easier to read and maintain).

You can get this with a mail message "send programs psformat.shar" as
described below. It works very well.

gerry

----------------- ----------------- ----------------- -----------------
From ps-file-server%adobe.com%adobe@com.dec.decwrl Thu Apr 11 14:00:16 1991
Date: Thu, 11 Apr 91 05:30:19 PDT
Message-Id: <9104111230.AA24117@adobe.com>
Subject: How to use the PostScript File Server
From: Adobe PostScript File Server <ps-file-server@com.adobe>
In-Reply-To: message from "g.d." pratt <cca13@seq1.keele.ac.uk>
To: "g.d." pratt <cca13@uk.ac.keele.seq1>
Sender: ps-file-server%adobe.com%adobe@com.dec.decwrl

This message comes to you from the PostScript file server at Adobe Systems,
ps-file-server@adobe.com. It received a message from you asking for help.

The file server is a mail-response program. That means that you mail it a
request, and it mails back the response. (Note: the server is entirely
automated, and the mail is read by programs, not humans.)

The file server understands these commands:  help, index, send, path

A command must be the first word on a line. More than one command can
be sent in a message. (Though you shuld be very careful on the amount of
data that is requested in a single message. See the long.help message;
instructions below.) The Subject: line is treated as a message line.
Any line that does not begin with a command is ignored.

    help            Returns this message. 
                    All other requests are ignored.
	
    index           Returns a list of categories.
                    All other send requests are ignored.
	
    index <category>  Returns list files available under <category>.
	
    send <category> <file>   Sends you the requested <file>. More than 
                          one file may be requested, though most mail
                          systems have a 100k limit on return messages.
	
    path <mailpath>  Forces server to use <mailpath> as the return path.
	
---------------------------------------------------------------------------

These are the current available categories:

    AFMFiles
    Documents
    PPDFiles
    Programs
    Updates

To get more help, send another message to the server with:
"send Documents long.help"

CAREFUL:
	Do not send requests from "root" accounts.  The server will reject 
	them in order to prevent long mail loops when mail bounces.

	Several short requests always work better than one large request.

---------------------------------------------------------------------------

Thanks for your inquiry, and good luck using the server. If you can't
get it to work at all, you can try sending mail to:

  ps-file-person@adobe.com
  
Mail to that account will be sent to a person instead of a program.
[But do not send your server requests to the "person" account!]

-- 
gerry pratt  --  workstation support  --  university of keele
email:  gerry@seq1.keele.ac.uk   *   tel:  0782 621111 x 3290
"these opinions are mine, mine, mine....ALL MINE I TELL YOU!"