* doc/Makefile (clean): Include more index files.
[s-roff.git] / src / devices / grolbp / grolbp.man
blob767197d4ca5cf9023000229c1f7a3b384bf3b7d4
1 '\" t
2 .\" The above line should force the use of tbl as a preprocessor
3 .\" vim: set syntax=nroff : 
4 .\" The above line should set vim into nroff mode
5 .ig
6 Copyright (C) 1994-2000 Free Software Foundation, Inc.
8 Permission is granted to make and distribute verbatim copies of
9 this manual provided the copyright notice and this permission notice
10 are preserved on all copies.
12 Permission is granted to copy and distribute modified versions of this
13 manual under the conditions for verbatim copying, provided that the
14 entire resulting derived work is distributed under the terms of a
15 permission notice identical to this one.
17 Permission is granted to copy and distribute translations of this
18 manual into another language, under the above conditions for modified
19 versions, except that this permission notice may be included in
20 translations approved by the Free Software Foundation instead of in
21 the original English.
23 Modified by Francisco Andrés Verdú <pandres@dragonet.es> for the grolbp
24 program.
26 .de TQ
27 .br
28 .ns
29 .TP \\$1
31 .\" Like TP, but if specified indent is more than half
32 .\" the current line-length - indent, use the default indent.
33 .de Tp
34 .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
35 .el .TP "\\$1"
37 .TH GROLBP @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
38 .SH NAME
39 grolbp \- groff driver for Canon CAPSL printers (LBP-4 and LBP-8 series laser printers).
40 .SH SYNOPSIS
41 .nr a \n(.j
42 .ad l
43 .nr i \n(.i
44 .in +\w'\fBgrolbp 'u
45 .ti \niu
46 .B grolpb
47 .de OP
48 .ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
49 .el .RB "[\ " "\\$1" "\ ]"
51 .OP \-l
52 .OP \-\-landscape
53 .OP \-v
54 .OP \-\-version
55 .OP \-c n
56 .OP \-\-copies= numcopies
57 .OP \-p paper_size
58 .OP \-\-papersize= paper_size
59 .OP \-o orientation
60 .OP \-\-orientation= orientation
61 .OP \-F dir
62 .OP \-\-fontdir= dir
63 .OP \-h
64 .OP \-\-help
65 .RI "[\ " files\|.\|.\|. "\ ]"
66 .br
67 .ad \na
68 .SH DESCRIPTION
69 .B grolbp
70 is a driver for
71 .B groff
72 that produces output in CAPSL and VDM format suitable for Canon LBP\-4 and
73 LBP\-8 printers.
74 .LP
75 For compatibility with grolj4 there is an additional drawing command
76 available:
77 .TP
78 .BI \eD'R\  dh\ dv '
79 Draw a rule (i.e.\ a solid black rectangle), with one corner at the current
80 position, and the diagonally opposite corner at the current position
81 .RI +( dh , dv ).
82 .SH OPTIONS
83 Note that there can be whitespace between a one-letter option and its
84 argument; on the other hand, there must be whitespace and/or an equal sign
85 (`=') between a long-name option and its argument.
86 .TP
87 .BI \-c numcopies
88 .TQ
89 .BI \-\-copies= numcopies
90 Print
91 .I numcopies
92 copies of each page.
93 .TP
94 .B \-l
95 .TQ
96 .B \-\-landscape
97 Print the document with a landscape orientation.
98 .TP
99 .BI \-p paper_size
101 .BI \-\-papersize= paper_size
102 Set the paper size to
103 .IR paper_size ,
104 which must be a valid paper size description as indicated in the section
105 .BR "PAPER SIZES" .
107 .BI \-o orientation
109 .BI \-\-orientation= orientation
110 Print the document with
111 .I orientation
112 orientation, which must be `portrait' or `landscape'.
114 .B \-v
116 .B \-\-version
117 Print the version number.
119 .BI \-F dir
121 .BI \-\-fontdir= dir
122 Search directory
123 .IB dir /devlbp
124 for font and device description files.
126 .B \-h
128 .B \-\-help
129 Print a short help text.
130 .SH TYPEFACES
131 The driver supports the Dutch, Swiss and Swiss-Narrow scalable typefaces,
132 each one in the Regular, Bold, Italic and Bold-Italic styles.
133 Additionally, the Courier and Elite monospaced typefaces at the sizes 8 and
134 12 points (for Courier) resp. 8 and 10 points (for Elite) are supported,
135 each one in the Regular, Bold and Italic styles.
137 The following chart summarizes the font names you can use to access these
138 fonts:
141 tab(|) allbox center;
142 c c c c c
143 ab c c c c
145 Typeface | Regular | Bold | Italic | Bold-Italic
146 Dutch | TR | TB | TI | TBI
147 Swiss | HR | HB | HI | HBI
148 Swiss Narrow | HNR | HNB | HNI | HNBI
149 Courier | CR | CB | CI |
150 Elite | ER | EB | EI |
153 .SH PAPER SIZES
154 The paper size can be set in the
155 .B DESC
156 file or with command line options to
157 .BR grolbp .
158 If the paper size is specified both ways, the command line options take
159 precedence over the contents of the
160 .B DESC
161 file (this applies to the page orientation too).
163 To set the paper size in the
164 .B DESC
165 file, insert in that file a line containing
166 .B papersize
167 .IR desired_papersize ,
168 where
169 .I desired_papersize
171 .IP \(bu 4
172 One of the recognized paper sizes: `a4', `letter', `legal' or `executive'.
173 .IP \(bu 4
174 A custom defined paper size, as described in the
175 .B CUSTOM PAPER SIZES
176 subsection below.
177 .IP \(bu 4
178 The name of a file (e.g.
179 .IR /etc/papersize )
180 whose first line must be the desired paper size in one of the above formats.
182 If there are various papersize lines in the
183 .B DESC
184 file, only the first valid one is used.
186 To set the paper size in the command line, add
187 .sp 1
188 .in +2m
189 .BI \-p \ desired_papersize
190 .in -2m
191 .sp 1
193 .sp 1
194 .in +2m
195 .BI \-\-papersize= desired_papersize
196 .in -2m
197 .sp 1
198 to the other
199 .B grolbp
200 options, where
201 .B desired_papersize
202 is in the same format as in the
203 .B DESC
204 file.
206 Paper sizes are case insensitive (i.e., `A4' is the same as `a4').
208 If no paper size is specified in the
209 .B DESC
210 file or the command line, a default size of A4 is used.
212 .SH CUSTOM PAPER SIZES
213 Custom defined paper sizes are in the form
214 .BI cust length x width
215 where
216 .I length
218 .I width
219 are the dimensions of the paper you want to to use, specified in printer
220 units (1/300 of an inch).
221 For instance, to print in a postcard sized paper which is two inches long
222 and four inches wide you can insert a line containing
223 .sp 1
224 .in +2m
225 .B papersize cust600x1200
226 .in -2m
227 .sp 1
228 at the beginning of the
229 .B DESC
230 file.
231 .SH PAGE ORIENTATION
232 As with the page size, the orientation of the printed page
233 .RB ( portrait
235 .BR landscape )
236 can be set in the
237 .B DESC
238 file or with command line options.
239 It is also case insensitive.
241 To set the orientation in the
242 .B DESC
243 file, insert a line with the following content:
244 .sp 1
245 .in +2m
246 .B orientation
247 .RB [ portrait | landscape ]
248 .in -2m
249 .sp 1
250 As with paper sizes, only the first valid orientation command in the
251 .B DESC
252 file is used.
254 To set the page orientation with command line options you can use the
255 .B \-o
257 .B \-\-orientation
258 option with the same parameters
259 .RB ( portrait
261 .BR landscape )
262 as in the
263 .B DESC
264 file.
265 Or you can use the
266 .B \-l
267 option to force the pages to be printed in landscape.
268 .SH FONT FILE FORMAT
269 In addition to the usual commands described in
270 .BR groff_font (@MAN5EXT@),
271 .B grolbp
272 provides the command
273 .I lbpname
274 which sets the font name sent to the printer when requesting this font.
275 The syntax of this command is:
276 .sp 1
277 .in +2m
278 .B lbpname
279 .I printer_font_name
280 .in -2m
281 .IP \(bu
282 For bitmapped fonts,
283 .I printer_font_name
284 has the form
285 .sp 1
286 .in +2m
287 .RI N\(la base_fontname \(ra\(la font_style \(ra
288 .in -2m
289 .sp 1
290 .I base_fontname 
291 is the font name as it appears in the printers font listings without the
292 first letter, up to (but not including) the font size.
293 .I font_style
294 can be one of the letters
295 .BR R ,
296 .BR I ,
298 .BR B ,
299 indicating the font styles Roman, Italic and Bold respectively.
301 For instance, if the printer's 
302 .I font listing A
303 shows font `Nelite12I.ISO_USA', the corresponding entry in the font
304 description file is
305 .sp 1
306 .in +2m
307 .B lbpname NeliteI
308 .in -2m
310 Note that you may need to modify
311 .B grolbp
312 to add support for new bitmapped fonts, since the available font names and
313 font sizes of bitmapped fonts (as documented above) are hard-coded into the
314 program.
315 .IP \(bu
316 For scalable fonts,
317 .I printer_font_name
318 is identical to the font name as it appears in the printer's 
319 .IR "font listing A" .
321 For instance, to select the `Swiss' font in bold style, which appears in
322 the printer's
323 .I font listing A
324 as `Swiss-Bold', the required
325 .B lbpname
326 command line is
327 .sp 1
328 .in +2m
329 .B lbpname Swiss-Bold
330 .in -2m
331 .sp 1
333 The argument of
334 .B lbpname
335 is case sensitive.
336 .SH FILES
338 .B @FONTDIR@/devlbp/DESC
339 Device description file.
341 .BI @FONTDIR@/devlbp/ F
342 Font description file for font
343 .IR F .
344 .SH SEE ALSO
345 .BR groff (@MAN1EXT@),
346 .BR @g@troff (@MAN1EXT@),
347 .BR groff_out (@MAN5EXT@),
348 .BR groff_font (@MAN5EXT@),
349 .BR groff_char (@MAN7EXT@)
351 .\" Local Variables:
352 .\" mode: nroff
353 .\" End: