05-01-2013, 10:11 AM | #511 | |
Well trained by Cats
Posts: 29,820
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
No problems. I have it configured for: Pages, ADE algorithm Flesh-Kincaid Gunning Fox Button default: Estimate page counts Overwrite existing word/page counts |
|
05-03-2013, 11:31 AM | #512 | |
Enthusiast
Posts: 37
Karma: 41
Join Date: Nov 2011
Location: North Kingstown, RI, USA
Device: Kindle DX,Nexus 10,Fire HD
|
Quote:
I am running Count Pages v1.6.5. See screen shot for my current Count Pages settings. I have included my page and word count custom column definitions as well. Note: I have seen a number of plug-in updates due to changes made to calibre 0.9.29. So there may be a new update for this plug-in as well. |
|
Advert | |
|
05-03-2013, 01:31 PM | #513 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
This sort of error can occur if you ignore the warning telling you to restart calibre after updating a plugin... other than that, the plugin is working perfectly fine for both me and other users as shown above.
|
05-04-2013, 11:23 AM | #514 |
Resident Curmudgeon
Posts: 74,048
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
0.9.29 and I can count pages just fine.
|
05-04-2013, 03:34 PM | #515 |
Connoisseur
Posts: 75
Karma: 498122
Join Date: May 2010
Location: Europe
Device: Bookeen Cybook Gen3, Kindle 3, Kindle PW, Kindle Voyage
|
it's working again, dunno what happened. Not sure if I forgot to restart, thanks for your responses.
|
Advert | |
|
05-08-2013, 02:29 PM | #516 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2013
Device: Kindle PW
|
For Mac users:
0. Download the original plugin. 1. Unzip "Count Pages.zip", a folder named "Count Pages" will be created. 2. Inside that folder locate and open the file "statistics.py" (TextWrangler -free- works fine). 3. Find and replace the line 108: Code:
Find: " internal_path = os.path.relpath(spath, iterator.base).replace('\\','/')" Replace: " internal_path = os.path.relpath(spath.replace('/private',''), iterator.base).replace('\\','/')" (without quotes, of course) 5. Zip the contents of the folder "Count Pages". Note that is the contents (12 items), not the folder "Count Pages". Rename if neccesary the new zipped archive to "Count Pages.zip" 6. That's all, install and enjoy the plugin. Have a nice day. Edit: Fixed in the v1.6.6 release. Last edited by SimpleText; 05-09-2013 at 11:09 AM. |
05-08-2013, 08:45 PM | #517 |
Connoisseur
Posts: 81
Karma: 86158
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
|
|
05-08-2013, 09:34 PM | #518 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2013
Device: Kindle PW
|
|
05-09-2013, 09:05 AM | #519 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Hmmm... this plugin has been around for a couple of years now, and not one user has reported such an issue with it.
@loximuthal (or griker or others), are you able to confirm that this is the case? Maybe the other Mac users don't use this particular algorithm. I can add some platform specific conditional logic into the plugin if it requires it, but if others aren't having a problem I'm not changing anything.. |
05-09-2013, 10:15 AM | #520 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2013
Device: Kindle PW
|
Hi kiwidude,
These are the variables after the original (without the patch) line "internal_path = os.path.relpath(spath, iterator.base).replace('\\','/')": Code:
5214 InputFormatPlugin: EPUB Input running on /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/zP5YdP_count_pages/5214.epub Found HTML cover OEBPS/Text/cubierta.xhtml internal_path: ../../../../../../../private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/cubierta.xhtml size_map: {u'OEBPS/Images/image011.jpg': 33775, u'OEBPS/Text/Section0005.xhtml': 4996, u'OEBPS/Text/cubierta.xhtml': 313, u'OEBPS/Images/image019.jpg': 81509, u'OEBPS/content.opf': 1066, u'OEBPS/Text/': 2, u'OEBPS/Text/titulo.xhtml': 492, u'OEBPS/Images/image001.jpg': 16108, u'OEBPS/Text/dedicatoria.xhtml': 332, u'META-INF/': 2, u'OEBPS/Images/image015.jpg': 39965, u'OEBPS/Text/sinopsis.xhtml': 544, u'OEBPS/Images/image017.jpg': 48441, u'OEBPS/Text/Section0003.xhtml': 5509, u'OEBPS/Images/': 2, u'OEBPS/Text/Section0001.xhtml': 3187, u'OEBPS/Images/image003.jpg': 100310, u'OEBPS/toc.ncx': 573, u'OEBPS/Images/image005.jpg': 148467, u'OEBPS/Images/image009.jpg': 95950, u'OEBPS/Styles/style.css': 820, u'OEBPS/': 2, u'OEBPS/Text/Section0002.xhtml': 5246, u'OEBPS/Images/ePUBlogo.png': 9866, u'mimetype': 22, u'iTunesMetadata.plist': 456, u'OEBPS/Images/image013.jpg': 37836, u'OEBPS/Images/image007.jpg': 69221, u'META-INF/container.xml': 180, u'OEBPS/Styles/': 2, u'OEBPS/Images/cover.jpg': 428935, u'OEBPS/Text/Section0004.xhtml': 4181, u'OEBPS/Images/epubgratis.png': 9422, u'OEBPS/Images/image021.jpg': 138618} ppath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/cubierta.xhtml spath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/cubierta.xhtml iterator_base: /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter internal_path: ../../../../../../../private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/sinopsis.xhtml size_map: {u'OEBPS/Images/image011.jpg': 33775, u'OEBPS/Text/Section0005.xhtml': 4996, u'OEBPS/Text/cubierta.xhtml': 313, u'OEBPS/Images/image019.jpg': 81509, u'OEBPS/content.opf': 1066, u'OEBPS/Text/': 2, u'OEBPS/Text/titulo.xhtml': 492, u'OEBPS/Images/image001.jpg': 16108, u'OEBPS/Text/dedicatoria.xhtml': 332, u'META-INF/': 2, u'OEBPS/Images/image015.jpg': 39965, u'OEBPS/Text/sinopsis.xhtml': 544, u'OEBPS/Images/image017.jpg': 48441, u'OEBPS/Text/Section0003.xhtml': 5509, u'OEBPS/Images/': 2, u'OEBPS/Text/Section0001.xhtml': 3187, u'OEBPS/Images/image003.jpg': 100310, u'OEBPS/toc.ncx': 573, u'OEBPS/Images/image005.jpg': 148467, u'OEBPS/Images/image009.jpg': 95950, u'OEBPS/Styles/style.css': 820, u'OEBPS/': 2, u'OEBPS/Text/Section0002.xhtml': 5246, u'OEBPS/Images/ePUBlogo.png': 9866, u'mimetype': 22, u'iTunesMetadata.plist': 456, u'OEBPS/Images/image013.jpg': 37836, u'OEBPS/Images/image007.jpg': 69221, u'META-INF/container.xml': 180, u'OEBPS/Styles/': 2, u'OEBPS/Images/cover.jpg': 428935, u'OEBPS/Text/Section0004.xhtml': 4181, u'OEBPS/Images/epubgratis.png': 9422, u'OEBPS/Images/image021.jpg': 138618} ppath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/sinopsis.xhtml spath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/sinopsis.xhtml iterator_base: /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter internal_path: ../../../../../../../private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/titulo.xhtml size_map: {u'OEBPS/Images/image011.jpg': 33775, u'OEBPS/Text/Section0005.xhtml': 4996, u'OEBPS/Text/cubierta.xhtml': 313, u'OEBPS/Images/image019.jpg': 81509, u'OEBPS/content.opf': 1066, u'OEBPS/Text/': 2, u'OEBPS/Text/titulo.xhtml': 492, u'OEBPS/Images/image001.jpg': 16108, u'OEBPS/Text/dedicatoria.xhtml': 332, u'META-INF/': 2, u'OEBPS/Images/image015.jpg': 39965, u'OEBPS/Text/sinopsis.xhtml': 544, u'OEBPS/Images/image017.jpg': 48441, u'OEBPS/Text/Section0003.xhtml': 5509, u'OEBPS/Images/': 2, u'OEBPS/Text/Section0001.xhtml': 3187, u'OEBPS/Images/image003.jpg': 100310, u'OEBPS/toc.ncx': 573, u'OEBPS/Images/image005.jpg': 148467, u'OEBPS/Images/image009.jpg': 95950, u'OEBPS/Styles/style.css': 820, u'OEBPS/': 2, u'OEBPS/Text/Section0002.xhtml': 5246, u'OEBPS/Images/ePUBlogo.png': 9866, u'mimetype': 22, u'iTunesMetadata.plist': 456, u'OEBPS/Images/image013.jpg': 37836, u'OEBPS/Images/image007.jpg': 69221, u'META-INF/container.xml': 180, u'OEBPS/Styles/': 2, u'OEBPS/Images/cover.jpg': 428935, u'OEBPS/Text/Section0004.xhtml': 4181, u'OEBPS/Images/epubgratis.png': 9422, u'OEBPS/Images/image021.jpg': 138618} ppath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/titulo.xhtml spath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter/OEBPS/Text/titulo.xhtml iterator_base: /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_ct8yl_/_zdfLl_ebook_iter (...) Code:
5214 InputFormatPlugin: EPUB Input running on /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/SHIXqM_count_pages/5214.epub Found HTML cover OEBPS/Text/cubierta.xhtml internal_path: OEBPS/Text/cubierta.xhtml size_map: {u'OEBPS/Images/image011.jpg': 33775, u'OEBPS/Text/Section0005.xhtml': 4996, u'OEBPS/Text/cubierta.xhtml': 313, u'OEBPS/Images/image019.jpg': 81509, u'OEBPS/content.opf': 1066, u'OEBPS/Text/': 2, u'OEBPS/Text/titulo.xhtml': 492, u'OEBPS/Images/image001.jpg': 16108, u'OEBPS/Text/dedicatoria.xhtml': 332, u'META-INF/': 2, u'OEBPS/Images/image015.jpg': 39965, u'OEBPS/Text/sinopsis.xhtml': 544, u'OEBPS/Images/image017.jpg': 48441, u'OEBPS/Text/Section0003.xhtml': 5509, u'OEBPS/Images/': 2, u'OEBPS/Text/Section0001.xhtml': 3187, u'OEBPS/Images/image003.jpg': 100310, u'OEBPS/toc.ncx': 573, u'OEBPS/Images/image005.jpg': 148467, u'OEBPS/Images/image009.jpg': 95950, u'OEBPS/Styles/style.css': 820, u'OEBPS/': 2, u'OEBPS/Text/Section0002.xhtml': 5246, u'OEBPS/Images/ePUBlogo.png': 9866, u'mimetype': 22, u'iTunesMetadata.plist': 456, u'OEBPS/Images/image013.jpg': 37836, u'OEBPS/Images/image007.jpg': 69221, u'META-INF/container.xml': 180, u'OEBPS/Styles/': 2, u'OEBPS/Images/cover.jpg': 428935, u'OEBPS/Text/Section0004.xhtml': 4181, u'OEBPS/Images/epubgratis.png': 9422, u'OEBPS/Images/image021.jpg': 138618} ppath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter/OEBPS/Text/cubierta.xhtml spath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter/OEBPS/Text/cubierta.xhtml iterator_base: /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter internal_path: OEBPS/Text/sinopsis.xhtml size_map: {u'OEBPS/Images/image011.jpg': 33775, u'OEBPS/Text/Section0005.xhtml': 4996, u'OEBPS/Text/cubierta.xhtml': 313, u'OEBPS/Images/image019.jpg': 81509, u'OEBPS/content.opf': 1066, u'OEBPS/Text/': 2, u'OEBPS/Text/titulo.xhtml': 492, u'OEBPS/Images/image001.jpg': 16108, u'OEBPS/Text/dedicatoria.xhtml': 332, u'META-INF/': 2, u'OEBPS/Images/image015.jpg': 39965, u'OEBPS/Text/sinopsis.xhtml': 544, u'OEBPS/Images/image017.jpg': 48441, u'OEBPS/Text/Section0003.xhtml': 5509, u'OEBPS/Images/': 2, u'OEBPS/Text/Section0001.xhtml': 3187, u'OEBPS/Images/image003.jpg': 100310, u'OEBPS/toc.ncx': 573, u'OEBPS/Images/image005.jpg': 148467, u'OEBPS/Images/image009.jpg': 95950, u'OEBPS/Styles/style.css': 820, u'OEBPS/': 2, u'OEBPS/Text/Section0002.xhtml': 5246, u'OEBPS/Images/ePUBlogo.png': 9866, u'mimetype': 22, u'iTunesMetadata.plist': 456, u'OEBPS/Images/image013.jpg': 37836, u'OEBPS/Images/image007.jpg': 69221, u'META-INF/container.xml': 180, u'OEBPS/Styles/': 2, u'OEBPS/Images/cover.jpg': 428935, u'OEBPS/Text/Section0004.xhtml': 4181, u'OEBPS/Images/epubgratis.png': 9422, u'OEBPS/Images/image021.jpg': 138618} ppath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter/OEBPS/Text/sinopsis.xhtml spath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter/OEBPS/Text/sinopsis.xhtml iterator_base: /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter internal_path: OEBPS/Text/titulo.xhtml size_map: {u'OEBPS/Images/image011.jpg': 33775, u'OEBPS/Text/Section0005.xhtml': 4996, u'OEBPS/Text/cubierta.xhtml': 313, u'OEBPS/Images/image019.jpg': 81509, u'OEBPS/content.opf': 1066, u'OEBPS/Text/': 2, u'OEBPS/Text/titulo.xhtml': 492, u'OEBPS/Images/image001.jpg': 16108, u'OEBPS/Text/dedicatoria.xhtml': 332, u'META-INF/': 2, u'OEBPS/Images/image015.jpg': 39965, u'OEBPS/Text/sinopsis.xhtml': 544, u'OEBPS/Images/image017.jpg': 48441, u'OEBPS/Text/Section0003.xhtml': 5509, u'OEBPS/Images/': 2, u'OEBPS/Text/Section0001.xhtml': 3187, u'OEBPS/Images/image003.jpg': 100310, u'OEBPS/toc.ncx': 573, u'OEBPS/Images/image005.jpg': 148467, u'OEBPS/Images/image009.jpg': 95950, u'OEBPS/Styles/style.css': 820, u'OEBPS/': 2, u'OEBPS/Text/Section0002.xhtml': 5246, u'OEBPS/Images/ePUBlogo.png': 9866, u'mimetype': 22, u'iTunesMetadata.plist': 456, u'OEBPS/Images/image013.jpg': 37836, u'OEBPS/Images/image007.jpg': 69221, u'META-INF/container.xml': 180, u'OEBPS/Styles/': 2, u'OEBPS/Images/cover.jpg': 428935, u'OEBPS/Text/Section0004.xhtml': 4181, u'OEBPS/Images/epubgratis.png': 9422, u'OEBPS/Images/image021.jpg': 138618} ppath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter/OEBPS/Text/titulo.xhtml spath: /private/var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter/OEBPS/Text/titulo.xhtml iterator_base: /var/folders/pA/pANfBoGfGkSFPBMRtpMOCU+++TI/-Tmp-/calibre_0.9.29_tmp_oibyzh/krzQ0N_ebook_iter (...) |
05-09-2013, 10:26 AM | #521 |
Connoisseur
Posts: 81
Karma: 86158
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
|
I was not using the ADE algorithm, so I suppose that is why I never noticed a problem. When I switched to it all my page counts did indeed come out "0". After making the change SimpleText recommends I began getting non-zero page counts with the ADE algorithm.
|
05-09-2013, 10:52 AM | #522 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.6.6 released
Changes in this release:
Thanks to SimpleText for reporting the issue and fix and Loximuthal for verifying it, I don't have a Mac to test this myself. @SimpleText - would you mind removing your attachment now, so people don't get confused about which version to download, thanks. |
05-27-2013, 11:04 AM | #523 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2011
Device: Kindle
|
Hi. I created the custom columns like indicated, but I want to have a comma as a thousands separator.
I read the documentation and used {:,} as formatting. But I always get a decimal point (23,987.0). Everything I can come up with, seems to increase the number of decimal points shown. Could you tell me what can I do, please? Thanks for your work and attention. |
05-27-2013, 11:59 AM | #524 |
Calibre Plugins Developer
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@doudda - if you read the first post of this thread it has the instructions, you should use:
{0:,} |
05-27-2013, 01:25 PM | #525 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2011
Device: Kindle
|
|
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 |