source: chapter06/groff.xml@ c1b231c9

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since c1b231c9 was c1b231c9, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Finish up some changes regarding zsoelim

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7498 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 17.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-groff" role="wrap">
9 <?dbhtml filename="groff.html"?>
10
11 <title>Groff-&groff-version;</title>
12
13 <indexterm zone="ch-system-groff">
14 <primary sortas="a-Groff">Groff</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Groff package contains programs for processing and formatting
21 text.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>0.5 SBU</seg>
29 <seg>38.7 MB</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 <segmentedlist>
34 <segtitle>&dependencies;</segtitle>
35
36 <seglistitem>
37 <seg>Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep,
38 Make, and Sed</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of Groff</title>
46
47 <para>Apply the patch that adds the <quote>ascii8</quote> and
48 <quote>nippon</quote> devices to Groff:</para>
49
50<screen><userinput>patch -Np1 -i ../&groff-debian-patch;</userinput></screen>
51
52 <note>
53 <para>These devices are used by Man-DB when formatting non-English manual
54 pages that are not in the ISO-8859-1 encoding. Currently, there is no
55 working patch for Groff-1.19.x that adds this functionality.</para>
56 <!-- Details: http://bugs.debian.org/196762 -->
57 </note>
58
59 <para>Many screen fonts don't have Unicode single quotes and dashes in them.
60 Tell Groff to use the ASCII equivalents instead:</para>
61
62<screen><userinput>sed -i -e 's/2010/002D/' -e 's/2212/002D/' \
63 -e 's/2018/0060/' -e 's/2019/0027/' font/devutf8/R.proto</userinput></screen>
64
65 <para>Groff expects the environment variable <envar>PAGE</envar> to
66 contain the default paper size. For users in the United States,
67 <parameter>PAGE=letter</parameter> is appropriate. Elsewhere,
68 <parameter>PAGE=A4</parameter> may be more suitable. While the default
69 paper size is configured during compilation, it can be overridden later
70 by echoing either <quote>A4</quote> or <quote>letter</quote> to the
71 <filename>/etc/papersize</filename> file.</para>
72
73 <para>Prepare Groff for compilation:</para>
74
75<screen><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr --enable-multibyte</userinput></screen>
76
77 <para>Compile the package:</para>
78
79<screen><userinput>make</userinput></screen>
80
81 <para>This package does not come with a test suite.</para>
82
83 <para>Install the package:</para>
84
85<screen><userinput>make install</userinput></screen>
86
87 <para>Some documentation programs, such as <command>xman</command>,
88 will not work properly without the following symlinks:</para>
89
90<screen><userinput>ln -sv eqn /usr/bin/geqn
91ln -sv tbl /usr/bin/gtbl</userinput></screen>
92
93 </sect2>
94
95 <sect2 id="contents-groff" role="content">
96 <title>Contents of Groff</title>
97
98 <segmentedlist>
99 <segtitle>Installed programs</segtitle>
100
101 <seglistitem>
102 <seg>addftinfo, afmtodit, eqn, eqn2graph, geqn (link to eqn), grn,
103 grodvi, groff, groffer, grog, grolbp, grolj4, grops, grotty, gtbl
104 (link to tbl), hpftodit, indxbib, lkbib, lookbib, mmroff, neqn,
105 nroff, pfbtops, pic, pic2graph, post-grohtml, pre-grohtml, refer,
106 soelim, tbl, tfmtodit, and troff</seg>
107 </seglistitem>
108 </segmentedlist>
109
110 <variablelist>
111 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
112 <?dbfo list-presentation="list"?>
113 <?dbhtml list-presentation="table"?>
114
115 <varlistentry id="addftinfo">
116 <term><command>addftinfo</command></term>
117 <listitem>
118 <para>Reads a troff font file and adds some additional font-metric
119 information that is used by the <command>groff</command> system</para>
120 <indexterm zone="ch-system-groff addftinfo">
121 <primary sortas="b-addftinfo">addftinfo</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="afmtodit">
127 <term><command>afmtodit</command></term>
128 <listitem>
129 <para>Creates a font file for use with <command>groff</command> and
130 <command>grops</command></para>
131 <indexterm zone="ch-system-groff afmtodit">
132 <primary sortas="b-afmtodit">afmtodit</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="eqn">
138 <term><command>eqn</command></term>
139 <listitem>
140 <para>Compiles descriptions of equations embedded within troff
141 input files into commands that are understood by
142 <command>troff</command></para>
143 <indexterm zone="ch-system-groff eqn">
144 <primary sortas="b-eqn">eqn</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="eqn2graph">
150 <term><command>eqn2graph</command></term>
151 <listitem>
152 <para>Converts a troff EQN (equation) into a cropped image</para>
153 <indexterm zone="ch-system-groff eqn2graph">
154 <primary sortas="b-eqn2graph">eqn2graph</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="geqn">
160 <term><command>geqn</command></term>
161 <listitem>
162 <para>A link to <command>eqn</command></para>
163 <indexterm zone="ch-system-groff geqn">
164 <primary sortas="b-geqn">geqn</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="grn">
170 <term><command>grn</command></term>
171 <listitem>
172 <para>A <command>groff</command> preprocessor for gremlin files</para>
173 <indexterm zone="ch-system-groff grn">
174 <primary sortas="b-grn">grn</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="grodvi">
180 <term><command>grodvi</command></term>
181 <listitem>
182 <para>A driver for <command>groff</command> that produces TeX dvi
183 format</para>
184 <indexterm zone="ch-system-groff grodvi">
185 <primary sortas="b-grodvi">grodvi</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="groff">
191 <term><command>groff</command></term>
192 <listitem>
193 <para>A front-end to the groff document formatting system; normally, it
194 runs the <command>troff</command> program and a post-processor
195 appropriate for the selected device</para>
196 <indexterm zone="ch-system-groff groff">
197 <primary sortas="b-groff">groff</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="groffer">
203 <term><command>groffer</command></term>
204 <listitem>
205 <para>Displays groff files and man pages on X and tty terminals</para>
206 <indexterm zone="ch-system-groff groffer">
207 <primary sortas="b-groffer">groffer</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="grog">
213 <term><command>grog</command></term>
214 <listitem>
215 <para>Reads files and guesses which of the <command>groff</command>
216 options <option>-e</option>, <option>-man</option>, <option>-me</option>,
217 <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
218 <option>-s</option>, and <option>-t</option> are required for printing
219 files, and reports the <command>groff</command> command including those
220 options</para>
221 <indexterm zone="ch-system-groff grog">
222 <primary sortas="b-grog">grog</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="grolbp">
228 <term><command>grolbp</command></term>
229 <listitem>
230 <para>Is a <command>groff</command> driver for Canon CAPSL printers
231 (LBP-4 and LBP-8 series laser printers)</para>
232 <indexterm zone="ch-system-groff grolbp">
233 <primary sortas="b-grolbp">grolbp</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="grolj4">
239 <term><command>grolj4</command></term>
240 <listitem>
241 <para>Is a driver for <command>groff</command> that produces output
242 in PCL5 format suitable for an HP LaserJet 4 printer</para>
243 <indexterm zone="ch-system-groff grolj4">
244 <primary sortas="b-grolj4">grolj4</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="grops">
250 <term><command>grops</command></term>
251 <listitem>
252 <para>Translates the output of GNU <command>troff</command> to
253 PostScript</para>
254 <indexterm zone="ch-system-groff grops">
255 <primary sortas="b-grops">grops</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="grotty">
261 <term><command>grotty</command></term>
262 <listitem>
263 <para>Translates the output of GNU <command>troff</command> into
264 a form suitable for typewriter-like devices</para>
265 <indexterm zone="ch-system-groff grotty">
266 <primary sortas="b-grotty">grotty</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="gtbl">
272 <term><command>gtbl</command></term>
273 <listitem>
274 <para>A link to <command>tbl</command></para>
275 <indexterm zone="ch-system-groff gtbl">
276 <primary sortas="b-gtbl">gtbl</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="hpftodit">
282 <term><command>hpftodit</command></term>
283 <listitem>
284 <para>Creates a font file for use with <command>groff -Tlj4</command>
285 from an HP-tagged font metric file</para>
286 <indexterm zone="ch-system-groff hpftodit">
287 <primary sortas="b-hpftodit">hpftodit</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="indxbib">
293 <term><command>indxbib</command></term>
294 <listitem>
295 <para>Creates an inverted index for the bibliographic databases with a
296 specified file for use with <command>refer</command>,
297 <command>lookbib</command>, and <command>lkbib</command></para>
298 <indexterm zone="ch-system-groff indxbib">
299 <primary sortas="b-indxbib">indxbib</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="lkbib">
305 <term><command>lkbib</command></term>
306 <listitem>
307 <para>Searches bibliographic databases for references that contain
308 specified keys and reports any references found</para>
309 <indexterm zone="ch-system-groff lkbib">
310 <primary sortas="b-lkbib">lkbib</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="lookbib">
316 <term><command>lookbib</command></term>
317 <listitem>
318 <para>Prints a prompt on the standard error (unless the standard input
319 is not a terminal), reads a line containing a set of keywords from the
320 standard input, searches the bibliographic databases in a specified file
321 for references containing those keywords, prints any references found
322 on the standard output, and repeats this process until the end of
323 input</para>
324 <indexterm zone="ch-system-groff lookbib">
325 <primary sortas="b-lookbib">lookbib</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="mmroff">
331 <term><command>mmroff</command></term>
332 <listitem>
333 <para>A simple preprocessor for <command>groff</command></para>
334 <indexterm zone="ch-system-groff mmroff">
335 <primary sortas="b-mmroff">mmroff</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="neqn">
341 <term><command>neqn</command></term>
342 <listitem>
343 <para>Formats equations for American Standard Code for Information
344 Interchange (ASCII) output</para>
345 <indexterm zone="ch-system-groff neqn">
346 <primary sortas="b-neqn">neqn</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="nroff">
352 <term><command>nroff</command></term>
353 <listitem>
354 <para>A script that emulates the <command>nroff</command> command
355 using <command>groff</command></para>
356 <indexterm zone="ch-system-groff nroff">
357 <primary sortas="b-nroff">nroff</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="pfbtops">
363 <term><command>pfbtops</command></term>
364 <listitem>
365 <para>Translates a PostScript font in <filename
366 class="extension">.pfb</filename> format to ASCII</para>
367 <indexterm zone="ch-system-groff pfbtops">
368 <primary sortas="b-pfbtops">pfbtops</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="pic">
374 <term><command>pic</command></term>
375 <listitem>
376 <para>Compiles descriptions of pictures embedded within troff or
377 TeX input files into commands understood by TeX or
378 <command>troff</command></para>
379 <indexterm zone="ch-system-groff pic">
380 <primary sortas="b-pic">pic</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="pic2graph">
386 <term><command>pic2graph</command></term>
387 <listitem>
388 <para>Converts a PIC diagram into a cropped image</para>
389 <indexterm zone="ch-system-groff pic2graph">
390 <primary sortas="b-pic2graph">pic2graph</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="post-grohtml">
396 <term><command>post-grohtml</command></term>
397 <listitem>
398 <para>Translates the output of GNU <command>troff</command> to
399 HTML</para>
400 <indexterm zone="ch-system-groff post-grohtml">
401 <primary sortas="b-post-grohtml">post-grohtml</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="pre-grohtml">
407 <term><command>pre-grohtml </command></term>
408 <listitem>
409 <para>Translates the output of GNU <command>troff</command> to
410 HTML</para>
411 <indexterm zone="ch-system-groff pre-grohtml">
412 <primary sortas="b-pre-grohtml">pre-grohtml</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="refer">
418 <term><command>refer</command></term>
419 <listitem>
420 <para>Copies the contents of a file to the standard output, except
421 that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
422 are interpreted as citations, and lines between <emphasis>.R1</emphasis>
423 and <emphasis>.R2</emphasis> are interpreted as commands for how
424 citations are to be processed</para>
425 <indexterm zone="ch-system-groff refer">
426 <primary sortas="b-refer">refer</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="soelim">
432 <term><command>soelim</command></term>
433 <listitem>
434 <para>Reads files and replaces lines of the form <emphasis>.so
435 file</emphasis> by the contents of the mentioned
436 <emphasis>file</emphasis></para>
437 <indexterm zone="ch-system-groff soelim">
438 <primary sortas="b-soelim">soelim</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 <varlistentry id="tbl">
444 <term><command>tbl</command></term>
445 <listitem>
446 <para>Compiles descriptions of tables embedded within troff input
447 files into commands that are understood by
448 <command>troff</command></para>
449 <indexterm zone="ch-system-groff tbl">
450 <primary sortas="b-tbl">tbl</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="tfmtodit">
456 <term><command>tfmtodit</command></term>
457 <listitem>
458 <para>Creates a font file for use with <command>groff
459 -Tdvi</command></para>
460 <indexterm zone="ch-system-groff tfmtodit">
461 <primary sortas="b-tfmtodit">tfmtodit</primary>
462 </indexterm>
463 </listitem>
464 </varlistentry>
465
466 <varlistentry id="troff">
467 <term><command>troff</command></term>
468 <listitem>
469 <para>Is highly compatible with Unix <command>troff</command>; it
470 should usually be invoked using the <command>groff</command> command,
471 which will also run preprocessors and post-processors in the
472 appropriate order and with the appropriate options</para>
473 <indexterm zone="ch-system-groff troff">
474 <primary sortas="b-troff">troff</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 </variablelist>
480
481 </sect2>
482
483</sect1>
Note: See TracBrowser for help on using the repository browser.