![]() |
#1 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Removing "and" from author split
The default is to split authors on the word "and" which is causing havoc with the authors in my Calibre db. I saw the tweak to fix this, but it is a regex expression and I'm not exactly sure how to tweak it.
Here is the default: authors_split_regex = '(?i),?\\s+(and|with)\\s+' Do I simply remove the word "and" so it looks like this? ... authors_split_regex = '(?i),?\\s+(|with)\\s+' I know regex can be finicky and I don't want to break any other part of the expression by simply deleting the word. --Pat |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
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:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Thanks, duck. That works
But now I have another issue related to this author split. Background: I added a cookbook whose author is "Better Homes and Gardens." Before I made the tweak, Calibre would automatically split the author into 2: "Better Homes" and "Gardens." Additionally, an ampersand would automatically replace the "and." Now, after the tweak, there is one author and Calibre retains the "and" in the author's name, which is correct. However, in the tag browser, the author is listed as "Gardens, Better Homes and" under the G's. How do I get it to only show as "Better Homes and Gardens" under the B's? For the metadata on this book, I have "Better Homes and Gardens" in both the Author and Author Sort fields. --Pat Last edited by PatNY; 02-10-2014 at 04:46 PM. |
![]() |
![]() |
![]() |
#4 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Manually update the author_sort field to what you think it should be. Done!
|
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
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:
Code:
Better Homes*and*Gardens There is always 1 ![]() Just to make our lives ![]() A is for Apple is not is for Apple, A |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
There must be some other tweak I'm missing. --Pat |
|
![]() |
![]() |
![]() |
#7 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
|
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
In the Main (Authors), the the calculated sort might ignore the space when parsing the sort.
But you can always hand correct the 'Master' Sort In the Tag Browser (Authors): Right click: Manage Authors: <select> Fixing it (the sort column) there, affects ALL books with that name Last edited by theducks; 02-10-2014 at 05:21 PM. Reason: clarify |
![]() |
![]() |
![]() |
#9 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
Oh great. That did the trick! I didn't know you could edit the authors over in the tag browser. I didn't need to put in nbsp, either -- just "Better Homes and Gardens" and it shows up properly now. Thanks, ducks! --Pat |
|
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#11 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
--Pat |
|
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I don't use Metadata Edit, I edit the metadata in the book list cells, and I don't show the Tag Browser - that's why I use the right click on author name in Book Details pane (the one with the cover to left of, or under, the book list) BR |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
Regex or other method to find split quotations "" | CyanBC | Sigil | 9 | 05-14-2013 02:52 PM |
Split long words using the "¬" character (small screens) | DSpider | Workshop | 5 | 03-16-2012 07:09 AM |
George R. R. Martin's "A Dance With Dragons" to be split into separate books. | Exer | General Discussions | 4 | 04-02-2011 08:50 AM |
Any way to revert the "Do No Split On Page Breaks" option? | dsana123 | Calibre | 2 | 07-10-2010 02:37 PM |