View Single Post
Old 08-01-2011, 11:30 AM   #2344
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
It is already altered.
This string-compare-code is taken from model-config.js
Code:
        compareStrings: function(a, b) {
                if (a === b) {
                        return 0;
                }
                return a > b ? 1 : -1;
        }
I suppose this was done to enable proper sorting of cyrillic titles & authors.
Simply changing
Code:
compareStrings: function(a.toUpperCase(), b.toUpperCase())
, will work for standard roman-style titles, but will break the functionality for cyrillic, as toUpperCase() will fail to return the proper uppercase character.
I think I remember that boroda (porkupan) has set up a special toUpperCase function covering cyrillic in his firmware. Maybe we can lend this code and put it in.
For strictly western-style author/title just try to use toUpperCase() and build your own installer/ your own beta-test-pack.

This may or may not be related to issue #128 on the project-page.
Mark Nord is offline   Reply With Quote