Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Sorting Vietnamese text

by Anonymous Monk
on Dec 23, 2013 at 19:04 UTC ( #1068246=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Sorting Vietnamese text
in thread Sorting Vietnamese text

Okay -- the alphabet is only 93 characters per the link in 1068127; you had seven characters extra.

You should clarify what the relation between monosyllables and polysyllables is, and what is the desired collation behaviour between them.

My current tr/// (/d still not doing what I expect it to):

$primary =~
tr(aảạăằẳẵắặầẩẫấậbcdđeẻẽẹềểễếệfghiỉĩịjklmnoỏọồổỗốộơờởỡớợpqrstuủũụưừửữứựvwxyỳỷỹỵz)
  (0000001111112222223456777777888888abcddddddefghijjjjjjkkkkkkllllllmnopqrrrrrrsssssstuvwwwwwwx)d;

$secondary =~ tr#aảạăằẳẵắặầẩẫấậbcdđeẻẽẹềểễếệfghiỉĩịjklmnoỏọồổỗốộơờởỡớợpqrstuủũụưừửữứựvwxyỳỷỹỵz#\x00-\x5d#d;


Comment on Re^4: Sorting Vietnamese text
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1068246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-29 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls