hartman@abacab.chi.il.us (Mark A. Hartman) (03/18/91)
Archive-name: graphics/drawing/cdraw2fig/1991-03-18 Archive-directory: cheops.cis.ohio-state.edu:/pub/comp.sources.3b1/volume01/cdraw2fig/ [128.146.8.62] Original-posting-by: hartman@abacab.chi.il.us (Mark A. Hartman) Original-subject: v01i017: convert cheapdraw files to fig, Part01/01 Reposted-by: emv@msen.com (Edward Vielmetti, MSEN) cdraw2fig --------- cdraw2fig translates pictures from "Cheap Draw" format to Fig format. The TransFig package can then be used for translation to the desired output format. Currently supported formats include PIC, (E)EPIC, LaTeX, PostScript, and several others. cdraw2fig is implemented in the awk programming language. Most Cheap Draw operations are handled in some way, although some of the transla- tions are somewhat arbitrary. Note that some output formats are con- siderably less expressive than Cheap Draw (and Fig). PIC, for example, supports neither shading or rotated text. In addition, precise text spacing is problematic across the different output formats. The following files are included in this distribution: README - this file cdraw2fig.uu - ksh script with self-contained awk program (uuencoded) example - sample "Cheap Draw" file (from the original Cheap Draw distribution) To translate a Cheap Draw file to PIC (for example): $ cdraw2fig example > example.fig $ fig2dev -Lpic example.fig > example.pic Cheap Draw 2.0 was written by Bob Pratt and is available from the UNIXPC archives at osu-cis. TransFig was written by Micah Beck and is available for anonymous FTP from svax.cs.cornell.edu. Mark Hartman hartman@abacab.chi.il.us hartman@ihlpm.att.com [308 lines of sources deleted. cleaned up somewhat. --Ed.]