Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2010, 05:19 AM   #1
SnakeMM
Member
SnakeMM began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Feb 2010
Device: HTC Magic
Sorting names with polish character - bug

I have discovered today that authors with names started with polish characters ie.: Ł are sorted after authors with names starting with "Z".

Has someone any solution for this problem ?

Cheers
SnakeMM is offline   Reply With Quote
Old 02-27-2010, 05:29 AM   #2
moriakaice
Memento Mori
moriakaice began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Apr 2007
Device: eClicto, iPad WiFi, Kindle 3 WiFi
It's a common problem and a way most software sorts it - I'd say it's because of the Unicode character codes, where 'z' has a lower code than 'ł' ('z' is 007A, 'ł' is 0142 [both are hex] -- or 122 vs. 322).
moriakaice is offline   Reply With Quote
 
Enthusiast
Old 02-27-2010, 07:03 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 61,012
Karma: 38191453
Join Date: Nov 2006
Location: UK
Device: Kindle PW2, iPad Retina Mini, iPhone 4, MS Surface Pro
Trouble is, there's no one sorting order that works for all languages. You really need to be able to specify a language, and then define sorting rules for that language.
HarryT is online now   Reply With Quote
Old 02-27-2010, 07:14 AM   #4
Krystian Galaj
Guru
Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.Krystian Galaj can tame squirrels without the assistance of a chair or a whip.
 
Posts: 820
Karma: 11012
Join Date: Nov 2007
Location: Warsaw, Poland
Device: Bookeen Cybook
Yup, in Polish it's supposed to be right after 'L', like 'Ą' is after 'A' and 'Ę' after 'E'... I wonder if there are two languages where the same two characters are put in different order, or if there could be one order that fits all languages (after filling in all non-Ascii characters).
Krystian Galaj is offline   Reply With Quote
Old 02-27-2010, 08:19 AM   #5
moriakaice
Memento Mori
moriakaice began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Apr 2007
Device: eClicto, iPad WiFi, Kindle 3 WiFi
Quote:
Originally Posted by Krystian Galaj View Post
or if there could be one order that fits all languages (after filling in all non-Ascii characters).
I guess that could be done by changing the non-ASCII characters to their ASCII counterparts, like changing "Ł" to "L". If we gave them some "priority", we could have it sorted with "Ł" going with other "L"'s, but then, since we've converted it from non-ASCII, move it after the last "L". Or even get all the non-ASCII, sort them, then add them to the sorted list of those ASCII-only after the ASCII character counterpart.
moriakaice is offline   Reply With Quote
Old 02-27-2010, 11:49 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 24,813
Karma: 4369673
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
At some point the calibre database will get support for defining book language and then there could conceivably be language dependent sorting, but it will be a while.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Bug] Calibre using all lower case path names krunk Calibre 0 05-01-2010 02:58 PM
File Names (character lenght) guyanonymous Calibre 8 02-26-2010 07:36 PM
Bug when sorting mores Calibre 8 10-13-2009 08:52 AM
Bug (?) related to polish (non-ascii) chars parasit Calibre 8 05-30-2009 03:55 PM
"ascii' codec can't encode character" bug ? zelda_pinwheel Calibre 2 12-21-2008 08:12 PM


All times are GMT -4. The time now is 03:54 PM.


MobileRead.com is a privately owned, operated and funded community.