05-31-2012, 05:18 AM | #316 | |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: Kindle 4
|
Quote:
|
|
05-31-2012, 05:31 AM | #317 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@blekm - nope, that is all it does. And it was a relatively recent enhancement to integrate with calibre's apnx generation feature so that rather than using calibre's own algorithm for determining pages (which is not as robust as the one in this plugin) it could instead pull the value from a custom column, which you may have populated using this plugin, or may have set manually, it doesn't care.
So once you have configured a custom column, given it a value (manually or using this plugin), configured the Kindle plugin as per the special notes, and then used Send to Device to put the book on your Kindle, you should find a .apnx file on your Kindle in the same folder as the book, and that is what the kindle uses to display page counts. If you are not using Send to Device and just drag/dropping mobi files, or you have disabled the apnx generation on the Kindle plugin in calibre, then you won't get page counts. That is all I can suggest, otherwise post in the calibre device subforum, because as I say this plugin really has nothing to do with displaying page counts on a Kindle or indeed any other device. |
Advert | |
|
05-31-2012, 05:47 AM | #318 |
Say my name very fast ...
Posts: 131
Karma: 1387009
Join Date: Apr 2011
Location: The High Seas
Device: Kindle
|
Fantastic work yet again kiwidude.
Just got the plugin all set up and everything works beautifully. Transferred a few books to test and really enjoy having a page number to reference instead of just a location/percentage. Cheers! |
05-31-2012, 09:56 AM | #319 |
Zealot
Posts: 107
Karma: 554
Join Date: Oct 2008
Device: none
|
After updating from v1.3.3 to v1.4.1, I noticed that the page numbers (counted using the "Calibre Viewer (Adobe)" algorithm) have changed significantly, e.g. from 710 pages to 340 pages (counted from the same book which contains only epub format). The new page numbers are also different from the numbers shown in Calibre Viewer, so I decided to reinstall v1.3.3. Is this a bug or a permanent effect?
|
05-31-2012, 11:06 AM | #320 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@atjnjk - in this release I made a performance optimisation which Kovid had suggested a while ago (his comment was a generalisation to do with using a particular part of calibre he had changed). I applied that to this plugin - but until you made the comment I stupidly didn't realise that using the optimisation directly affected the character counts.
I'll sort out a new version, but first I want to put in an optimisation for pdfs that will read the information directly from the pdf rather than trying to calculate it using any of the algorithms. A pdf is the only book format that truly does have a "page". I think it is desirable that in the situation of only having a pdf format available (and wanting to count pages in it) that this plugin avoids the potentially large performance penalty of converting to epub and estimating counts based on that, and gives you the *actual* page count instead. |
Advert | |
|
05-31-2012, 11:56 AM | #321 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.4.2 Released
Changes in this release:
|
05-31-2012, 01:28 PM | #322 |
Omnivorous
Posts: 3,281
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
|
Interesting. Just tried again. My setup counts 20 pages using Calibre Viewer algorithm and 244 pages with Paragraph algorithm. And... It seems to be the only ebook with that much varience. Very strange. Not a big deal really. I'll just stick with the Paragraph algorithm as I've been doing since the start.
|
06-01-2012, 04:30 PM | #323 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@jgaiser - is that using the very latest release above? As it comes out at 393 pages now with v1.4.2, which matches what the calibre viewer displays. I don't understand at all how/where you get 20 pages? If it doesn't happen with 1.4.2 we can write it off as something to do with me running for later source code or something...
|
06-01-2012, 04:42 PM | #324 |
Zealot
Posts: 118
Karma: 712690
Join Date: Apr 2012
Device: Kobo Aura HD, Nook HD+, Nook Simple Touch
|
I appreciate this plugin. The APNX Accurate setting provides a reasonably good guideline for comparing different books when making a decision what I feel up to jumping into next.
One thing bothers me, though. The other setting beside APNX Accurate is "Calibre Viewer (Adobe)," suggesting that Calibre & Adobe are the same. In fact, the page counts given in Adobe Digital Editions are generally the best ones I've found--most closely related to the physical edition, and, more importantly, the same page counts I get in my Nook. These are the ones I'd ideally like to be able to generate. The Calibre page counts are completely different and basically useless. Of course, I have no info to offer on how ADE actually figures those page counts... |
06-01-2012, 06:29 PM | #325 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Pierre - it was my understanding that the calibre viewer used the Adobe algorithm. And this plugin just asks the same code the calibre viewer uses for exactly the same count. Hence that is why it says what it does...
I never use ADE, nor do I have a Nook. However I just opened an ePub in ADE, and I can see exactly what you mean - the calibre viewer is reporting it as 804 pages, yet ADE shows it as 334 pages, which as you say is the more "realistic" number. A rough character count reveals just over 800,000 characters in this particular ePub (including spaces). Which using the 1024 character count algorithm plus all the "partial" page breaks comes out about what the ebook viewer says. Even chopping spaces out only takes this down to 650,000 which is still way more pages than Adobe is reporting, so that isn't the reason. It has me intrigued now - time for some googling to see if anyone knows what magic ADE is using... |
06-01-2012, 06:35 PM | #326 | |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Actually perhaps the answer is listed here:
http://blog.threepress.org/2009/11/2...-ncx-pagelist/ Quote:
Edit: I think I found the secret - by compressed they mean the compressed size in the epub zip file. So iterate through the spine, look at the compressed size in the zip and apply the 1024 calculation to that. I shall do some experimenting and see if it is indeed that simple - it would be very cool to get the numbers to properly match up. Last edited by kiwidude; 06-01-2012 at 06:44 PM. |
|
06-01-2012, 08:27 PM | #327 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ok, good news, I've managed to nail it down and get this plugin returning an exact same ADE page count. The only question which I need Kovid to answer is whether he also wants to incorporate the change into calibre's ebook viewer algorithm (in which case my plugin should have the same two choices it displays today) or whether he wants to leave calibre as is (in which case my plugin will offer three choices).
I'm sure he will answer this fairly quickly in which case I can push the new pages algorithm tomorrow. @Pierre - thx for prompting me to look into this... |
06-01-2012, 09:42 PM | #328 |
Wizard
Posts: 1,717
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
|
Hi, I'm popping in here from another where I also pointed out that Calibre and ADE calculate the page counts very differently (and you pointed me here, thanks). It's great that you have figured out where the difference lies! If there is any place where we can add our voice to asking Kovid to make this same change in Calibre, please let me know, because I think that is the way to go.
eP |
06-02-2012, 12:34 AM | #329 | |
Omnivorous
Posts: 3,281
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
|
Quote:
I'll try again later this weekend. |
|
06-02-2012, 03:04 AM | #330 | |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
|
|
Tags |
count, count pages, page count, pages, plugin |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1184 | 04-17-2024 06:17 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |
[GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 12:02 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |