docs/99797: [patch] add libiconv subsection to zh-tut/converter
Cheng-Lung Sung
clsung at FreeBSD.org
Wed Jul 5 05:30:20 UTC 2006
>Number: 99797
>Category: docs
>Synopsis: [patch] add libiconv subsection to zh-tut/converter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 05 05:30:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Cheng-Lung Sung
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD.csie.nctu.edu.tw 6.1-STABLE FreeBSD 6.1-STABLE #9: Thu May 11 14:31:45 CST 2006 root at FreeBSD.csie.nctu.edu.tw:/home/usr.obj/usr/src/sys/FREEBSD i386
>Description:
- add libiconv subsection to converter/ of zh_TW's tutorial
- also modify original iconv section
>How-To-Repeat:
>Fix:
Index: chapters/converter.sgml
===================================================================
RCS file: /home/dcvs/doc/zh_TW.Big5/books/zh-tut/chapters/converter.sgml,v
retrieving revision 1.2
diff -u -r1.2 converter.sgml
--- chapters/converter.sgml 31 Jan 2006 01:31:05 -0000 1.2
+++ chapters/converter.sgml 5 Jul 2006 05:22:54 -0000
@@ -11,16 +11,18 @@
<sect1 id="iconv">
<title>iconv</title>
<para>ç±æ¼çæ¬çåé¡ï¼FreeBSD ä¸ç iconv 2.0 大ç´æ¯ 2000 å¹´çç¨å¼ï¼
- ä¹å°±ä¸è½ GNU libiconv æææçè½æ表ï¼
- å¨ä½¿ç¨ä¸ä¹æ¯æ許å¤ç¼ºé»ã</para>
+ ä¹å°±ä¸è½ä½¿ç¨
+ <ulink url="http://www.gnu.org/software/libiconv/">GNU libiconv</ulink>
+ æææçè½æ表ï¼å¨ä½¿ç¨ä¸ä¹æ¯æ許å¤ç¼ºé»ï¼å»ºè°æ¹ç¨
+ <application>libiconv</application>ã</para>
<para>å®è£ <filename role="package">converters/iconv</filename>ã</para>
<para>åºæ¬çç¨æ³æï¼</para>
<screen>
-&prompt.user; <userinput>iconv -f gb2312 -t big5 file.gb > file.big5</userinput></screen>
+&prompt.user; <userinput>biconv -f gb2312 -t big5 file.gb > file.big5</userinput></screen>
<para>以ä¸æ¯å¯« C ç¨å¼çå°ç¯ä¾ï¼</para>
<programlisting>
#include <stdio.h>
-#include "iconv.h"
+#include "biconv.h"
void
my_iconv(char *fromcode, char *tocode, char *inbuf, char *outbuf)
@@ -74,6 +76,22 @@
http://www.dante.net/staff/konstantin/FreeBSD/iconv/</ulink></para>
</sect1>
+ <sect1 id="libiconv">
+ <title>libiconv - GNU libiconv</title>
+ <para>
+ <filename role="package">converters/libiconv</filename>
+ æ¯ç± GNU æç¼å±çï¼åè½æ¯åè¿°ç <application>iconv</application> è¼çºå®åã
+ </para>
+ <para><application>libiconv</application>使ç¨æ¹æ³ï¼</para>
+ <screen>
+&prompt.user; <userinput>iconv -f big5 -t utf8 < doc.big5 > doc.utf8</userinput>
+&prompt.user; <userinput>iconv -l</userinput>
+ </screen>
+ <para>
+ WWW: <ulink url="http://www.gnu.org/software/libiconv/">
+ http://www.gnu.org/software/libiconv/</ulink></para>
+ </sect1>
+
<sect1 id="cn2jp">
<title>cn2jp - å¨ä¸æåæ¥æéç編碼è½ç§»å½å¼åº«</title>
<para>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list