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-11-2017, 10:08 PM   #1111
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: 12,651
Karma: 19973288
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Update to version 1.8.0

The latest changes for the plugin have just been replaced. The changes are mainly to add another source for downloading page counts and making it easy to add others. Plus a bug fix and French translation. The full list is:
  • Fix: Update book details pane after updating counts.
  • Update: Change way menu/active site is indicated.
  • New: Add function to allow downloading page count from multiple sites.
  • New: Add download page count from lubimyczytac.pl - thanks to BeckyEbook.
  • New: Redesign configuration dialog into two tabs.
  • New: French translation thanks to Nicolas F.

Calibre will present the update sometime in the next hour for downloading, or you can manually download it from the first post.

If there are any problems with the update, please report them here and I will look into them.
davidfor is offline   Reply With Quote
Advert
Old 06-12-2017, 01:58 AM   #1112
red_dragon
Daywalker
red_dragon is on a distinguished road
 
Posts: 28
Karma: 50
Join Date: Jul 2008
Device: Kindle Paperwhite
Quote:
Originally Posted by Nicolas F View Post
Edit: and after having looked at it a little more, I hadn't though to use regex, but we could also simply do rt1_hour=re(time1, '\.\d*', ''); to truncate the hour... This way no rounding occurs
Using a regex to get the hour is a nice idea.
red_dragon is offline   Reply With Quote
Old 06-12-2017, 04:20 AM   #1113
Nicolas F
Connoisseur
Nicolas F began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
The latest changes for the plugin have just been replaced. The changes are mainly to add another source for downloading page counts and making it easy to add others. Plus a bug fix and French translation.
If there are any problems with the update, please report them here and I will look into them.
The translation you used for the release isn't the last one I posted here:
https://www.mobileread.com/forums/sh...postcount=1046

Quote:
Originally Posted by red_dragon View Post
Using a regex to get the hour is a nice idea.
Well, the result is the same anyway
Nicolas F is offline   Reply With Quote
Old 06-12-2017, 04:33 AM   #1114
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: 12,651
Karma: 19973288
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by Nicolas F View Post
The translation you used for the release isn't the last one I posted here:
https://www.mobileread.com/forums/sh...postcount=1046
I forgot to check the language files. I'll get it fixed.
davidfor is offline   Reply With Quote
Old 06-13-2017, 05:09 AM   #1115
BeckyEbook
Member
BeckyEbook began at the beginning.
 
BeckyEbook's Avatar
 
Posts: 17
Karma: 10
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
Updated Polish translation for version 1.8.0.
Attached Files
File Type: zip CountPages180-PL-updated-translation.zip (10.1 KB, 15 views)
BeckyEbook is offline   Reply With Quote
Old 06-17-2017, 07:39 PM   #1116
Eschaton
Junior Member
Eschaton began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Location: Portland, Oregon
Device: ipad
Never mind. I restarted Calibre and now it seems to be OK. I think I might have installed it this morning and not restarted Calibre after doing so. Seems to work OK now.

The plugin seems to be crashing consistently now that I've upgraded to calibre 3.0.0. Here's the error dump:

