summaryrefslogtreecommitdiff
path: root/src/devices/grolbp/grolbp.man
blob: 3672f761502a944a85cde38900444d3613b7a97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
'\" t
.\" The above line should force the use of tbl as a preprocessor
.\" vim: set syntax=nroff : 
.\" The above line should set vim into nroff mode
.ig
Copyright (C) 1994-2000, 2002, 2006, 2009
  Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.

Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.

Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in
translations approved by the Free Software Foundation instead of in
the original English.

Modified by Francisco Andrés Verdú <pandres@dragonet.es> for the grolbp
program.
..
.
.
.de TQ
.  br
.  ns
.  TP \\$1
..
.
.
.\" Like TP, but if specified indent is more than half
.\" the current line-length - indent, use the default indent.
.de Tp
.  ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
.  el .TP "\\$1"
..
.
.
.TH GROLBP @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
.
.
.SH NAME
grolbp \- groff driver for Canon CAPSL printers (LBP-4 and LBP-8 series laser printers).
.
.
.SH SYNOPSIS
.nr a \n(.j
.ad l
.nh
.nr i \n(.i
.in +\w'\fBgrolbp 'u
.ti \niu
.B grolpb
.de OP
.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
.el .RB "[\ " "\\$1" "\ ]"
..
.
.OP \-l
.OP \-\-landscape
.OP \-v
.OP \-\-version
.OP \-c n
.OP \-\-copies= numcopies
.OP \-p paper_size
.OP \-\-papersize= paper_size
.OP \-o orientation
.OP \-\-orientation= orientation
.OP \-w width
.OP \-\-linewidth= width
.OP \-F dir
.OP \-\-fontdir= dir
.OP \-h
.OP \-\-help
.RI "[\ " files\|.\|.\|. "\ ]"
.br
.ad \na
.hy
.
.
.SH DESCRIPTION
.B grolbp
is a driver for
.B groff
that produces output in CAPSL and VDM format suitable for Canon LBP\-4 and
LBP\-8 printers.
.
.LP
For compatibility with grolj4 there is an additional drawing command
available:
.
.TP
.BI \eD'R\  dh\ dv '
Draw a rule (i.e.\ a solid black rectangle), with one corner at the current
position, and the diagonally opposite corner at the current position
.RI +( dh , dv ).
.
.
.SH OPTIONS
Note that there can be whitespace between a one-letter option and its
argument; on the other hand, there must be whitespace and/or an equal sign
(`=') between a long-name option and its argument.
.
.TP
.BI \-c numcopies
.TQ
.BI \-\-copies= numcopies
Print
.I numcopies
copies of each page.
.
.TP
.B \-l
.TQ
.B \-\-landscape
Print the document with a landscape orientation.
.
.TP
.BI \-p paper_size
.TQ
.BI \-\-papersize= paper_size
Set the paper size to
.IR paper_size ,
which must be a valid paper size description as indicated in the section
.BR "PAPER SIZES" .
.
.TP
.BI \-o orientation
.TQ
.BI \-\-orientation= orientation
Print the document with
.I orientation
orientation, which must be `portrait' or `landscape'.
.
.TP
.BI \-w width
.TQ
.BI \-\-linewidth= width
Set the default line thickness to
.I width
thousandths of an em.
If this option isn't specified, the line thickness defaults to 0.04\~em.
.
.TP
.B \-v
.TQ
.B \-\-version
Print the version number.
.
.TP
.BI \-F dir
.TQ
.BI \-\-fontdir= dir
Prepend directory
.IB dir /dev name
to the search path for font and device description files;
.I name
is the name of the device, usually
.BR lbp .
.
.TP
.B \-h
.TQ
.B \-\-help
Print a short help text.
.
.
.SH TYPEFACES
The driver supports the Dutch, Swiss and Swiss-Narrow scalable typefaces,
each one in the Regular, Bold, Italic and Bold-Italic styles.
Additionally, the Courier and Elite monospaced typefaces at the sizes 8 and
12 points (for Courier) resp. 8 and 10 points (for Elite) are supported,
each one in the Regular, Bold and Italic styles.
.
.PP
The following chart summarizes the font names you can use to access these
fonts:
.
.PP
.TS
tab(|) allbox center;
c c c c c
ab c c c c
.
Typeface | Regular | Bold | Italic | Bold-Italic
Dutch | TR | TB | TI | TBI
Swiss | HR | HB | HI | HBI
Swiss Narrow | HNR | HNB | HNI | HNBI
Courier | CR | CB | CI |
Elite | ER | EB | EI |
.TE
.
.
.SH PAPER SIZES
The paper size can be set in the
.B DESC
file or with command line options to
.BR grolbp .
If the paper size is specified both ways, the command line options take
precedence over the contents of the
.B DESC
file (this applies to the page orientation too).
.
.PP
See
.BR groff_font (@MAN1EXT@)
how to set the paper dimensions in the
.B DESC
file.
.
.PP
To set the paper size in the command line, add
.sp 1
.in +2m
.BI \-p \ paper-size
.in -2m
.sp 1
or
.sp 1
.in +2m
.BI \-\-papersize= paper-size
.in -2m
.sp 1
to the other
.B grolbp
options, where
.I paper-size
is in the same format as in the
.B DESC
file.
.
.PP
If no paper size is specified in the
.B DESC
file or the command line, a default size of A4 is used.
.
.
.SH PAGE ORIENTATION
As with the page size, the orientation of the printed page
.RB ( portrait
or
.BR landscape )
can be set in the
.B DESC
file or with command line options.
It is also case insensitive.
.
.PP
To set the orientation in the
.B DESC
file, insert a line with the following content:
.sp 1
.in +2m
.B orientation
.RB [ portrait | landscape ]
.in -2m
.sp 1
Only the first valid orientation command in the
.B DESC
file is used.
.
.PP
To set the page orientation with command line options you can use the
.B \-o
or
.B \-\-orientation
option with the same parameters
.RB ( portrait
or
.BR landscape )
as in the
.B DESC
file.
Or you can use the
.B \-l
option to force the pages to be printed in landscape.
.
.
.SH FONT FILE FORMAT
In addition to the usual commands described in
.BR groff_font (@MAN5EXT@),
.B grolbp
provides the command
.I lbpname
which sets the font name sent to the printer when requesting this font.
The syntax of this command is:
.sp 1
.in +2m
.B lbpname
.I printer_font_name
.in -2m
.
.IP \(bu
For bitmapped fonts,
.I printer_font_name
has the form
.sp 1
.in +2m
.RI N\(la base_fontname \(ra\(la font_style \(ra
.in -2m
.sp 1
.I base_fontname 
is the font name as it appears in the printers font listings without the
first letter, up to (but not including) the font size.
.I font_style
can be one of the letters
.BR R ,
.BR I ,
or
.BR B ,
indicating the font styles Roman, Italic and Bold respectively.
.
.IP
For instance, if the printer's 
.I font listing A
shows font `Nelite12I.ISO_USA', the corresponding entry in the font
description file is
.sp 1
.in +2m
.B lbpname NeliteI
.in -2m
.
.IP
Note that you may need to modify
.B grolbp
to add support for new bitmapped fonts, since the available font names and
font sizes of bitmapped fonts (as documented above) are hard-coded into the
program.
.
.IP \(bu
For scalable fonts,
.I printer_font_name
is identical to the font name as it appears in the printer's 
.IR "font listing A" .
.
.IP
For instance, to select the `Swiss' font in bold style, which appears in
the printer's
.I font listing A
as `Swiss-Bold', the required
.B lbpname
command line is
.sp 1
.in +2m
.B lbpname Swiss-Bold
.in -2m
.sp 1
.
.PP
The argument of
.B lbpname
is case sensitive.
.
.
.SH ENVIRONMENT
.TP
.SM
.B GROFF_FONT_PATH
A list of directories in which to search for the
.BI dev name
directory in addition to the default ones.
.
See
.BR @g@troff (@MAN1EXT@)
and
.BR \%groff_font (@MAN5EXT@)
for more details.
.
.
.SH FILES
.TP
.B @FONTDIR@/devlbp/DESC
Device description file.
.
.TP
.BI @FONTDIR@/devlbp/ F
Font description file for font
.IR F .
.
.TP
.B @MACRODIR@/lbp.tmac
Macros for use with
.BR grolbp .
.
.
.SH SEE ALSO
.BR groff (@MAN1EXT@),
.BR @g@troff (@MAN1EXT@),
.BR groff_out (@MAN5EXT@),
.BR groff_font (@MAN5EXT@),
.BR groff_char (@MAN7EXT@)
.\"
.\" Local Variables:
.\" mode: nroff
.\" End: