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 05-15-2011, 12:28 PM   #166
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@Nyn - just do a search with this:
formats:false
kiwidude is offline   Reply With Quote
Old 05-15-2011, 03:13 PM   #167
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by kiwidude View Post
@Nyn - just do a search with this:
formats:false
Thanks, I will add that to my editing searches.
nynaevelan is offline   Reply With Quote
Advert
Old 05-15-2011, 07:43 PM   #168
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.5.1 Released

Changes in this release:
  • Run all the quality checks with a progress dialog that can be aborted
  • Change the ePub check for unmanifested files to exclude iTunes plist and Calibre bookmark files
  • Add ePub check for embedded fonts in an ePub
  • Add check for pubdate, testing for equality with date timestamp
  • Add ePub check for DRM

Those long running checks on large libraries should hopefully be a bit more tolerable to run with a proper progress dialog and ability to abort.

As I mentioned in a previous post, I have changed the unmanifested files check so it now works exclusive of calibre bookmark and plist files.

The embedded font check was requested by Idolse. This only checks for .ttf and .otf files in the ePub.

The check for pubdate was requested by drMerry. When you first add a book to Calibre, the pubdate is set to the same value as the book timestamp, this check finds books that are still in this state.

The check for DRM just checks for the presence of an encryption.xml file. Perhaps this is not a fully encompassing check, but it did achieve the purpose on my own library.

As always, further suggestions and feedback welcomed.
kiwidude is offline   Reply With Quote
Old 05-15-2011, 08:47 PM   #169
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by kiwidude View Post
Changes in this release:
  • Run all the quality checks with a progress dialog that can be aborted
Does this functionality run all the checks or a specific group??
nynaevelan is offline   Reply With Quote
Old 05-15-2011, 08:54 PM   #170
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: 29,783
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
DRM == unreadable

I just ran your DRM finder
It found 2 entries.
1 I knew about
The other: Adobe- EPUB Best Practices
Note: this one opens just fine in Calibre Viewer with no other outside help.
As A test, I tried the Known positive, Calibre Viewer pops the 'has DRM' message.
theducks is online now   Reply With Quote
Advert
Old 05-16-2011, 03:50 AM   #171
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by nynaevelan View Post
Does this functionality run all the checks or a specific group??
It doesn't change how checks are run in terms of them being one at a time - it is too complex to try to present results from running multiple checks at once to contemplate doing that.

It just means that each check that runs has the progress dialog shown so you can cancel it.

Perhaps in hindsight I really should have called it Cancel rather than Abort too, Abort implies that I am going to display the results retrieved so far. I currently don't do that though I actually could. What would people prefer - Abort to display only the partial results of scanning your database, or the button to be called Cancel and behaviour as now of not showing you the results of clicking it?
kiwidude is offline   Reply With Quote
Old 05-16-2011, 04:01 AM   #172
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by theducks View Post
I just ran your DRM finder
It found 2 entries.
1 I knew about
The other: Adobe- EPUB Best Practices
Note: this one opens just fine in Calibre Viewer with no other outside help.
As A test, I tried the Known positive, Calibre Viewer pops the 'has DRM' message.
Ahh, another cryptic from theducks

So if I try to interpret here - it found two results, one was correct and did have DRM that you cannot open in Calibre, but the other Calibre will open, right?

As I said in my post, my check currently only looks for the presence of the encryption.xml file. What it doesn't do (which the Calibre viewer does) is a bunch of other things of looking in the opf file for some encryption key and for files that are encrypted. I confess to not understanding what the Calibre code is doing which it appears your particular file is tailor made for - is it possible to have an encrypted file that is readable by anyone?

Any chance you could PM me a link to the file? I don't have a book that fits in this category to understand what that file is? Perhaps Kovid may explain the situation...
kiwidude is offline   Reply With Quote
Old 05-16-2011, 09:02 AM   #173
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by kiwidude View Post
It doesn't change how checks are run in terms of them being one at a time - it is too complex to try to present results from running multiple checks at once to contemplate doing that.

It just means that each check that runs has the progress dialog shown so you can cancel it.

Perhaps in hindsight I really should have called it Cancel rather than Abort too, Abort implies that I am going to display the results retrieved so far. I currently don't do that though I actually could. What would people prefer - Abort to display only the partial results of scanning your database, or the button to be called Cancel and behaviour as now of not showing you the results of clicking it?
Ok, I don't think I explained my question correctly. Currently I do not use all the checks that the plugin can do, for instance I do not use any of the epub checks, and I only use specific cover checks. What I want to know is, does the plugin go through the the available checks that is currently in the plugin, including all the epub and cover checks, or is there a way for the user to setup which checks it should use in this mass run? Another question, is it still available for the user to run the checks individually??

Nyn
nynaevelan is offline   Reply With Quote
Old 05-16-2011, 09:13 AM   #174
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@Nyn - as I mentioned above there is no "mass run", checks are still one at a time based on whatever individual check you chose on the menu. However as some of the checks take a longer time to run on large libraries, there is a progress dialog with a cancel button to allow you to terminate that specific check.
kiwidude is offline   Reply With Quote
Old 05-16-2011, 10:58 AM   #175
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by kiwidude View Post
@Nyn - as I mentioned above there is no "mass run", checks are still one at a time based on whatever individual check you chose on the menu. However as some of the checks take a longer time to run on large libraries, there is a progress dialog with a cancel button to allow you to terminate that specific check.
Oh sorry I missed it the second time around. Thanks for your patience.
nynaevelan is offline   Reply With Quote
Old 05-16-2011, 12:36 PM   #176
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: 29,783
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:
Originally Posted by kiwidude View Post
Ahh, another cryptic from theducks

So if I try to interpret here - it found two results, one was correct and did have DRM that you cannot open in Calibre, but the other Calibre will open, right?
Yes. I tend to get terse

Quote:
Any chance you could PM me a link to the file? I don't have a book that fits in this category to understand what that file is? Perhaps Kovid may explain the situation...
It is a Public site

http://wwwimages.adobe.com/www.adobe...ces-1_0_3.epub
theducks is online now   Reply With Quote
Old 05-16-2011, 12:43 PM   #177
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're probably detecting the file being DRMed by the presence of encryption.xml, but encryption.xml is present for font obfuscation as well, your tests have to be a little more sophisticated. See the calibre code in epub.input
kovidgoyal is online now   Reply With Quote
Old 05-16-2011, 12:45 PM   #178
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Thanks Kovid, that was the understanding I was missing on what the scenario was all that extra code was for. I didn't want to replicate it without understanding the purpose

And thanks too theducks for the link. I will use that to test against.
kiwidude is offline   Reply With Quote
Old 05-16-2011, 12:48 PM   #179
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,208
Karma: 16534692
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
...your tests have to be a little more sophisticated...
@kiwidude,

No good deed goes unpunished. I'll bet you're REALLY glad you started these epub checks. There's probably enough to keep you going for years!
jackie_w is offline   Reply With Quote
Old 05-16-2011, 01:00 PM   #180
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by jackie_w View Post
@kiwidude,

No good deed goes unpunished. I'll bet you're REALLY glad you started these epub checks. There's probably enough to keep you going for years!
Haha, yeah I know, it is a can of worms and possibilities. Likewise the plugin that will "fix" some of these is similarly open ended.

Pfff, who needs a life, anyway...
kiwidude is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 08:45 PM.


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