Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2012, 03:53 AM   #331
kiwidude
calibre/Sigil 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,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@itimpi - the question was whether Kovid would change the page count algorithm used by the calibre ebook viewer to use the same approach as ADE or continue to use its own version that is based around the displayed text.

The answer to which he has said he does not want to change, so I shall just make three page count options available in this plugin.
kiwidude is online now   Reply With Quote
Old 06-02-2012, 03:59 AM   #332
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,022
Karma: 777817
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by kiwidude View Post
@itimpi - the question was whether Kovid would change the page count algorithm used by the calibre ebook viewer to use the same approach as ADE or continue to use its own version that is based around the displayed text.

The answer to which he has said he does not want to change, so I shall just make three page count options available in this plugin.
Fair enough - but I always thought that the viewer was effectively a "screen count". As I do not use the Calibre Viewer for reading I tend not to think of it is as a key Calibre component.
itimpi is offline   Reply With Quote
Old 06-02-2012, 04:14 AM   #333
kiwidude
calibre/Sigil 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,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
I don't use it for reading either so I don't particularly care and it is trivial for my plugin to support both. I will say while I know Kovid has his reasons I don't actually find calibre's current page count particularly meaningful, as it is so massively large compared to a printed equivalent of a book. Not that ADE has any magic voodoo guaranteeing its numbers are better, but they are lower which makes them appear more realistic, and of course other software readers and devices uses that ADE number so there is some consistency between them.

Maybe Kovid will accept a patch of an option for the ebook viewer preferences to use the ADE count. As I said I don't care enough to try to change Kovid's mind, I can offer it in this plugin which will let users see in a column what they will get on their devices and that is good enough for me.
kiwidude is online now   Reply With Quote
Old 06-02-2012, 04:28 AM   #334
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: 25,386
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Calibre's viewer uses the number of non whitespace characters (actual text characters not including HTML markup) / 1000 as the number of "pages". This algorithm is a lot better than ADEs, which was implemented purely as the simplest (least resource intensive) way of arriving at a page count on CPU bound devices.

The value of 1000 was chosen to be close to the number of screens per ebook, rather than the number of pages per paperback. For instance, at the font size I prefer, on my Kindle Touch, there are, on average, ~750 non whitespace characters per screen.
kovidgoyal is online now   Reply With Quote
Old 06-02-2012, 05:21 AM   #335
kiwidude
calibre/Sigil 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,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.4.3 Released

Changes in this release:
  • Add another page count algorithm of "Adobe Digital Editions (ADE)", which matches that used by the ADE software and some devices like Nook.
  • Rename the "Calibre Viewer (Adobe)" option to "E-book Viewer (calibre)" as it was misleading, calibre uses its own calculation not the Adobe one.
kiwidude is online now   Reply With Quote
Old 06-02-2012, 12:17 PM   #336
Zetmolm
Evangelist
Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.Zetmolm ought to be getting tired of karma fortunes by now.
 
Posts: 476
Karma: 950180
Join Date: Jan 2010
Device: Onyx Boox 60, PocketBook Touch
Thanks for adding this as another option rather than replacing the Calibre count. ADE may be closer to the page count of physical books, but I don't care about the number of pages in physical books anymore. A number that is close to the number of screens on my reader is more relevant to me.
And another nice thing, the Calibre page count is very close to the page count that FBReader does on my Onyx Boox.
Zetmolm is offline   Reply With Quote
Old 06-02-2012, 06:21 PM   #337
jgaiser
Omnivorous
jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.
 
jgaiser's Avatar
 
Posts: 2,957
Karma: 20608001
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Fire HD, Kindle GDX, Kindle 3, KPW, Nook HD+
@kiwidude - Upgraded to latest and my queer page count has gone away. Don't know what was going on, but it's all right now.
jgaiser is offline   Reply With Quote
Old 06-03-2012, 01:21 AM   #338
tontea
Junior Member
tontea began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: Kindle Touch
I just updated to Calibre version 0.8.54 and also updated the Count pages plugin. I am getting the following error message when I run the plugin:

