11-22-2021, 05:13 AM | #1 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
[Editor Plugin] Editor Chains
For people familiar with the Action Chains plugin, this is a similar plugin for the calibre editor. It allows the user to chain multiple actions and run them together.
Currently Available Actions:
How to use the plugin: To make a new chain follow these steps:
Integration with Action Chains: First, you must have the latest version of both the Editor Chains plugins and the Actions Chains plugin installed. The combination of the two plugins will allow you to run your editor chains on multiple books in your library. You can do that be choosing to run whatever editor chain you want from Action Chains (which have action called "Run Editor Chain"). See here for more on how to use the Action Chains plugin. Examples of how to use Tag Actions: Below you can find links to two chains that you can import (Editor Chains > Add/Modify Chains > Right Click > Import Chain)
Note: The criteria above makes sure there is no text between the spans that can break their continuity. But it still allows for text containing only white-space. You can refine this to include whatever punctuation characters you want, by modifying the regular expression in the text filters. Running the plugin from the command line You can run the plugin from the command line as follows: Code:
calibre-debug -r "Editor Chains" chain_name input_file output_file Note on Module Editor:
Paypal Donations: Version History: Spoiler:
Last edited by capink; 10-26-2024 at 02:22 AM. Reason: version 1.1.9 |
11-22-2021, 05:13 AM | #2 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Tag Actions
This is the main action of the plugin. It allows the user to apply a variety of actions on tags, which are located based on range of tag criteria configured by the user.
Sample chains
Last edited by capink; 12-12-2022 at 01:38 AM. |
Advert | |
|
11-22-2021, 05:14 AM | #3 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Attached are examples to "Tag Actions" chains.
Last edited by capink; 11-27-2022 at 05:00 PM. |
11-25-2021, 05:05 AM | #4 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
I think it could be very useful to me. I will give it a try.
Thank you in advance! |
11-27-2021, 04:35 AM | #5 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
I have tried it with "Run Editor Chain" (until now it was impossible to modify something in several books at the same time) and it works great.
Thank you very much again! |
Advert | |
|
11-28-2021, 04:17 AM | #6 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
|
01-07-2022, 05:31 AM | #7 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.5.0
Changes for the upcoming PyQt6.
|
11-29-2022, 12:14 AM | #8 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.7.0
This new version adds some new actions that fall under three categories:
All of the newly added actions can be used in chains inside the editor, or run on multiple books in from the Action Chains plugin (see first post for howto). |
12-04-2022, 01:44 AM | #9 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.7.1
|
12-04-2022, 03:46 AM | #10 |
Grand Sorcerer
Posts: 6,388
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you for including some of the actions, as they will be useful for me. I've got a request: could this plugin be included in the index of plugins? So I can handle it in the same way than others? Excuse me if you're not interested in it or you have said why it's not there, but it would be useful for me.
|
12-04-2022, 12:37 PM | #11 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I need to make sure it is well tested before including it in the index. I have not received any bug reports, but I discovered some major bugs myself.
|
12-04-2022, 01:40 PM | #12 |
Grand Sorcerer
Posts: 6,388
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Ok, thank you.
|
12-06-2022, 06:41 PM | #13 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
New Version 0.7.2
This version introduces two new Actions
Last edited by capink; 12-07-2022 at 01:24 PM. |
12-12-2022, 12:58 AM | #14 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.8.0
Version 0.8.0 - 11 December 2022
Style Property Filter This filter allows you to locate tags by their style and apply actions on them. For example you can filter elements with a certain color or font-size and perform any of the available actions on them. This filter has the following options:
To illustrate this, attached below is couple of chains that do the following:
Starting with this version, the plugin has been added to the plugins index, and can be downloaded through calibre. |
12-26-2022, 10:07 AM | #15 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.8.3
Version 0.8.3
This version introduces a new action that allows you to filter and apply actions on styles. It works whether the style is an CSS sheet, in style tag or an inline tag. It Allows you to apply the current actions on styles:
Attached below are two example chains:
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] EpubCheck | Doitsu | Plugins | 163 | 07-23-2024 09:07 AM |
[Editor Plugin] LanguageTool | Doitsu | Plugins | 17 | 04-20-2024 03:21 PM |
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor | thiago.eec | Development | 7 | 01-09-2019 09:05 PM |
Sample Plugin for the Editor | DiapDealer | Editor | 77 | 12-10-2014 08:16 AM |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 11:23 PM |