Mark Carey wrote:
Hi,
Am having a play with post script, I have the Adobe language
specification (912 pages), problem is when I open a post script file the
text is not in a human readable form, does any one here have any ideas
how I might go about finding what encoding has been used, so I can
attempt to reverse said encoding.
IANAPSE but,
If it's binary, it might be gzipped.
If it's text, it's probably postscript. Yes. It's that ugly.
Embedded images are inserted in some sort of uuencoded/base64
type format. You've got the specs.

> I want to actually learn some postscript, I intend to try and write
> an interpreter to recover tex source and images from postscript, so I > am looking at in in xemacs.

A note of caution:
I marked an assignment once for a stage-3 university programming languages course. The assignment was to write a lexical analyser (scanner or tokeniser) for postscript based on the lexical description in the standard. There were some very bright cookies in that class (of about 30 perhaps). Not one assignment handled all my testcases. Note that this wasn't an interpreter, or even a parser, just a scanner.

That said, an interpreter for postscript isn't too hard, compared to interpreters for other languages. Having everything postfix makes it *way* easier.

Good luck.

Cheers,
Carl.





Reply via email to