![]() Registered Member ![]()
|
Hi you all,
I've been using Amarok on my Ubuntu for sometime now and I realize that some of my Thai songs (I am Thai by the way) are not put into the right header in the collection view. Please see the attached screen short. To be more specific, in the collection view, the artist will be display alphabetically grouped by its first character (without 'the'). This is correct for all of the Latin artist names. However, for my Thai artist names, all of them are grouped into one. The group header shows the first character of the last (in Thai alphabetical order). Basically, it's wrong. I tried to look into the code and have put some debuging code in it, right after the CollectionItem is created (the DividerItem (the item of the group header) is created every before that). file:collectionbrowser.cpp - function:CollectionView::renderTreeModeView - line# ~ 4000 (the line# is shift after I mess with it :p )
Basically, I want to see how the item and the group header is added. The result shows that only the Thai named (but perhaps all non-Latin) are not put in the right position. Here is a beginning part of the result:
For example, when Wasana Poonpol (The second artist) is add (her name in Thai starts with the unicode E27), instead of appearing after the item '(e27-), her item append after B(e42-) which was created for LoSo. (Code Up close 1)
But when Wolfgang Amadeus Mozart enters the sense his name appears in the right header (W(57-)). (Code Up Close 2)
Despise how much I like this genius, he should get no special treat. I also try changing the artist name to some other languages (japanese and chinese) and the result is the same. I also try to change my Ubuntu locale to Thai (I am now in Canada so I am currently use CA_EN as my Locale) but still no use. I search high-and-low (as a programmer who last use C++ was almost 10 years ago) and found that nothing can in Amarok code that seems to handle this. I bet it is somewhere in KDE or QT code (So why do I post post this in Amarok forum, you may ask). Since messing up KDE code and re-compile it, it's one of the last thing a non-C++ programmer and a GNOME user (like me) will do so I thought I can post it here and someone else may be in the better position to solve this or at least delegate this problem to someone else better to solve. If you think, this problem can be solved here in Amarok. You may guide me how and I may try to solve it. Sorry for my poor English. Have a very good day. ![]()
Last edited by NawaMan on Sat Sep 29, 2007 8:50 pm, edited 1 time in total.
|
Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]