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 11-04-2015, 03:28 PM   #796
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by rpgmaker View Post
I do want to ask, is there a way to count pages automatically after adding a book to the library?
You mean that the page counting is done upon adding the book, so you don't have to start and acknowledge the count yourself?

As far as I know, it's not possible. If it is, I don't know how.

Last edited by Katsunami; 11-04-2015 at 08:18 PM.
Katsunami is offline   Reply With Quote
Old 11-04-2015, 05:23 PM   #797
rpgmaker
Connoisseur
rpgmaker began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by Katsunami View Post
You mean that the page counting is done upon adding the book, so you don't have to start and acknowledge the count it yourself?
Acknowledge? Maybe something got lost in translation but I'm not asking for this to avoid the page count obviously (why would I install a page count plugin then?), it is to save the step of executing the plugin manually for each new book I add to my library.
rpgmaker is offline   Reply With Quote
Advert
Old 11-04-2015, 06:38 PM   #798
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: 30,452
Karma: 58055868
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 rpgmaker View Post
Acknowledge? Maybe something got lost in translation but I'm not asking for this to avoid the page count obviously (why would I install a page count plugin then?), it is to save the step of executing the plugin manually for each new book I add to my library.
Any PI that prepares changes in background to the DB requires the user to Acknowledge they are ready to have the change posted. These PI typically need to grind for a bit, so you are allowed to do other work with the Library
theducks is offline   Reply With Quote
Old 11-04-2015, 08:18 PM   #799
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by rpgmaker View Post
Acknowledge? Maybe something got lost in translation but I'm not asking for this to avoid the page count obviously (why would I install a page count plugin then?), it is to save the step of executing the plugin manually for each new book I add to my library.
What theducks says above; after you start Page Count, it takes some time. When it is done, it asks you to acknowledge (or cancel) the changes it wants to make. In this case, that change is adding the page count to the database.

Quote:
Originally Posted by rpgmaker View Post
Acknowledge? Maybe something got lost in translation but I'm not asking for this to avoid the page count obviously (why would I install a page count plugin then?), it is to save the step of executing the plugin manually for each new book I add to my library.
That is what I meant as well. AFAIK, you can't run the plugin and apply the changes automatically when ebooks are added to the library. You will have to start the plugin yourself and then apply the changes when it asks to do so.

Last edited by Katsunami; 11-04-2015 at 08:20 PM.
Katsunami is offline   Reply With Quote
Old 11-04-2015, 09:19 PM   #800
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@rpgmaker - you can't auto execute PIs when a book is added, but you can turn off the notification messages for Count Pages, viz :

Click image for larger version

Name:	Capture.JPG
Views:	282
Size:	48.5 KB
ID:	143466

BR
BetterRed is offline   Reply With Quote
Advert
Old 11-04-2015, 11:06 PM   #801
rpgmaker
Connoisseur
rpgmaker began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by Katsunami View Post
What theducks says above; after you start Page Count, it takes some time. When it is done, it asks you to acknowledge (or cancel) the changes it wants to make. In this case, that change is adding the page count to the database.
Quote:
Originally Posted by BetterRed View Post
@rpgmaker - you can't auto execute PIs when a book is added, but you can turn off the notification messages for Count Pages.
I'm aware of this. In fact, you can tell the plugin to make the changes without asking for your confirmation. What I wanted to know was if it was possible to have the plugin execute automatically after adding a new book. It's ok though, not that much of a problem to run the plugin manually after adding a book

Great plugin. Thumbs up to the author!
rpgmaker is offline   Reply With Quote
Old 11-05-2015, 01:29 AM   #802
rpgmaker
Connoisseur
rpgmaker began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
Can anyone tell me what is the calculus/formula behind the page number? It'd be good to have it in the first post.
rpgmaker is offline   Reply With Quote
Old 11-05-2015, 03:45 AM   #803
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@rpgmaker - you could look at the code, just unpack the plugin zip somewhere, I think the algos are in statistics.py. The PI author, Kiwidude, isn't very active at the moment, but his code pretty easy to read with generous comments,

