GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LINGUA::ZH::HANDETECT (3)

.ds Aq ’

NAME

Lingua::ZH::HanDetect - Guess Chinese text’s variant and encoding

CONTENTS

VERSION

This document describes version 0.04 of Lingua::ZH::HanDetect, released June 27, 2003.

SYNOPSIS



    use Lingua::ZH::HanDetect;

    # $encoding is big5-hkscs, big5, gbk, euc-cn, utf8 or 
    # $variant  is traditional, simplified or 
    my ($encoding, $variant) = han_detect($some_chinese_text);



DESCRIPTION

<B>Lingua::ZH::HanDetectB> uses statistical measures to test a text string to see if it’s in Traditional or Simplified Chinese, as well as which encoding it is in.

If the string does not contain Chinese characters, both the encoding and variant values will be set to the empty string.

This module is needed because the various encodings for Chinese text tend to occupy the similar byte ranges, rendering Encode::Guess ineffective.

SEE ALSO

Encode::HanDetect

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

Copyright 2003 by Autrijus Tang <autrijus@autrijus.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HANDETECT (3) 2003-06-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.