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 09-30-2016, 11:31 AM   #1
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Question author sort to author(s) swaps FN and LN

When adding books to calibre (dragging from folder to calibre) the author sort is fine Last name, First name.
But the author(s) field alway says First name, Last name.

Is there a way so my author(s) field will be Last name, First name?
imans314 is offline   Reply With Quote
Old 09-30-2016, 12:21 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: 30,934
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
It has a Comma between Fn and Ln?
theducks is offline   Reply With Quote
Advert
Old 09-30-2016, 03:33 PM   #3
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Yes, sorry forgot to say that.
imans314 is offline   Reply With Quote
Old 09-30-2016, 03:42 PM   #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: 30,934
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 imans314 View Post
Yes, sorry forgot to say that.
I think those were embeded metadata

You will need to remove those using the Metadata Editor (Bulk mode) Search and replace

REGEX Mode
search
(.+?),\s*(.+?)

replace
\1 \2
theducks is offline   Reply With Quote
Old 09-30-2016, 03:54 PM   #5
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Thanx, that works.

But I think the way I used to do it is faster:
select 1 book
Edit metadata
click on Manage authors
click on Copy all author sort value to author
Ok
OK

I was hoping for a solution when adding the books, it was done automatic.
It is probably a lot harder, if not impossible.
imans314 is offline   Reply With Quote
Advert
Old 09-30-2016, 04:03 PM   #6
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: 30,934
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 imans314 View Post
Thanx, that works.

But I think the way I used to do it is faster:
select 1 book
Edit metadata
click on Manage authors
click on Copy all author sort value to author
Ok
OK

I was hoping for a solution when adding the books, it was done automatic.
It is probably a lot harder, if not impossible.
Fn, Ln is not at all normal
Ln, Fn is a Normal option if you don't like Fn Ln <no comma

The Quality check PI can flip selected, reformat initials on selected, but does not fix weird stuff lik commas where they are not expected
theducks is offline   Reply With Quote
Old 09-30-2016, 04:11 PM   #7
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
I now Ln, Fn is normal. That's how my books are sorted.
But when adding books to Calibre the Author(s) field is most of the time Fn Ln, and I want those Ln, Fn.

I will have a look at the The Quality check PI.
imans314 is offline   Reply With Quote
Old 09-30-2016, 04:34 PM   #8
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: 30,934
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 imans314 View Post
I now Ln, Fn is normal. That's how my books are sorted.
But when adding books to Calibre the Author(s) field is most of the time Fn Ln, and I want those Ln, Fn.

I will have a look at the The Quality check PI.
The item you want is under FIX
theducks is offline   Reply With Quote
Old 09-30-2016, 04:39 PM   #9
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Found it!
Thanx.
imans314 is offline   Reply With Quote
Old 09-30-2016, 04:59 PM   #10
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,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by imans314 View Post
I was hoping for a solution when adding the books, it was done automatic.
It is probably a lot harder, if not impossible.
- Ad as many books as desired, not caring about how Authors field is populated.
- Then type to the search bar
authors:","
and you will get all authors that contain comma character. Now you can select them and in bulk edit apply the replacement suggested in the post no. 4.

You can also search for all authors that contain more than one comma using following regular expression, so you do not apply wrong search and replace regex to a coma separated list of authors.
So, search for
authors:"~,[^,]*,"
when you get list of books with multiple authors in a form of comma separated list, apply following search and replace strings in the Bulk Edit dialog:
Search mode: regular expression
Search field: authors
Search for: ,
Replace with: &

When typing to the search bar you have five options

king
You can simply type any string into a search line at the top and Calibre will search all columns for given string (or just columns you set in preferences). The above string "king" will return books from Stephen Hawking but also a book that has word "king" anywhere in title or description or ...

Authors:king
searches for a king substring anywhere in the author name, and returns books with authors such as Stephen King or Hawking

Authors:"king"
The same as above, but the search string might contain spaces and keywords such as OR AND ... without OR, AND and other keywords having special function

Authors:"=king"
Doesn't search for substring, but for complete string, so it will not return Hawking but only books with complete author name "king" or "King"

Authors:"~king"
Searches for a regular expression.
Regular expressions are VERY powerful tools.
For example from my example above:
authors:"~,[^,]*,"
Search for a comma ,
followed by any character that isn't comma [^,]
repeated as many times as possible *
followed by a comma again ,


You can type complex expressions when searching, such as
authors:king AND title:it
or
authors:"stephen king" OR authors:"king, stephen"


Calibre is an extremely powerful tool where you can make complex queries and then bulk edit the data using regular expressions, or you can generate complex columns automatically built from other metadata using regular expressions and/or a powerful language with functions and ...
Calibre is a database and has tools similar to other databases.
Yet, it can be used without special knowledge.
kacir is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
author → author sort ∀ books ⇒ long time! Geremia Calibre 2 04-17-2013 09:57 AM
Author and author sort fields and importing books guspasho Calibre 3 03-13-2013 11:07 PM
Minor bug with Author -> Author Sort guspasho Calibre 2 12-29-2012 05:54 AM
bulk replacement Author(s) from Author sort Brocklage Library Management 1 08-10-2012 03:41 PM
using author sort for author - Sony 950 Purple Lady Devices 2 01-29-2011 12:23 AM


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


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