Re: Unicode::Collate, useful but useless

[email protected] (Éric Cholet) Fri, 13 Apr 2007 01:33:02 +0200
Newsgroups perl.unicode
Message-ID <[email protected]>
Le 12 avr. 07 à 17:36, Rafael Garcia-Suarez a écrit :

> Éric Cholet wrote in perl.unicode :
>> % perl -MUnicode::Collate -e 'Unicode::Collate->new'
>> Unicode::Collate: Can't locate Unicode/Collate/allkeys.txt in @INC
>> (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/
>> perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/
>> local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl/ 
>> 5.8.6 /
>> usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/
>> local/lib/perl5/5.8.8 .) at -e line 1
>>
>> Okay, I know, it wants a Unicode Collation Element Table, it's well
>> documented in the pod where to get such a table.
>> But:
>> - it wants this file to be in $foo/Unicode/Collate/allkeys.txt where
>> $foo is in @INC, which is very inconvenient, and even impossible to
>> achieve in some hosted environments.
>> - It seems the default table (DUCET) isn't bundled with Perl because
>> of its size (1.2 Mb). Maybe "1.2Mb is too big" could be reconsidered
>> w.r.t today's environment. At any rate does it really make sense that
>> Unicode::Collate is in core but unusable as is?
>
> Well duh :
>     $ du -hs p4blead
>     73M     p4blead
> So yes. If Sadahiro agrees, I'll add it.

Great, thanks.

--
Éric Cholet