![]() |
#1 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
[GUI Plugin] Mass Search/Replace
Mass Search/Replace is a small plugin to facilitate the execution of one or more of your favorite Search and Replace operations to your books metadata.
Each entry in the context menu will launch a list of Search/Replace operations that you have previously set up. Setting up an operation uses the Calibre Search and Replace module. The plugin has the following features:
Available operation type:
To use a "Shared Search/Replace operation", create and save a operation in the Calibre combo box, or select one that already exist. Important, don't edit any field after having select the "Shared operation" or the link will be broken. To edit a "Shared operation", it will have to be re-registered with the same name in the Calibre saved Search/Replace system. Once the "Shared operation" corrrectly save, the name of this one will appear in operations list. Special Notes:
Credits:
Installation Open Preferences -> Plugins -> Get new plugins and install the "Mass Search/Replace" plugin. You may also download the attached zip file and install the plugin manually, then restart calibre as described in the Introduction to plugins thread The plugin works for Calibre 5 and later. Page: GitHub | MobileRead Note for those who wish to provide a translation: I am French! Although for obvious reasons, the default language of the plugin is English, keep in mind that already a translation. Version History: Spoiler:
Last edited by un_pogaz; 02-19-2024 at 10:28 AM. |
![]() |
![]() |
![]() |
#2 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
reserverd for futur usage
Last edited by un_pogaz; 01-18-2021 at 11:55 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
|
Hello un_pogaz
Thanks for your plugin. I've just tried it a little. (on Calibre 5.6) In fields=authors, I search "Cam" and replace it by "CAM", case-sensitive, type=car. match (not regex). Casse to apply to each replace = All in CAPS I select some books from Camilla Lackberg, and other ones. For each of those selected books, authors are Camilla Lackberg, or Jack London..., ie initials in CAPS (MAJUSCULES), other letters not in CAPS (so minuscules) When I apply MSR plugin, all authors become all in CAPS (CAMILLA LACKBERG, JACK LONDON...), although I thought that they would become CAMilla Lackberg, Jack London ... because I had precised only Cam/CAM in S/R fields. In a second time, to try to repare it, I put : Casse to apply to replace = Majuscule à chaque mot (I'm French also), and still S/R=Cam/CAM. Result : CamILLA LACKBERG, Jack London I don't understand the whole logic. That is all my test for the moment. Anyway, your plugin is promising. Cheers. |
![]() |
![]() |
![]() |
#4 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Si t'est français, met ton texte en français dans un Spoiler, et traduit traduit normalement pour le mesage publique.
Spoiler:
I remind you that I used the Caliber module as is, and I can hardly "correct" it. Also, it is difficult to blame it, but it is still necessary to understand that logic. For the first case: Apparently in type=car. match (not regex), Calibre applies the "CASE applies on replacement" in all cases. It should really be used sparingly. In your case, you should have kept "Case applied" empty. The case-sensitive only works for search : Cam/cam/cAm => CAM For second case: It looks more like a Caliber bug. Report it as such, I'll see what I can do. Basically, the Case is normally applied only for the replacement text, the rest is copied as is. But if the text you are looking for is not found, it captures all of it and applies the Casse. (CAM)ILLA LACKBERG, (JACK LONDON) => (Cam)ILLA LACKBERG, (Jack London) Only the text in brackets sees that Case changed. On second thought, the Casse modifier should only be used for Regex. EDIT: After look, this is expected behaviour. The only bug is, in "Character Matching" mode, the box is not correctly applied in the test field. I have corrected and reported the bug. Last edited by un_pogaz; 12-07-2020 at 01:09 PM. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
|
Ok. Sorry, I hadn't seen that it was an internal Calibre feature. And thanks for postponing the bug.
Spoiler:
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Couldn't upload po and mo on GitHub
With your permission I upload them here. Excelent travail!! |
![]() |
![]() |
![]() |
#7 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Thanks o/
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Here is another fix by Kovid. You might want to include that into your plugin.
|
![]() |
![]() |
![]() |
#9 | |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Quote:
Also, I think the development is stable enough for this stage: New version 1.0.0 Full release Fix regression with case sensitivity |
|
![]() |
![]() |
![]() |
#10 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Lot of little thing, but the 1.2.0 has a significant addition:
|
![]() |
![]() |
![]() |
#11 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Version 1.4.0
Shared Search/Replace operation: set in once, used where you want, edit them and all reference has edited (compatible with Calibre saved Search/Replace system) To use a "Shared Search/Replace operation", create and save a operation in the Calibre combo box, or select one that already exist. Important, don't edit any field after having select the "Shared operation" or the link will be broken. To edit a "Shared operation", it will have to be re-registered with the same name in the Calibre saved Search/Replace system. Once the "Shared operation" corrrectly save, the name of this one will appear in operations list. Last edited by un_pogaz; 02-25-2022 at 04:11 PM. |
![]() |
![]() |
![]() |
#12 |
Library Breeder (She/Her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
|
Just and FYI, the icon for the plugin isn't rendering anymore. I tried to replace it in the folder and reinstalled, but it still won't render. I suspect that whatever line in the plugin instructions that indicate the icon has changed and won't point to it anymore. Can someone check it?
|
![]() |
![]() |
![]() |
#13 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Library Breeder (She/Her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
|
I have Windows 10 and since the last update (plugin or Calibre - I don't remember)
Also, is there any way that the plugin can offer the choice of books (all library, virtual library or selected books) for all the options, not just the quick search? |
![]() |
![]() |
![]() |
#15 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 419
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Also Windows 10, no problem.
Please, share a debug log and/or your versions of Mass Search/Replace and Calibre, so I can understand where your problem comes from. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 433 | 04-01-2024 05:48 PM |
[GUI Plugin] Drop Search Results | DaltonST | Plugins | 29 | 07-11-2022 01:03 AM |
Mass search and replace word in epub | Fangles | Library Management | 4 | 07-26-2016 05:23 PM |