<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Encode::CNMap version 0.22
========

NAME
    Encode::CNMap - enhanced Chinese encodings with
    Simplified-Traditional auto-mapping

SYNOPSIS
    use Encode;
    use Encode::CNMap;

    # Simplified encoding (GBK/GB) -&gt; Big5 encoding ăĺ°ăĺ°
    $data="ä¸­čŻä¸­ĺ";
    printf "[Mixed GBK] %s", $data;
    printf " -&gt; [Traditional Big5] %s\n", simp_to_b5($data);

    # Simplified encoding (GBK/GB) -&gt; GB2312 encoding ä¸­ĺä¸­ĺ
    $data="ä¸­čŻä¸­ĺ";
    printf "[Mixed GBK] %s", $data;
    printf " -&gt; [Simplified GB2312] %s\n", simp_to_gb($data);

    # Traditional encoding (Big5) -&gt; GB2312 encoding ä¸­ĺä¸­ĺ
    $data="ăĺ°ăĺ°";
    printf "[Traditional Big5] %s", $data;
    printf " -&gt; [Simplified GB2312] %s\n", trad_to_gb($data);

    # Traditional encoding (Big5) -&gt; GBK encoding ä¸­čŻä¸­čŻ
    $data="ăĺ°ăĺ°";
    printf "[Traditional Big5] %s", $data;
    printf " -&gt; [Mixed GBK] %s\n", trad_to_gbk($data);

    # Encoding with Simplified&lt;-&gt;Traditional Auto-Converting
    $data=Encode::decode("gbk", "ä¸­čŻä¸­ĺ");
    printf "Traditional Big5: %s\n", encode_to_b5($data);
    printf "Simplified GB2312: %s\n", encode_to_gb($data);
    printf "Mixed GBK: %s\n", encode_to_gbk($data);

    cnmap "-command" [ *inputfile* ...] &gt; *outputfile*
    cnmapdir "-command" *inputdir/file* *outputdir/file*

    % cnmap -s2b5 gbk.txt &gt; big5.txt
    % cnmap -s2gb gbk.txt &gt; gb.txt
    % cnmap -t2gb big5.txt &gt; gb.txt
    % cnmap -t2gbk big5.txt big5-2.txt &gt; gbk.txt

    % cnmapdir -s2b5 gbkdir big5dir
    % cnmapdir -s2gb gbkdir gbdir
    % cnmapdir -t2gb big5dir gbdir
    % cnmapdir -t2gbk big5dir gbkdir

DESCRIPTION
    This module implements China-based Chinese charset encodings.
    Encodings supported are as follows.

      Canonical   Alias     Description
    -------------------------------------------------------------------
      gb2312-simp           Enhanced GB2312 simplified chinese encoding
      big5-trad             Enhanced Big5 traditional chinese encoding
    -------------------------------------------------------------------

    To find how to use this module in detail, see Encode.

BUGS, REQUESTS, COMMENTS

Please report any requests, suggestions or bugs via
http://sourceforge.net/projects/bookbot
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Encode-CNMap

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install
   enc2xs -C       # optional; updates Encode.pm's on-demand loading DB

DEPENDENCIES

This module requires perl version 5.8.0 or later.

COPYRIGHT AND LICENCE

Copyright 2003-2004 Qing-Jie Zhou &lt;qjzhou@hotmail.com&gt;

This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.</pre></body></html>