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 03-19-2018, 11:48 AM   #1
gianni_fed
Enthusiast
gianni_fed began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2015
Device: none
Name and Surname

Hello,
someone know if there is a way to automatic invert the name and surname of selected one or more files already in Calibre?
Thanks,
Gianni

Last edited by gianni_fed; 03-19-2018 at 11:53 AM.
gianni_fed is offline   Reply With Quote
Old 03-19-2018, 12:07 PM   #2
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,786
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quality Check Plugin
Fix (section)
theducks is offline   Reply With Quote
Old 03-19-2018, 01:01 PM   #3
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by gianni_fed View Post
Hello,
someone know if there is a way to automatic invert the name and surname of selected one or more files already in Calibre?
For author in the format: Surename, Name
Select books
Right click
Edit metadata
Edit metadata in Bulk
Search and replace
Search field: authors
Search for: ([^,]*), (.*)
Replace with: \2 \1
Search mode: Regular expression

Check results in preview
Click OK

Do not forget to make backup of the library before experimenting with bulk search-and-replace of metadata using Regular Expressions.

Do not hesitate to ask if you need deeper explanation.
kacir is offline   Reply With Quote
Old 03-22-2018, 09:25 AM   #4
gianni_fed
Enthusiast
gianni_fed began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Oct 2015
Device: none
Hello,
thanks for your reply.
I would like to know if it's possible that, when I select one or more files, with authors like:
"John Wayne"
"John Ford"
.......
to have an option for to automatically change it/them in:
"Wayne, John"
"Ford, John"
.....
but, maybe, this is a question to pose to the programmers of this wonderful program...
Many thanks.
Gianni

Last edited by gianni_fed; 03-22-2018 at 09:28 AM.
gianni_fed is offline   Reply With Quote
Old 03-23-2018, 05:34 AM   #5
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by gianni_fed View Post
I would like to know if it's possible that, when I select one or more files, with authors like:
"John Wayne"
"John Ford"
.......
to have an option for to automatically change it/them in:
"Wayne, John"
"Ford, John"
.....
but, maybe, this is a question to pose to the programmers of this wonderful program...
For author in the format: Name Surename
Select books
Right click
Edit metadata
Edit metadata in Bulk
Search and replace
Search field: authors
Search for: ([^ ]*) (.*)
Replace with: \2, \1
Search mode: Regular expression

Check results in preview
Click OK

Be careful, I have not tested this Regular Expression.
It might not work properly for authors with three names.
kacir is offline   Reply With Quote
Old 03-23-2018, 05:57 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
The problem is that there's no way to get it right for all names, the result of which is that you have to manually check every name.

Eg, consider the British author Alexander McCall Smith. His surname is "McCall Smith", but there's no way any algorithm can know that - it's something that the user has to know, and adjust the metadata accordingly.

Do you really buy so many books that you can't simply edit the metadata as you add each book to Calibre?
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
reverse name - surname of author? Lauraq Calibre 10 11-12-2013 05:51 AM
Folder sorting: mixed "name surname" and "surname, name"! shuusaku Library Management 2 10-18-2013 01:43 AM
Author, surname and givenname Wilcoo Calibre 15 09-17-2011 07:19 PM
Authors surname first ? geordiejohn Calibre 5 12-09-2010 11:33 AM
Import with surname, first name flinx1 Calibre 0 05-04-2009 03:24 PM


All times are GMT -4. The time now is 12:20 PM.


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