On 1/21/07, Alexander E. Patrakov <[EMAIL PROTECTED]> wrote:

As for non-disruptive fixes to xorg manual pages, we can try to get
advantage from the fact that all xorg manual pages are either pure ASCII, or
valid UTF-8. The proposal is to cook up a sed that fixes all problems at
once and apply it to all files with the name man/*.man (and explain that it
has no effect on pages that need no fixes). The sed is:

sed -i -e "s/\xc3\xb8/\\\\[\/o]/" \
        -e "s/\xc3\xa4/\\\\[:a]/" \
        -e "s/\xc3\x9c/\\\\[:U]/" man/*.man

The first line is for Kristian Høgsberg, the second is for Michel Dänzer,
and the third is for Guido GÜnther.

Randy, I forgot that I never wrapped these up. It turns out that the
only packages that ship UTF-8 man pages (for now) are in the drivers.
I tested the above fix from Alexander and it works fine. Here's a
patch I cooked up. What do you think?

--
Dan
Index: BOOK/x/installing/x7driver.xml
===================================================================
--- BOOK/x/installing/x7driver.xml	(revision 6592)
+++ BOOK/x/installing/x7driver.xml	(working copy)
@@ -85,13 +85,19 @@
   <sect2 role="installation">
     <title>Installation of Xorg Drivers</title>
 
-    <para>The <application>xf86-input-evdev</application> package installs
-    a man page with character encoding not displayable using the
+    <para>The <application>xf86-input-evdev</application>,
+    <application>xf86-video-ati</application>,
+    <application>xf86-video-fbdev</application>,
+    <application>xf86-video-glint</application>, and
+    <application>xf86-video-newport</application> packages install
+    man pages with character encoding not displayable using the
     <application>Man-db</application> package. Issue the following command
-    before building the package to change the offending encoding to
+    before building these packages to change the offending encoding to
     characters <command>man</command> can properly display.</para>
 
-<screen><userinput>sed -i "s/\xc3\xb8/\\\\[\/o]/" man/evdev.man</userinput></screen>
+<screen><userinput>sed -i -e "s/\xc3\xb8/\\\\[\/o]/" \
+       -e "s/\xc3\xa4/\\\\[:a]/" \
+       -e "s/\xc3\x9c/\\\\[:U]/" man/*.man</userinput></screen>
 
     <warning><para>It is very important not to build display drivers that
     cannot be used with your hardware.  For instance, do not build Sun drivers
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to