groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / src / devices / grolbp / grolbp.man
CommitLineData
92d0a6a6
JR
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
4d3e9548
JL
6Copyright (C) 1994-2000, 2002, 2006, 2009
7 Free Software Foundation, Inc.
92d0a6a6
JR
8
9Permission is granted to make and distribute verbatim copies of
10this manual provided the copyright notice and this permission notice
11are preserved on all copies.
12
13Permission is granted to copy and distribute modified versions of this
14manual under the conditions for verbatim copying, provided that the
15entire resulting derived work is distributed under the terms of a
16permission notice identical to this one.
17
18Permission is granted to copy and distribute translations of this
19manual into another language, under the above conditions for modified
20versions, except that this permission notice may be included in
21translations approved by the Free Software Foundation instead of in
22the original English.
23
24Modified by Francisco Andrés Verdú <pandres@dragonet.es> for the grolbp
25program.
26..
4d3e9548
JL
27.
28.
92d0a6a6 29.de TQ
4d3e9548
JL
30. br
31. ns
32. TP \\$1
92d0a6a6 33..
4d3e9548
JL
34.
35.
92d0a6a6
JR
36.\" Like TP, but if specified indent is more than half
37.\" the current line-length - indent, use the default indent.
38.de Tp
4d3e9548
JL
39. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
40. el .TP "\\$1"
92d0a6a6 41..
4d3e9548
JL
42.
43.
92d0a6a6
JR
44.TH GROLBP @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
45.
4d3e9548 46.
92d0a6a6
JR
47.SH NAME
48grolbp \- groff driver for Canon CAPSL printers (LBP-4 and LBP-8 series laser printers).
49.
4d3e9548 50.
92d0a6a6
JR
51.SH SYNOPSIS
52.nr a \n(.j
53.ad l
54.nh
55.nr i \n(.i
56.in +\w'\fBgrolbp 'u
57.ti \niu
58.B grolpb
59.de OP
60.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
61.el .RB "[\ " "\\$1" "\ ]"
62..
4d3e9548 63.
92d0a6a6
JR
64.OP \-l
65.OP \-\-landscape
66.OP \-v
67.OP \-\-version
68.OP \-c n
69.OP \-\-copies= numcopies
70.OP \-p paper_size
71.OP \-\-papersize= paper_size
72.OP \-o orientation
73.OP \-\-orientation= orientation
74.OP \-w width
75.OP \-\-linewidth= width
76.OP \-F dir
77.OP \-\-fontdir= dir
78.OP \-h
79.OP \-\-help
80.RI "[\ " files\|.\|.\|. "\ ]"
81.br
82.ad \na
83.hy
84.
4d3e9548 85.
92d0a6a6
JR
86.SH DESCRIPTION
87.B grolbp
88is a driver for
89.B groff
90that produces output in CAPSL and VDM format suitable for Canon LBP\-4 and
91LBP\-8 printers.
4d3e9548 92.
92d0a6a6
JR
93.LP
94For compatibility with grolj4 there is an additional drawing command
95available:
4d3e9548 96.
92d0a6a6
JR
97.TP
98.BI \eD'R\ dh\ dv '
99Draw a rule (i.e.\ a solid black rectangle), with one corner at the current
100position, and the diagonally opposite corner at the current position
101.RI +( dh , dv ).
4d3e9548
JL
102.
103.
92d0a6a6
JR
104.SH OPTIONS
105Note that there can be whitespace between a one-letter option and its
106argument; on the other hand, there must be whitespace and/or an equal sign
107(`=') between a long-name option and its argument.
4d3e9548 108.
92d0a6a6
JR
109.TP
110.BI \-c numcopies
111.TQ
112.BI \-\-copies= numcopies
113Print
114.I numcopies
115copies of each page.
4d3e9548 116.
92d0a6a6
JR
117.TP
118.B \-l
119.TQ
120.B \-\-landscape
121Print the document with a landscape orientation.
4d3e9548 122.
92d0a6a6
JR
123.TP
124.BI \-p paper_size
125.TQ
126.BI \-\-papersize= paper_size
127Set the paper size to
128.IR paper_size ,
129which must be a valid paper size description as indicated in the section
130.BR "PAPER SIZES" .
4d3e9548 131.
92d0a6a6
JR
132.TP
133.BI \-o orientation
134.TQ
135.BI \-\-orientation= orientation
136Print the document with
137.I orientation
138orientation, which must be `portrait' or `landscape'.
4d3e9548 139.
92d0a6a6
JR
140.TP
141.BI \-w width
142.TQ
143.BI \-\-linewidth= width
144Set the default line thickness to
145.I width
146thousandths of an em.
147If this option isn't specified, the line thickness defaults to 0.04\~em.
4d3e9548 148.
92d0a6a6
JR
149.TP
150.B \-v
151.TQ
152.B \-\-version
153Print the version number.
4d3e9548 154.
92d0a6a6
JR
155.TP
156.BI \-F dir
157.TQ
158.BI \-\-fontdir= dir
159Prepend directory
160.IB dir /dev name
161to the search path for font and device description files;
162.I name
163is the name of the device, usually
164.BR lbp .
4d3e9548 165.
92d0a6a6
JR
166.TP
167.B \-h
168.TQ
169.B \-\-help
170Print a short help text.
4d3e9548
JL
171.
172.
92d0a6a6
JR
173.SH TYPEFACES
174The driver supports the Dutch, Swiss and Swiss-Narrow scalable typefaces,
175each one in the Regular, Bold, Italic and Bold-Italic styles.
176Additionally, the Courier and Elite monospaced typefaces at the sizes 8 and
17712 points (for Courier) resp. 8 and 10 points (for Elite) are supported,
178each one in the Regular, Bold and Italic styles.
4d3e9548 179.
92d0a6a6
JR
180.PP
181The following chart summarizes the font names you can use to access these
182fonts:
4d3e9548 183.
92d0a6a6
JR
184.PP
185.TS
186tab(|) allbox center;
187c c c c c
188ab c c c c
189.
190Typeface | Regular | Bold | Italic | Bold-Italic
191Dutch | TR | TB | TI | TBI
192Swiss | HR | HB | HI | HBI
193Swiss Narrow | HNR | HNB | HNI | HNBI
194Courier | CR | CB | CI |
195Elite | ER | EB | EI |
196.TE
4d3e9548
JL
197.
198.
92d0a6a6
JR
199.SH PAPER SIZES
200The paper size can be set in the
201.B DESC
202file or with command line options to
203.BR grolbp .
204If the paper size is specified both ways, the command line options take
205precedence over the contents of the
206.B DESC
207file (this applies to the page orientation too).
4d3e9548 208.
92d0a6a6
JR
209.PP
210See
211.BR groff_font (@MAN1EXT@)
212how to set the paper dimensions in the
213.B DESC
214file.
4d3e9548 215.
92d0a6a6
JR
216.PP
217To set the paper size in the command line, add
218.sp 1
219.in +2m
220.BI \-p \ paper-size
221.in -2m
222.sp 1
223or
224.sp 1
225.in +2m
226.BI \-\-papersize= paper-size
227.in -2m
228.sp 1
229to the other
230.B grolbp
231options, where
232.I paper-size
233is in the same format as in the
234.B DESC
235file.
4d3e9548 236.
92d0a6a6
JR
237.PP
238If no paper size is specified in the
239.B DESC
240file or the command line, a default size of A4 is used.
4d3e9548
JL
241.
242.
92d0a6a6
JR
243.SH PAGE ORIENTATION
244As with the page size, the orientation of the printed page
245.RB ( portrait
246or
247.BR landscape )
248can be set in the
249.B DESC
250file or with command line options.
251It is also case insensitive.
4d3e9548 252.
92d0a6a6
JR
253.PP
254To set the orientation in the
255.B DESC
256file, insert a line with the following content:
257.sp 1
258.in +2m
259.B orientation
260.RB [ portrait | landscape ]
261.in -2m
262.sp 1
263Only the first valid orientation command in the
264.B DESC
265file is used.
4d3e9548 266.
92d0a6a6
JR
267.PP
268To set the page orientation with command line options you can use the
269.B \-o
270or
271.B \-\-orientation
272option with the same parameters
273.RB ( portrait
274or
275.BR landscape )
276as in the
277.B DESC
278file.
279Or you can use the
280.B \-l
281option to force the pages to be printed in landscape.
4d3e9548
JL
282.
283.
92d0a6a6
JR
284.SH FONT FILE FORMAT
285In addition to the usual commands described in
286.BR groff_font (@MAN5EXT@),
287.B grolbp
288provides the command
289.I lbpname
290which sets the font name sent to the printer when requesting this font.
291The syntax of this command is:
292.sp 1
293.in +2m
294.B lbpname
295.I printer_font_name
296.in -2m
4d3e9548 297.
92d0a6a6
JR
298.IP \(bu
299For bitmapped fonts,
300.I printer_font_name
301has the form
302.sp 1
303.in +2m
304.RI N\(la base_fontname \(ra\(la font_style \(ra
305.in -2m
306.sp 1
307.I base_fontname
308is the font name as it appears in the printers font listings without the
309first letter, up to (but not including) the font size.
310.I font_style
311can be one of the letters
312.BR R ,
313.BR I ,
314or
315.BR B ,
316indicating the font styles Roman, Italic and Bold respectively.
4d3e9548 317.
92d0a6a6
JR
318.IP
319For instance, if the printer's
320.I font listing A
321shows font `Nelite12I.ISO_USA', the corresponding entry in the font
322description file is
323.sp 1
324.in +2m
325.B lbpname NeliteI
326.in -2m
4d3e9548 327.
92d0a6a6
JR
328.IP
329Note that you may need to modify
330.B grolbp
331to add support for new bitmapped fonts, since the available font names and
332font sizes of bitmapped fonts (as documented above) are hard-coded into the
333program.
4d3e9548 334.
92d0a6a6
JR
335.IP \(bu
336For scalable fonts,
337.I printer_font_name
338is identical to the font name as it appears in the printer's
339.IR "font listing A" .
4d3e9548 340.
92d0a6a6
JR
341.IP
342For instance, to select the `Swiss' font in bold style, which appears in
343the printer's
344.I font listing A
345as `Swiss-Bold', the required
346.B lbpname
347command line is
348.sp 1
349.in +2m
350.B lbpname Swiss-Bold
351.in -2m
352.sp 1
4d3e9548 353.
92d0a6a6
JR
354.PP
355The argument of
356.B lbpname
357is case sensitive.
4d3e9548
JL
358.
359.
360.SH ENVIRONMENT
361.TP
362.SM
363.B GROFF_FONT_PATH
364A list of directories in which to search for the
365.BI dev name
366directory in addition to the default ones.
367.
368See
369.BR @g@troff (@MAN1EXT@)
370and
371.BR \%groff_font (@MAN5EXT@)
372for more details.
373.
374.
92d0a6a6
JR
375.SH FILES
376.TP
377.B @FONTDIR@/devlbp/DESC
378Device description file.
4d3e9548 379.
92d0a6a6
JR
380.TP
381.BI @FONTDIR@/devlbp/ F
382Font description file for font
383.IR F .
4d3e9548 384.
92d0a6a6
JR
385.TP
386.B @MACRODIR@/lbp.tmac
387Macros for use with
388.BR grolbp .
4d3e9548
JL
389.
390.
92d0a6a6
JR
391.SH SEE ALSO
392.BR groff (@MAN1EXT@),
393.BR @g@troff (@MAN1EXT@),
394.BR groff_out (@MAN5EXT@),
395.BR groff_font (@MAN5EXT@),
396.BR groff_char (@MAN7EXT@)
397.\"
398.\" Local Variables:
399.\" mode: nroff
400.\" End: