Glitch IME in perl
Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
eg
lib/App
t
xt
.gitignore
.shipit
Changes
MANIFEST
MANIFEST.SKIP
Makefile.PL
README
README.mkdn

README.mkdn

NAME

App::GlitchIME - Japanese translation with Google translation API

SYNOPSIS

use App::GlitchIME;

binmode STDOUT, ":utf8";

my $ime = App::GlitchIME->new($japanse_sentence);

for (1..10) { print $ime->generate, "\n"; }

DESCRIPTION

App::GlitchIME is perl version of glitch-ime(written in Ruby).

METHODS

  • my $ime = App::GlitchIME->new($text)

This method creates new instance of App::GlitchIME

$text argument should be Japanese HIRAGANA. And it should be octet stream.

  • my $str = $img->generate();

This method returns string which is concatenated candidate of each segment. Choice of candidate is random. So you may get another string when you call this method next time.

AUTHOR

Syohei YOSHIDA syohex@gmail.com

COPYRIGHT

Copyright 2011- Syohei YOSHIDA

LICENSE

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

SEE ALSO

Original code in Ruby language by hitode909 http://d.hatena.ne.jp/hitode909/20110221.

Guide of translation API http://www.google.co.jp/intl/ja/ime/cgiapi.html