BSD Ports

chinese/p5-Lingua-ZH-HanDetect 0.04_1 MidnightBSD

Guess Chinese text's variant and encoding

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
chinese, perl5

Description

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.

In the other systems

The newest version among them is 0.04, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDchinese/p5-Lingua-ZH-HanDetect0.04_1 newestno data-[email protected]-
FreeBSDchinese/p5-Lingua-ZH-HanDetect0.04_1 newestnone known-[email protected]-
DragonFlychinese/p5-Lingua-ZH-HanDetect0.04_1 newestnone known-[email protected]-
HardenedBSDchinese/p5-Lingua-ZH-HanDetect0.04_1 newestno data-[email protected]-
GhostBSDchinese/p5-Lingua-ZH-HanDetect0.04_1 newestno data-[email protected]-

Install

Binary package:

mport install p5-Lingua-ZH-HanDetect

From mports:

cd /usr/mports/chinese/p5-Lingua-ZH-HanDetect && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Lingua-ZH-HanDetect>0:chinese/p5-Lingua-ZH-HanDetect

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Lingua/ZH/HanDetect.pm
  • %%PERL5_MAN3%%/Lingua::ZH::HanDetect.3.gz
distinfo 1
FileSizeSHA256
Lingua-ZH-HanDetect-0.04.tar.gz487492cff3451d13103afbdca1268c3dc51ab93343233a06b63d45f11d9a53d29aec
Master sites 1
  • CPAN