Egg::Plugin::Filter::Plugin::Japanese - Filter processing for Japanese.
package MyApp; use Egg qw/ Filter /; __PACKAGE__->egg_startup( .......... .... plugin_filter => { plugins=> [qw/ Japanese::EUC /], }, ); $e->filter( name => [qw/ hold_html h2z a2z j_strip j_trim /], message => [qw/ escape_html j_text:3 j_fold:72 /], );
It is a plugin for Egg::Plugin::Filter that does the filter processing for Japanese.
It is made to use by setting plugin of the configuration of Egg::Plugin::Filter.
plugin_filter => { plugins=> [qw/ Japanese::UTF8 /], },
[[Egg::Plugin::Filter::Japanese::UTF8]]¡¢ [[Egg::Plugin::Filter::Japanese::EUC]]¡¢ [[Egg::Plugin::Filter::Japanese::Shift_JIS]]
The normal-width katakana is made multi byte character.
see [[Jcode]]
The alphanumeric character is made multi byte character.
The tr method of [[Jcode]] is used.
'trim' corresponding to the multi byte space is done.
'hold' corresponding to the multi byte space is done.
'strip' corresponding to the multi byte space is done. It is replaced with half angle space.
'strip' corresponding to the multi byte space is done. It is replaced with the multi byte space.
'strip' is done for only half angle space and the em-size space. It is replaced with half angle space.
'strip' is done for only half angle space and the em-size space. It is replaced with the multi byte space.
'h2z' , 'strip_tab' , 'j_trim', 'j_strip_blank', 'crlf' are done at a time.
In NUMBER, the default when unspecifying it by the figure passed to crlf is three.
$e->filter( hoge => [qw/ j_text:2 /], );
Using it by inputting textarea is convenient.
The length of the character a line is arranged.
NUMBER is a figure passed to the jfold method of Jcode, and default is 72.
Egg::Release, Egg::Plugin::Filter, Egg::Plugin::Filter::Plugin::UTF8, Egg::Plugin::Filter::Plugin::Shift_JIS, Jcode,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '[[Egg::Plugin::Filter::Japanese::UTF8]]¡¢'. Assuming CP1252
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.