groff.xml 17 KB

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