| Text-ASCIITable-TW documentation | Contained in the Text-ASCIITable-TW distribution. |
Text::ASCIITable::TW - add TW support for Text::ASCIITable
Version 0.03
see Text::ASCIITable
Alec Chen, <alec at cpan.org>
Please report any bugs or feature requests to bug-text-asciitable-tw at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-ASCIITable-TW. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Text::ASCIITable::TW
You can also look for information at:
Copyright 2008 Alec Chen, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Text-ASCIITable-TW documentation | Contained in the Text-ASCIITable-TW distribution. |
package Text::ASCIITable::TW; use Moose; use Encode qw(encode decode); extends 'Text::ASCIITable';
use version; our $VERSION = qv('0.03');
override 'new' => sub { my $class = shift; my $hash_ref = super; my $self = bless $hash_ref, $class; return $self; }; before 'align' => sub { my $orig_length = length( decode('utf8', $_[1]) ); my $big5_length = length( encode('big5', decode('utf8', $_[1]) ) ); my $bias = $big5_length - $orig_length; $_[3] += $bias; };
1; # End of Text::ASCIITable::TW