OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / GNU_groff / original / man5 / groff_out.5
1 '\" e
2 .\" The above line should force the use of eqn as a preprocessor
3 .ig
4 Copyright (C) 1989-2000, 2001 Free Software Foundation, Inc.
5
6 Permission is granted to make and distribute verbatim copies of
7 this manual provided the copyright notice and this permission notice
8 are preserved on all copies.
9
10 Permission is granted to copy and distribute modified versions of this
11 manual under the conditions for verbatim copying, provided that the
12 entire resulting derived work is distributed under the terms of a
13 permission notice identical to this one.
14
15 Permission is granted to copy and distribute translations of this
16 manual into another language, under the above conditions for modified
17 versions, except that this permission notice may be included in
18 translations approved by the Free Software Foundation instead of in
19 the original English.
20 ..
21 .\" This man page must be preprocessed with eqn.
22 .ie \n(.g .ds ic \/
23 .el .ds ic \^
24 .TH GROFF_OUT 5 "6 April 2001" "Groff Version 1.17.2"
25 .SH NAME
26 groff_out \- groff intermediate output format
27 .SH DESCRIPTION
28 This manual page describes the format output by GNU troff.
29 The output format used by GNU troff is very similar to that used
30 by Unix device-independent troff. Only the differences are documented
31 here.
32 .LP
33 The argument to the
34 .B s
35 command is in scaled points (units of
36 .IR points/ n ,
37 where
38 .I n
39 is the argument to the
40 .B sizescale
41 command  in the DESC file.)
42 The argument to the
43 .B x\ Height
44 command is also in scaled points.
45 .LP
46 The first three output commands are guaranteed to be:
47 .IP
48 .BI x\ T\  device
49 .br
50 .BI x\ res\  n\ h\ v
51 .br
52 .B x init
53 .LP
54 If the
55 .B tcommand
56 line is present in the DESC file, troff will use the following
57 two commands
58 .TP
59 .BI t xxx
60 .I xxx
61 is any sequence of characters terminated by a space or a newline;
62 the first character should be printed at the current position,
63 the the current horizontal position should be increased by
64 the width of the first character, and so on for each character.
65 The width of the character is that given in the font file,
66 appropriately scaled for the current point size, and rounded
67 so that it is a multiple of the horizontal resolution.
68 Special characters cannot be printed using this command.
69 .TP
70 .BI u n\ xxx
71 This is same as the
72 .B t
73 command except that after printing each character, the current horizontal
74 position is increased by the sum of the width of that character
75 and
76 .IR n .
77 .LP
78 Note that single characters can have the eighth bit set, as can the
79 names of fonts and special characters.
80 .LP
81 The names of characters and fonts can be of arbitrary length; drivers
82 should not assume that they will be only two characters long.
83 .LP
84 When a character is to be printed, that character will always be
85 in the current font.
86 Unlike device-independent troff, it is not necessary
87 for drivers to search special fonts to find a character.
88 .LP
89 The
90 .B x
91 device control command has been extended.
92 .TP
93 \fBx u \fIn\fR
94 If
95 .I n
96 is\~1, start underlining of spaces.
97 If
98 .I n
99 is\~0, stop underlining of spaces.
100 This is needed for the
101 .B cu
102 request in nroff mode and is ignored otherwise.
103 .LP
104 The
105 .B D
106 drawing command has been extended.
107 These extensions will not be used by GNU pic if the
108 .B \-n
109 option is given.
110 .TP
111 \fBDf \fIn\fR\*(ic\en
112 Set the shade of gray to be used for filling solid objects to
113 .IR n ;
114 .I n
115 must be an integer between 0 and 1000, where 0 corresponds solid white
116 and 1000 to solid black, and values in between correspond to
117 intermediate shades of gray.
118 This applies only to solid circles, solid ellipses and solid
119 polygons.
120 By default, a level of 1000 will be used.
121 Whatever color a solid object has, it should completely obscure
122 everything beneath it.
123 A value greater than 1000 or less than 0 can also be used:
124 this means fill with the shade of gray that is currently being used
125 for lines and text.
126 Normally this will be black, but some drivers may provide
127 a way of changing this.
128 .TP
129 \fBDC \fId\fR\*(ic\en
130 Draw a solid circle with a diameter of
131 .I d
132 with the leftmost point at the current position.
133 .TP
134 \fBDE \fIdx dy\fR\*(ic\en
135 Draw a solid ellipse with a horizontal diameter of
136 .I dx
137 and a vertical diameter of
138 .I dy
139 with the leftmost point at the current position.
140 .EQ
141 delim $$
142 .EN
143 .TP
144 \fBDp\fR $dx sub 1$ $dy sub 1$ $dx sub 2$ $dy sub 2$ $...$ $dx sub n$ $dy sub n$\en
145 Draw a polygon with,
146 for $i = 1 ,..., n+1$, the
147 .IR i -th
148 vertex at the current position 
149 $+ sum from j=1 to i-1 ( dx sub j , dy sub j )$.
150 At the moment,
151 GNU pic only uses this command to generate triangles and rectangles.
152 .TP
153 \fBDP\fR $dx sub 1$ $dy sub 1$ $dx sub 2$ $dy sub 2$ $...$ $dx sub n$ $dy sub n$\en
154 Like
155 .B Dp
156 but draw a solid rather than outlined polygon.
157 .TP
158 \fBDt \fIn\fR\*(ic\en
159 Set the current line thickness to
160 .I n
161 machine units.
162 Traditionally Unix troff drivers use a line thickness proportional to the current
163 point size; drivers should continue to do this if no
164 .B Dt
165 command has been given, or if a
166 .B Dt
167 command has been given with a negative value of
168 .IR n .
169 A zero value of
170 .I n
171 selects the smallest available line thickness.
172 .LP
173 A difficulty arises in how the current position should be changed after
174 the execution of these commands.
175 This is not of great importance since the code generated by GNU pic
176 does not depend on this.
177 Given a drawing command of the form
178 .IP
179 \fB\eD\(fm\fIc\fR $x sub 1$ $y sub 1$ $x sub 2$ $y sub 2$ $...$ $x sub n$ $y sub n$\(fm
180 .LP
181 where
182 .I c
183 is not one of
184 .BR c ,
185 .BR e ,
186 .BR l ,
187 .B a
188 or
189 .BR ~ ,
190 Unix troff will treat each of the $x sub i$ as a horizontal quantity,
191 and each of the $y sub i$ as a vertical quantity and will assume that
192 the width of the drawn object is $sum from i=1 to n x sub i$,
193 and that the height is $sum from i=1 to n y sub i$.
194 (The assumption about the height can be seen by examining the
195 .B st
196 and
197 .B sb
198 registers after using such a
199 .B D
200 command in a \ew escape sequence.)
201 This rule also holds for all the original drawing commands
202 with the exception of
203 .BR De .
204 For the sake of compatibility GNU troff also follows this rule,
205 even though it produces an ugly result in the case of the
206 .BR Df ,
207 .BR Dt ,
208 and, to a lesser extent,
209 .B DE
210 commands.
211 Thus after executing a
212 .B D
213 command of the form
214 .IP
215 \fBD\fIc\fR $x sub 1$ $y sub 1$ $x sub 2$ $y sub 2$ $...$ $x sub n$ $y sub n$\en
216 .LP
217 the current position should be increased by
218 $( sum from i=1 to n x sub i , sum from i=1 to n y sub i )$.
219 .LP
220 There is a continuation convention which permits the argument to the
221 .B x\ X
222 command to contain newlines:
223 when outputting the argument to the
224 .B x\ X
225 command, GNU troff
226 will follow each newline in the argument with a
227 .B +
228 character
229 (as usual, it will terminate the entire argument with a newline);
230 thus if the line after the line containing the
231 .B x\ X
232 command starts with
233 .BR + ,
234 then the newline ending the line containing the
235 .B x\ X
236 command should be treated as part of the argument to the
237 .B x\ X
238 command,
239 the
240 .B +
241 should be ignored,
242 and the part of the line following the
243 .B +
244 should be treated like the part of the line following the
245 .B x\ X
246 command.
247 .SH "SEE ALSO"
248 .BR groff_font (5)
249 .\"
250 .\" Local Variables:
251 .\" mode: nroff
252 .\" End: