summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man1/grolbp.1
blob: f33e44bb45561168cffe369d516666d2325f66da (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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
'\" t
.TH grolbp 1 "30 April 2024" "groff 1.23.0"
.SH Name
grolbp \-
.I groff
output driver for Canon CaPSL printers
.
.
.\" Modified from grolj4 man page by Francisco Andrés Verdú
.\" <pandres@dragonet.es> for the grolbp program.
.
.
.\" ====================================================================
.\" Legal Terms
.\" ====================================================================
.\"
.\" Copyright (C) 1994-2020 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.
.
.
.\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
.do nr *groff_grolbp_1_man_C \n[.cp]
.cp 0
.
.\" Define fallback for groff 1.23's MR macro if the system lacks it.
.nr do-fallback 0
.if !\n(.f           .nr do-fallback 1 \" mandoc
.if  \n(.g .if !d MR .nr do-fallback 1 \" older groff
.if !\n(.g           .nr do-fallback 1 \" non-groff *roff
.if \n[do-fallback]  \{\
.  de MR
.    ie \\n(.$=1 \
.      I \%\\$1
.    el \
.      IR \%\\$1 (\\$2)\\$3
.  .
.\}
.rr do-fallback
.
.
.\" ====================================================================
.SH Synopsis
.\" ====================================================================
.
.SY grolbp
.RB [ \-l ]
.RB [ \-c\~\c
.IR num-copies ]
.RB [ \-F\~\c
.IR font-directory ]
.RB [ \-o\~\c
.IR orientation ]
.RB [ \-p\~\c
.IR paper-format ]
.RB [ \-w\~\c
.IR 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-format\c
]
.RI [ file\~ .\|.\|.]
.YS
.
.
.SY grolbp
.B \-h
.
.SY grolbp
.B \-\-help
.YS
.
.
.SY grolbp
.B \-v
.
.SY grolbp
.B \-\-version
.YS
.
.
.\" ====================================================================
.SH Description
.\" ====================================================================
.
This GNU
.I roff
output driver translates the output of
.MR \%troff 1
into a CaPSL and VDM format suitable for Canon LBP-4 and LBP-8 printers.
.
Normally,
.I grolbp
is invoked by
.MR groff 1
when the latter is given the
.RB \[lq] \-T\~lbp \[rq]
option.
.
(In this installation,
.B \%ps
is the default output device.)
.
Use
.IR groff 's
.B \-P
option to pass any options shown above to
.IR grolbp .
.
If no
.I file
arguments are given,
or if
.I file
is \[lq]\-\[rq],
.I grolbp
reads the standard input stream.
.
Output is written to the standard output stream.
.
.
.\" ====================================================================
.SS Typefaces
.\" ====================================================================
.
The driver supports the Dutch,
Swiss,
and Swiss-Narrow scalable typefaces,
each in the regular,
bold,
italic,
and bold-italic styles.
.
Additionally,
the bitmapped,
monospaced Courier and Elite typefaces are available in regular,
bold,
and
italic styles;
Courier at 8 and 12 points,
Elite at 8 and 10 points.
.
The following chart summarizes the
.I groff
font names used to access them.
.
.
.P
.TS
tab(|) allbox center;
Cb Cb Cb Cb Cb
L L L L L
.
Typeface | Roman | 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
.
.
.\" ====================================================================
.SS "Paper format, orientation, and device description file"
.\" ====================================================================
.
.I grolbp
supports paper formats
.RB \[lq] A4 \[rq],
.RB \[lq] letter \[rq],
.RB \[lq] legal \[rq],
and
.RB \[lq] executive \[rq].
.
These are matched case-insensitively.
.
The
.BR \-p ,
.B \-\-papersize
option overrides any setting in the device description file
.IR DESC .
.
If neither specifies a paper format,
A4 is assumed.
.
.
.P
In its
.I DESC
file,
.I grolbp
(case-insensitively) recognizes an
.B orientation
directive accepting one mandatory argument,
.B portrait
or
.BR landscape .
.
The first valid orientation directive encountered controls.
.\" XXX: This is inconsistent with other description file processing.
.
The
.BR \-l ,
.BR \-o ,
and
.B \-\-orientation
command-line options
override any setting in
.IR DESC .
.
If none of the foregoing specify the orientation,
portrait is assumed.
.
.
.\" ====================================================================
.SS "Font description files"
.\" ====================================================================
.
In addition to the font description file directives documented in
.MR groff_font 5 ,
.I grolbp
recognizes
.BR lbpname ,
which maps the
.I groff
font name to the font name used internally by the printer.
.
Its syntax is as follows.
.RS
.EX
.RI lbpname\~ printer-font-name
.EE
.RE
.
.
.BR lbpname 's
argument is case-sensitive.
.
The printer's font names are encoded as follows.
.
.
.P
For bitmapped fonts,
.I printer-font_name
has the form
.RS
.EX
.RI N\[la] base-font-name \[ra]\[la] font-style \[ra]
.EE
.RE
.I base-font-name
is the font name as it appears in the printer's 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 ,
.\" The bold-italic style apparently was not supported for bitmap fonts.
indicating the roman,
italic,
and bold styles,
respectively.
.
For instance,
if the printer's \[lq]font listing A\[rq]
shows \[lq]Nelite12I.ISO_USA\[rq],
the corresponding entry in the
.I groff
font description file is
.RS
.EX
lbpname NeliteI
.EE
.RE
.
You may need to modify
.I 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.
.
.
.P
For scalable fonts,
.I printer-font-name
is identical to the font name as it appears in the printer's \[lq]font
listing A\[rq].
.
For instance,
to select the \[lq]Swiss\[rq] font in bold-italic style,
which appears in the font listing
as \%\[lq]Swiss\-BoldOblique\[rq],
.RS
.EX
lbpname Swiss\-BoldOblique
.EE
.RE
is the required directive,
and this is what we find in the
.I groff
font description file
.I HBI
for the
.B lbp
device.
.
.
.\" ====================================================================
.SS "Drawing commands"
.\" ====================================================================
.
For compatibility with
.MR grolj4 1 ,
an additional drawing command is available.
.
.
.TP
.BI \[rs]D\[aq]R\~ "dh dv" \[aq]
Draw a rule
(solid black rectangle)
with one corner at the drawing position,
and the diagonally opposite corner at the drawing position
.RI +( dh , dv ).
.\" XXX , at which the drawing position will be afterward. ?
.
.
.\" ====================================================================
.SH Options
.\" ====================================================================
.
.B \-h
and
.B \-\-help
display a usage message,
while
.B \-v
and
.B \-\-version
show version information;
all exit afterward.
.
.
.TP
.BI \-c " num-copies"
.TQ
.BI \-\-copies= num-copies
Produce
.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 \-l
.TQ
.B \-\-landscape
Format the document in landscape orientation.
.
.
.TP
.BI \-o " orientation"
.TQ
.BI \-\-orientation= orientation
Format the document in the given
.IR orientation ,
which must be
.RB \%\[lq] portrait \[rq]
or
.RB \%\[lq] landscape \[rq].
.
.
.TP
.BI \-p " paper-format"
.TQ
.BI \-\-papersize= paper-format
Set the paper format to
.IR paper-format ,
which must be a valid paper format as described above.
.
.
.TP
.BI \-w " width"
.TQ
.BI \-\-linewidth= width
Set the default line thickness to
.I width
thousandths of an em;
the default is
.B 40
(0.04\~em).
.
.
.\" ====================================================================
.SH Environment
.\" ====================================================================
.
.TP
.I GROFF_FONT_PATH
lists directories in which to seek the selected output device's
directory of device and font description files.
.
See
.MR \%troff 1
and
.MR groff_font 5 .
.
.
.\" ====================================================================
.SH Files
.\" ====================================================================
.
.TP
.I /usr/\:\%share/\:\%groff/\:\%1.23.0/\:\%font/\:\%devlbp/\:DESC
describes the
.B lbp
output device.
.
.
.TP
.IR /usr/\:\%share/\:\%groff/\:\%1.23.0/\:\%font/\:\%devlbp/ F
describes the font known
.RI as\~ F
on device
.BR lbp .
.
.
.TP
.I /usr/\:\%share/\:\%groff/\:\%1.23.0/\:\%tmac/\:lbp\:.tmac
defines macros for use with the
.B lbp
output device.
.
It is automatically loaded by
.I troffrc
when the
.B lbp
output device is selected.
.
.
.\" ====================================================================
.SH "See also"
.\" ====================================================================
.
.MR groff 1 ,
.MR \%troff 1 ,
.MR groff_out 5 ,
.MR groff_font 5 ,
.MR groff_char 7
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).
.cp \n[*groff_grolbp_1_man_C]
.do rr *groff_grolbp_1_man_C
.
.
.\" Local Variables:
.\" fill-column: 72
.\" mode: nroff
.\" End:
.\" vim: set filetype=groff textwidth=72: