Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 about the Monastery: (13)
As of 2015-07-31 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls