groff.xml 17 KB

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