![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 7700
Join Date: Jan 2011
Device: kindle
|
Fixing your library: A few How-to in Search & Replace
I ran into some problems with my Calibre library. I had 12,000 reports & books, and 3 thou authors (which should had been less than a thousand). The author and title fields were completely messed up. I needed to clean them to get a better grasp of my library. It was taking me a hell of a long time doing it manually. So, I studied the program a little and posted a few questions in the forum. A very special user, chaley, came to my rescue and I was able to organize my huge library in a single day (Thanks again chaley). Thus, I would like to share my specific problems and the solutions for others to benefit.
Problem 1: Rearrange Authors. Several authors were in the form: Lastname, Firstname, which is not needed by caliber since automatically sorts by last name. Thus, I wanted them as Firstname Lastname. How to correct these occurrences in your library?
Problem 2: Cleaning the Title. Several titles have .txt or .doc or .lit or .v1, etc. at the end, which prevents fetching the metadata from internet. How can you get rid of this nuisance?
Several titles (or authors) fields have the series information, which prevent you from fetching the metadata. Generally the information is different. I provide 2 examples: 1st Example: Series index has one digit. The Mean Nutmeg - Stories of Past 1 The Idiot King -Biosaga 5 The Pink Sock - Underwear Tales 9... and so on. So, how do you carve out the series information from the title field into the series field?
2nd Example: Series index has two digits. The Numen - Stories of Past 12 The Idiot King -Saga of After 21 The Pink Sock - Tales 12... and so on. So, you change a little your search and replace notation to:
I suggest you check the following links: https://manual.calibre-ebook.com/template_lang.html https://manual.calibre-ebook.com/regexp.html I hope this is useful. Last edited by BetterRed; 08-21-2017 at 08:47 AM. Reason: correct links - ack flink |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2013
Device: none
|
This is really helpful! Thank you!
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 96
Karma: 10
Join Date: Jan 2014
Location: Scotland
Device: KT4 5.13.6
|
Fixing your library: A few How-to in Search & Replace
Brilliant - just what I needed. Thanks.
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 309
Karma: 1645952
Join Date: Jun 2012
Device: none
|
Thanks for putting this together. The author trick is especially helpful. I've always just fixed the authors by hand, but that can get tedious.
Something to be aware of: Book titles may have a legitimate period or dash in them, and authors may have a legitimate comma, for instance if their name includes a degree. ALWAYS inspect each book title/author visually before selecting it to be included in the search/replace. You don't want to turn "John Smith, MD" into "MD John Smith." I would recommend doing the search/replace in small to medium batches. If you've spent several minutes CTRL-clicking on hundreds of books as you've identified the ones to fix, it can be annoying to accidentally click on another book and lose your selection. Better to spend only a few seconds selecting books, running the replace, then repeating the process multiple times. If you save the searches, you can always come back to them in just a couple of clicks. |
![]() |
![]() |
![]() |
#5 |
Banned
![]() Posts: 22
Karma: 10
Join Date: Jun 2010
Device: Android/Linux/Windows
|
Updated links:
Template language: https://manual.calibre-ebook.com/template_lang.html Regex: https://manual.calibre-ebook.com/regexp.html |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search & Replace | Pat Nickholds | Sigil | 2 | 10-21-2010 11:18 PM |
Search & replace TEXT | ToeRag | Calibre | 3 | 04-10-2010 01:44 PM |
Feature Request - replace "screensavers" with randomly selected book covers from libr | nathander13 | Calibre | 3 | 12-02-2009 12:21 PM |
Question - Does iLiab have the "search" & "annotation, highlighting" features? | HiSoC8Y | iRex | 5 | 07-01-2009 04:37 PM |
Swap "Prev Page" & "Next Buttons" ???? | kilofox | Amazon Kindle | 6 | 04-02-2008 11:39 PM |