The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Convert::Dayi - Dayi Convention Module

VERSION

Version 0.05

SYNOPSIS

    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 );
    }

DESCRIPTION

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.

EXPORT

FUNCTIONS

from_ascii

as_dayi

as_ascii

AUTHOR

Cornelius, <cornelius.howl_at_gmail.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Convert::Dayi

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

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:

Around line 3886:

Unknown directive: =a