View Single Post
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: 12,476
Karma: 8025702
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