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-07-2012, 04:34 AM   #376
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.7.6 Released

Changes in this release:
  • Properly fix the spaces encoding when using Check unused image files

Thanks @PaulFiera - I used the wrong encoding function in the last release, darned copy/paste...
kiwidude is offline   Reply With Quote
Old 05-07-2012, 04:35 AM   #377
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
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.
Thanks very much Kovid, I had a suspicion it wasn't trivial. I will put it on the rainy day list to take a look at.
kiwidude is offline   Reply With Quote
Advert
Old 05-07-2012, 05:32 AM   #378
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by kiwidude View Post
Changes in this release:
  • Properly fix the spaces encoding when using Check unused image files

Thanks @PaulFiera - I used the wrong encoding function in the last release, darned copy/paste...
You're welcome.

But still...


The space is encoded correctly, but nor the comma, which should be %2C.

Sorry. I know this is nitpicking and I wish they didn't name the files this way. I certainly don't when I'm developing for the Web.

EDIT:

Hold on because I'm finding a couple more:


I don't know which encoding functions are available to you but this looks like standard javascript escape() or encodeURIComponent()

Last edited by paulfiera; 05-07-2012 at 06:32 AM.
paulfiera is offline   Reply With Quote
Old 05-07-2012, 05:55 AM   #379
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
There are days I hate Python... (or my lack of knowledge of it)... there is a *third* variant of url encoding function which I should have used... sigh. New release shortly.
kiwidude is offline   Reply With Quote
Old 05-07-2012, 06:02 AM   #380
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by kiwidude View Post
There are days I hate Python... (or my lack of knowledge of it)... there is a *third* variant of url encoding function which I should have used... sigh. New release shortly.
I believe you need to choose the one that resembles most javascript escape(). encodeURIComponent() won't encode apostrophes and they seem to be encoded in the epubs I have checked.
paulfiera is offline   Reply With Quote
Advert
Old 05-07-2012, 06:02 AM   #381
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.7.7 Released

Changes in this release:
  • Yet another tweak to Check unused image files to cope with characters like commas
kiwidude is offline   Reply With Quote
Old 05-07-2012, 07:23 AM   #382
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Many thanks, kiwidude.

It's still finding images used in the epubs. Is your check case sensitive? In the same epub, in content.opf, the path to the images is "images", but in the html files is "Images".

Just say the word if you don't want to be bothered any more. I'm feeling like a PITA.
paulfiera is offline   Reply With Quote
Old 05-07-2012, 07:30 AM   #383
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
It converts everything to lowercase. And it doesn't use the path to the image, it strips that and just looks for the image name. If you have an epub causing you an issue, PM me a link to it.
kiwidude is offline   Reply With Quote
Old 05-07-2012, 11:26 AM   #384
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
v1.7.8 Released

Changes in this release:
  • Add a "Search scope" submenu to allow searching selected books rather than all books.
  • Change Check unused image files to look for both encoded and non encoded versions of the image names and ignore DRM ebooks
kiwidude is offline   Reply With Quote
Old 05-07-2012, 12:08 PM   #385
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by kiwidude View Post
Changes in this release:
  • Add a "Search scope" submenu to allow searching selected books rather than all books.
  • Change Check unused image files to look for both encoded and non encoded versions of the image names and ignore DRM ebooks
Fantastic addition the Search Scope. Great when adding new books and running the QC only against these new books.

Kudos!!!
paulfiera is offline   Reply With Quote
Old 05-07-2012, 12:11 PM   #386
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,161
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
Quote:
Originally Posted by kiwidude View Post
Thanks very much Kovid, I had a suspicion it wasn't trivial. I will put it on the rainy day list to take a look at.
Somehow, I knew it wasn't trivial, but I could hope.

Kovid is right, it takes both an Amazon ID AND the EBOK tag. The Amazon ID is automatic in my workflow these days, though may well be missing for older books.

Well, if you could do it, it would be a good thing for this Fire user. And I suspect for others, since I know it's a topic that comes up there often.
CRussel is offline   Reply With Quote
Old 05-07-2012, 01:10 PM   #387
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by paulfiera View Post
Fantastic addition the Search Scope. Great when adding new books and running the QC only against these new books.

Kudos!!!
+1 to that. Karma to kiwidude
jackie_w is offline   Reply With Quote
Old 05-07-2012, 06:49 PM   #388
Pierre Menard
Zealot
Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.Pierre Menard ought to be getting tired of karma fortunes by now.
 
Posts: 118
Karma: 712690
Join Date: Apr 2012
Device: Kobo Aura HD, Nook HD+, Nook Simple Touch
Quote:
Originally Posted by kiwidude View Post
Add a "Search scope" submenu to allow searching selected books rather than all books.
Aw, and here I'd finally just about trained myself to remember to use the "restrict to."

The ability to search for books that have had a calibre conversion has been a fantastic tool--can't tell you how much I appreciate that. So much, in fact, that I'm wondering if that sort of functionality can be extended a bit.

Some of the books I have have not been converted, but they have been edited in Sigil. Sigil seems to add a line to the opf file to indicate this:
Quote:
<meta content="0.4.0" name="Sigil version" />
I dislike Sigil and don't really touch it, so I'm not sure if all versions or all edits automatically add this line, but I see it often enough. I'd love to be able to automate identifying those.

In fact, there's a few different things that I sometimes wish to check files for. I have in my head an image of the plug-in prompting me for what word I want to look for (eg, "sigil"), maybe even asking if I want to check in the opf file or the html. If that's any sort of possibility and not just crazy talk from someone who has no idea how this actually works, that would be incredibly useful.
Pierre Menard is offline   Reply With Quote
Old 05-08-2012, 02:49 AM   #389
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 378
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by Pierre Menard View Post
I have in my head an image of the plug-in prompting me for what word I want to look for (eg, "sigil"), maybe even asking if I want to check in the opf file or the html. If that's any sort of possibility and not just crazy talk from someone who has no idea how this actually works, that would be incredibly useful.
Actually I had the same idea for an enhancement request but perhaps simpler.

An input text field where you could enter any text and search the whole library or a scope.

In my case, I have many epubs generated from MS Word. Normally, these epubs do not have the best formatting and I would like to be able to enter "Microsoft" in an input field and get all the books where that word exists. In the case of MS Word generated epubs there's usually a meta tag defining this.

The possibility of find a string in your library or a scope would be absolutely great.
paulfiera is offline   Reply With Quote
Old 05-08-2012, 09:51 AM   #390
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,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Something like this perhaps... ?
Attached Thumbnails
Click image for larger version

Name:	Screenshot_11_SearchEpub.png
Views:	198
Size:	13.7 KB
ID:	86200  

Last edited by kiwidude; 05-08-2012 at 02:22 PM.
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 07:31 PM.


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