Skip Menu |

This queue is for tickets about the Lingua-ZH-Romanize-Pinyin CPAN distribution.

Report information
The Basics
Id: 18538
Status: resolved
Priority: 0/
Queue: Lingua-ZH-Romanize-Pinyin

People
Owner: Nobody in particular
Requestors: lars.dieckow [...] net-m.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.12
Fixed in: (no value)



Subject: does not handle inlined UTF-8
Lingua-ZH-Romanize-Pinyin-0.12 This is perl, v5.8.7 built for i586-linux-thread-multi Linux pc87 2.6.13-15.8-default #1 Tue Feb 7 11:07:24 UTC 2006 i686 athlon i386 GNU/Linux Under the C<utf8> pragma, the source code is treated as UTF-8. The char and chars methods return empty for inlined unicode strings, see attached test case.
Subject: linguazhromanizepinyintest.pl
use utf8; use Test::More tests => 2; use Lingua::ZH::Romanize::Pinyin; my $conv = Lingua::ZH::Romanize::Pinyin->new; like($conv->char("中"), qr/^zh.ng/, 'U+4E2D: zhōng, or zhong1, or possibly just zhong'); like($conv->chars("汉字"), qr/^h.n.*z/, 'U+6C49 U+5B57: hànzi/hàn zi, or han4zi5/han4 zi5, or han4zi/han4 zi, or possibly just hanzi/han zi');
Lingua::ZH::Romanize::Pinyin version 0.20 now supports utf8 flagged string. http://search.cpan.org/~kawasaki/Lingua-ZH-Romanize-Pinyin/