BR
BetterRed is offline   Reply With Quote
Old 11-05-2015, 08:57 AM   #804
rpgmaker
Connoisseur
rpgmaker began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by BetterRed View Post
@rpgmaker - you could look at the code, just unpack the plugin zip somewhere, I think the algos are in statistics.py. The PI author, Kiwidude, isn't very active at the moment, but his code pretty easy to read with generous comments,

BR
Thanks for pointing out the file.

The page count for epubs, in case anyone is wondering:
From what I understood the script first counts the lines (comment in script: "A line is either a paragraph starting or every 70 characters in a paragraph."). For the accurate count this number is then divided by 31 (which is the usual number of lines in a page of a paperback, I assume). After this, from script: "we could still have a really weird document and massively understate. As a backstop count the characters using the "fast count" algorithm and use that number instead". The fast count counts the characters in the entire document, divides this number by 2400 and a 1 is added to the result. The biggest of the two counts is used as the resulting page count.

Last edited by rpgmaker; 11-05-2015 at 09:01 AM.
rpgmaker is offline   Reply With Quote
Old 11-05-2015, 09:16 AM   #805
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by rpgmaker View Post
Thanks for pointing out the file.

The page count for epubs, in case anyone is wondering:
From what I understood the script first counts the lines (comment in script: "A line is either a paragraph starting or every 70 characters in a paragraph."). For the accurate count this number is then divided by 31 (which is the usual number of lines in a page of a paperback, I assume). After this, from script: "we could still have a really weird document and massively understate. As a backstop count the characters using the "fast count" algorithm and use that number instead". The fast count counts the characters in the entire document, divides this number by 2400 and a 1 is added to the result. The biggest of the two counts is used as the resulting page count.
Don't forget there are three other algorithms available. Personally, I use the ADE method. That matches what any device that uses the RMSDK will show for an epub.
davidfor is offline   Reply With Quote
Old 11-05-2015, 10:14 AM   #806
rpgmaker
Connoisseur
rpgmaker began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by davidfor View Post
Don't forget there are three other algorithms available. Personally, I use the ADE method. That matches what any device that uses the RMSDK will show for an epub.
Thanks for pointing it out, it's what I tried to clarify at the beginning of my comment but ended up muddling it instead

What I described was the accurate count method. There are others for PDF, Adobe, etc.
rpgmaker is offline   Reply With Quote
Old 11-05-2015, 01:01 PM   #807
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: 30,452
Karma: 58055868
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 davidfor View Post
Don't forget there are three other algorithms available. Personally, I use the ADE method. That matches what any device that uses the RMSDK will show for an epub.


Maybe that is because we use RMSDK equipped device ?

BTW those number seem to matchup with the numbers seen on the device
theducks is offline   Reply With Quote
Old 01-06-2016, 03:11 PM   #808
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,482
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have found some bugs in count pages that can cause it to count two words as one word.

except…if
except—if
except–if

All of those cases cause two words to be counted as one. I do hope someone is available to fix this. Thanks.
JSWolf is offline   Reply With Quote
Old 01-06-2016, 03:46 PM   #809
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,763
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Is it that critical that the word count be precise?
PeterT is offline   Reply With Quote
Old 01-06-2016, 04:22 PM   #810
rpgmaker
Connoisseur
rpgmaker began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
Quote:
Originally Posted by PeterT View Post
Is it that critical that the word count be precise?
Why would you say this? If it's a bug let's be thankful that someone did the work to find it and then cared enough to report it. In the end that makes the plugin more accurate and helpful to everyone.
rpgmaker is offline   Reply With Quote
Reply

Tags
count, count pages, page count, pages, plugin


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1214 Yesterday 12:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-17-2024 12:47 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 01:02 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 12:19 PM.


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