calibre, version 0.8.54
ERROR: Failed to count statistics: <b>Failed</b>: Count ePub/Mobi Statistics

Count ePub/Mobi Statistics
Failed to initialize plugin: u'C:\\Users\\Tonya\\AppData\\Roaming\\calibre\\plu gins\\MobiDeDRM.zip'
Python function terminated unexpectedly
need more than 5 values to unpack (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 191, in main
File "site-packages\calibre\utils\ipc\worker.py", line 138, in arbitrary_n
File "calibre_plugins.count_pages.jobs", line 29, in do_count_statistics
ValueError: need more than 5 values to unpack

Help! The plugin worked fine prior to updating.

Last edited by tontea; 06-03-2012 at 01:25 AM.
tontea is offline   Reply With Quote
Old 06-03-2012, 03:30 AM   #339
Terisa de morgan
Wizard
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 2,174
Karma: 1958712
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Mini, iPhone, iPad, Kobo Aura, Galaxy Tab3 8
Thank you for the change to ADE options but... now I have to update calibre/plugin... tsk (I still was at 8.30, not a great fan of updating myself )
Terisa de morgan is offline   Reply With Quote
Old 06-03-2012, 05:40 AM   #340
kiwidude
calibre/Sigil 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,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@tontea - welcome to mobileread. Did you remember to restart calibre after upgrading the plugin?

@terisa - yes, I am "dragging" users forward in calibre versions if they want to use the latest version of the plugin. There have been some really important bug fixes for ePub conversions in particular recently, so it is worth the effort, honest!
kiwidude is online now   Reply With Quote
Old 06-03-2012, 09:35 AM   #341
GeckoFriend
Fanatic
GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.GeckoFriend ought to be getting tired of karma fortunes by now.
 
GeckoFriend's Avatar
 
Posts: 542
Karma: 1024603
Join Date: Jan 2012
Location: SF Bay Area, California
Device: Sony PRS T-1, Kindle Fire
Thanks for updating to allow ADE counts. I love that the page count now more closely matches what my reader shows.
GeckoFriend is offline   Reply With Quote
Old 06-04-2012, 09:06 PM   #342
tontea
Junior Member
tontea began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: Kindle Touch
Quote:
Originally Posted by kiwidude View Post
@tontea - welcome to mobileread. Did you remember to restart calibre after upgrading the plugin?
I did not. That was, of course, the problem. Sorry to be a bother. Thanks for all your hard work! Love the plugin!
tontea is offline   Reply With Quote
Old 06-12-2012, 12:00 PM   #343
maxiart
The Black-Hearted
maxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the husk
 
maxiart's Avatar
 
Posts: 99
Karma: 141748
Join Date: May 2012
Location: Latin America
Device: Nook Simple Touch
A question, and apologies if this was mentioned or asked somewhere else. Is there a way to it count pages in the same way that the nook STR does? So that the count displayed and the count displayed when I open the book with the nook agree?
maxiart is offline   Reply With Quote
Old 06-12-2012, 12:23 PM   #344
kiwidude
calibre/Sigil 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,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@maxiart - appreciate the apology but clearly you didn't read the very same page you posted on?

Look at the release notes above...
kiwidude is online now   Reply With Quote
Old 06-12-2012, 12:28 PM   #345
maxiart
The Black-Hearted
maxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the huskmaxiart can grip it by the husk
 
maxiart's Avatar
 
Posts: 99
Karma: 141748
Join Date: May 2012
Location: Latin America
Device: Nook Simple Touch
Quote:
Originally Posted by kiwidude View Post
@maxiart - appreciate the apology but clearly you didn't read the very same page you posted on?

Look at the release notes above...
I wholeheartedly admit I did not! Thanks a lot!
maxiart is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 730 Today 02:50 AM
[GUI Plugin] Kindle Collections meme Plugins 2058 07-15-2014 01:36 AM
[GUI Plugin] Open With kiwidude Plugins 223 07-09-2014 02:42 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 28 04-23-2014 05:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 03:02 AM.


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