home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!sgiblab!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!luxor.latrobe.edu.au!ecsgrt
- From: ecsgrt@luxor.latrobe.edu.au (Geoffrey Tobin)
- Newsgroups: comp.text.tex
- Subject: Re: DVI - WhAT Is IT
- Keywords: dvi, dpl, special, psbox, pk graphics.
- Message-ID: <1992Dec21.004527.24381@lugb.latrobe.edu.au>
- Date: 21 Dec 92 00:45:27 GMT
- References: <1992Dec17.170012.18600@uk03.bull.co.uk>
- Sender: news@lugb.latrobe.edu.au (USENET News System)
- Organization: La Trobe University
- Lines: 56
-
- 00:45 GMT Mon 21 Dec 1992 - ecsgrt@luxor.latrobe.edu.au
-
- 1. Want ascii?
-
- (a) DVI files are binary, but you could uuencode them. :-| Well,
- uuencode is available for ms-dos as well as for unix.
-
- (b) Alternatively, you can look at their code using Knuth's "dvitype".
-
- (c) I find dvitype inconvenient to use as a filter, so I wrote two
- filters, "dv2dp" and "dp2dv" to convert DVI to and from DPL.
-
- DPL is a _much_ more verbose (so not economic for transport or
- storage), human-readable representation of the DVI code, based on the
- command names used in Appendix A of the "DVI Driver Standard,
- Level 0", draft 0.05 document, by a TUG committee chaired by Joachim
- Schrod, and to be found at many TeX archives, e.g. at:
-
- ftp.uni-stuttgart.de : soft/tex/drivers/driv-standard/level-0/*
-
- Joachim wrote in the README for 26 Sep 91:
- "Comments, suggestions, etc., to schrod@iti.informatik.th-darmstadt.de"
-
- 2. Specials.
-
- Clarence Wilkerson referred to the fact that \special commands are
- not portable to different printer drivers and previewers. TeX input
- is better than a DVI file, because it uses high-level macros, which
- are more easily modified for a different driver than a pure \special
- command is.
-
- For example, Jean Orloff's "psbox" (available at Niord.SHSU.edu - and
- which other sites?), as I understand it, lets you use the same
- high-level syntax, and select from a range of drivers. This makes the
- same TeX file easily ported, even with specials.
-
- To use a DVI file that contains \special commands, you have to know
- which printer it is intended for, or try to guess from the \special
- syntax, then try to translate.
-
- A second problem in working with the DVI format is that it contains
- numeric pointers, which will need to be corrected. So editing a DVI
- file needs either a specialised editor, or (what is probably quicker
- to devise and more portable) a higher-level representation than either
- DVI or DPL with a 2-way converter. Do such things exist?
-
- So I recommend TeX with something like psbox, if you must use
- specials.
-
- Sometimes you can avoid \special even for graphics. For example,
- "bm2font" converts a variety of bitmap graphics to PK form; "mfpic"
- and "diagramf" use metafont to draw PK graphics; and "ghostscript"
- converts PostScript compatible code to bitmaps (then you can use
- "bm2font").
-
- Geoffrey Tobin
-