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 07-23-2022, 09:13 AM   #196
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,959
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by DaveLessnau View Post
As a suggestion, I would like to see that option moved to the dialog for doing the replacements. Otherwise, I'll forget that I changed it to global and do bad things (though it makes a checkpoint beforehand, so that helps).
No time unfortunately. Every time I revisit this plugin, I have to relearn how Calibre plugins work, as well as remember how my own old logic works! I'll try to fix things that break, but feature changes are probably not in the cards for this plugin.

I wouldn't be opposed at all if someone was motivated enough to want to fork my repo and add user requests to a new and improved toolbag plugin, though.
DiapDealer is offline   Reply With Quote
Old 04-11-2023, 10:33 AM   #197
Lukusaukko
Connoisseur
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 51
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
I'm currently editing a book with a lot of colloquail English with a lot of contractions - usually I've formatted such words ('em, 'ave etc.) by hand to use the right single quote instead of left single quote or typewriter apostrophes, because the editor function (or Word/LO, for that matter) always gets this wrong. But this is a long book full of them, and it's really tedious to go through all the dialogue and manually fix them all.

I've tried using this plugin, but the Smarten Punctuation feature doesn't seem to work - it looks like it ignores the exceptions list, and formats the single quotes just like the editor function. Any idea if there's a bug, or if I'm just using it wrong? I have the exceptions file in the same calibre folder as the plugins, and am using Calibre 5.44 (haven't updated my system yet to a distro with the version of gcc required by later Calibre versions), and the plugin version is from the first post in this thread.
Lukusaukko is offline   Reply With Quote
Old 12-31-2023, 11:44 PM   #198
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,328
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Hello @DiapDealer

I am using the Edit Spans & Divs feature to try converting <span class="italic"> to <i>.
Action type : Modify
Tag name: span
Attribute: class
Value: italic
Change to: i

Can't figure out where I am going wrong as I keep receiving the following error.

I see you are not really maintaining, but thought I would report it anyway. I used a regex instead so no problem.
Thanks.

Quote:
calibre, version 7.2.0
ERROR: Unhandled exception: <b>IndexError</b>:list index out of range

calibre 7.2 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 7, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (2, 7, 0) && Diaps Editing Toolbag (0, 4, 0) && EpubCheck (0, 2, 5) && KFX metadata reader (from KFX Input) (2, 7, 0) && From KFX (2, 7, 0) && KFX Input (2, 7, 0) && Set KFX metadata (from KFX Output) (2, 5, 0) && KFX Output (2, 5, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Utilities (2, 16, 13) && Manage Series (1, 5, 1) && ScrambleEbook (0, 6, 0) && Sum Column (0, 3, 3) && View Manager (1, 10, 2)
Traceback (most recent call last):
File "calibre_plugins.diaps_toolbag.dialogs", line 485, in do_action
File "calibre_plugins.diaps_toolbag.main", line 157, in delete_modify
File "calibre_plugins.diaps_toolbag.resources.html_pars er", line 271, in processml
IndexError: list index out of range

Last edited by Karellen; 12-31-2023 at 11:52 PM.
Karellen is offline   Reply With Quote
Old 08-15-2024, 04:00 PM   #199
Fitz Frobozz
Member
Fitz Frobozz began at the beginning.
 
Fitz Frobozz's Avatar
 
Posts: 24
Karma: 10
Join Date: May 2024
Device: Kindle Scribe
Hello! Would it be possible to add heading tags (h1, h2, etc.) to the list of available tags in the tag drop-down list? I find that one of the more common changes that I need to make is changing one heading level to another, and I'm not seeing a way to do that via this plugin. (Find/replace works, but takes a little longer and is more error-prone.)
Fitz Frobozz is offline   Reply With Quote
Old 08-19-2024, 05:19 PM   #200
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,028
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Fitz Frobozz View Post
Hello! Would it be possible to add heading tags (h1, h2, etc.) to the list of available tags in the tag drop-down list? I find that one of the more common changes that I need to make is changing one heading level to another, and I'm not seeing a way to do that via this plugin. (Find/replace works, but takes a little longer and is more error-prone.)
I agree that this is a good addition.
JSWolf is online now   Reply With Quote
Old Today, 12:28 PM   #201
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,959
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Karellen View Post
Hello @DiapDealer

I am using the Edit Spans & Divs feature to try converting <span class="italic"> to <i>.
Action type : Modify
Tag name: span
Attribute: class
Value: italic
Change to: i

Can't figure out where I am going wrong as I keep receiving the following error.

I see you are not really maintaining, but thought I would report it anyway. I used a regex instead so no problem.
Thanks.
I was revisiting this plugin and noticed this report. I've rarely run into any parsing errors like that. Was the (x)html it was run on verified as valid? Or was there a chance that it was invalid? Invalid (x)html is about the only thing I can think of that might produce such an error. Even a problematic regex search shouldn't make the parser barf.
DiapDealer is offline   Reply With Quote
Old Today, 12:33 PM   #202
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,959
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Fitz Frobozz View Post
Hello! Would it be possible to add heading tags (h1, h2, etc.) to the list of available tags in the tag drop-down list? I find that one of the more common changes that I need to make is changing one heading level to another, and I'm not seeing a way to do that via this plugin. (Find/replace works, but takes a little longer and is more error-prone.)
I probably won't change the default list, but I am working on an update that would make adding more tags to the drop down list possible (via the config dialog).
DiapDealer is offline   Reply With Quote
Old Today, 01:51 PM   #203
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,328
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by DiapDealer View Post
I was revisiting this plugin and noticed this report. I've rarely run into any parsing errors like that. Was the (x)html it was run on verified as valid? Or was there a chance that it was invalid? Invalid (x)html is about the only thing I can think of that might produce such an error. Even a problematic regex search shouldn't make the parser barf.
It's been quite a while now, so I don't recall if there were issues or not.
Most likely there were some errors as I try using this plugin at the start of my editing process.
If you want, I can let you know when it happens next and you can check the ebook.

Last edited by Karellen; Today at 02:20 PM.
Karellen is offline   Reply With Quote
Old Today, 02:20 PM   #204
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,401
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I use it to change (Modify) <span> to <i>
Did you have the current file box ticked and no TEXT file on the workspace?
theducks is offline   Reply With Quote
Old Today, 02:22 PM   #205
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,328
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
Did you have the current file box ticked and no TEXT file on the workspace?
I didn't have the box ticked as I want changes book-wide.
Not sure what the other bit means - "no text file on the workspace"
Karellen is offline   Reply With Quote
Old Today, 02:47 PM   #206
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,401
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Karellen View Post
I didn't have the box ticked as I want changes book-wide.
Not sure what the other bit means - "no text file on the workspace"
If the box was ticked, you need to have a file selected. Since you run, like I do, All. That is not your issue.
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample Plugin for the Editor DiapDealer Editor 77 12-10-2014 07:16 AM
Diaps Editing Toolbag.zip Index Error phossler Editor 2 10-01-2014 08:05 PM
Editor plugin question DiapDealer Development 2 07-28-2014 10:23 PM
japi - a text editor capable of editing ePub directly hekkel ePub 5 02-20-2009 08:46 AM


All times are GMT -4. The time now is 05:17 PM.


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