Count Page/Word Statistics
Python function terminated unexpectedly
do_count_statistics() takes at least 8 arguments (7 given) (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "site-packages\calibre\utils\ipc\worker.py", line 133, in arbitrary_n
TypeError: do_count_statistics() takes at least 8 arguments (7 given)

Last edited by Eschaton; 06-17-2017 at 07:48 PM.
Eschaton is offline   Reply With Quote
Old 06-17-2017, 10:03 PM   #1117
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: 12,651
Karma: 19973288
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by Eschaton View Post
Never mind. I restarted Calibre and now it seems to be OK. I think I might have installed it this morning and not restarted Calibre after doing so. Seems to work OK now.

The plugin seems to be crashing consistently now that I've upgraded to calibre 3.0.0. Here's the error dump:

Count Page/Word Statistics
Python function terminated unexpectedly
do_count_statistics() takes at least 8 arguments (7 given) (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "site-packages\calibre\utils\ipc\worker.py", line 133, in arbitrary_n
TypeError: do_count_statistics() takes at least 8 arguments (7 given)
It's working fine here. Have you upgraded to the latest version of the plugin? What options are you using when you run it?
davidfor is offline   Reply With Quote
Old 06-17-2017, 11:03 PM   #1118
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,238
Karma: 13599467
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by davidfor View Post
Quote:
Originally Posted by Eschaton View Post
Never mind. I restarted Calibre and now it seems to be OK.
It's working fine here. Have you upgraded to the latest version of the plugin? What options are you using when you run it?
David, you must of missed his update saying a restart solved the issue.
DoctorOhh is offline   Reply With Quote
Old 06-18-2017, 12:18 AM   #1119
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: 12,651
Karma: 19973288
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by DoctorOhh View Post
David, you must of missed his update saying a restart solved the issue.
Actually, I read it backwards. I assumed the error message was the edit. But, rereading the post, it makes more sense the other way round.
davidfor is offline   Reply With Quote
Old 06-30-2017, 03:35 PM   #1120
cryzed
Addict
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 398
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Paperwhite, Kindle Voyage
Hey, I modified the code a bit. My plan was to speed up the APNX-accurate algorithm, but unfortunately even my alternative version only performs at around the same speed (+/- 1 second). Some things it might handle better are books with strange and/or broken markup (although Calibre should prevent that during the conversion-step).

I also made slight changes in _read_epub_contents() and _extract_body_text() that avoid some unicode conversion steps and that use the re module a bit more efficiently (regex_object.search() instead regex_object.findall(), re.sub() instead of str.replace()).

I didn't want to just throw it away, maybe you'll find it interesting or useful in some way: count-pages.patch.

Thanks for your plugin!
cryzed is offline   Reply With Quote
Old 07-07-2017, 09:28 AM   #1121
scorpion2782
Enthusiast
scorpion2782 began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Aug 2011
Device: Kobo Glo HD
is it compatbile with kobo or only Kindle?
scorpion2782 is offline   Reply With Quote
Old 07-07-2017, 10:14 AM   #1122
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: 12,651
Karma: 19973288
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by scorpion2782 View Post
is it compatbile with kobo or only Kindle?
I don't know whether to answer "it's not compatible with anything", or "it's compatible with everything".

The plugin calculates statistics for books in your calibre library. This has absolutely nothing to do with what device you use. It does include four different ways to calculate a page count. One of these is the Kindle method, another is the ADE method which Kobo uses for epubs.
davidfor is offline   Reply With Quote
Old 08-06-2017, 07:41 PM   #1123
mgrimace
Member
mgrimace began at the beginning.
 
mgrimace's Avatar
 
Posts: 14
Karma: 10
Join Date: Feb 2013
Device: Kobo Aura One
Quote:
Originally Posted by davidfor View Post
I don't know whether to answer "it's not compatible with anything", or "it's compatible with everything".

The plugin calculates statistics for books in your calibre library. This has absolutely nothing to do with what device you use. It does include four different ways to calculate a page count. One of these is the Kindle method, another is the ADE method which Kobo uses for epubs.
Maybe a more accurate question would be is there a way to send the page count to a Kobo device (e.g., be able to see each book's page counts on the device itself)?
mgrimace is offline   Reply With Quote
Old 08-06-2017, 08:55 PM   #1124
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: 9,916
Karma: 56938221
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
I know I had at one time had a custom column that would store small / medium / large (or some similar description) and then I could create a collection based on that value.

Sent from my Nexus 7 using Tapatalk
PeterT is offline   Reply With Quote
Old 08-06-2017, 09:56 PM   #1125
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: 12,651
Karma: 19973288
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
Quote:
Originally Posted by mgrimace View Post
Maybe a more accurate question would be is there a way to send the page count to a Kobo device (e.g., be able to see each book's page counts on the device itself)?
The Kobo devices do not display a word or page count anywhere, but there are several ways to do it.

One method is to use a metadata plugboard to add the page count to one of the pieces of metadata that is displayed. Appending it to the title or the author is what I have seen.

The other is to put it in the comments/synopsis. My Kobo Utilities plugin can do this. It can use a template to add extra information to the synopsis on the device. I use:

Code:
template:{comments}{tags:|<p>Tags: |</p>}{rating:|<p>Rating: |</p>}{#kobo_last_read:|<p>Last Read: |</p>}{#words:|<p>Word count: |</p>}
That adds the tags, my rating, the last read timestamp and the page and word count.
davidfor is offline   Reply With Quote
Reply

Tags
count pages, 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] Open With kiwidude Plugins 328 08-20-2017 11:34 PM
[GUI Plugin] Quality Check kiwidude Plugins 858 06-24-2017 07:04 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 32 09-13-2014 10:34 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


All times are GMT -4. The time now is 08:53 PM.


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