groff.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  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 soelim /usr/bin/zsoelim
  65. ln -sv eqn /usr/bin/geqn
  66. ln -sv tbl /usr/bin/gtbl</userinput></screen>
  67. </sect2>
  68. <sect2 id="contents-groff" role="content">
  69. <title>Contents of Groff</title>
  70. <segmentedlist>
  71. <segtitle>Installed programs</segtitle>
  72. <seglistitem>
  73. <seg>addftinfo, afmtodit, eqn, eqn2graph, geqn (link to eqn), grn,
  74. grodvi, groff, groffer, grog, grolbp, grolj4, grops, grotty, gtbl
  75. (link to tbl), hpftodit, indxbib, lkbib, lookbib, mmroff, neqn,
  76. nroff, pfbtops, pic, pic2graph, post-grohtml, pre-grohtml, refer,
  77. soelim, tbl, tfmtodit, troff, and zsoelim (link to soelim)</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="addftinfo">
  85. <term><command>addftinfo</command></term>
  86. <listitem>
  87. <para>Reads a troff font file and adds some additional font-metric
  88. information that is used by the <command>groff</command> system</para>
  89. <indexterm zone="ch-system-groff addftinfo">
  90. <primary sortas="b-addftinfo">addftinfo</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="afmtodit">
  95. <term><command>afmtodit</command></term>
  96. <listitem>
  97. <para>Creates a font file for use with <command>groff</command> and
  98. <command>grops</command></para>
  99. <indexterm zone="ch-system-groff afmtodit">
  100. <primary sortas="b-afmtodit">afmtodit</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="eqn">
  105. <term><command>eqn</command></term>
  106. <listitem>
  107. <para>Compiles descriptions of equations embedded within troff
  108. input files into commands that are understood by
  109. <command>troff</command></para>
  110. <indexterm zone="ch-system-groff eqn">
  111. <primary sortas="b-eqn">eqn</primary>
  112. </indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="eqn2graph">
  116. <term><command>eqn2graph</command></term>
  117. <listitem>
  118. <para>Converts a troff EQN (equation) into a cropped image</para>
  119. <indexterm zone="ch-system-groff eqn2graph">
  120. <primary sortas="b-eqn2graph">eqn2graph</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="geqn">
  125. <term><command>geqn</command></term>
  126. <listitem>
  127. <para>A link to <command>eqn</command></para>
  128. <indexterm zone="ch-system-groff geqn">
  129. <primary sortas="b-geqn">geqn</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="grn">
  134. <term><command>grn</command></term>
  135. <listitem>
  136. <para>A <command>groff</command> preprocessor for gremlin files</para>
  137. <indexterm zone="ch-system-groff grn">
  138. <primary sortas="b-grn">grn</primary>
  139. </indexterm>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="grodvi">
  143. <term><command>grodvi</command></term>
  144. <listitem>
  145. <para>A driver for <command>groff</command> that produces TeX dvi
  146. format</para>
  147. <indexterm zone="ch-system-groff grodvi">
  148. <primary sortas="b-grodvi">grodvi</primary>
  149. </indexterm>
  150. </listitem>
  151. </varlistentry>
  152. <varlistentry id="groff">
  153. <term><command>groff</command></term>
  154. <listitem>
  155. <para>A front-end to the groff document formatting system; normally, it
  156. runs the <command>troff</command> program and a post-processor
  157. appropriate for the selected device</para>
  158. <indexterm zone="ch-system-groff groff">
  159. <primary sortas="b-groff">groff</primary>
  160. </indexterm>
  161. </listitem>
  162. </varlistentry>
  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">
  168. <primary sortas="b-groffer">groffer</primary>
  169. </indexterm>
  170. </listitem>
  171. </varlistentry>
  172. <varlistentry id="grog">
  173. <term><command>grog</command></term>
  174. <listitem>
  175. <para>Reads files and guesses which of the <command>groff</command>
  176. options <option>-e</option>, <option>-man</option>, <option>-me</option>,
  177. <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
  178. <option>-s</option>, and <option>-t</option> are required for printing
  179. files, and reports the <command>groff</command> command including those
  180. options</para>
  181. <indexterm zone="ch-system-groff grog">
  182. <primary sortas="b-grog">grog</primary>
  183. </indexterm>
  184. </listitem>
  185. </varlistentry>
  186. <varlistentry id="grolbp">
  187. <term><command>grolbp</command></term>
  188. <listitem>
  189. <para>Is a <command>groff</command> driver for Canon CAPSL printers
  190. (LBP-4 and LBP-8 series laser printers)</para>
  191. <indexterm zone="ch-system-groff grolbp">
  192. <primary sortas="b-grolbp">grolbp</primary>
  193. </indexterm>
  194. </listitem>
  195. </varlistentry>
  196. <varlistentry id="grolj4">
  197. <term><command>grolj4</command></term>
  198. <listitem>
  199. <para>Is a driver for <command>groff</command> that produces output
  200. in PCL5 format suitable for an HP LaserJet 4 printer</para>
  201. <indexterm zone="ch-system-groff grolj4">
  202. <primary sortas="b-grolj4">grolj4</primary>
  203. </indexterm>
  204. </listitem>
  205. </varlistentry>
  206. <varlistentry id="grops">
  207. <term><command>grops</command></term>
  208. <listitem>
  209. <para>Translates the output of GNU <command>troff</command> to
  210. PostScript</para>
  211. <indexterm zone="ch-system-groff grops">
  212. <primary sortas="b-grops">grops</primary>
  213. </indexterm>
  214. </listitem>
  215. </varlistentry>
  216. <varlistentry id="grotty">
  217. <term><command>grotty</command></term>
  218. <listitem>
  219. <para>Translates the output of GNU <command>troff</command> into
  220. a form suitable for typewriter-like devices</para>
  221. <indexterm zone="ch-system-groff grotty">
  222. <primary sortas="b-grotty">grotty</primary>
  223. </indexterm>
  224. </listitem>
  225. </varlistentry>
  226. <varlistentry id="gtbl">
  227. <term><command>gtbl</command></term>
  228. <listitem>
  229. <para>A link to <command>tbl</command></para>
  230. <indexterm zone="ch-system-groff gtbl">
  231. <primary sortas="b-gtbl">gtbl</primary>
  232. </indexterm>
  233. </listitem>
  234. </varlistentry>
  235. <varlistentry id="hpftodit">
  236. <term><command>hpftodit</command></term>
  237. <listitem>
  238. <para>Creates a font file for use with <command>groff -Tlj4</command>
  239. from an HP-tagged font metric file</para>
  240. <indexterm zone="ch-system-groff hpftodit">
  241. <primary sortas="b-hpftodit">hpftodit</primary>
  242. </indexterm>
  243. </listitem>
  244. </varlistentry>
  245. <varlistentry id="indxbib">
  246. <term><command>indxbib</command></term>
  247. <listitem>
  248. <para>Creates an inverted index for the bibliographic databases with a
  249. specified file for use with <command>refer</command>,
  250. <command>lookbib</command>, and <command>lkbib</command></para>
  251. <indexterm zone="ch-system-groff indxbib">
  252. <primary sortas="b-indxbib">indxbib</primary>
  253. </indexterm>
  254. </listitem>
  255. </varlistentry>
  256. <varlistentry id="lkbib">
  257. <term><command>lkbib</command></term>
  258. <listitem>
  259. <para>Searches bibliographic databases for references that contain
  260. specified keys and reports any references found</para>
  261. <indexterm zone="ch-system-groff lkbib">
  262. <primary sortas="b-lkbib">lkbib</primary>
  263. </indexterm>
  264. </listitem>
  265. </varlistentry>
  266. <varlistentry id="lookbib">
  267. <term><command>lookbib</command></term>
  268. <listitem>
  269. <para>Prints a prompt on the standard error (unless the standard input
  270. is not a terminal), reads a line containing a set of keywords from the
  271. standard input, searches the bibliographic databases in a specified file
  272. for references containing those keywords, prints any references found
  273. on the standard output, and repeats this process until the end of
  274. input</para>
  275. <indexterm zone="ch-system-groff lookbib">
  276. <primary sortas="b-lookbib">lookbib</primary>
  277. </indexterm>
  278. </listitem>
  279. </varlistentry>
  280. <varlistentry id="mmroff">
  281. <term><command>mmroff</command></term>
  282. <listitem>
  283. <para>A simple preprocessor for <command>groff</command></para>
  284. <indexterm zone="ch-system-groff mmroff">
  285. <primary sortas="b-mmroff">mmroff</primary>
  286. </indexterm>
  287. </listitem>
  288. </varlistentry>
  289. <varlistentry id="neqn">
  290. <term><command>neqn</command></term>
  291. <listitem>
  292. <para>Formats equations for American Standard Code for Information
  293. Interchange (ASCII) output</para>
  294. <indexterm zone="ch-system-groff neqn">
  295. <primary sortas="b-neqn">neqn</primary>
  296. </indexterm>
  297. </listitem>
  298. </varlistentry>
  299. <varlistentry id="nroff">
  300. <term><command>nroff</command></term>
  301. <listitem>
  302. <para>A script that emulates the <command>nroff</command> command
  303. using <command>groff</command></para>
  304. <indexterm zone="ch-system-groff nroff">
  305. <primary sortas="b-nroff">nroff</primary>
  306. </indexterm>
  307. </listitem>
  308. </varlistentry>
  309. <varlistentry id="pfbtops">
  310. <term><command>pfbtops</command></term>
  311. <listitem>
  312. <para>Translates a PostScript font in <filename
  313. class="extension">.pfb</filename> format to ASCII</para>
  314. <indexterm zone="ch-system-groff pfbtops">
  315. <primary sortas="b-pfbtops">pfbtops</primary>
  316. </indexterm>
  317. </listitem>
  318. </varlistentry>
  319. <varlistentry id="pic">
  320. <term><command>pic</command></term>
  321. <listitem>
  322. <para>Compiles descriptions of pictures embedded within troff or
  323. TeX input files into commands understood by TeX or
  324. <command>troff</command></para>
  325. <indexterm zone="ch-system-groff pic">
  326. <primary sortas="b-pic">pic</primary>
  327. </indexterm>
  328. </listitem>
  329. </varlistentry>
  330. <varlistentry id="pic2graph">
  331. <term><command>pic2graph</command></term>
  332. <listitem>
  333. <para>Converts a PIC diagram into a cropped image</para>
  334. <indexterm zone="ch-system-groff pic2graph">
  335. <primary sortas="b-pic2graph">pic2graph</primary>
  336. </indexterm>
  337. </listitem>
  338. </varlistentry>
  339. <varlistentry id="post-grohtml">
  340. <term><command>post-grohtml</command></term>
  341. <listitem>
  342. <para>Translates the output of GNU <command>troff</command> to
  343. HTML</para>
  344. <indexterm zone="ch-system-groff post-grohtml">
  345. <primary sortas="b-post-grohtml">post-grohtml</primary>
  346. </indexterm>
  347. </listitem>
  348. </varlistentry>
  349. <varlistentry id="pre-grohtml">
  350. <term><command>pre-grohtml </command></term>
  351. <listitem>
  352. <para>Translates the output of GNU <command>troff</command> to
  353. HTML</para>
  354. <indexterm zone="ch-system-groff pre-grohtml">
  355. <primary sortas="b-pre-grohtml">pre-grohtml</primary>
  356. </indexterm>
  357. </listitem>
  358. </varlistentry>
  359. <varlistentry id="refer">
  360. <term><command>refer</command></term>
  361. <listitem>
  362. <para>Copies the contents of a file to the standard output, except
  363. that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
  364. are interpreted as citations, and lines between <emphasis>.R1</emphasis>
  365. and <emphasis>.R2</emphasis> are interpreted as commands for how
  366. citations are to be processed</para>
  367. <indexterm zone="ch-system-groff refer">
  368. <primary sortas="b-refer">refer</primary>
  369. </indexterm>
  370. </listitem>
  371. </varlistentry>
  372. <varlistentry id="soelim">
  373. <term><command>soelim</command></term>
  374. <listitem>
  375. <para>Reads files and replaces lines of the form <emphasis>.so
  376. file</emphasis> by the contents of the mentioned
  377. <emphasis>file</emphasis></para>
  378. <indexterm zone="ch-system-groff soelim">
  379. <primary sortas="b-soelim">soelim</primary>
  380. </indexterm>
  381. </listitem>
  382. </varlistentry>
  383. <varlistentry id="tbl">
  384. <term><command>tbl</command></term>
  385. <listitem>
  386. <para>Compiles descriptions of tables embedded within troff input
  387. files into commands that are understood by
  388. <command>troff</command></para>
  389. <indexterm zone="ch-system-groff tbl">
  390. <primary sortas="b-tbl">tbl</primary>
  391. </indexterm>
  392. </listitem>
  393. </varlistentry>
  394. <varlistentry id="tfmtodit">
  395. <term><command>tfmtodit</command></term>
  396. <listitem>
  397. <para>Creates a font file for use with <command>groff
  398. -Tdvi</command></para>
  399. <indexterm zone="ch-system-groff tfmtodit">
  400. <primary sortas="b-tfmtodit">tfmtodit</primary>
  401. </indexterm>
  402. </listitem>
  403. </varlistentry>
  404. <varlistentry id="troff">
  405. <term><command>troff</command></term>
  406. <listitem>
  407. <para>Is highly compatible with Unix <command>troff</command>; it
  408. should usually be invoked using the <command>groff</command> command,
  409. which will also run preprocessors and post-processors in the
  410. appropriate order and with the appropriate options</para>
  411. <indexterm zone="ch-system-groff troff">
  412. <primary sortas="b-troff">troff</primary>
  413. </indexterm>
  414. </listitem>
  415. </varlistentry>
  416. <varlistentry id="zsoelim">
  417. <term><command>zsoelim</command></term>
  418. <listitem>
  419. <para>A link to <command>soelim</command></para>
  420. <indexterm zone="ch-system-groff zsoelim">
  421. <primary sortas="b-zsoelim">zsoelim</primary>
  422. </indexterm>
  423. </listitem>
  424. </varlistentry>
  425. </variablelist>
  426. </sect2>
  427. </sect1>