Journal(2005) | Blog(2006) | RandomLink | WhoAmI | LiveBookmark | HomePage

<<Previous: 针对汉字的 Lingua::Han::Utils  >>Next: 自动代理配置

汉字比划模块

Category: MyCPAN   Keywords: 汉字 比划

从新写了下比划模块,原始数据从 Unihan 解析出来。支持两万多个汉字。:)
是 Unihan 里的 kTotalStrokes 字段。

代码:

use Lingua::Han::Stroke;
my $stroke = Lingua::Han::Stroke->new();

print $stroke->("我"); # 7
print $stroke->("一"); # 1
guys, enjoy!

<<Previous: 针对汉字的 Lingua::Han::Utils  >>Next: 自动代理配置

Options: +Del.icio.us

Related items Created on 2005-11-18 20:27:49, Last modified on 2005-11-25 11:46:12
Copyright 2004-2005 All Rights Reserved. Powered by Eplanet && Catalyst 5.62.