09-07-2023, 04:27 PM | #31 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
This seems to be the case for any command. I tried running "mspaint.exe {inputfile}", which theoretically should open MS Paint and throw an error, but nothing happens. Same with "type {inputfile}", which should just return the text contents.
|
09-07-2023, 05:28 PM | #32 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I uploaded a new version that is more verbose with happens when the command is run. Run the editor from the terminal and post the output here.
Note that I am on a Linux machine and cannot test what happens on Windows, so I am limited on what I can do. Worst case scenario I will make this action Linux only as it is running fine for me. Last edited by capink; 09-07-2023 at 05:30 PM. |
Advert | |
|
09-07-2023, 08:28 PM | #33 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
Command error: Return code is 1 when running command for file: styles/styles.css
stderr: The filename, directory name, or volume label syntax is incorrect. Any command run throws this error. |
09-08-2023, 12:43 AM | #34 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Try the version attached in this post and see whether it makes any difference.
Last edited by capink; 09-08-2023 at 10:25 PM. Reason: moved zip to first post |
09-08-2023, 05:33 AM | #35 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
Okay, native Windows commands (type) seem to work, but running applications (clean-css) don't, throwing a "stderr: b"'cleancss' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"" error.
On another note, in my quest to have a command that renames html files to xhtml (type {inputfile} > {outputfile}), if I don't arrange the ebook into folders first, the text files are removed from the spine. |
Advert | |
|
09-08-2023, 02:18 PM | #36 | |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
You might need to use the full path of the executable e.g "C:\\Program Files\\CleanCss\\CleanCss.exe", also make sure to double quote if the path contains spaces. Not going to go there right now as this is not the intended use for this action. I actually have a plan for a mass renamer plugin that mimics Thunar File Manager renamer, and should integrate with Editor Chains, but it is not coming soon as I don't have the time right now. |
|
09-08-2023, 06:30 PM | #37 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
Alright got it to work. Apparently calibre does not like things that are in your PATH environment variable. Once I packaged clean-css-cli as an exe and pointed calibre to it, it worked fine.
|
09-08-2023, 11:04 PM | #38 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Strange, as the version I gave you to test (which is now moved to the first post), does clean the PATH variable before passing the command.
|
09-09-2023, 02:02 AM | #39 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.9.0
A new version with modifications to the "Run Command". These changes break backward compatibility with chains created with older version of the "Run Command" action. The configuration now forces you to select the binary from the filesystem using a file picker, and supply the arguments on a separate box. This is done to solve problems reported by people using the action on Windows. See screenshot below.
Last edited by capink; 09-09-2023 at 02:06 AM. |
11-07-2023, 05:34 PM | #40 |
Enthusiast
Posts: 30
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
|
Bug: Transform HTML not respecting scope
When using the Transform HTML action, regardless of what I set (current file, selected files, etc.), it will apply the transform to all HTML files.
|
11-07-2023, 06:50 PM | #41 |
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.9.2
|
11-08-2023, 10:42 AM | #42 |
Enthusiast
Posts: 30
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
|
Confirmed issue is resolved!
This forced me to spend some time learning the tag actions built into the plugin and they are amazing! I have a lot of saved rules in the calibre transforms, but I'm definitely going to start converting them over to the action chains version, they're just so flexible! The action chains plugins are amazing by the way. They literally save me hours per book. So many manual steps and actions are now automated. |
11-08-2023, 11:44 PM | #43 |
Enthusiast
Posts: 30
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
|
Is there an equivalent action to the Transform HTML option of "Remove Tag Only"? Where it removes the tag, but leaves the content intact.
For example Content: <p><strong>Chapter 1</strong></p> Match <strong> with a parent of <p>, and remove only the strong tag, leaving: <p>Chapter 1</p> So far it's the only thing I haven't found a way to replicate with Tag Actions. |
11-09-2023, 03:31 AM | #44 | ||
Wizard
Posts: 1,138
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
Quote:
|
||
11-21-2023, 11:21 PM | #45 |
Connoisseur
Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
|
How do I show the UI for Editor Chains? I have both Editor Chains and Action Chains installed on the latest 7.0 Calibre Windows version.
but I can't find a GUI for editor chains.. There is nothing inside the Toolbar menu and also nothing inside the Favourites plugin -> Customize menu list I have uninstalled and reinstalled the Editor Chains plugin. Don't want to uninstall Action Chains as I don't want to lose my existing chains.. Thanks! |
|
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 |