comp.lang.ada
 help / color / mirror / Atom feed
* Is there an Ada postscript package anywhere ?
@ 1995-02-24  0:24 CSCI1E80
  1995-02-24 23:46 ` Bob Kitzberger
  1995-02-25 19:34 ` Robert Dewar
  0 siblings, 2 replies; 4+ messages in thread
From: CSCI1E80 @ 1995-02-24  0:24 UTC (permalink / raw)


I have to write a package that generates poscript output files to be printed
on a postscript printer. Has anybody out there ever seen or heard of one ?

Basically, what I have to do is to change font sizes before
making calls to text_io procedures.

I also have to figure out how to print in "Landscape" format.

If anybody knows where I can find a package that already incorporates
postscript, PLEASE PLEASE PLEASE let me know.

Thanks bunches,
John D. Smith



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there an Ada postscript package anywhere ?
  1995-02-24  0:24 Is there an Ada postscript package anywhere ? CSCI1E80
@ 1995-02-24 23:46 ` Bob Kitzberger
  1995-02-25 19:34 ` Robert Dewar
  1 sibling, 0 replies; 4+ messages in thread
From: Bob Kitzberger @ 1995-02-24 23:46 UTC (permalink / raw)


ftp.rational.com:/public/apex/freeware/ada_print.3.0.0.tar.gz for
landscape postscript printing of Ada source (in Ada, of course).


--
Bob Kitzberger	        +1 (916) 274-3075	        rlk@rational.com
Rational Software Corp., 10565 Brunswick Rd. #11, Grass Valley, CA 95945
  "...the solution to the problem is usually to pee on it"  -- Dave Barry



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there an Ada postscript package anywhere ?
  1995-02-24  0:24 Is there an Ada postscript package anywhere ? CSCI1E80
  1995-02-24 23:46 ` Bob Kitzberger
@ 1995-02-25 19:34 ` Robert Dewar
  1995-02-26  3:12   ` Michal Young
  1 sibling, 1 reply; 4+ messages in thread
From: Robert Dewar @ 1995-02-25 19:34 UTC (permalink / raw)


John Smith asks about generating postscript

the important thing to realize is that postscript is a full blown
programming language, so what you are generating is a program, it is
not some kind of simple markup language. Now you can write a postscript
program that will process ASCII, or marked up ASCII text, so one possible
form of output from a program generating postscript is:


   (postscript program)
   (marked up text)

where the postscript program reads the text as input.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there an Ada postscript package anywhere ?
  1995-02-25 19:34 ` Robert Dewar
@ 1995-02-26  3:12   ` Michal Young
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Young @ 1995-02-26  3:12 UTC (permalink / raw)


Just amplification of the previous message --- the suggested form 
>    (postscript program)
>    (marked up text)
is in fact what nearly all postscript generating programs do.
(There are a few exceptions, but not many.)  So basically you 
do the following:
  * Design your own set of markup commands.  If your markup is not
    complex, this is nearly trivial.
  * Write a PostScript procedure for each markup command.  The
    difficulty of this part depends on the complexity of the markup,
    and on familiarity with the PostScript language. Steal this code
    or get someone else to write it if you can, but if you must it's
    not really hard.  You need the PostScript Tutorial and Cookbook 
    from Adobe Press, and the PostScript Reference Manual from same. 
    There are probably copies on a bookshelf near you. The third
    manual in the series, PostScript Program Design (I've probably 
    got that slightly wrong, since I'm relying on memory) is useful
    if you do anything large or intended for widespread distribution.
    For simple layout tasks, chances are you can lift much of the 
    code you need directly from the Cookbook section of the first
    manual.  
  * Write a tiny bit of code in Ada or whatever to emit the marked up
    text.  This is certainly trivial, unless one of the other two 
    steps was badly botched or you are doing something really fancy.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1995-02-26  3:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-24  0:24 Is there an Ada postscript package anywhere ? CSCI1E80
1995-02-24 23:46 ` Bob Kitzberger
1995-02-25 19:34 ` Robert Dewar
1995-02-26  3:12   ` Michal Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox