aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/groff.xml
diff options
context:
space:
mode:
authorArchaic <archaic@linuxfromscratch.org>2005-12-26 19:00:06 +0000
committerArchaic <archaic@linuxfromscratch.org>2005-12-26 19:00:06 +0000
commit5536f7440f2f4a12782e8d741cbbba5f1c3cfea8 (patch)
treea0f3a22ecc9c0eedfd891d54e9acf06502d2b07f /chapter06/groff.xml
parent2550494b85359ff42bb95a72911c7751cbce14d4 (diff)
Applied Alexander Patrakov's patch which adds UTF-8 capability to the
development branch of the LFS Book. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7235 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/groff.xml')
-rw-r--r--chapter06/groff.xml21
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>