Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Postscript is one of my favorite languages, Something about stack based languages with simple consistent syntax. I suspect if I had picked up forth before PS it would occupy the same fond spot in my head. but I did not and now I find forths typing awkward, and it lacks the killer feature of postscript, you get to draw pictures.

I love making hand written artisanal postscript. The neatest thing I ever made was a sort of box model, the idea being the main advantage(there are many, but go with me here) of putting your document in html over PS is that html justifies and flows your text. So it was a library where you could specify a box(or a set of linked boxes) for your text area and postscript would auto fold the contained text. The idea was to have all sorts of functions to make it easy to write documents in postscript directly, no one but me actually wants to do this, so it remains a perpetual prototype.

edit: found it, the code is in a sorry state, like I said perpetual prototype, but here is how I did a box model(ish) in PS

https://nl1.outband.net/fossil/misc/file?name=dtp.ps&ci=tip



Very nice! I did something similar in the dim and distant past - I used it to create a script for the YAM email client on the Amiga, for pretty-printing emails[1] using Ghostscript. (By default YAM just spews unformatted ASCII at the printer port.)

One my fondest early internet memories was the Email I received in slightly mangled English from someone who said he couldn't really see the point of the scripts until he tried them, and went on to describe the results as "f*ing damn better"!

[1]http://aminet.net/package/comm/mail/PSMail




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: