[tldoc] Slovak translation of sk.po

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Jun 15 23:37:37 CEST 2011


On Wed, Jun 15, 2011 at 12:40, Norbert Preining <preining at logic.at> wrote:
> On Mi, 15 Jun 2011, Mojca Miklavec wrote:
>> If you are planning to go in that direction ... can you please try to
>> make a minimal example (standalone perl program) to check if that
>> works at all?
>
> Can you, or anyone else please send me (zipped, in UTF8) a test file
> with:
> - a list of words unsorted
> - the same list of words but correctly sorted
> - which locale shoud be used for sorting there

In Slovenian (sl_SI.UTF-8):

the alphabet: abcčdefghijklmnoprsštuvzž

sorted list of words:

ca
Cb
ča
Čd
da
Sem
si
še
Šel
ti
za
živ

to make it non-sorted, apply an arbitrary tiny permutation, for example:

ca
da
ča
živ
Čd
Šel
Sem
si
Cb
ti
še
za


The following code doesn't work for me:

use encoding 'utf8';
use locale;
use POSIX qw(locale_h);
setlocale(LC_CTYPE, "sl_SI.UTF-8");

my @sorttest = qw(cd ab ča de); # ča should be between cd and de

@sorttest = sort(@sorttest);
foreach my $a ( @sorttest ) {
    print "$a\n";
}

Mojca



More information about the tldoc mailing list