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 10-17-2019, 11:23 PM   #1321
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DNSB View Post
Interesting. When I tried to run ModifyEpub RC2 on an ebook converted from pdf to epub, it pretty much froze calibre for >20 minutes before I end tasked calibre (last half of the 3rd period, overtime and shootout). Tried moving the epub to another library and still froze. Polish worked without issue. Scrambled the book and will attach to this message. Anyone else care to test and let me know if they see any issues with ModifyEpub?
Win 10 1903, Calibre 4.1, latest Modify, 2 secs run time with these settings

BR
Attached Thumbnails
Click image for larger version

Name:	Annotation 2019-10-18 141733.jpg
Views:	180
Size:	148.0 KB
ID:	174306  
BetterRed is offline   Reply With Quote
Old 10-18-2019, 12:37 AM   #1322
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Okay, I’ve contacted Kovid to request that he update the first post of this thread with RC2. (kiwidude hasn’t connected in a couple of weeks.)
Rev. Bob is offline   Reply With Quote
Advert
Old 10-18-2019, 12:47 AM   #1323
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,212
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
That was a truly weird glitch. The modify epub saved settings in gui.json ( the lines between "modify epub plugin:options dialog:settings": { and }, ) had a couple of lines in the middle which looked like someone had banged their head on the keyboard. After deleting that section, Modify Epub came up with nothing selected. After setting my usual settings, everything seemed to be working again and that section in gui.json was recreated.

Weird and wonderful toys, these computers.
DNSB is online now   Reply With Quote
Old 10-18-2019, 12:02 PM   #1324
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
v1.4.0 Released

I have been informed that v1.4.0 has been attached to the first post, making it the new official release version.
Rev. Bob is offline   Reply With Quote
Old 10-18-2019, 12:23 PM   #1325
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: 79,757
Karma: 145864619
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 Rev. Bob View Post
I have been informed that v1.4.0 has been attached to the first post, making it the new official release version.
Congratulations.
JSWolf is offline   Reply With Quote
Advert
Old 10-26-2019, 10:01 AM   #1326
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I'm seeing more and more eBooks that are specifying images in CSS. Because of this, Modify ePub gets it wrong when looking for unused images.

If images are going to be deleted as unused because of being specified in the CSS, Modify ePub should be looking at the CSS for images as part of the function.

Can this please be fixed so it does look at CSS as well as HTML to see if any images are unused? Thanks.
JSWolf is offline   Reply With Quote
Old 10-26-2019, 10:32 AM   #1327
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: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Is there a reason that it CAN'T look in the CSS?
Just a bit confused, since Modify can clean the CSS of unused entries.
I can understand that it may be tricky, as these pesky book designers find all the different ways to do something.
But I would expect the searching for the images Pathname should succeed, even if it did not tell you HOW (the code worked).
theducks is offline   Reply With Quote
Old 10-26-2019, 01:36 PM   #1328
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by theducks View Post
Is there a reason that it CAN'T look in the CSS?
Yes, and I go into that over here.

Quote:
Originally Posted by theducks
Just a bit confused, since Modify can clean the CSS of unused entries.
That’s a bit like being confused at my inability to lift a piano, since I can carry a bag of groceries easily enough. Very different tasks.
Rev. Bob is offline   Reply With Quote
Old 10-26-2019, 02:19 PM   #1329
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The problem is that if Modify ePub cannot look in SS for used images, then the option to remove unused images really should go as it's broken in the current form. It can and does delete images that are being used.

So there's no way to parse the CSS for just images?
JSWolf is offline   Reply With Quote
Old 10-26-2019, 08:12 PM   #1330
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: 31,059
Karma: 60358908
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 JSWolf View Post
The problem is that if Modify ePub cannot look in SS for used images, then the option to remove unused images really should go as it's broken in the current form. It can and does delete images that are being used.

So there's no way to parse the CSS for just images?
??? Don't look for IMAGES. Look for a filename fragment
For each name in Images section (of the files report),
test for the name (foo.jpg, bar.png...)
we don't care HOW it is used in the CSS, so it is just a T/F
True = skip the clean, error on the safe side. It may be specified, but never ever rendered. Cleaning the CSS first might raise the effectivenss

Last edited by theducks; 10-26-2019 at 08:15 PM. Reason: clarify reasoning
theducks is offline   Reply With Quote
Old 10-26-2019, 08:48 PM   #1331
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: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I tried to follow the code. ( i used to do some really simple procedural stuff years ago)
My eyes glazed over. That is not simple.
Apologies


BTW Does Reports (part of the editor), even inventory the CSS for file call out?
theducks is offline   Reply With Quote
Old 10-26-2019, 09:00 PM   #1332
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by theducks View Post
I tried to follow the code. ( i used to do some really simple procedural stuff years ago)
My eyes glazed over. That is not simple.
Apologies
Told ya.

Quote:
Originally Posted by theducks
BTW Does Reports (part of the editor), even inventory the CSS for file call out?
If you mean the bug check function in calibre’s editor… I think so, but I’m not certain. I am relatively sure that it does not check dependencies for the three cover thumbnail files that you’ll find in certain ebooks.
Rev. Bob is offline   Reply With Quote
Old 10-26-2019, 09:05 PM   #1333
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: 31,059
Karma: 60358908
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 Rev. Bob View Post
Told ya.

If you mean the bug check function in calibre’s editor… I think so, but I’m not certain. I am relatively sure that it does not check dependencies for the three cover thumbnail files that you’ll find in certain ebooks.
No, the Tools: Reports (ctrl-Shift-R)
That is the where/how many used
Sigil has a similar report
One of the items: Images gives a count of uses (and the summary of the size and type )
theducks is offline   Reply With Quote
Old 10-30-2019, 07:20 AM   #1334
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: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can anyone who knows Python and Calibre plugins please have a go at fixing Modify ePub so it check the CSS for image links before deleting images that are linked in CSS only?
JSWolf is offline   Reply With Quote
Old 11-01-2019, 02:27 PM   #1335
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
All: thanks for the Modify ePub plug-in update. Every file that comes into my Calibre library is subjected to its cleansing rays.

On the issue of the fail on deleting images referenced from the styles: Yes, kind of awkward since an image can be deleted but the actual style rule referencing it remains in the CSS. Kind of a smoking gun...

For me, it is not much of an issue...yet. I have not seen any books other than my own which utilize the basic sanitary practice of placing heading/dropcap/scenebreak images from the CSS. I keep that "remove unused images" unchecked in the plug-in options for that reason — and also because it is not uncommon to find a book in which image links (esp. maps in history books) are cruelly orphaned, and I want a chance to correct that. However, it would be very nice to have the plug-in be able to account for these style references when I am using it (sometimes) to blast away 100 files because some...person who needs instruction...has placed that many scenebreak images in the book, carefully copying and renaming the image in each instance. I used to delete those files one at a time but the plug-in makes that easy — as long as I keep aware of the CSS fail.

The Calibre Check tool finds the CSS-referenced image fine. The Calibre Reports tool also finds the CSS-referenced image fine. If only there were a way for the knowledge in either of those tools to be known by Modify ePub...

Last edited by Brett Merkey; 11-01-2019 at 02:48 PM.
Brett Merkey is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1251 07-07-2025 09:13 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Manage Series kiwidude Plugins 167 07-28-2024 03:07 PM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 01:06 PM.


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