perl-unicode

Re: Unicode. Perl does the right thing?

2002-10-25 01:30:05
On Fri, Oct 25, 2002 at 02:53:43PM +0900, Dan Kogai wrote:
use charanames ":zh";
print "\N{sheng1}";

17 characters from the Big5 range has the 'sheng1' pronounciation;
no doubt many more in the Unihan range.

This "internal code of Han characters" has been discussed in depth
here by Mr Zhu Bang-Fu and friends; the consensus is that there's
no way to uniquely identify one character from another depending
only on a single 'natural' index (Cang-Jie, pinyin, etc) -- you
will end up with fixed ordering ("\N{sheng1-0001}") instead, which
is not more legible than "\x{751f}".

Thanks,
/Autrijus/

Attachment: pgpQHgqZxsGCW.pgp
Description: PGP signature