06-11-2017, 10:08 PM | #1111 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
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:
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. |
06-12-2017, 01:58 AM | #1112 |
Daywalker
Posts: 29
Karma: 52
Join Date: Jul 2008
Device: Kindle Paperwhite
|
|
06-12-2017, 04:20 AM | #1113 | |
Groupie
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
|
Quote:
https://www.mobileread.com/forums/sh...postcount=1046 Well, the result is the same anyway |
|
06-12-2017, 04:33 AM | #1114 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
06-13-2017, 05:09 AM | #1115 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Updated Polish translation for version 1.8.0.
|
06-17-2017, 07:39 PM | #1116 |
Junior Member
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. |
06-17-2017, 10:03 PM | #1117 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
06-17-2017, 11:03 PM | #1118 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
David, you must of missed his update saying a restart solved the issue.
|
06-18-2017, 12:18 AM | #1119 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
06-30-2017, 03:35 PM | #1120 |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
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! |
07-07-2017, 09:28 AM | #1121 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Aug 2011
Device: Kobo Glo HD
|
is it compatbile with kobo or only Kindle?
|
07-07-2017, 10:14 AM | #1122 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
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. |
08-06-2017, 07:41 PM | #1123 | |
Connoisseur
Posts: 56
Karma: 100000
Join Date: Feb 2013
Location: Ontario, Canada
Device: Kindle Oasis 2, Kobo Libra H2O, Kobo Libra 2
|
Quote:
|
|
08-06-2017, 08:55 PM | #1124 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
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 |
08-06-2017, 09:56 PM | #1125 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
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>} |
|
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 |