05-04-2012, 04:36 AM | #361 |
Addict
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
@kiwidude, when checking for @font-face or Adobe stuff, do you check every html file in the epub?
|
05-04-2012, 04:56 AM | #362 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Yes. Every html file that is defined in the opf manifest. Have you found a scenario it does not work?
|
Advert | |
|
05-04-2012, 05:52 AM | #363 |
Addict
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Not really, but I think that if you find a single occurrence of @font-face in an html file during the check, you can already mark that epub as having @font-face declarations and move on to the next epub without checking the rest of the html/css files. That would probably speed things up considerably.
|
05-04-2012, 06:02 AM | #364 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
It already does that.
|
05-04-2012, 06:03 AM | #365 |
Addict
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Last edited by paulfiera; 05-04-2012 at 06:06 AM. |
Advert | |
|
05-04-2012, 03:14 PM | #366 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.7.4 Released
Changes in this release:
Thanks to those of you who tested the beta versions and offered feedback. Enjoy... |
05-04-2012, 05:32 PM | #367 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@kiwidude,
I've spent a good few hours using Quality Check and Modify Epub to remove embedded fonts and @font-faces. Most of it is done, so thank you. However, I'm getting an error message when I look at the log from Quality Check (included below). There are now only 8 books in my library with embedded fonts, all of which I wish to leave as-is (7 test files, 1 real book). I can't figure out whether the error is a 9th book whose name never reaches the log or whether it's something different. Any suggestions? Log if 'Check embedded fonts' option used: Spoiler:
Log if 'Check @font-face' option used: Spoiler:
|
05-04-2012, 06:04 PM | #368 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Looks like you have a corrupt ebook entry. And no it isn't the book you see in the log, it is the one"after" that. See in the error message where it says "ERROR parsing book: None"? That "None" is where it should be displaying the path to the ebook.
I think you need to run the library maintenance. I believe you have deleted the epub out of calibre's file system rather than using "remove format", so calibre thinks you have an epub but you don't for that particular book. |
05-04-2012, 06:23 PM | #369 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Yes! That was the problem, I don't know how I managed to do that. Thanks for that, I'll know what to do next time. Sorry to have bothered you.
|
05-04-2012, 06:35 PM | #370 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
No problem. It has highlighted an area I could improve in the error handling to make it easier to see exactly what the problem is, which I'll include in a future version.
|
05-05-2012, 11:33 AM | #371 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.7.5 Released
Changes in this release:
|
05-06-2012, 06:15 PM | #372 |
(he/him/his)
Posts: 12,161
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
kiwidude -- Great plugin, not sure why I only recently discovered it. But now that I'm using it, I've found something I wish it did. Could you add a check to see if a MOBI book has an EBOK tag? (I hate sending something to my Kindle Fire, only to have it hide over in Documents instead of Books.) All my newer books are fine, but I'm periodically seeing the problem when I go to read an older book and forget to do a MOBI-to-MOBI convert.
Now, if you could actually fix it too, that would be awesome. But just being able to quickly check it would be worth having. Thanks, |
05-06-2012, 07:15 PM | #373 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@CRussel - as you have perhaps noticed the plugin doesn't have any MOBI checks currently. It comes down to me knowing absolutely zero about the format. If someone (Kovid?) can point me towards the calibre code related to this EBOK tag stuff then I can take a look, but since I don't own a Fire myself its only going to happen if it is trivial to implement...
|
05-06-2012, 10:46 PM | #374 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Its not absolutely trivial. IIRC going into the Books section of the Fire requires two things: 1) a cdetype of EBOK 2) the presence of an asin field both in the EXTH header.
Also, the Fire has been known to crash with a few MOBI files when they have non Amazon asin values. But if you want to do the check, use the MetadataHeader class, you will have to make a couple of changes to the EXTH class to store the raw cdetype and asin values so you plugin can handle them. Easily acheived by subclassing EXTH. See metadata/mobi.py for examples of using MetadataHeader. |
05-07-2012, 04:18 AM | #375 |
Addict
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
kiwidude, it looks like the plugin is flagging images with spaces in their file names. I don't know if it's all images or some.
Last edited by paulfiera; 05-07-2012 at 06:32 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 433 | 04-01-2024 05:48 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 12:02 AM |
[GUI Plugin] Book Sync **Deprecated** | kiwidude | Plugins | 111 | 06-07-2011 07:47 PM |