Re: Unicode::Collate, useful but useless
[email protected] (Éric Cholet) Fri, 13 Apr 2007 01:31:42 +0200
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <[email protected]> |
Le 12 avr. 07 à 22:34, Sébastien Aperghis-Tramoni a écrit : > Éric Cholet wrote: > >> % perl -MUnicode::Collate -e 'Unicode::Collate->new' >> Unicode::Collate: Can't locate Unicode/Collate/allkeys.txt in @INC >> >> 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. > > Did you try upgrading the module with the CPAN version? The > distribution there includes the data files, so it should fix this > problem. No, it just works around the problem. > >> - 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? > > Given that Encode alone is 11 MB, the size argument does not really > stand anymore :-) -- Éric Cholet