Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-13-2010, 12:36 PM   #16
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
As I see it, Author sort rules depend on the Authors NAME, not the USERS country conventions.
Azimov, Isaac is correct because the Surname is Azimov

The Author sort rule should probably be entered into the Author Table on an Author By Author basis, and applies to all "Books" with that author. (If the value is set, all subsequent Author uses will respect it, but not prevent it from being Globally changed)

The only override needed would be when the user wished to ignore the (set by default) convention for their systems country-code or default language rules.
theducks is offline   Reply With Quote
Old 06-13-2010, 01:42 PM   #17
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: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Starson17: The sorting (of books) by the author field instead of the author_sort field in the main/mobile servers is a regression and will be fixed.

Last edited by kovidgoyal; 06-13-2010 at 01:46 PM.
kovidgoyal is offline   Reply With Quote
Old 06-13-2010, 01:50 PM   #18
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
@Starson17: The sorting (of books) by the author field instead of the author_sort field in the main/mobile servers is a regression and will be fixed.
Excellent.
Starson17 is offline   Reply With Quote
Old 06-13-2010, 01:54 PM   #19
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: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorting fix committed.
kovidgoyal is offline   Reply With Quote
Old 06-13-2010, 02:20 PM   #20
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
Sorting fix committed.
Works great. It now sorts as expected. Thanks for fixing something before I even had a chance to use the broken version.
Starson17 is offline   Reply With Quote
Old 06-13-2010, 03:53 PM   #21
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
As I see it, Author sort rules depend on the Authors NAME, not the USERS country conventions.
Azimov, Isaac is correct because the Surname is Azimov
Of course you are right, the person decides what his or her name is. That said, if you are guessing, you can make better guesses if you know where the person is, but even that doesn't work in places like Malaysia, where all conventions are used. Some people don't have last names (e.g., a son-of b), some people use Chinese order (unless they don't), some people use Western order, and some people make up their own rules. Even western order isn't clear when one tries to handle the 'particules' correctly (von, van, de, du, di, etc.) And that leads us to ...
Quote:
The Author sort rule should probably be entered into the Author Table on an Author By Author basis, and applies to all "Books" with that author. (If the value is set, all subsequent Author uses will respect it, but not prevent it from being Globally changed)
Storing the correct sort string on a per-author basis is indeed the right way to do it.
Quote:
The only override needed would be when the user wished to ignore the (set by default) convention for their systems country-code or default language rules.
What override are you talking about? If the sort string is set on a per-author basis, what is there to override? Are you talking about the initial guess when a new author name is first encountered?
chaley is offline   Reply With Quote
Old 06-13-2010, 04:58 PM   #22
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by chaley View Post
Of course you are right, the person decides what his or her name is. That said, if you are guessing, you can make better guesses if you know where the person is, but even that doesn't work in places like Malaysia, where all conventions are used. Some people don't have last names (e.g., a son-of b), some people use Chinese order (unless they don't), some people use Western order, and some people make up their own rules. Even western order isn't clear when one tries to handle the 'particules' correctly (von, van, de, du, di, etc.) And that leads us to ...
Storing the correct sort string on a per-author basis is indeed the right way to do it.What override are you talking about? If the sort string is set on a per-author basis, what is there to override? Are you talking about the initial guess when a new author name is first encountered?
A combination of Initial Guess and a system Language Bias (when it is applicable)
Eg. Ln,Fn for en-us would be typical but the owner may prefer authors of their native language books.
So the Bias is overridden or it could be set to: 1)<language rule> 2) "Always Ask" (for new authors)

Flexible, but not as restrictive as turning it off
BTW I use {author_sort[0]} for transfers to my device as it does not support Meta-data based search.

Not finding Weber,David (or David Weber) sorted into W would be lousy. (I really don't care if it displays as D W or W,D as long as it sorts on W)

Card Catalogs in US Libraries are filed on Last Name
theducks is offline   Reply With Quote
Old 06-14-2010, 09:54 AM   #23
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The next version (0.7.3) will support setting a sort string for individual authors. This string will be used to sort the authors in the tags browser and to construct book author_sort fields when authors are changed. It will probably be used in the appropriate places in the content server, but possibly not in the next release.

When a new author is entered into calibre, the initial value for that author's sort string is computed in the same way as today. The default is to assume the name is 'fn ln', and to try to compute a 'ln, fn' from the name. The default can be changed with the existing author sort tweak to a) as today, b) copy author unchanged, or c) copy unchanged if the name contains a comma.

The tags browser now offers an editor for viewing and setting the sort strings for individual authors, available by right-clicking on an author. One would use this editor to correct mistakes in the default, for example if want 'Sun Tzu' to sort as 'Sun Tzu' or 'Werner von Braun' to sort as 'von Braun, Werner' instead of 'Braun, Werner von'.

The author_sort for a book is computed by fetching the sort string for the individual authors and connecting them together. The author_sort field will be recomputed in the following cases:
1) the book is newly added.
2) the sort string for an author of the book is changed using the authors editor.
3) any one of the book's authors is renamed using the authors editor.

When using the metadata editors (bulk and individual), a book's author_sort field is not changed if an author is changed. If you want the author_sort to change, you must press the button/check the box. This preserves current behavior.
chaley is offline   Reply With Quote
Old 06-14-2010, 11:01 AM   #24
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by chaley View Post
When using the metadata editors (bulk and individual), a book's author_sort field is not changed if an author is changed. If you want the author_sort to change, you must press the button/check the box. This preserves current behavior.
Thanks . Those make sense.
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Author sort knyc Calibre 3 09-25-2010 05:04 AM
Author Sort thomasmorus Calibre 39 08-27-2010 04:55 PM
Author Sort wexdan Calibre 2 10-22-2009 03:21 PM
Author(s) & Author Sort BobF Calibre 11 01-02-2009 05:01 PM
Need some help with author and author sort shousa Sony Reader Dev Corner 7 02-19-2008 04:33 PM


All times are GMT -4. The time now is 08:02 AM.


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