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

NAME

Egg::Plugin::Filter::Plugin::Japanese - Filter processing for Japanese.

SYNOPSIS

  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 /],
    );

DESCRIPTION

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]]

FILTERS

h2z

The normal-width katakana is made multi byte character.

see [[Jcode]]

a2z

The alphanumeric character is made multi byte character.

The tr method of [[Jcode]] is used.

j_trim

'trim' corresponding to the multi byte space is done.

j_hold

'hold' corresponding to the multi byte space is done.

j_strip

'strip' corresponding to the multi byte space is done. It is replaced with half angle space.

j_strip_j

'strip' corresponding to the multi byte space is done. It is replaced with the multi byte space.

j_strip_blank

'strip' is done for only half angle space and the em-size space. It is replaced with half angle space.

j_strip_blank_j

'strip' is done for only half angle space and the em-size space. It is replaced with the multi byte space.

j_text [:NUMBER]

'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.

j_fold [:NUMBER]

The length of the character a line is arranged.

NUMBER is a figure passed to the jfold method of Jcode, and default is 72.

SEE ALSO

Egg::Release, Egg::Plugin::Filter, Egg::Plugin::Filter::Plugin::UTF8, Egg::Plugin::Filter::Plugin::Shift_JIS, Jcode,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

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:

Around line 131:

Non-ASCII character seen before =encoding in '[[Egg::Plugin::Filter::Japanese::UTF8]]¡¢'. Assuming CP1252