Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2025, 04:34 AM   #46
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 731
Karma: 786092
Join Date: Dec 2017
Device: Kobo
Yes.
You need to use the "Regular expression" mode and this config
search: (.+)
replace: [\1

In Regular expression it posible to search a text and to work around without delete them. See this pages of the manual about regular expressions "All about regular expressions in calibre" and "Quick reference for regexp syntax".
un_pogaz is offline   Reply With Quote
Old 01-26-2025, 07:24 AM   #47
Charley
Junior Member
Charley began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2025
Device: Kobo
Quote:
Originally Posted by Leedie View Post
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.
This is exactly what I needed, thank you so much!

Especially big thank you for including the labour/labor chain file, the example really helped me understand how to use the plugin. Going through documentation is hard for me, I'm not confident I'd manage to do set things up without help. Thank you for taking the time to do it.



Thank you for the response anyway, your plugin is great![/QUOTE]

Quote:
Originally Posted by un_pogaz View Post
Yes.
You need to use the "Regular expression" mode and this config
search: (.+)
replace: [\1

In Regular expression it posible to search a text and to work around without delete them. See this pages of the manual about regular expressions "All about regular expressions in calibre" and "Quick reference for regexp syntax".

Thanks, works perfect...
Charley is offline   Reply With Quote
Advert
Old 09-29-2025, 03:56 PM   #48
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 731
Karma: 786092
Join Date: Dec 2017
Device: Kobo
version 1.17.1 - 2025/09/29
  • fix fatal freeze on linux
un_pogaz is offline   Reply With Quote
Old 06-18-2026, 03:39 PM   #49
GalacticHull
Connoisseur
GalacticHull began at the beginning.
 
Posts: 70
Karma: 10
Join Date: Nov 2014
Device: kobo elipsa 2e
potential for further development?

Hi,

I'd like to suggest an addition to this plugin. Search, Find, Modify and Add.

For example, searching and replacing tags:

Code:
Search:  /
Replace: ,
This will change

Quote:
HIS036050 HISTORY / United States / Civil War Period (1850-1877), HIS036140 HISTORY / United States / State & Local / West (AK, CA, CO, HI, ID, MT, NV, UT, WY), BIO011000 BIOGRAPHY & AUTOBIOGRAPHY / Presidents & Heads of State
To

Quote:
HIS036050 HISTORY, United States, Civil War Period (1850-1877), HIS036140 HISTORY, United States, State & Local, West (AK, CA, CO, HI, ID, MT, NV, UT, WY), BIO011000 BIOGRAPHY & AUTOBIOGRAPHY, Presidents & Heads of State
I would like to add the second without replacing the first. That is, keep the BISAC codes as one long strong, but also add them as individual tags. In calibre, the tags would reads thusly:

Quote:
HIS036050 HISTORY / United States / Civil War Period (1850-1877), HIS036140 HISTORY / United States / State & Local / West (AK, CA, CO, HI, ID, MT, NV, UT, WY), BIO011000 BIOGRAPHY & AUTOBIOGRAPHY / Presidents & Heads of State, HIS036050 HISTORY, United States, Civil War Period (1850-1877), HIS036140 HISTORY, United States, State & Local, West (AK, CA, CO, HI, ID, MT, NV, UT, WY), BIO011000 BIOGRAPHY & AUTOBIOGRAPHY, Presidents & Heads of State

Currently I just use notepad to do this with individual entries. It would be wonderful to have a plugin, perhaps this plugin, that allowed it to be done in bulk. Thought I'd leave the idea out there. Be well
GalacticHull is offline   Reply With Quote
Old 06-21-2026, 12:12 PM   #50
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 731
Karma: 786092
Join Date: Dec 2017
Device: Kobo
You can do such complex operation by adding a Search/Replace operation that use Template.
The calibre template language is a calibre-specific language used throughout calibre for tasks such as specifying file paths, formatting values, and computing the value of columns. The template language is very powerfull and I recomand you to take a look on the Calibre manual to better understand and use it.

So in your case:
  1. After add a new operation, select the source field {template} and select the output field of your choice. Note that output field will be completly replaced by the value generated by the template.
  2. Fill the row "Template" with the following:
    Code:
    {tags:re(/,\,)}, {tags}
    or
    Code:
    program: re($tags, '/', ',') & ', ' & $tags
You can open a more complete template editor by clicking on the icon button.
un_pogaz is offline   Reply With Quote
Advert
Old 06-21-2026, 08:00 PM   #51
GalacticHull
Connoisseur
GalacticHull began at the beginning.
 
Posts: 70
Karma: 10
Join Date: Nov 2014
Device: kobo elipsa 2e
Quote:
Originally Posted by un_pogaz View Post
You can do such complex operation by adding a Search/Replace operation that use Template.
The calibre template language is a calibre-specific language used throughout calibre for tasks such as specifying file paths, formatting values, and computing the value of columns. The template language is very powerfull and I recomand you to take a look on the Calibre manual to better understand and use it.

So in your case:
  1. After add a new operation, select the source field {template} and select the output field of your choice. Note that output field will be completly replaced by the value generated by the template.
  2. Fill the row "Template" with the following:
    Code:
    {tags:re(/,\,)}, {tags}
    or
    Code:
    program: re($tags, '/', ',') & ', ' & $tags
You can open a more complete template editor by clicking on the icon button.
Okay. This is very helpful. Thank you
GalacticHull is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 440 10-16-2026 11:12 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 31 10-16-2026 10:54 PM
[GUI Plugin] [No Maint] Drop Search Results DaltonST Plugins 29 07-11-2022 02:03 AM
Mass search and replace word in epub Fangles Library Management 4 07-26-2016 06:23 PM


All times are GMT -4. The time now is 11:40 PM.


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