
Template::Plugin::Filter::VisualTruncate - Filter Plugin for trimming text by the number of the columns of terminals and mobile phones.

Supported encodings on this module are UTF8, EUC-JP and system locale.
If your template was written in UTF8, then
[% USE Filter.VisualTruncate 'utf8' %]
[% row.comment | visual_truncate(20, '...') | html %]
or EUC-JP
[% USE Filter.VisualTruncate 'euc-jp' %]
[% row.comment | visual_truncate(20, '...') | html %]
or system locale
[% USE Filter.VisualTruncate 'locale' %]
[% row.comment | visual_truncate(20, '...') | html %]
If parameters are not specified explicitly...
[% row.comment | visual_truncate() | html %]
default values is used.
[% row.comment | visual_truncate(32, '...') | html %]

Overrided method. See more detail Template::Plugin::Filter
Overrided method. See more detail Template::Plugin::Filter

HTML::Filters, HTML::Plugin::Filter, Text::VisualWidth, Text::CharWidth

bokutin, <bokutin at cpan.org>

Copyright 2007 bokutin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.