View Single Post
Old 12-01-2010, 12:15 PM   #4
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,732
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by Lady Fitzgerald View Post
You totally lost me after, "There are two ways of doing that:"

I wasn't kidding when I said I needed detailed instructions (and yes, I did go to tweaks). What may seem basic to you is Greek to me. Sorry about that.
This is my understanding FWIW, I store authors LN, FN too...

You found the tweaks section in Preferences so that's a good start Think of the box at the top as a set of default values, that if you never ever made changes Calibre will use to control it's behaviour. There are lines of instructions in there for each one (as comments, the lines starting with #) and then below each set of comments is the actual line of code (tweak) with the value Calibre is going to use unless you tell it differently.

The "Current tweaks" box at the bottom, is where you can put any values that you want to have different, i.e. overriding the default behaviour of Calibre.

In your case, paste the following into the bottom box:
Code:
author_sort_copy_method = 'copy'
Then close Calibre and start it up again, as changes to "tweaks" will only take effect when Calibre is restarted.

That tweak fixes the problem for any *new* authors you add. Without the tweak above, you typing in a new author of "Smith, James" would have the sort stored as "James, Smith", because the default behaviour is to "invert" the name which is *not* what you want. Instead you want Calibre to *copy* the value from author, so that both will have "Smith, James" stored in it. Having applied the tweak above you will have that problem sorted from now on.

The second part of the problem (and I struggled with this too) is to realise that for all the *existing* authors in Calibre, you need to change them in a particular way to get Calibre to correctly add new books for them in the future. Calibre separately stores for each author a list recording that for a particular author name how it should be sorted.

So you need the "tag viewer" pane visible on the left side of the screen, where it has a list of stuff you can expand like "Authors", "Series", "Formats" etc. Then right-click on the "Authors" at the top of that list and choose "Manage Authors". This dialog will show you all the existing authors you have, and how each will be sorted. I suggest you then work your way down the first column, changing the values where needed so they are "Last Name, First Name" which is what you are after. You might want to double check the value on the author_sort column on the right matches how you want them to be sorted too.

Once you are done with that you should be sweet. Hope that helps.
kiwidude is offline   Reply With Quote