FreeBSD.software
Home/chinese/p5-Lingua-ZH-HanDetect

p5-Lingua-ZH-HanDetect

0.04_1chinese

Guess Chinese text's variant and encoding

Lingua::ZH::HanDetect 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.

$pkg install p5-Lingua-ZH-HanDetect
metacpan.org/release/Lingua-ZH-HanDetect
Origin
chinese/p5-Lingua-ZH-HanDetect
Size
12.3KiB
License
ART10, GPLv1+
Maintainer
sunpoet@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)