grolbp(1)
π grolbp(1) β General Commands Manual π
okay bestie, this is the manual page for grolbp, and it's lowkey a whole vibe: it's the groff output driver for Canon CaPSL printers. π
π NAME π
grolbp β groff output driver for Canon CaPSL printers. β¨
πΈ SYNOPSIS πΈ
grolbp [-l] [-c num-copies] [-F font-directory] [-o orientation]
[-p paper-format] [-w width] [file ...]
grolbp [--copies=num-copies] [--fontdir=font-directory] [--landscape]
[--linewidth=width] [--orientation=orientation]
[--papersize=paper-format] [file ...]
grolbp -h
grolbp --help
grolbp -v
grolbp --version
π DESCRIPTION π
okay so grolbp is a GNU roff output driver that translates the output of troff(1) into a CaPSL and VDM format suitable for Canon LBP-4 and LBP-8 printers. π¨οΈβ¨
Normally, grolbp is invoked by groff(1) when the latter is given the -T lbp option. (In this installation, ps is the default output device.) Use groff's -P option to pass any options shown above to grolbp. π«Ά
If no file arguments are given, or if file is -, grolbp reads the standard input stream. It writes to the standard output stream. π
π¦ 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 groff font names used to access them. Here's the cheat sheet, listified but with all the tea intact: π
- Dutch β Roman
TR; BoldTB; ItalicTI; Bold-ItalicTBI - Swiss β Roman
HR; BoldHB; ItalicHI; Bold-ItalicHBI - Swiss Narrow β Roman
HNR; BoldHNB; ItalicHNI; Bold-ItalicHNBI - Courier β Roman
CR; BoldCB; ItalicCI - Elite β Roman
ER; BoldEB; ItalicEI
π Paper format, orientation, and device description file π
grolbp supports paper formats βA4β, βletterβ, βlegalβ, and βexecutiveβ. These are matched case-insensitively. π―
The -p, --papersize option overrides any setting in the device description file DESC. If neither specifies a paper format, A4 is assumed. ποΈ
In its DESC file, grolbp (case-insensitively) recognizes an orientation directive accepting one mandatory argument, portrait or landscape. The first valid orientation directive encountered controls. π
The -l, -o, and --orientation command-line options override any setting in DESC. If none of the foregoing specify the orientation, portrait is assumed. π
π§ Font description files π§
In addition to the font description file directives documented in groff_font(5), grolbp recognizes lbpname, which maps the groff font name to the font name used internally by the printer. Its syntax is as follows. πͺ
lbpname printer-font-name
lbpname's argument is case-sensitive. The printer's font names are encoded as follows. π
For bitmapped fonts, printer-font_name has the form Nβ¨base-font-nameβ©β¨font-styleβ©. 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. font-style can be one of the letters R, I, or B, indicating the roman, italic, and bold styles, respectively. For instance, if the printer's βfont listing Aβ shows Nelite12I.ISO_USA, the corresponding entry in the groff font description file is lbpname NeliteI. π
You may need to modify 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. π
For scalable fonts, printer-font-name is identical to the font name as it appears in the printer's βfont listing Aβ. For instance, to select the βSwissβ font in bold-italic style, which appears in the font listing as Swiss-BoldOblique, lbpname Swiss-BoldOblique is the required directive, and this is what we find in the groff font description file HBI for the lbp device. π
βοΈ Drawing commands βοΈ
For compatibility with grolj4(1), an additional drawing command is available. ποΈ
\D'R dh dv'
Draw a rule (solid black rectangle) with one corner at the drawing position, and the diagonally opposite corner at the drawing position +(dh,dv). π€
π OPTIONS π
-h,--helpβ display a usage message; exits afterward. π«Ά-v,--versionβ show version information; exits afterward. β-c num-copies,--copies=num-copiesβ produce num-copies copies of each page. π-F font-directory,--fontdir=font-directoryβ prepend directoryfont-directory/devnameto the search path for font and device description files;nameis the name of the device, usuallylbp. π-l,--landscapeβ format the document in landscape orientation. π-o orientation,--orientation=orientationβ format the document in the given orientation, which must beportraitorlandscape. π§-p paper-format,--papersize=paper-formatβ set the paper format to paper-format, which must be a valid paper format as described above. π-w width,--linewidth=widthβ set the default line thickness to width thousandths of an em; the default is40(0.04 em). β¨
π¦ EXIT STATUS π¦
grolbp exits with status 0 on successful operation, status 2 if the program cannot interpret its command-line arguments, and status 1 if it encounters an error during operation. π
πΏ ENVIRONMENT πΏ
GROFF_FONT_PATHβ lists directories in which to seek the selected output device's directory of device and font description files. Seetroff(1)andgroff_font(5). π
ποΈ FILES ποΈ
/usr/share/groff/1.24.2/font/devlbp/DESCβ describes thelbpoutput device. π/usr/share/groff/1.24.2/font/devlbp/Fβ describes the font known asFon devicelbp. π€/usr/share/groff/1.24.2/tmac/lbp.tmacβ defines macros for use with thelbpoutput device. It is automatically loaded bytroffrcwhen thelbpoutput device is selected. πͺ
π SEE ALSO π
groff(1), troff(1), groff_out(5), groff_font(5), groff_char(7) β go read these too, bestie. π
k that's the whole page, periodt. π
This one is from groff 1.24.2, dated 2026-10-01, and it's the grolbp(1) manual. πβ¨
π¦ where this page comes from
- alpine 3.24: groff-doc 1.24.2-r0 Β· GPL-3.0-or-later
- Copyright (C) 1994-2024 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms