From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6071f84396b8f5aa X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.33.161 with SMTP id s1mr1833786pbi.2.1318925844276; Tue, 18 Oct 2011 01:17:24 -0700 (PDT) Path: d5ni26011pbc.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Writing PDF files Date: Tue, 18 Oct 2011 09:17:22 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="27586"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LcPkXvcYScyHR9TlMZLcOj4ia6R1kxfk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:LYzHUQOGkicrT7qYU7tEOuUsM6o= sha1:lWzMWXr7B4n+hmhJUac8TQuJn2E= Xref: news2.google.com comp.lang.ada:14027 Content-Type: text/plain; charset=us-ascii Date: 2011-10-18T09:17:22+01:00 List-Id: Bill Findlay writes: > Thanks to everyone who has offered help with this. > > KDF9 is a historic British computer from 50 years ago: > > > > I have written a KDF9 emulator in Ada 2005 that runs on MacOS X, Linux and > Windows, and am now hoping to complete the set of KDF9 I/O devices it > supports. At option a Calcomp graph plotter could be fitted in place of a > tape punch. It interpreted 6-bit commands that directed it to move one step > left/right and/or back/forward, with the pen raised or lowered. That's it. > > All I need is the ability to create a line drawing specified by a series of > such commands, so very basic vector drawing. It would be good if users > could see the plot immediately on completion, just by opening the plot file. > > PDF would seem to offer this convenience. Thanks for the pointers to other > formats that might do the job. I'm not going to plunge into powerful > graphics frameworks, partly to preserve portability and ease of building, > and partly because life is too short; but some of the other suggestions > might meet my needs. Time to put my thinking cap on! I see no one has suggested plplot. I'm looking at it with Jerry from the POV of debugging on Mac OS X, and just built the first example; the plotting options as installed here are < 1> xwin X-Window (Xlib) < 2> tk Tcl/TK Window < 3> ps PostScript File (monochrome) < 4> psc PostScript File (color) < 5> xfig Fig file < 6> null Null device < 7> tkwin New tk driver < 8> mem User-supplied memory device < 9> aqt AquaTerm (Mac OS X) <10> svg Scalable Vector Graphics (SVG 1.1) and at first glance 1, 9 and 10 certainly work, 2 and 7 don't AFAICT. Note 9! On the other hand, I don't know whether plplot works on Windows ..