Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1068246]
help
Chatterbox?
[Discipulus]: ahi ahi ahi!!
[Lady_Aleena]: paco is a little over 2 years before my time.
[Discipulus]: you can try tachyon's iterative approach Re: Win32 Recursive Directory Listing
[Lady_Aleena]: I'm on Linux/
[beech]: isn't 2 year about standard recovery time for that kind of surgery?
[Discipulus]: if you hate FIle::Find
[Lady_Aleena]: I don't hate it, it just drives me crazy.
[Discipulus]: LA the solution is portable to whatever

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-04-23 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.