05-29-2012, 04:47 PM | #301 | |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-29-2012, 05:11 PM | #302 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
True. And while I expected "some" issues from the major changes I made underneath, completely forgetting about one of the code files even existing created half of them. Python for all its positives is a caveman's language in terms of lack of proper refactoring tools and code analysis. Which makes development a case of "code & fix", which I hate. And if as I have been you jump in and out in spare moments at work or while watching TV at home, it is easy to forget/miss something. Then without any type or compile checking the only way of catching it is to test every of code. Without any unit testing support like I would have in .NET... sigh...
Look at the whats new with every calibre releases and there are frequently regression fixes, even an uber experienced full-time Python guru like Kovid gets tripped up - so that doesn't leave much chance for the rest of us without even more time/effort. We are definitely close on this release though... |
Advert | |
|
05-29-2012, 05:16 PM | #303 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One thing I thought I may have scene once was the original cover XML left behind. But my last test looking for it did not find that had happened. So I'll do some more testing and see what I can break next.
|
05-29-2012, 05:22 PM | #304 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Cool, let me know. The conditions on which it will keep an existing cover xml page are based around (a) whether it has any *other* images on that page, and (b) whether there is any text content on that page. If either of those conditions are true, then rather than removing the whole page it just removes the link to the cover image and leaves the rest of the page as is.
So if you have an ePub that doesn't have a "real" cover page, but incorrectly (Sigil can cause this issue) has marked the first page semantically as a cover, you don't lose any text content from the book. I have seen this happen with calibre conversions in the past, I believe it has been fixed now with the same sort of logic. Edit: I should add, this is all assuming the plugin is able to "identify" the existing cover page. If there are no guide entries indicating a cover, or no meta tag entries pointing to an image, then it won't know what page the existing cover is. So it will just add a new page at the front, just like a calibre conversion does. These are the really badly published epubs, that hopefully are in the minority. Last edited by kiwidude; 05-29-2012 at 05:31 PM. |
05-29-2012, 06:15 PM | #305 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Just to make your day
The latest run against a EPUB that I Sigil edited and passed FC
Spoiler:
|
Advert | |
|
05-29-2012, 06:36 PM | #306 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@theducks - you are running an older beta, I fixed this issue yesterday. Try again with the new beta in post #182. If you think you upgraded, did you remember to restart calibre?
|
05-29-2012, 07:07 PM | #307 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I Uninstalled the PI I restarted Calibre (the Modify Icon is gone) I downloaded the file from post 181 installed the PI Restarted Calibre (the Icon now shows) Same book, same error (3 seconds longer) Spoiler:
Version 1.1.8 - 27 May 2012 (Beta) Change to require minimum calibre version 0.8.53 in order to utilise some calibre bug fixes/changes Change to calibre API for deprecated dialog in 0.8.49 which caused issues that intermittently crashed calibre on Mac OS Add a "Insert or replace cover" option to attempt to insert or replace a cover without doing a conversion Add a "Remove cover" option to attempt to completely remove an identified cover from the ePub. Rewrite "Removed unused image files" and "Remove broken cover images" features to use lxml rather than regex for better accuracy Add protection for numerous options against trying to apply them to a DRM encrypted book Better handle ebooks where the ncx file is not in same directory as opf manifest Last edited by theducks; 05-29-2012 at 07:09 PM. Reason: change log note |
|
05-29-2012, 07:24 PM | #308 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ok, thats a different error - the one you had previously was most definitely from the old code (I can tell by the error messages).
However the latest error you just posted is also something I fixed yesterday. But in transferring the files between work and home this morning it seems I missed one and so that fix got reverted, the joys of ad hoc "source control"... New version posted above, I'm going to bed, clearly I need sleep. |
05-30-2012, 10:09 AM | #309 |
Occassional Beta Tester
Posts: 283
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab 4 (wifi only)
|
I just updated to your latest beta, restarted calibre, tried to insert covers into books and got the following error. (With an FFDL updated epub ebook.)
Spoiler:
Last edited by Firedancer885; 05-30-2012 at 10:11 AM. Reason: spoiler |
05-30-2012, 10:24 AM | #310 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Firedancer885 - thx for reporting that. New build on the beta post above.
|
05-30-2012, 09:15 PM | #311 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-31-2012, 05:24 AM | #312 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@JSWolf - I think I did, though the change notes won't reflect it, I don't bother with updating those for bug-fixes related to new features, it will all get cleaned up when I officially release 1.2.0.
Anyone who has installed one of the beta versions along the way should make sure they are using that version posted above, with I think is set to 1.1.10. I'm going to officially release it tomorrow night in all probability unless anyone comes up with an example epub cover situation I haven't correctly handled before then. |
05-31-2012, 11:17 AM | #313 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've just found one bug that's in need of fixing. The link to the cover in the internal ToC was not updated.
One feature request... When there already exists a cover XML file, it would be good to have the plugin keep the same file name as the existing cover XML. Last edited by JSWolf; 05-31-2012 at 11:19 AM. |
05-31-2012, 11:17 AM | #314 |
Occassional Beta Tester
Posts: 283
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab 4 (wifi only)
|
|
05-31-2012, 11:49 AM | #315 | ||
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Quote:
|
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any web-to-epub plugin for internet browser? | bthoven | ePub | 7 | 07-10-2011 05:14 AM |
[Old Thread] Reading epub on viewer inexplicably changes the time stamp of epub | greenapple | Library Management | 20 | 03-19-2011 10:18 PM |
Easy way to modify thread subscription emails in bulk? | snipenekkid | Feedback | 11 | 02-06-2011 03:47 AM |
Another plugin dev question | DiapDealer | Plugins | 2 | 12-11-2010 01:46 PM |
Epub plugin dev | DiapDealer | Plugins | 15 | 11-12-2010 09:36 AM |