View Single Post
Old 01-20-2025, 01:25 PM   #42
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by Leedie View Post
Hi!

Can you tell if it's possible to use the Mass Search/Replace plugin to Search&Replace the body of books' text?

Such as replacing "labour" with "labor" across all books in a library. Or, as another example, I read a lot of books from Chinese sources and there are multiple technically correct translations of the same character's name, I would like to make all books spell it the same way.

I already replaced all I need in metadata, but I'm having trouble doing it in the books' text itself.

I can do that with Calibre's native Search&Replace, but it works one book at a time and I might need tens or hundreds of books edited at once, so doing it that way would be pretty time-consuming.
Editor Chains plugin can do to search&replace inside an epub/azw3 book. Used in conjunction with Action Chains plugin, you can perform search&replace on multiple books on your calibre library. Refer to the docs of the plugins.

Edit:

Attached to this post is a chain that replaces labour/labor on selected books in your library. You can modify the search as you like, or add additional search/replace as follows:
  1. Make sure you have both plugins installed: Action Chains and Editor Chains.
  2. In your calibre library go to : Action Chains > Add/modify chains > right click on table > import chain > import the attached zip file.
  3. Now you should have chain called "Search & Replace epubs". You can modify the chain to add more actions if you want.
  4. Once you are done, you will have a menu entry under "Action Chains" icon for your newly created chain. You can use it to search/replace selected books in your library.
Attached Files
File Type: zip sr_labor.zip (620 Bytes, 84 views)

Last edited by capink; 01-20-2025 at 01:34 PM.
capink is offline   Reply With Quote