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 07-04-2020, 03:59 PM   #1
Rubikscube
Junior Member
Rubikscube began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Lenovo Tab 4 10
Sorting authors with "et al."



I have a bunch of papers which I want to add to my Calibre library. Many of these papers have multiple authors and are labeled "scholar et al.". When I try to edit metadata manually, Calibre seems to understand that "et al." is not part of the name, and suggests to author sort as "Scholar". However, Calibre will still sort the paper as "al. scholar et" unless I edit the author sort of every file manually.

I have a feeling I'm missing something really simple, but the best solution I can come up with is to tweak the author sort algorithm to include "al." as a copyword ("et al." does not work), which is ok most of the time, but not always. How can I make calibre automatically ignore "et al." when sorting authors?
Rubikscube is offline   Reply With Quote
Old 07-04-2020, 06:50 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,370
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You can also 'Manage Authors' in the Tag browser to do a 1 off (per author) sort value
theducks is offline   Reply With Quote
Advert
Old 07-04-2020, 08:30 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,932
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Rubikscube View Post


I have a bunch of papers which I want to add to my Calibre library. Many of these papers have multiple authors and are labeled "scholar et al.". When I try to edit metadata manually, Calibre seems to understand that "et al." is not part of the name, and suggests to author sort as "Scholar". However, Calibre will still sort the paper as "al. scholar et" unless I edit the author sort of every file manually.

I have a feeling I'm missing something really simple, but the best solution I can come up with is to tweak the author sort algorithm to include "al." as a copyword ("et al." does not work), which is ok most of the time, but not always. How can I make calibre automatically ignore "et al." when sorting authors?
Try poking 'et-al' into the suffixwords or copywords settings of the Preferences->Tweaks->Author sort name algorithm.

BR
BetterRed is online now   Reply With Quote
Old 07-05-2020, 03:01 AM   #4
Rubikscube
Junior Member
Rubikscube began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Lenovo Tab 4 10
Thanks.

Quote:
Originally Posted by theducks View Post
You can also 'Manage Authors' in the Tag browser to do a 1 off (per author) sort value
Yeah, but for hundreds of papers that would be a pain.

Quote:
Originally Posted by BetterRed View Post
Try poking 'et-al' into the suffixwords or copywords settings of the Preferences->Tweaks->Author sort name algorithm.
That works. It will require me to manually add a dash in the filename of every file before adding them to library, but I guess would take less time than I've spent on this problem already.

It still bothers me that Calibre seems to understands natively that "et al." (without the dash) is a redundancy when sorting authors. Still, Calibre will not sort my authors that way.
Attached Thumbnails
Click image for larger version

Name:	scholar1.PNG
Views:	132
Size:	12.9 KB
ID:	180393   Click image for larger version

Name:	scholar2.PNG
Views:	135
Size:	8.9 KB
ID:	180394  
Rubikscube is offline   Reply With Quote
Old 07-05-2020, 08:57 AM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,932
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Rubikscube View Post
Thanks.



Yeah, but for hundreds of papers that would be a pain.



That works. It will require me to manually add a dash in the filename of every file before adding them to library, but I guess would take less time than I've spent on this problem already.

It still bothers me that Calibre seems to understands natively that "et al." (without the dash) is a redundancy when sorting authors. Still, Calibre will not sort my authors that way.
Did you try 'et al.' in the tweak, Not sure why I even typed the dash nor why I left off the dot

BR
BetterRed is online now   Reply With Quote
Advert
Old 07-05-2020, 10:49 AM   #6
Rubikscube
Junior Member
Rubikscube began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Lenovo Tab 4 10
Quote:
Originally Posted by BetterRed View Post
Did you try 'et al.' in the tweak, Not sure why I even typed the dash nor why I left off the dot
Yes, I did try that before I started this thread, but is doesn't work, presumably because of the blank space. I have tried to replace the blank space with an underscore too, but likewise didn't work (maybe that would work if I put an underscore in all my filenames). I thought you added the dash because you were aware of this
Rubikscube is offline   Reply With Quote
Old 07-05-2020, 10:56 AM   #7
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: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the bulk metadata edit dialog to automatically set the author sort, for all books, if as you say calibre is suggesting the correct author sort, then that should work fine.
kovidgoyal is offline   Reply With Quote
Old 07-05-2020, 10:58 AM   #8
Rubikscube
Junior Member
Rubikscube began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Lenovo Tab 4 10
Just checked again, it does not work with underscore either way. The only solution is to use a dash.
Rubikscube is offline   Reply With Quote
Old 07-05-2020, 11:26 AM   #9
Rubikscube
Junior Member
Rubikscube began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Lenovo Tab 4 10
Quote:
Originally Posted by kovidgoyal View Post
Use the bulk metadata edit dialog to automatically set the author sort, for all books, if as you say calibre is suggesting the correct author sort, then that should work fine.
If I go to edit metadata in bulk and just just tick the box for "automatically set author sort", nothing happens. It will be showing the same red box in author sort if I try to edit metadata individually afterwards. That is if I got your advice right.

