summaryrefslogtreecommitdiffstats
path: root/upstream/debian-bookworm/man1/grolbp.1
blob: b49ab2990d1dbe3ad4df439423cacf5897d8b8ee (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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
'\" t
.TH GROLBP 1 "7 March 2023" "groff 1.22.4"
.SH NAME
grolbp \- groff driver for Canon CAPSL printers (LBP-4 and LBP-8 \
series laser printers)
.
.
.\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
.do nr grolbp_C \n[.C]
.cp 0
.
.
.\" Modified by Francisco Andrés Verdú <pandres@dragonet.es> for the
.\" grolbp program.
.
.
.\" ====================================================================
.\" Legal Terms
.\" ====================================================================
.\"
.\" Copyright (C) 1994-2018 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.
.
.
.\" ====================================================================
.SH SYNOPSIS
.\" ====================================================================
.
.SY grolbp
.OP \-l
.OP \-c num-copies
.OP \-F font-directory
.OP \-o orientation
.OP \-p paper-size
.OP \-w width
.RI [ file
\&.\|.\|.\&]
.SY grolbp
[\c
.BI \-\-copies= num-copies\c
] [\c
.BI \-\-fontdir= font-directory\c
] [\c
.B \-\-landscape\c
] [\c
.BI \-\-linewidth= width\c
] [\c
.BI \-\-orientation= orientation\c
] [\c
.BI \-\-papersize= paper-size\c
]
.RI [ file
\&.\|.\|.\&]
.YS
.
.SY grolbp
.B \-h
.SY grolbp
.B \-\-help
.YS
.
.SY grolbp
.B \-v
.SY grolbp
.B \-\-version
.YS
.
.
.\" ====================================================================
.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
.BR grolj4 (1)
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
(\(oq=\(cq) between a long-name option and its argument.
.
.
.TP
.BI \-c " num-copies"
.TQ
.BI \-\-copies= num-copies
Print
.I num-copies
copies of each page.
.
.
.TP
.BI \-F " font-directory"
.TQ
.BI \-\-fontdir= font-directory
Prepend directory
.RI font-directory /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.
.
.
.TP
.B \-l
.TQ
.B \-\-landscape
Print the document with a landscape orientation.
.
.
.TP
.BI \-o " orientation"
.TQ
.BI \-\-orientation= orientation
Print the document with
.I orientation
orientation, which must be \(oqportrait\(cq or \(oqlandscape\(cq.
.
.
.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 section
\[lq]Paper Sizes\[rq], below.
.
.
.TP
.B \-v
.TQ
.B \-\-version
Print the version number.
.
.
.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.
.
.
.\" ====================================================================
.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
.I 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
.I DESC
file (this applies to the page orientation too).
.
.
.PP
See
.BR groff_font (5)
how to set the paper dimensions in the
.I 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
.I DESC
file.
.
.
.PP
If no paper size is specified in the
.I 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
.I DESC
file or with command-line options.
.
It is also case insensitive.
.
.
.PP
To set the orientation in the
.I 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
.I 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
.I 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 (5),
.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 \(oqNelite12I.ISO_USA\(cq, 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 \(oqSwiss\(cq font in bold style, which
appears in the printer's
.I font listing A
as \(oqSwiss-Bold\(cq, 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
.I GROFF_FONT_PATH
A list of directories in which to search for the
.IR dev name
directory in addition to the default ones.
.
See
.BR troff (1)
and
.BR \%groff_font (5)
for more details.
.
.
.\" ====================================================================
.SH FILES
.\" ====================================================================
.
.TP
.I /usr/\:share/\:groff/\:1.22.4/\:font/devlbp/DESC
Device description file.
.
.TP
.IR /usr/\:share/\:groff/\:1.22.4/\:font/devlbp/ F
Font description file for font
.IR F .
.
.TP
.I /usr/\:share/\:groff/\:1.22.4/\:tmac/lbp.tmac
Macros for use with
.BR grolbp .
.
.
.\" ====================================================================
.SH SEE ALSO
.\" ====================================================================
.
.BR groff (1),
.BR troff (1),
.BR groff_out (5),
.BR groff_font (5),
.BR groff_char (7)
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).
.cp \n[grolbp_C]
.
.
.\"
.\" Local Variables:
.\" mode: nroff
.\" End:
.\" vim: set filetype=groff: