source: chapter06/groff.xml@ fa21b3d

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 fa21b3d was fa21b3d, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Initial support of UTF-8. Thanks Alexander Patrakov.

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

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