Skip Menu |
 

This queue is for tickets about the Text-Kakasi CPAN distribution.

Report information
The Basics
Id: 39588
Status: new
Priority: 0/
Queue: Text-Kakasi

People
Owner: Nobody in particular
Requestors: kulp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.04
Fixed in: (no value)



Download (untitled) / with headers
text/plain 422b
The object-oriented interface to Text::Kakasi is deceiving and of limited usefulness, because each object does not maintain its own state. As you can see in the attached test script, each new instantiation of a Text::Kakasi object causes all previous instantiations to operate with the new parameters, thus removing (for me) most of the advantage of using the OO interface. Thanks for your attention to this ! -- --kulp
Subject: kakasi.pl
Download kakasi.pl
text/x-perl 486b
#!/usr/bin/env perl use strict; use Encode; use Text::Kakasi; local $\ = "\n"; sub _e { encode("UTF-8", shift) } my $a = Text::Kakasi->new(qw(-iutf8 -outf8 -Ja -Ha -Ka -Ea -s)); print _e $a->get("雑誌"); print "-" x 80; my $b = Text::Kakasi->new(qw(-iutf8 -outf8 -JH -f)); print _e $a->get("雑誌"); print _e $b->get("雑誌"); print "-" x 80; my $c = Text::Kakasi->new(qw(-iutf8 -outf8 -JH)); print _e $a->get("雑誌"); print _e $b->get("雑誌"); print _e $b->get("雑誌");


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.