Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2011, 06:58 AM   #1
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Plugin to fix author name

I've found that many (all?) of the books that I download from Amazon have the author name listed as lastname, firstname. Consequently, when adding the book to Calibre, I have to edit the author name and sort name.

Would it be possible to write a plugin that would fix the metadata in Calibre when author name is listed as lastname, firstname?
avantman42 is offline   Reply With Quote
Old 03-16-2011, 07:31 AM   #2
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,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
I am not sure how you are adding your books, but have you tried the "Swap author firstname and lastname" option in Preferences->Adding books?
kiwidude is offline   Reply With Quote
Advert
Old 03-16-2011, 07:46 AM   #3
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
I am not sure how you are adding your books,
Usually I download them onto my Kindle, then add them to Calibre by plugging the Kindle in, viewing the books on Kindle, and copying them to the Calibre library.

Quote:
Originally Posted by kiwidude View Post
have you tried the "Swap author firstname and lastname" option in Preferences->Adding books?
I haven't tried that I'll have to investigate, thanks.
avantman42 is offline   Reply With Quote
Old 03-16-2011, 08:03 AM   #4
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
I am not sure how you are adding your books, but have you tried the "Swap author firstname and lastname" option in Preferences->Adding books?
I just tried it with a sample, and it didn't seem to help. Whether that option was ticked or not, author name was shown as "Price, Willard".

One other point - if the option did work, it'd have to edit books not bought at Amazon, since it's only books bought from Amazon that have this issue.
avantman42 is offline   Reply With Quote
Old 03-16-2011, 08:46 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by avantman42 View Post
I just tried it with a sample, and it didn't seem to help. Whether that option was ticked or not, author name was shown as "Price, Willard".
The swap option only works if the data is read from the file name. The read metadata from file (next to it) would need to be unchecked.

Quote:
Originally Posted by avantman42 View Post
One other point - if the option did work, it'd have to edit books not bought at Amazon, since it's only books bought from Amazon that have this issue.
I am confused what your "One other point" is, we change options to suit what we do in calibre all of time. The swap option does work when adding books reading their file name. I don't know if this can be done when adding books from the Kindle. The Quick Preferences Plugin allows quick on the fly changing of these settings, quite easily.

Update: This thread should help you change a bunch of these last, first names using the search and replace in the bulk metadata edit area.

Good Luck.

Last edited by DoctorOhh; 03-16-2011 at 08:51 AM.
DoctorOhh is offline   Reply With Quote
Advert
Old 03-16-2011, 10:05 AM   #6
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by avantman42 View Post
One other point - if the option did work, it'd have to edit books not bought at Amazon, since it's only books bought from Amazon that have this issue.
Quote:
Originally Posted by dwanthny View Post
I am confused what your "One other point" is, we change options to suit what we do in calibre all of time.
I rarely change the options in Calibre, largely because I don't need to.

I was hoping that it would be simple to create a GUI plugin that would swap the first & last names in the author field when editing metadata.

It's not a big deal, I can copy/paste them the right way around.
avantman42 is offline   Reply With Quote
Old 03-16-2011, 10:18 AM   #7
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,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
It is relatively simple to create a plugin to do this, but it would just duplicate functionality that exists using search/replace as per that link that dwanthny pointed you at. In a future version of the Quality Check plugin I may incorporate something like that.

There are already a bewildering away of GUI things related to authors - Search and Replace, the Manage Authors dialog, search queries and a tweak. It is a highly confusing and overly complicated part of Calibre imho. A user should be asked in the wizard when they first start Calibre whether they want to display their authors as FN LN or LN, FN, and have a flip author name menu/button for when they have imported it the wrong way around. Maybe I am just wishfully over-simplifying it.
kiwidude is offline   Reply With Quote
Old 03-16-2011, 10:24 AM   #8
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
have a flip author name menu/button for when they have imported it the wrong way around.
I may not have explained myself very well, but that's what I was hoping for. I check/edit the metadata whenever I add a book, so I don't need to do a mass update/fix. Basically, I was being lazy and looking for a simpler/better way than manually copying/pasting to correct the name.
avantman42 is offline   Reply With Quote
Old 03-16-2011, 10:47 AM   #9
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,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
I think you explained yourself fine We just wanted to suggest ways of if possible of avoiding getting the author in the wrong order in the first place.

I would suggest you raise a feature request ticket for the edit metadata and bulk edit metadata dialogs and see what Kovid says about it. Personally while possible I don't believe a plugin menu would be a "convenient" enough general solution, and a plugin approach cannot be used to extend those dialogs.
kiwidude is offline   Reply With Quote
Old 03-16-2011, 10:48 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by avantman42 View Post
I may not have explained myself very well, but that's what I was hoping for. I check/edit the metadata whenever I add a book, so I don't need to do a mass update/fix. Basically, I was being lazy and looking for a simpler/better way than manually copying/pasting to correct the name.
I agree with you, having the ability to swap fn ln would be nice. If the First name and Last names were separate fields in the database this feature would already exist, but they exist in one field so accomplishing this feat is best (easiest) done on importing the book prior to placing those names in the database.
DoctorOhh is offline   Reply With Quote
Old 03-16-2011, 10:55 AM   #11
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,784
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I really think the place to fix this, would be the "Maintain Author Sort' area (of the Tag Browser) as this would fix all occurrences in 'Books', not just a single title.
theducks is offline   Reply With Quote
Old 03-16-2011, 10:59 AM   #12
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,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
True, it would be a useful option to have there. However the Manage Authors dialog is one of the least discoverable dialogs in Calibre and suffers from a lack of find/filtering. Hitting Alt-A on a book to get all occurrences of the author and then E to bulk edit is a more natural route in my workflow.
kiwidude is offline   Reply With Quote
Old 03-16-2011, 07:20 PM   #13
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
I was just going to ask this exact same question under the exact same circumstances. The sort order is generally correct, so I've often wished that the button between the author and the author sort could be used to go either way (take the LN, FN in the sort order and generate FN LN in the author field). It wouldn't work for multiple authors, but it would be a help.

Anyway, lots of help in this thread, so thank you.
Tegan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix author sort for Kindle Isherwood Calibre 43 10-15-2014 03:56 PM
using author sort for author - Sony 950 Purple Lady Devices 2 01-29-2011 12:23 AM
Get to Know-an Author with Noahan Author Interview series! NoahMGillman Self-Promotions by Authors and Publishers 22 12-19-2010 09:45 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM
self.author in MetadataSource plugin burliest Plugins 2 05-02-2010 01:24 AM


All times are GMT -4. The time now is 09:40 PM.


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