REDRAW12 January 1981Bruce D. LucasThis document corresponds to ReDraw Version 2.0Redraw is a program which runs on the Altos and converts Draw files to Press files using a vector font,thus achieving much higher resolution than is possible using the ^P command of the Draw program.The program is found on [Onyx]REDRAW.RUN.A Redraw command line has the form>redraw{/} { / } { [] }where "[ ]" encloses optional arguments and "{ }" encloses arguments which can be repeated zero ormore times. See the EXAMPLES section below.The Draw files given on the command line are converted to Press files, under control of the flags andswitches as described below, suitable for printing using Empress or merging with Scribe output usingPressEdit. The name given to the press file is determined in one of three ways:1.No is specified, in which case the extension of the Draw file is stripped off and.PRESS appended; this is the usual case;2. has the form foo.press, in which case foo.press would be used; or3. has the form foo/p, in which case foo would be used.FLAGS AND SWITCHESThe s attached to the Redraw command set Boolean values which govern the conversion of theDraw file(s) into Press file(s). The s set various parameters, and the / appended to each determines the value's interpretation.The flags are/sMake arrangements to allow the Press file to be merged another Press file which uses thePressEdit "<==<<" marker (such as a Scribe .PRESS file which has used the PressPicturecommand). Produces a "<==<<" string pointing to the bottom middle of the picture; see thePressEdit documentation./cCauses any splines with a color other than black to be printed as lines 3/4 as wide as theywould normally be./vverbose - Print each vector's length as it is output./qquiet - Don't print out the usual S for each spline, k for each knot, etc./mMerge the named Draw files rather than creating a separate Press file for each one. Helps toovercome Draw's inability to handle lots of splines. If no is given, the first with its extension replaced by ".PRESS" will be used.The parameter switches are*bp(^qX)5]n V/ S \ REK P/ M"@JjrD G?q.4 E, BN A H ?P@<\@E@:(@7@N@4@A /p ,qL *R ){. &O #$@,-@!J @ B@ l@0+@ @5 @J f@S @8+@ ^; 3 FYL2/l0 /l1 /l2 /l3Parameter is the half the line width, in micas, of the respective Draw line size (l0 represents thethinnest Drawline, l3 the thickest). Defaults are 16, 32, 64, and 128 micas, as for Draw. For non-horizontal and non-vertical lines, the desired width line must exist as a vector font; currentlyavailble widths are 8, 16, 24, 32, 48, 64, 96, and 128 micas. Widths are specified as half theactual line width for compatability with Draw. /f0 /f1 /f2 /f3Parameter is the name of a font to use for Draw font 0, 1, 2, or 3. Example of a font name:Helvetica10b is 10-point bold-face Helvetica. Default fonts are the same as the default Drawfonts./dLength of solid (black) portion of dashed lines, in 384ths inch (Dover scan lines). Use a multipleof 16 for best results. Default is 80./oLike /d, only for the omitted (white) portion of dashed lines. Default is 48./xA global x offset for the picture. Redraw normally attempts to center the picture on the page;this offset is measured with respect to the centered position. Default is 0./yLike /x only for the y dimension./MMaximum "length" vector character that will be used, in Dover scan lines. Must be 16, 8, 4, 2,or 1. Default is 16. Case of switch is significant. For best results, don't use this switch./mLike /M, only for minimum "length" vector used. Default is 1. Case of switch is significant. Forbest results, don't use this switch./uUnit table size. Each maximal portion of a spline curve that is monotonically nondecreasing ornonincreasing in the x direction, and each Draw caption, is a unit. Default is approximately5500, and will depend on the size of your sysfont, etc./kKnot table size. Determines maximum number of knots per spline. Default is 100.EXAMPLES>redraw/s foo.drawwill create foo.PRESS with Scribe interface.>redraw 8/L0 foo.draw gorp.drawwill produce foo.PRESS and gorp.PRESS, using 16 mica lines for Draw's thinnest line size.>redraw/m/s Helvetica10b/f2 gorp.press foo1.draw foo2.drawwill merge foo1.draw and foo2.draw into gorp.press, using Helvetica10b for font 2 in the Draw files. AScribe interface will be built into gorp.press.USER.CM INTERFACERedraw will obtain fonts and line widths from the [DRAW] section of User.cm. It will also obtain theseparameters from a [REDRAW] section, if one is present. The section which occurs later in User.cm willprevail. Thus, you can have Redraw use different fonts than Draw, if you really want to. In addition, youcan specify in the [REDRAW] section the length of the dashes, with the DASHON entry, and of theNfs bq@`6-@_J@]P@\.1@Z0 W^@UQ @TVP @R O@?$@N#' J@N G@"=@FHM C@! ?@I@>m6) ;A@03@9$ 6@@@5M@37 0_@Q +p@(`r %5q,@" r qY@r: q"E / 1p qO U k y="  2E]3omitted portions of dashed lines, with the DASHOFF entry, in just the same way you set theseparameters using the /d and /o switches (q.v.). Thus, a typical entry might be[DRAW]FONT:0 Helvetica10.alFONT:1 Helvetica10b.alFONT:2 Helvetica8.alFONT:3 Math10.alLINEWIDTH:3 96[REDRAW]DASHON:32DASHOFF:32Note that Draw records no information in the Draw file about what fonts and line thicknesses you wereusing when you used Draw. Thus, fonts and line thicknesses produced by Redraw are determinedentirely by the defaults built in to Redraw, by your User.cm entries, and by the command-line /f and /lswitches, in that order.CAUTION ABOUT VERTICAL LINESSince the Dover scans the page vertically, it will not be able to correctly print pages which have toomany characters in any one vertical stripe (of sixteen scan lines); this corresponds to the missed scanline problem on the XGP. To forestall this problem, Redraw represents exactly vertical (and horizontal)lines in a form which the Dover can scan convert more quickly, namely rectangles of black. A line isexactly vertical (resp. horizontal) to Redraw only if it is a spline with two knots whose x (resp. y)coordinates are exactly equal. Moral: make vertical lines exactly vertical by using Draw's grid points andthe mouse button which gravitates to them.Nfs bqJ `O@]nr@[@Zf@X@W^@U @R@QN@O LqG K O IO H C@p @qb >g = U ;d :O 8J 6* 6E1V HELVETICA  HELVETICA GACHA  TIMESROMAN sj/redrawhelp.bravoLucasJanuary 12, 1981 1:55 PM