![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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; 04-29-2024 at 11:44 AM. Reason: version 1.1.7 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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 12:38 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Attached are examples to "Tag Actions" chains.
Last edited by capink; 11-27-2022 at 04:00 PM. |
![]() |
![]() |
![]() |
#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! |
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.5.0
Changes for the upcoming PyQt6.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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). |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.7.1
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,322
Karma: 12117215
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.
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,322
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Ok, thank you.
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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 12:24 PM. |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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. |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
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:
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] EpubCheck | Doitsu | Plugins | 163 | 07-23-2024 08:07 AM |
[Editor Plugin] LanguageTool | Doitsu | Plugins | 17 | 04-20-2024 02:21 PM |
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor | thiago.eec | Development | 7 | 01-09-2019 08:05 PM |
Sample Plugin for the Editor | DiapDealer | Editor | 77 | 12-10-2014 07:16 AM |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 10:23 PM |