12-02-2010, 08:02 AM | #16 | |
Zealot
Posts: 107
Karma: 554
Join Date: Oct 2008
Device: none
|
Quote:
After doing the tweak thing (see kiwidude's first post): -Select all books contain authors you wanted to change from 'FN LN' to 'LN, FN' -Choose 'Edit metadata in bulk' > 'Search and replace' tab -Search field: author_sort > Search mode: regular expression > Destination field: authors > Mode: replace field > OK Last edited by atjnjk; 12-02-2010 at 08:11 AM. |
|
12-02-2010, 08:20 AM | #17 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Might I ask a question re: author_sort? I am happy with my current calibre settings and tweaks (authors is FN LN, author_sort is LN, FN).
However, I occasionally find a book which has author_sort set incorrectly, presumably because I didn't check it well enough as I added it. So far, if I want to find all my existing anomalies, I have been creating a Catalog of all books in CSV format and using Excel to identify the culprits. I was wondering, with all the recent developments, whether there is now some kind of regex search I could run to identify them instead. As there are only ever likely to be a handful, I do not need to correct them automatically. I suspect that I could use Manage Authors to automatically reset the whole library but I'm afraid (possibly groundless) that using a sledgehammer to crack a nut may unfix more than it fixes. As my regex ability is rather basic at present (far worse than my Excel ability), any suggestions would be welcome. |
Advert | |
|
12-02-2010, 09:05 AM | #18 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Searching on author_sort will be supported in the next release (I didn't realize we didn't already have it). Once that happens, you can find all author_sort values that don't have commas using Code:
not author_sort:~, (or for completeness) author_sort:~^[^,]*$ |
|
12-02-2010, 09:28 AM | #19 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I'm afraid it's the latter -- "looks wrong". It could be anything. It's not anything Calibre has done, I think the data is wrong in the original source and I fail to spot it as I import it. The kind of search I had in mind was selecting all books where {author_sort} is not equal to LN, FN as derived from the existing {authors} field. I don't believe I have any errors in the {authors} field. I have already added an author_sort column. Over the weeks, I've even spotted a few of the "wrong 'uns" using the trusty eyeball method because of this added column. I'm looking for something a little more scientific [Edit: I've just run your suggested "no comma" search which has found 11 errors. So thanks for that, it was definitely a good start] Last edited by jackie_w; 12-02-2010 at 09:35 AM. Reason: update with search results |
|
12-02-2010, 10:08 PM | #20 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2010
Device: ipad, kindle
|
|
Advert | |
|
12-02-2010, 10:13 PM | #21 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
She asked how to (easily) change the authors from FN LN to LN, FN. Are you asking a different question? |
|
12-02-2010, 10:34 PM | #22 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2010
Device: ipad, kindle
|
Chaley, yes, kind of. Lady Fitz asked about listing and sorting - I'm interested in listing only; my sorting seems to be fine since I took care of it during the import.
For example, my current sort and view (listing) is: Mikhail Bulgakov William S. Burroughs I'd like to (occasionally) have the library and left side author view show: Bulgakov, Mikhail Burroughs, William S. .. and be able to switch the view option back and forth quickly (I don't think 'recalculated authors' is what I'm after)... and it's really "would like to have" enhancements rather than "must have" feature. Last edited by lvovsky; 12-02-2010 at 10:43 PM. |
12-02-2010, 10:41 PM | #23 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If I understand you correctly, you want your authors to remain in calibre's database as FN LN, but you want to *see* LN, FN on the library view?
If I have this right, then create a new custom column named whatever you want. Give it the type 'column built from other columns', and put {author_sort} into the template box. You will now have a column on the library view showing LN, FN (or whatever is in author_sort) |
12-02-2010, 10:51 PM | #24 |
Member
Posts: 21
Karma: 10
Join Date: Aug 2010
Device: ipad, kindle
|
chaley, you got it exactly right (i was editing my post with clarification while you posted you answer) AND your solution is right on the money! thank you!
and now it makes sense what jackie_w was saying about added column... Last edited by lvovsky; 12-02-2010 at 10:55 PM. |
12-03-2010, 03:12 AM | #25 | |
Zealot
Posts: 114
Karma: 1274
Join Date: Dec 2010
Location: Finland
Device: Kobo Touch
|
Quote:
Thanks, adding column works beautifully. I have one more question about this subject though: Can you add this new "Authors LN" column to be appearing to the list in left of the interface (where Authors, Series, Formats etc. are)? |
|
12-03-2010, 03:20 AM | #26 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The authors column at the left (in the tags pane) is sorted according to each author's sort value. You can see these by right-clicking on an author and choosing manage authors. If these are not how you want authors sorted, then fix them. Note that changing the sort string on this dialog will also update books written by those authors. If you *really* want both sorts in the tag browser, you can do it manually. Create a text (single value) custom column, which will appear in the tags pane. Then use search/replace to copy author_sort to that column. From time to time you will need to do the copy again, because changes you make to authors, and new books, won't be copied. |
|
12-03-2010, 03:26 AM | #27 | |
Zealot
Posts: 114
Karma: 1274
Join Date: Dec 2010
Location: Finland
Device: Kobo Touch
|
Quote:
I am tempted to change authors to LN, FN, but I am hesitated to make a change. Or, I just make authors_sort to be FN, LN. Which way is preferred? |
|
12-03-2010, 03:32 AM | #28 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The second option seems to be keep FN LN for authors, but make author sort also be FN LN. Some people prefer that, so the list sorts the way it looks. Of course, that means that the author David Weber would sort under 'D', but that seems acceptable. To do this, set Code:
author_sort_copy_method = 'copy' |
|
12-03-2010, 06:29 AM | #29 |
Zealot
Posts: 114
Karma: 1274
Join Date: Dec 2010
Location: Finland
Device: Kobo Touch
|
Thanks chaley! It seems that more I will play with Calibre, more handy features I will find.
When I did the manage_authors - recalculate thing, my Calibre hung up (using 100% cpu). After ~40 minutes, I killed it and started it again, and authors are sorted now differently. So it did seem to work anyway. I was little bit worried if my database is now somehow inconsistent, so I did "Check database integrity" - which then hung again, 100% cpu usage, the dialog staying at 0% for about one hour (then I killed it again). Everything still seems to work so no big worries here, and I did a backup before doing anything. I have lots of (small, mostly pdf or epub) free books loaded, over 1000 authors and way over 5000 books so I am not sure if I should have waited longer for the processes to finish? |
12-03-2010, 06:36 AM | #30 | |||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
That dialog is not optimized for doing thousands of changes at a time. On windows, it will run at the speed of a dead snail. I will look at it, to see if I can do what was done with edit metadata to speed it up. Quote:
And yes, check integrity is slow. Some people have reported that it takes many hours. There isn't much I can do about that, given what it is doing. Quote:
|
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing from Title-Author to Author - Title | Amalthia | Calibre | 17 | 01-22-2017 11:20 PM |
Adding or changing author | denmarks | 2 | 10-05-2009 02:16 PM | |
Quick newbie question about changing author name and title | eawade | Calibre | 1 | 06-12-2009 04:37 PM |
Changing Title & Author in LRF? | fleon | Sony Reader | 8 | 01-16-2007 12:43 PM |
Changing Title & Author in .lrf files | Vienna01 | Workshop | 1 | 01-08-2007 05:45 AM |