- Timestamp:
- 03/29/2006 08:35:47 PM (19 years ago)
- Children:
- 3dc2cf3
- Parents:
- 01486e4
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/man-db.xml
r01486e4 r1707b87 26 26 27 27 <seglistitem> 28 <seg>0. 1SBU</seg>29 <seg> 1.1MB</seg>28 <seg>0.2 SBU</seg> 29 <seg>9.0 MB</seg> 30 30 </seglistitem> 31 31 </segmentedlist> … … 117 117 <screen><userinput>make install</userinput></screen> 118 118 119 <para>Some packages provide UTF-8 man pages which this version of 120 <command>man</command> is unable to display. The following script will 121 allow some of these to be converted into the expected encodings shown in 122 the table below. It will not help if you are using a UTF-8 locale. 123 Because this script is intended for limited use during the system build, 124 for public data, we will not bother with error checking, nor use a 125 non-predictable temporary file name.</para> 126 127 <screen><userinput>cat >>convert-mans <<"EOF" 128 <literal>#!/bin/sh -e 129 FROM="$1" 130 TO="$2" 131 shift ; shift 132 while [ $# -gt 0 ] 133 do 134 FILE="$1" 135 shift 136 iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv 137 mv .tmp.iconv "$FILE" 138 done 139 </literal> 140 EOF 141 install -m755 convert-mans /usr/bin</userinput></screen> 142 119 143 <para>Additional information regarding the compression of 120 144 man and info pages can be found in the BLFS book at … … 275 299 RedHat</quote>) instead of the encoding listed in the table above, they 276 300 have to be converted from UTF-8 to the encoding listed in the table before 277 installation. E.g., Spanish manual pages (<ulink278 url="http://ditec.um.es/~piernas/manpages-es/man-pages-es-1.55.tar.bz2"/>)301 installation. This can be achieved with convert-mans, e.g., Spanish manual 302 pages (<ulink url="http://ditec.um.es/~piernas/manpages-es/man-pages-es-1.55.tar.bz2"/>) 279 303 can be installed with the following commands:</para> 280 304 281 <screen role="nodump"><userinput>mkdir -p /usr/share/man/es && 282 find man? -type f | grep -v 'man7/iso_8859-7.7' | \ 283 while read F ; do 284 iconv -f UTF-8 -t ISO-8859-1 $F >tmp ; mv tmp $F 285 done && 286 cp -rv man? /usr/share/man/es</userinput></screen> 305 <screen role="nodump"><userinput>mv man7/iso_8859-7.7{,X} 306 convert-mans UTF-8 ISO-8859-1 man?/*.? 307 mv man7/iso_8859-7.7{X,} 308 make install</userinput></screen> 287 309 288 310 <note> … … 302 324 303 325 <seglistitem> 304 <seg>accessdb, apropos, catman, lexgrog, man, mandb, manpath,305 and whatis</seg>326 <seg>accessdb, apropos, catman, convert-mans,lexgrog, man, mandb, 327 manpath, and whatis</seg> 306 328 </seglistitem> 307 329 </segmentedlist> … … 345 367 </varlistentry> 346 368 369 <varlistentry id="convert-mans"> 370 <term><command>convert-mans</command></term> 371 <listitem> 372 <para>Reformat man pages so that Man-DB can display them</para> 373 <indexterm zone="ch-system-man-db convert-mans"> 374 <primary sortas="b-convert-mans">convert-mans</primary> 375 </indexterm> 376 </listitem> 377 </varlistentry> 378 347 379 <varlistentry id="lexgrog"> 348 380 <term><command>lexgrog</command></term> -
chapter06/shadow.xml
r01486e4 r1707b87 26 26 27 27 <seglistitem> 28 <seg>0. 4SBU</seg>29 <seg>1 4.7MB</seg>28 <seg>0.3 SBU</seg> 29 <seg>18.6 MB</seg> 30 30 </seglistitem> 31 31 </segmentedlist> … … 81 81 82 82 <screen><userinput>sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile</userinput></screen> 83 84 <para>Shadow supplies other manual pages in a UTF-8 encoding. Man-DB 85 can display these in the recommended encodings by using the convert-mans 86 script which we installed.</para> 87 88 <screen><userinput> for i in de es fi fr id it pt_BR; do 89 convert-mans UTF-8 ISO-8859-1 man/${i}/*.? 90 done 91 92 for i in cs hu pl; do 93 convert-mans UTF-8 ISO-8859-2 man/${i}/*.? 94 done 95 96 convert-mans UTF-8 EUC-JP man/ja/*.? 97 convert-mans UTF-8 KOI8-R man/ru/*.? 98 convert-mans UTF-8 ISO-8859-9 man/tr/*.?</userinput></screen> 83 99 84 100 <para>Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.