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 04-07-2012, 12:13 PM   #286
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.3.2 Released

Changes in this release:
  • Fix bug where preferred input order not being correctly applied (was alphabetical instead!)
  • Fix bug where LIT formats would cause file in use errors

Thanks Culex for reporting these issues.
kiwidude is offline   Reply With Quote
Old 04-13-2012, 04:20 PM   #287
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.3.3 Released

Changes in this release:
  • Support change to Goodreads website for scraping page count
kiwidude is offline   Reply With Quote
 
Enthusiast
Old 05-03-2012, 01:29 PM   #288
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
Posts: 1,671
Karma: 509671
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
@kiwidude - Have you ever thought about adding a chapter count? Could just count the TOC entries in the ncx file. I'd use it.

Jim
JimmXinu is offline   Reply With Quote
Old 05-30-2012, 03:50 AM   #289
TrulyInnovative
Member
TrulyInnovative began at the beginning.
 
Posts: 22
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
This has been another very useful plugin, thank you very much for developing it!

I do have one small issue, though. I use the FanFictionDownLoader plugin to download fanfics to my library, and this plugin allows me to get the (presumably more accurate) word count directly from the fanfiction site in question. Thus, I only use CountPages to, well, count the pages in the fanfic. However, I also have books in my library and in this case I use CountPages to count both the words and the pages. The problem is that if I have set CountPages to count both the words and pages, it overrides the existing the values, like the word count I get from the fanfiction site. This means that I have to change the settings of the CountPages plugin based on whether I want it to count the words or not.

I wonder if it were possible to to add a preference option that would force the CountPages plugin to not override any existing values?

Also, having the chapter count available would be nice, too.
TrulyInnovative is offline   Reply With Quote
Old 05-30-2012, 06:36 AM   #290
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
Chapter count isn't an option as I mentioned to JimmXinu a while ago on another thread, as there is no definition inside an epub of what constitutes a chapter. You can't parse the content (chapters might be just numbers or images) and you can't use the TOC (it may or may not have chapters defined in it). To be honest I don't see any value in it as a statistic either - what does a "77" chapter James Patterson novel in comparison to a "10" chapter novel by someone else mean? To me personally it means absolutely nothing, because it comes down to the length of those chapters. Which in turn are more meaningfully represented by word counts and page counts...

As for your other request about not overwriting, something I have considered for a while is as per the screenshot below. This would allow you to run the various counts in isolation, rather than having an overwrite option. Unless anyone has any better suggestion this will be the UI for the next version...
Attached Thumbnails
Click image for larger version

Name:	NewCountPages.png
Views:	41
Size:	6.8 KB
ID:	87091  
kiwidude is offline   Reply With Quote
Old 05-30-2012, 07:22 AM   #291
TrulyInnovative
Member
TrulyInnovative began at the beginning.
 
Posts: 22
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
Quote:
Originally Posted by kiwidude View Post
Chapter count isn't an option as I mentioned to JimmXinu a while ago on another thread, as there is no definition inside an epub of what constitutes a chapter. You can't parse the content (chapters might be just numbers or images) and you can't use the TOC (it may or may not have chapters defined in it). To be honest I don't see any value in it as a statistic either - what does a "77" chapter James Patterson novel in comparison to a "10" chapter novel by someone else mean? To me personally it means absolutely nothing, because it comes down to the length of those chapters. Which in turn are more meaningfully represented by word counts and page counts...
Alright, that makes sense. And you're right, chapter count is not nearly as meaningful as word or page count.

Quote:
Originally Posted by kiwidude View Post
As for your other request about not overwriting, something I have considered for a while is as per the screenshot below. This would allow you to run the various counts in isolation, rather than having an overwrite option. Unless anyone has any better suggestion this will be the UI for the next version...
That's not bad and would be easier than the current way of doing things. However, you would still have to click the dropdown menu and the select the correct option to get what you want. If you had the overwrite-or-not option, you would only have to click the large icon of the plugin, which would then perform the correct procedure depending on what values are currently present. Of course, the best of both worlds would be having both your suggested UI and the overwrite-or-not option. This way, you could have the default option which works most of the time, but you could also select a specific option from the dropdown menu for any other cases.
TrulyInnovative is offline   Reply With Quote
Old 05-30-2012, 07:32 AM   #292
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
To be honest I don't like the idea of an overwrite option. For 99.9% of users they run the plugin because they *want* to overwrite. It would all just get way too messy and confusing in my opinion - people not knowing or realising when their page/word count is being updated and when it isn't. Not to mention the permutations of configuration for which column they don't want overwritten in which circumstance...

