Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2010, 03:31 PM   #16
ashleyparker
Junior Member
ashleyparker began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: Kindle 3
Quote:
Originally Posted by chaley View Post
If you are happy with calibre's default 'firstname lastname' author ordering, don't read on.

If you want to use "Lastname, Firstname" for authors, then you probably also want to change how calibre copies the author names to the author_sort field. If you don't, then you must manually edit author_sort every time you import a new book or change an author's name to avoid sorting by author displaying the list in a very strange order.

You can control how the copy using a calibre 'tweak' that changes how author_sort is generated from author. In the file tweaks.py, change author_sort_copy_method to either copy or comma (see below for more detail). Tweaks.py is found in your settings directory, which for me on windows 7 is C:\Users\charles\AppData\Roaming\calibre.

From tweaks.py:
Code:
# The algorithm used to copy author to author_sort
# Possible values are:
#  invert: use "fn ln" -> "ln, fn" (the original algorithm)
#  copy  : copy author to author_sort without modification
#  comma : use 'copy' if there is a ',' in the name, otherwise use 'invert'
author_sort_copy_method = 'invert'
I use 'copy'.

If the current author_sort fields are not correct, then once you set the tweak you can reset all the author_sort fields in one swoop. First, verify that the author names are all as you want them. Then select the books you want to change, press E to get the bulk metadata editor, check the box "automatically set author sort", and push OK. The author_sort field for all the selected books will be recomputed from the author field according to the value of the tweak.
This is exactly what I was looking for. However, after editing and saving the tweaks file. It's still inverting. What do I need to do to have Calibre load the new file?
ashleyparker is offline   Reply With Quote
Old 08-30-2010, 03:33 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: 45,262
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You have to regenerate the sort strings. Right click on any aithor in the tag browser and select manage authors and then click recalculate author sort
kovidgoyal is offline   Reply With Quote
Advert
Old 08-30-2010, 03:36 PM   #18
ashleyparker
Junior Member
ashleyparker began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: Kindle 3
Thank you kindly!
ashleyparker is offline   Reply With Quote
Old 08-24-2014, 08:27 PM   #19
PaxtonReader
Member
PaxtonReader began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Apr 2010
Device: Kindle 2 Global
I've read all of these and am still confused. What setting(s) do I have to set in order to import books and have it automatically make the author field be set to "Last Name, First Name" order, and have the stored directory on the PC list the author directory as last name, first name? Or can Calibre not do this? I have the new version 2.0.

And I'm talking about books where the internal metadata lists the author as last name, first name.
PaxtonReader is offline   Reply With Quote
Old 08-25-2014, 04:34 AM   #20
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by PaxtonReader View Post
I've read all of these and am still confused. What setting(s) do I have to set in order to import books and have it automatically make the author field be set to "Last Name, First Name" order, and have the stored directory on the PC list the author directory as last name, first name? Or can Calibre not do this? I have the new version 2.0.

And I'm talking about books where the internal metadata lists the author as last name, first name.
If you tell Calibre to use the files internal metadata when adding the books, then the author will be set however the ebook file metadata is set.

Most people store author as FirstName LastName (and have author_sort as Lastname, FirstName) as this is the way virtually all the web based metadata sources (and most ebooks) provide the author. If you use a different scheme then you are quite likely to have to be continually massaging the author field to your preferences.

Last edited by itimpi; 08-25-2014 at 04:39 AM.
itimpi is offline   Reply With Quote
Advert
Reply

Tags
author, calibre, firstname, lastname, sorting


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing from Title-Author to Author - Title Amalthia Calibre 17 01-22-2017 11:20 PM
looking for a book title and author Joebill Reading Recommendations 16 05-23-2010 06:07 AM
when importing file title metadata screwed up dschiri1 Calibre 1 07-25-2009 11:24 AM
Problems with commas in author field when importing Halo Calibre 5 12-05-2008 12:40 AM
how to embed title and author gteague Amazon Kindle 3 11-26-2007 09:45 AM


All times are GMT -4. The time now is 02:42 PM.


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