groff.xml 17 KB

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