Even if I manually press the sort button in the individual edit, or manual write my preferred sort value in the bulk edit, the actual sorting will not change. The only thing that has changed is the author sort value in the edit metadata dialog, not the author sort value in the manager author dialog. The only way I can make it correct after loading the file is to manually change the sort value in the author manager.

I get a feeling that I just need to change a setting somewhere, but I can't figure where that would be.
Rubikscube is offline   Reply With Quote
Old 07-05-2020, 06:16 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,932
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Rubikscube View Post

I thought you added the dash because you were aware of this
My alter-ego must have been aware of it, because I certainly wasn't.

maybe that's how intuition works.

FWIW: If I'm adding to a library that extracts the Authors' names from the file name I like to get it right before I add the book format file. So, I would put the 'et-al.' in the file name, using a rename utility if I had multiple instances.

BR
BetterRed is online now   Reply With Quote
Old 07-05-2020, 11:16 PM   #11
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: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont see how that could happen, but you could then just use the search and replace tab of th ebulk metadata edit dialog instead to remove et al
kovidgoyal is offline   Reply With Quote
Old 07-06-2020, 04:51 AM   #12
Rubikscube
Junior Member
Rubikscube began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2020
Device: Lenovo Tab 4 10
Quote:
Originally Posted by kovidgoyal View Post
I dont see how that could happen, but you could then just use the search and replace tab of th ebulk metadata edit dialog instead to remove et al
Oh, I didn't try that before. Unfortunately it doesn't work either. Again, it will be changing the author sort I see in the individual edit dialog, but not the author sort in the manage author dialog. If I have previously done the automatic sort with the individual metadata edit, the bulk search-and-replace will not find "et al." because it is already removed from author sort (but not in the author manager). Calibre seems to be storing two different author sort values for each file and only tweaking the one which is not used to actually sort the data. BTW: I tried to update Calibre before starting this thread, so I'm running the 4.20 version. It didn't help the problem.

BR. Yes, that is exactly what I intend to do, as of now, manually adding "et-al." to the filename is the best solution.
Rubikscube is offline   Reply With Quote
Old 01-22-2021, 03:19 PM   #13
lrpirlet
Connoisseur
lrpirlet began at the beginning.
 
Posts: 93
Karma: 40
Join Date: Mar 2020
Location: Belgium (sorry, I am from the Walloon side of the country and I speak french only)
Device: PW3, Kobo Libra H2O
I know that this is an old topic, but I had the same with what we call ANTHOLOGIE in french A book presented by one authors containing novelettes by many authors...

I wanted to have in booth the author and the author_sort "ANTHOLOGIE par Asimov. My solution was to enter ANTHOLOGIE in the author_name_copywords.

From the help in the author_sort algorithm tweak : "The author_name_copywords are a set of words which, if they occur in an author name, cause the automatically generated author sort string to be identical to the author name. "

Last edited by lrpirlet; 01-22-2021 at 03:23 PM.
lrpirlet is offline   Reply With Quote
Old 01-22-2021, 10:36 PM   #14
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: 44,334
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont need to mess wiht the tweaks for one off things, you simply manually correct the automatically generated author sort. The corrected version will be used from then on for that author.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forma How do u deal with authors who are "Jr"? (Kobo ignores Calibre's "Author Sort" field) droopy Kobo Reader 0 09-06-2019 05:51 PM
Sorting the Wheat from the Chaff - Selecting "New Market" EBooks darryl General Discussions 18 09-11-2014 09:55 PM
Folder sorting: mixed "name surname" and "surname, name"! shuusaku Library Management 2 10-18-2013 01:43 AM
Kindle "Sort by Author" is Sorting by First Name SHydroxide Calibre 2 01-13-2011 09:47 AM


All times are GMT -4. The time now is 06:27 PM.


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