2 .TH @G@GRN @MAN1EXT@ "@MDATE@" "groff @VERSION@"
4 @g@grn \- groff preprocessor for gremlin files
7 .\" ====================================================================
9 .\" ====================================================================
11 .\" Copyright (C) 2000-2018 Free Software Foundation, Inc.
13 .\" Permission is granted to make and distribute verbatim copies of this
14 .\" manual provided the copyright notice and this permission notice are
15 .\" preserved on all copies.
17 .\" Permission is granted to copy and distribute modified versions of
18 .\" this manual under the conditions for verbatim copying, provided that
19 .\" the entire resulting derived work is distributed under the terms of
20 .\" a permission notice identical to this one.
22 .\" Permission is granted to copy and distribute translations of this
23 .\" manual into another language, under the above conditions for
24 .\" modified versions, except that this permission notice may be
25 .\" included in translations approved by the Free Software Foundation
26 .\" instead of in the original English.
29 .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
34 .\" ====================================================================
36 .\" ====================================================================
48 .\" ====================================================================
50 .\" ====================================================================
53 is a preprocessor for including
60 writes to standard output, processing only input lines between two
66 Those lines must contain
70 These commands request a
72 file, and the picture in that file is converted and placed in the
78 request may be followed by a C, L, or R to center, left, or right
81 picture (default justification is center).
85 is mentioned, the standard input is read.
87 At the end of the picture, the position on the page is the bottom of the
97 the position is left at the top of the picture.
101 Please note that currently only the \-me macro package has support for
108 .\" ====================================================================
110 .\" ====================================================================
112 Whitespace is permitted between a command-line option and its argument.
117 Prepare output for printer
119 The default device is
122 .BR groff (@MAN1EXT@)
123 for acceptable devices.
129 to the default search path for
133 The default path is (in that order) the current directory, the home
135 .IR @SYSTEMMACRODIR@ ,
136 .IR @LOCALMACRODIR@ ,
147 is the name of the device) for the
149 file before the default font directories
153 .IR @LEGACYFONTDIR@ .
163 even when followed by a character other than space or newline.
166 .\"This switch causes the picture to be traversed twice:
167 .\"The first time, only the interiors of filled polygons (as borderless
168 .\"polygons) are printed.
169 .\"The second time, the outline is printed as a series of line segments.
170 .\"This way, postprocessors that overwrite rather than merge picture elements
171 .\"(such as PostScript) can still have text and graphics on a shaded
176 Print the version number.
179 .\" ====================================================================
181 .\" ====================================================================
183 Each input line between
191 Commands consist of one or two strings separated by white space, the first
192 string being the command and the second its operand.
193 Commands may be upper or lower case and abbreviated down to one character.
197 Commands that affect a picture's environment (those listed before
199 see below) are only in effect for the current picture:
201 The environment is reinitialized to the defaults at the start of the next
204 The commands are as follows:
216 text size number 1 (2, 3, or 4) to
220 The default is 12 (16, 24, and 36, respectively).
230 Set the roman (italics, bold, or special) font to
234 (either a name or number).
236 The default is R (I, B, and S, respectively).
242 Set the stipple font to
250 may be abbreviated down as far as \[oq]st\[cq] (to avoid confusion
256 default for stipples (unless one is set by the default command), and
257 it is invalid to include a
259 picture with polygons without specifying a
266 Magnify the picture (in addition to any default magnification) by
268 a floating point number larger than zero.
272 may be abbreviated down to \[oq]sc\[cq].
283 narrow (medium and thick, respectively) lines to
285 times 0.15pt (this value can be changed at compile time).
287 The default is 1.0 (3.0 and 5.0, respectively), which corresponds to 0.15pt
288 (0.45pt and 0.75pt, respectively).
290 A thickness value of zero selects the smallest available line thickness.
292 Negative values cause the line thickness to be proportional to the
296 .BI pointscale\ <off/on>
297 Scale text to match the picture.
299 Gremlin text is usually printed in the point size specified with the
305 regardless of any scaling factors in the picture.
309 will cause the point sizes to scale with the picture (within
311 limitations, of course).
313 An operand of anything but
315 will turn text scaling on.
319 Reset the picture environment defaults to the settings in the current
322 This is meant to be used as a global parameter setting mechanism at
325 input file, but can be used at any time to reset the
330 Forces the picture to be
334 This overrides any scaling factors present in the same picture.
343 inches high, overriding other scaling factors.
345 If both \[oq]width\[cq] and \[oq]height\[cq] are specified the tighter
346 constraint will determine the scale of the picture.
350 commands are not saved with a
354 They will, however, affect point size scaling if that option is set.
362 located the current directory (or in the library directory; see the
368 commands are given, the second one overrides the first.
372 doesn't exist, an error message is reported and processing
378 .\" ====================================================================
379 .SH "NOTES ABOUT GROFF"
380 .\" ====================================================================
384 is a preprocessor, it doesn't know about current indents, point
385 sizes, margins, number registers, etc. Consequently, no
387 input can be placed between the
395 text is now processed by
397 so anything valid in a single line of
399 input is valid in a line of
401 text (barring \[oq].\[cq] directives at the beginning of a line).
403 Thus, it is possible to have equations within a
405 figure by including in the
409 expressions enclosed by previously defined delimiters (e.g.\&
416 along with other preprocessors, it is best to run
427 should always be run last.
431 A picture is considered an entity, but that doesn't stop
433 from trying to break it up if it falls off the end of a page.
435 Placing the picture between \[oq]keeps\[cq] in \-me macros will ensure
451 to the width and height of the
453 figure (in device units) before entering the
455 request (this is for those who want to rewrite these macros).
458 .\" ====================================================================
459 .SH "GREMLIN FILE FORMAT"
460 .\" ====================================================================
462 There exist two distinct
464 file formats, the original format from the
466 graphic terminal version, and the
474 version allowing reference points with negative coordinates is
482 file does not contain negative coordinates, either format will be read
483 correctly by either version of
488 The other difference from
490 format is the use of names for picture objects (e.g., POLYGON, CURVE)
493 Files representing the same picture are shown in Table 1 in each format.
498 sungremlinfile@@gremlinfile
499 0 240.00 128.00@@0 240.00 128.00
501 240.00 128.00@@240.00 128.00
502 185.00 120.00@@185.00 120.00
503 240.00 120.00@@240.00 120.00
504 296.00 120.00@@296.00 120.00
507 10 A Triangle@@10 A Triangle
509 224.00 416.00@@224.00 416.00
510 96.00 160.00@@96.00 160.00
511 384.00 160.00@@384.00 160.00
519 Table 1. File examples
523 The first line of each
525 file contains either the string
532 The second line of the file contains an orientation, and
536 values for a positioning point, separated by spaces.
537 The orientation, either
548 will display things in horizontal format (drawing area wider than it is
549 tall, with menu across top).
554 will display things in vertical format (drawing area taller than it is
555 wide, with menu on left side).
560 are floating point values giving a positioning point to be used when
561 this file is read into another file.
563 The stuff on this line really isn't all that important; a value of
564 \[lq]1 0.00 0.00\[rq] is suggested.
567 The rest of the file consists of zero or more element specifications.
569 After the last element specification is a line containing the string
573 Lines longer than 127 characters are chopped to this limit.
576 .\" ====================================================================
577 .SH "ELEMENT SPECIFICATIONS"
578 .\" ====================================================================
581 The first line of each element contains a single decimal number giving
582 the type of the element
584 version) or its ASCII name
595 \fIgremlin\fP File Format \(mi Object Type Specification
597 \fIAED\fP Number@\fISUN\/\fP/\,\fIX11\fP Name@Description
598 0@BOTLEFT@bottom-left-justified text
599 1@BOTRIGHT@bottom-right-justified text
600 2@CENTCENT@center-justified text
607 10@TOPLEFT@top-left-justified text
608 11@TOPCENT@top-center-justified text
609 12@TOPRIGHT@top-right-justified text
610 13@CENTLEFT@left-center-justified text
611 14@CENTRIGHT@right-center-justified text
612 15@BOTCENT@bottom-center-justified text
617 Type Specifications in \fIgremlin\fP Files
621 After the object type comes a variable number of lines, each specifying a
622 point used to display the element.
623 Each line contains an x-coordinate and a y-coordinate in floating point
624 format, separated by spaces.
625 The list of points is terminated by a line containing the string \[lq]\-1.0
628 version) or a single asterisk, \[lq]*\[rq]
633 After the points comes a line containing two decimal values, giving the
634 brush and size for the element.
636 The brush determines the style in which things are drawn.
638 For vectors, arcs, and curves there are six valid brush values:
643 1 \(mi@@thin dotted lines
644 2 \(mi@@thin dot-dashed lines
645 3 \(mi@@thick solid lines
646 4 \(mi@@thin dashed lines
647 5 \(mi@@thin solid lines
648 6 \(mi@@medium solid lines
651 For polygons, one more value, 0, is valid.
652 It specifies a polygon with an invisible border.
653 For text, the brush selects a font as follows:
658 1 \(mi@@roman (R font in groff)
659 2 \(mi@@italics (I font in groff)
660 3 \(mi@@bold (B font in groff)
661 4 \(mi@@special (S font in groff)
666 to run your pictures through
668 the font is really just a starting font:
670 The text string can contain formatting sequences like
674 which may change the font (as well as do many other things).
676 For text, the size field is a decimal value between 1 and 4.
678 It selects the size of the font in which the text will be drawn.
680 For polygons, this size field is interpreted as a stipple number to
681 fill the polygon with.
683 The number is used to index into a stipple font at print time.
686 The last line of each element contains a decimal number and a string of
687 characters, separated by a single space.
689 The number is a count of the number of characters in the string.
691 This information is only used for text elements, and contains the text
694 There can be spaces inside the text.
696 For arcs, curves, and vectors, this line of the element contains the
700 .\" ====================================================================
701 .SH "NOTES ON COORDINATES"
702 .\" ====================================================================
707 and its coordinates reflect the
711 For vertical pictures, x-values range 116 to 511, and y-values from 0
714 For horizontal pictures, x-values range from 0 to 511 and y-values
717 Although you needn't absolutely stick to this range, you'll
718 get best results if you at least stay in this vicinity.
720 Also, point lists are terminated by a point of (\-1, \-1), so you
721 shouldn't ever use negative coordinates.
724 writes out coordinates using format \[lq]%f1.2\[rq]; it's probably
725 a good idea to use the same format if you want to modify the
730 .\" ====================================================================
731 .SH "NOTES ON SUN/X11 COORDINATES"
732 .\" ====================================================================
734 There is no longer a restriction on the range of coordinates used to
735 create objects in the
740 However, files with negative coordinates
742 cause problems if displayed on the
746 .\" ====================================================================
748 .\" ====================================================================
751 .IR @FONTDIR@/dev name /DESC
752 Device description file for device
756 .\" ====================================================================
758 .\" ====================================================================
759 David Slattengren and Barry Roitblat wrote the original Berkeley
762 Daniel Senderowicz and Werner Lemberg modified it for
766 .\" ====================================================================
768 .\" ====================================================================
771 .BR groff (@MAN1EXT@),
772 .BR @g@pic (@MAN1EXT@),
776 .\" Restore compatibility mode (for, e.g., Solaris 10/11).
783 .\" vim: set filetype=groff: