source: chapter06/groff.xml@ 5536f74

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 5536f74 was 5536f74, checked in by Archaic <archaic@…>, 18 years ago

Applied Alexander Patrakov's patch which adds UTF-8 capability to the
development branch of the LFS Book.

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

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