Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2011, 12:53 PM   #1
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
Easily swap LN,FN to FN LN for author?

Hi,

Just uploaded some new eBooks and some have LN,FN and others have FN LN

I prefer FN LN, and having LN,FN has screwed up my Author Sort field :-(

Try as I might I ca't find an easy way, once I've selected all the "incorrect" authors to swap LN & FN

HELP!!!
DMee is offline   Reply With Quote
Old 10-01-2011, 08:47 PM   #2
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,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by DMee View Post
Try as I might I ca't find an easy way, once I've selected all the "incorrect" authors to swap LN & FN
The easiest way is to remove them and re-add them with the swap author names checked in the Add books preferences.
DoctorOhh is offline   Reply With Quote
Advert
Old 10-04-2011, 10:35 AM   #3
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
Hmmmmm by time sorted which to reimport will prob be easier to edit the authors individually :-(

Oh for the option to select a bundle and rejig the author names en masse :-(
DMee is offline   Reply With Quote
Old 10-04-2011, 11:21 AM   #4
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: 31,003
Karma: 60358908
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 DMee View Post

Oh for the option to select a bundle and rejig the author names en masse :-(
It is called Bulk Metadata Edit Mode
Select Books to fix (suggest a particular pattern, grouping)
Tap "E"
Switch to the Search and Replace Tab.
Build you pattern in the WYSIWYG (test) form

You can save your terms for later reuse
theducks is offline   Reply With Quote
Old 07-01-2012, 07:54 AM   #5
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
OK, an old thread I know but don't get much time to play :-)

Try as I might I can't fathom a pattern to produce what I want

As I see it I need to grab everything before a comma, =>LN, everything after (up to colon) => FN, output then becomes FN+space+LN+everything from colon onwards

Then keep redoing until no more commas.

So.... any coding wizzards wanna help??
DMee is offline   Reply With Quote
Advert
Old 07-01-2012, 11:22 AM   #6
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,408
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Unless you really want to play with regular expressions, try the quality check plugin. It has the ability to change authors from FN LN to LN, FN and vice versa.

As for the regexp, I don't understand what you are trying to do. Why are there colons in author names? Are you trying to reimport the books and changing the import regular expression?

Finally, and responding to your first post, if in the Author sort name algorithm tweak you set author_sort_copy_method = 'comma', then calibre will be able to cope with both FN LN and LN, FN names. Preferences -> Tweaks -> Author sort name algorithm.
chaley is offline   Reply With Quote
Old 07-01-2012, 05:27 PM   #7
DMee
Zealot
DMee began at the beginning.
 
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
Talking

Quote:
Unless you really want to play with regular expressions, try the quality check plugin. It has the ability to change authors from FN LN to LN, FN and vice versa
OMG!!! Thankyou! Thankyou! Thankyou!!!

It doesn't handle badly formatted multiple authors for anyone else reading but it was a godsend!!!

Quote:
As for the regexp, I don't understand what you are trying to do. Why are there colons in author names? Are you trying to reimport the books and changing the import regular expression?
The "Bulk edit metadata, use search replace" answer - if you go in there then it says multiple data gets separated by colons - the author data it showed me had e.g.

Smith, Paul : Jones, Tom

So I thought I would have to keep looping round until commas all gone using colons as delimiters for surnames..... however your answer meant I didn't :-)

Quote:
Finally, and responding to your first post, if in the Author sort name algorithm tweak you set author_sort_copy_method = 'comma', then calibre will be able to cope with both FN LN and LN, FN names. Preferences -> Tweaks -> Author sort name algorithm.
Thanks for that pointer too - buried away a bit that!! However, still needed to edit the names as I use Dropbox and calibre2opds to produce a website I can browse all my books from and needed correct author names - still annoys me that some sites send back LN,FN when you ask for metadata and others don't - can't reliably select a load of books and leave it be - still have loads of checking to do might as well search individually :-(

But anyway, back to thread in question - all answered brilliantly Many Many thanks - I owe you a pint
DMee is offline   Reply With Quote
Old 07-15-2012, 11:24 AM   #8
Lisa3
Old Dog
Lisa3 began at the beginning.
 
Lisa3's Avatar
 
Posts: 13
Karma: 10
Join Date: May 2011
Location: NC
Device: Kindle & iPad
When I save files to Single Directory it saves them with the title first - the author's first name, author's last name.

Before this upgrade it was:

author's last name, first name - title

How do I get that back?
Lisa3 is offline   Reply With Quote
Old 07-15-2012, 11:51 AM   #9
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: 31,003
Karma: 60358908
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 Lisa3 View Post
When I save files to Single Directory it saves them with the title first - the author's first name, author's last name.

Before this upgrade it was:

author's last name, first name - title

How do I get that back?
Change the Save to disk Template in Preferences:
{author_sort} - {title}

Note:this will not affect the INTERNAL structure of your Library (that is not what STD does)
theducks is offline   Reply With Quote
Old 07-15-2012, 01:23 PM   #10
Lisa3
Old Dog
Lisa3 began at the beginning.
 
Lisa3's Avatar
 
Posts: 13
Karma: 10
Join Date: May 2011
Location: NC
Device: Kindle & iPad
Thanks...bless you!
Lisa3 is offline   Reply With Quote
Old 07-16-2012, 10:19 AM   #11
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
On the issue of converting LN, FN to FN LN there was some additional helpful input last week from unboggling, chaley and kiwidude at the following link (although involving the use of regular expressions and/or templates):

https://www.mobileread.com/forums/sho...d.php?t=184507
Rob557 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Swap Author & Title. scotmad Calibre 4 02-10-2011 02:24 PM
Swap howdies? durkinrobinson Introduce Yourself 12 09-06-2010 10:14 PM
DR800 swap out 3G nprnncbl iRex 3 06-07-2010 04:45 PM
Swap Author With Tags Kristo Calibre 0 03-08-2010 05:38 PM
iLiad SWAP on iLiad tirsales iRex Developer's Corner 16 09-01-2008 04:20 PM


All times are GMT -4. The time now is 06:51 AM.


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