diff options
Diffstat (limited to 'chapter06/groff.xml')
-rw-r--r-- | chapter06/groff.xml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/chapter06/groff.xml b/chapter06/groff.xml index a2d8cb7e2..a8883e930 100644 --- a/chapter06/groff.xml +++ b/chapter06/groff.xml @@ -28,10 +28,29 @@ Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem> <sect2 role="installation"> <title>Installation of Groff</title> +<para>Apply the patch that adds the "ascii8" and "nippon" devices to Groff:</para> + +<screen><userinput>zcat ../&groff-debian-patch; | patch -Np1</userinput></screen> + +<note><para>These devices are used by Man-DB when formatting non-English manual +pages that are not in the ISO-8859-1 encoding. There is no working patch for +Groff-1.19.x that adds this functionality at the time of this writing. +<!-- Details: http://bugs.debian.org/196762 --> +</para></note> + +<para>Many screen fonts don't have Unicode dashes in them. Tell groff to use +the ASCII hyphen instead:</para> + +<screen><userinput>sed -i 's,2010,002D,' font/devutf8/R.proto +sed -i 's,2212,002D,' font/devutf8/R.proto</userinput></screen> + <para>Groff expects the environment variable <envar>PAGE</envar> to contain the default paper size. For users in the United States, <parameter>PAGE=letter</parameter> is appropriate. Elsewhere, -<parameter>PAGE=A4</parameter> may be more suitable.</para> +<parameter>PAGE=A4</parameter> may be more suitable. +The default paper size can be changed after installation by writing +the word "A4" or "letter" to the <filename>/etc/papersize</filename> +file.</para> <para>Prepare Groff for compilation:</para> |