Convert::Dayi - Dayi Convention Module
Version 0.05
use utf8; # you will need this use Convert::Dayi qw(as_ascii as_dayi from_ascii); print as_ascii("大易中文") # v db/ o1 kx print as_dayi("大易中文") # 禾 日馬竹 口言 立水
for from_ascii function , you need to provide index (start from 1)
print from_ascii('v1 db/1') # 大易 print from_ascii('v db/') # 大易 (if the word is not defined , select index 1 by default)
to translate chinese from STDIN:
#!/usr/bin/env perl use utf8; use Convert::Dayi qw(as_ascii); use Encode; while( <STDIN> ) { my $word = Encode::decode_utf8( $_ ); print as_ascii( $word ); }
Convert::Dayi module provides a way to convert chinese words to ascii code by Input Method Keys.
You can also convert the keycode to chinese back.
Cornelius, <cornelius.howl_at_gmail.com>
<cornelius.howl_at_gmail.com>
Please report any bugs or feature requests to bug-convert-dayi at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Convert-Dayi. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-convert-dayi at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Convert::Dayi
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Convert-Dayi
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Convert-Dayi
CPAN Ratings
http://cpanratings.perl.org/d/Convert-Dayi
Search CPAN
http://search.cpan.org/dist/Convert-Dayi/
Copyright 2009 Cornelius, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =a
To install Convert::Dayi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::Dayi
CPAN shell
perl -MCPAN -e shell install Convert::Dayi
For more information on module installation, please visit the detailed CPAN module installation guide.