Draw2Eps ~~~~~~~~ by Peter Hillman, Square Eyes Software v0.00 2000-03-17 PH v0.01 2006-02-08 EP made 32bit, included 'showpage' line at end for GhostScript v0.02 2013-08-01 EP re-compiled for ARMv7 Purpose ~~~~~~~ A Command Line program that generates EPS Postscript files from Drawfiles Runs on Solaris, Acorn ARMLinux, PC, and basically everything, I think. What? Lets you import drawfiles into LaTeX documents, to make true dvi files that can be printed from a non-Acorn. Lets you import Drawfiles into StarOffice and the like. Lets you view Drawfiles on any platform that has a Postscript interpreter The Postscript executable generated is intentionally verbose, to make it more platform independant, and also more editable. Dedicated to my ex life Syntax: ~~~~~~~ Draw2eps {inputdrawfile} The output EPS file is written to the screen. To send it to a file, do Draw2EPS {inputdrawfile} > {output} eg. on a RISC machine: To create an EPS file called 'draw/eps' from 'DrawFile': *Draw2EPS DrawFile > draw.eps Included: ~~~~~~~~~ Path objects: startcap (not arrows), linewidth, fill colour, dash pattern linecolour, all joins, bezier curves, straight sections, moves Text objects: xsize, ysize, colour Transformed text objects: transformation, size, colour Ommisions: ~~~~~~~~~~ Sprite object, transformed sprite, JPEG, textarea, textcolumn, options, fonttable. I'm working on the first two. I want to keep everything platform independant, though. Arrow heads. End and start caps are the same in Postscript; the startcap is used for both. Dash pattern is attempted, but doesn't work perfectly. Font name (uses Times Roman for all; do a search and replace on the EPS file to change it), background hint (not really required), left to right text and kerning. Doesn't generate an EPSI preview (but you can use 'ps2eps' on it) so you can't see the image when you edit it in, say, Staroffice, but it will print to a postscript printer well enough If people want a front-end, I'll write one. Let's face it, it won't be very hard. But a lot harder than pressing F12. Rebuild ~~~~~~~ Get yourself a copy of a C compiler, and compile it. All it needs is stdio.h and it'll be happy. Licence ~~~~~~~ This program is EgoWare. That means if you use it, you must email me at pmh@ee.ed.ac.uk or sign the visitors book at http://www.ee.ed.ac.uk/~pmh to give feedback. I promise not to contact you unless you ask me to. I certainly don't ask for money for a piffling program that doesn't even do what it says on the proverbial tin. It's amazing how many people don't do something as pitiful as email. I get up to 50 downloads a month for software like this, and maybe three emails a year. Otherwise, you can do what you like with it. Hack it, disassemble it, set up a multi-million dollar company selling loo paper with the source code printed on it. But, I did write it, and I'll get seriously peeved if pretend you did. I hope it works. But if it crashes your system (which EPS files can often do) I can't really be held responsible for any loss of hair or work resulting. It's your silly fault for not saving all your work before you tried it, isn't it. ~~Live your dream, drink your dram~~