You can change which option gets run on the toolbar button. And you can assign keyboard shortcuts to any of the options. Thats as far as I want to go with it - but if others feel sufficiently strongly about it they are welcome to try to persuade me otherwise...
kiwidude is offline   Reply With Quote
Old 05-30-2012, 10:26 AM   #293
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
@TrulyInnovative - ok, I changed my mind. Thinking about your comments a bit more I realised it did just need to be as simple as a single checkbox. It is turned on by default and is called 'Always overwrite an existing column count', so in your case you will be able to just untick it and job done...
kiwidude is offline   Reply With Quote
Old 05-30-2012, 10:30 AM   #294
morantis
Zealot
morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.morantis ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 769546
Join Date: May 2012
Device: none
Can it be configured to ignore blank pages.
morantis is offline   Reply With Quote
Old 05-30-2012, 10:38 AM   #295
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
Quote:
Originally Posted by morantis View Post
Can it be configured to ignore blank pages.
Blank pages have no impact on page counts. Page counts are determined using algorithms based around the number of characters in the book, the very rare situation of an html page containing no content should not affect the algorithm at all.
kiwidude is offline   Reply With Quote
Old 05-30-2012, 10:57 AM   #296
TrulyInnovative
Member
TrulyInnovative began at the beginning.
 
Posts: 22
Karma: 10
Join Date: May 2012
Device: Sony PRS-T1
Smile

Quote:
Originally Posted by kiwidude View Post
@TrulyInnovative - ok, I changed my mind. Thinking about your comments a bit more I realised it did just need to be as simple as a single checkbox. It is turned on by default and is called 'Always overwrite an existing column count', so in your case you will be able to just untick it and job done...
Fantastic, that should be perfect! Thanks for the quick response.
TrulyInnovative is offline   Reply With Quote
Old 05-30-2012, 11:27 AM   #297
theducks
Grand Sorcerer
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: 14,619
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I would like a don't overwrite option in lieu of a Always Ask before overwrite. (the default is overwrite)

Where I would really like this type of option is the Main, Download Metadata configuration page (basically a Hands off only if filled in) per source (some are better than others )
theducks is offline   Reply With Quote
Old 05-30-2012, 11:45 AM   #298
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
@theducks - you have me slightly confused now . The new option has no user interactivity with it whatsoever, you set it once and forget it.

By default being turned on users who are happy with how the plugin works today will see zero difference. If however you turn it off, then what happens is the plugin looks to see whether you already have a value in the page/word count column before deciding whether to even to kick off the background job to get a count. So if you already had a page count, and selected the estimate page count option, it will straight away tell you it isn't going to do anything for that particular book. End of story, no "option" to do it anyway etc. If you decide you want to do want to overwrite a value in one specific case, then rather than going back into options and ticking the checkbox again you could just set the value to zero.

How does that fit with what you had in mind? I'm trying to avoid having more prompts - people already complain about the (unavoidable) one that comes up once the plugin has the counts and is ready to update the library...
kiwidude is offline   Reply With Quote
Old 05-30-2012, 12:26 PM   #299
theducks
Grand Sorcerer
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: 14,619
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
OK set (and forget ) it is
theducks is offline   Reply With Quote
Old 05-30-2012, 04:05 PM   #300
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.0 Released

Changes in this release:
  • Minimum version set to calibre 0.8.51
  • Performance optimisation for epubs for calibre 0.8.51 to reduce unneeded computation
  • Change to calibre API for deprecated dialog which caused issues that intermittently crashed calibre
  • Additional items for menu to allow doing page/word counts in isolation
  • Add an 'Always overwrite existing value' checkbox (default is True), to allow users to turn off overwriting manually populated page/word counts without choosing the isolated menu option

Anyone who has read the last half dozen posts will understand most of the above. Basically you now have more granularity available in the menus to decide whether to update only the page count or word count as needed, for preserving values you have manually populated.
kiwidude is offline   Reply With Quote
Reply

Tags
page count

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quick Preferences kiwidude Plugins 32 09-13-2014 10:34 PM
[GUI Plugin] Quality Check kiwidude Plugins 780 09-12-2014 10:04 PM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 12:02 AM
[GUI Plugin] Open With kiwidude Plugins 228 07-31-2014 01:06 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 01:58 AM.


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