NAME

eGuideDog::Dict::Cantonese - an informal Jyutping dictionary.

SYNOPSIS

use utf8;
use eGuideDog::Dict::Cantonese;

binmode(stdout, 'utf8');
my $dict = eGuideDog::Dict::Cantonese::new();
my $symbol = $dict->get_jyutping("é•¿");
print "é•¿: $symbol\n"; # é•¿: coeng4
$symbol = $dict->get_jyutping("长辈");
print "长辈的长: $symbol\n"; # zoeng2
my @symbols = $dict->get_jyutping("粤拼");
print "粤拼: @symbols\n"; # 粤拼: jyut6 ping3
my @words = $dict->get_words("é•¿");
print "Some words begin with é•¿: @words\n";

DESCRIPTION

This module is for looking up Jyutping of Cantonese characters or words. It's edited by a programmer not a linguistician. There will are many mistakes. So don't take it serious. It's a part of the eGuideDog project (http://e-guidedog.sf.net).

EXPORT

None by default.

METHODS

new()

Initialize dictionary.

get_jyutping($str)

Return a scalar of jyutping phonetic symbol of the first character if it is in a scalar context.

Return an array of jyutping phonetic symbols of all characters in $str if it is in an array context.

get_words($char)

Return an array of words which are begined with $char. This list of words contains multi-phonetic-symbol characters and the symbol used in the word is less frequent than the other.

is_multi_phon($char)

Return non-zero if $char is multi-phonetic-symbol character. The returned value plus 1 is the number of phonetic symbols the character has.

Return 0 if $char is single-phonetic-symbol character.

get_multi_phon($char)

Return an array of phonetic symbols of $char.

SEE ALSO

eGuideDog::Dict::Mandarin, http://e-guidedog.sf.net

AUTHOR

Cameron Wong, <hgn823-perl at yahoo.com.cn>

COPYRIGHT AND LICENSE

of the Module

Copyright 2008 by Cameron Wong

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

Some of the dictionary data is from Unihan

Copyright (c) 1996-2006 Unicode, Inc. All Rights reserved.

Name: Unihan database
Unicode version: 5.0.0
Table version: 1.1
Date: 7 July 2006

1 POD Error

The following errors were encountered while parsing the POD:

Around line 256:

Non-ASCII character seen before =encoding in '$dict->get_jyutping("é•¿");'. Assuming CP1252