Lingua::ZH::CEDICT::Textfile - Interface for cedict.b5
use Lingua::ZH::CEDICT; # these are the default values; you may omit them (except source) $dict = Lingua::ZH::CEDICT->new(source => "Textfile", filename => "cedict.b5", sourceCharset => "Big5", targetCharset => "UTF-8"); # read the file $dict->init();
This module imports CEDICT from a file, e.g. from the original cedict.b5. It will attempt to do a charset conversion if sourceCharset and targetCharset have a true value and differ.
sourceCharset
targetCharset
There are a number of methods you might find useful to work with the data once it is in memory. They are included and described in Lingua::ZH::CEDICT, just in case you want to use them with one of the other interface modules as well.
Lingua::ZH::Cedict.
If you are doing charset conversions (e.g. Big5 to UTF-8), you will need Text::Iconv.
Christian Renz, <crenz@web42.com>
Copyright (C) 2002 Christian Renz. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Lingua::ZH::CEDICT. Text::Iconv.
To install Lingua::ZH::CEDICT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::ZH::CEDICT
CPAN shell
perl -MCPAN -e shell install Lingua::ZH::CEDICT
For more information on module installation, please visit the detailed CPAN module installation guide.