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 06-22-2020, 08:32 PM   #1366
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: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Oronare View Post
For some reason I'm also having it be hit or miss since updating plugins/Calibre today.

It will grab the page number from goodreads on some of the books but not all. I've got goodreads metadata correctly input in the IDs section, run 'count pages', it finishes and just nothing happens sometimes. Not getting any errors or anything either, just the page count doesn't get added.
Can you give some examples of books where it doesn't get the page count? Not all books or editions of the books have the page count on GR. The plugin is getting the page count for the edition you chose. If that edition doesn't have a page count, it can't get it.
davidfor is offline   Reply With Quote
Old 06-22-2020, 09:06 PM   #1367
Oronare
Banned
Oronare began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2019
Device: Oasis 7"
Quote:
Originally Posted by davidfor View Post
Can you give some examples of books where it doesn't get the page count? Not all books or editions of the books have the page count on GR. The plugin is getting the page count for the edition you chose. If that edition doesn't have a page count, it can't get it.
Ah, yeah I think this is it, I totally forgot about the 'edition' problem. That is rather annoying because AFAIK there's no way to remedy it other than to go to goodreads, find the physical edition with the page number on it and manually change the ID right? Fetch metadata will always choose the 'main' edition even if it doesn't show page numbers.
Oronare is offline   Reply With Quote
Old 06-23-2020, 01:01 AM   #1368
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: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Oronare View Post
Ah, yeah I think this is it, I totally forgot about the 'edition' problem. That is rather annoying because AFAIK there's no way to remedy it other than to go to goodreads, find the physical edition with the page number on it and manually change the ID right? Fetch metadata will always choose the 'main' edition even if it doesn't show page numbers.
The GR metadata source plugin uses what it thinks is the best match. If there is an ISBN or ASIN, then they will be used and probably get the matching edition.

If you have the Goodreads Sync plugin, you can use it to choose the edition. It has a function to get all the editions for the book and let you choose. I do that if I notice it. Otherwise, you need to pick it on GR and updated the id for the book.
davidfor is offline   Reply With Quote
Old 06-26-2020, 08:17 AM   #1369
voidwards
Member
voidwards is on a distinguished road
 
Posts: 10
Karma: 60
Join Date: Jan 2012
Device: Kindle 4
I can see the correct page count on my Calibre books but when I try to push it to my Kindle Voyage it doesn't show up in the book. I followed the instructions in the screenshots, any tips?
voidwards is offline   Reply With Quote
Old 06-26-2020, 09:54 AM   #1370
voidwards
Member
voidwards is on a distinguished road
 
Posts: 10
Karma: 60
Join Date: Jan 2012
Device: Kindle 4
Quote:
Originally Posted by voidwards View Post
I can see the correct page count on my Calibre books but when I try to push it to my Kindle Voyage it doesn't show up in the book. I followed the instructions in the screenshots, any tips?
can't edit my post for some reason but this is with .KFX format
voidwards is offline   Reply With Quote
Old 06-26-2020, 10:09 AM   #1371
voidwards
Member
voidwards is on a distinguished road
 
Posts: 10
Karma: 60
Join Date: Jan 2012
Device: Kindle 4
nevermind, I found the post in this thread that mentions you have to edit the custom column option in KFX conversion. works fine now!
voidwards is offline   Reply With Quote
Old 06-26-2020, 10:52 AM   #1372
jcrawfordx
Member
jcrawfordx began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2013
Device: kindle 3
PageCount problem (Calibre4.19)

Fresh install on Win 10 Pro system.

1. Installed "wordcount" (no quotes) as variable name of a new column. Clicked the check box to activate it. Restarted Calibre.

2. Right-clicked on a (random) book title -->Page Count-->customise plugin.

I want to set "word count options" by pulling down the "Custom column" drop-down to select the proper variable name (i.e. "wordcount") but the drop-down box is empty.

The plugin does not seem to be aware of the Wordcount column I created. Am I missing something? (Thanks for your help!)
jcrawfordx is offline   Reply With Quote
Old 06-26-2020, 11:03 AM   #1373
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: 31,135
Karma: 60406498
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 jcrawfordx View Post
Fresh install on Win 10 Pro system.

1. Installed "wordcount" (no quotes) as variable name of a new column. Clicked the check box to activate it. Restarted Calibre.

2. Right-clicked on a (random) book title -->Page Count-->customise plugin.

I want to set "word count options" by pulling down the "Custom column" drop-down to select the proper variable name (i.e. "wordcount") but the drop-down box is empty.

The plugin does not seem to be aware of the Wordcount column I created. Am I missing something? (Thanks for your help!)
Your column is of the wrong type: It needs to be Integer
theducks is offline   Reply With Quote
Old 06-26-2020, 07:02 PM   #1374
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,826
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
Your column is of the wrong type: It needs to be Integer
↑ ↑ ↑ ✔

You will have to delete the column and re-add - the column type can't be changed once it's set.

BR
BetterRed is offline   Reply With Quote
Old 08-08-2020, 11:31 AM   #1375
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Hi,

I installed this plugin today and I couldn't get the page number that Calibre shows (if "position in book" is selected in the header/footer). How should I customize this plugin to get that?

(I'm on Calibre 4.22)
nqk is offline   Reply With Quote
Old 08-08-2020, 12:48 PM   #1376
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by nqk View Post
Hi,

I installed this plugin today and I couldn't get the page number that Calibre shows (if "position in book" is selected in the header/footer). How should I customize this plugin to get that?

(I'm on Calibre 4.22)
Theoretically, you should go to Customize Plugin > Statistics tab > Page Count Options > Algorithm: "E-book Viewer (calibre)". But I think calibre may have changed its algorithm, so it doesn't match now.

On my testings, you could choose "Custom (Chars Per Page)", and set it to 1300. That would be around calibre viewer number.
thiago.eec is offline   Reply With Quote
Old 08-08-2020, 07:48 PM   #1377
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by thiago.eec View Post
Theoretically, you should go to Customize Plugin > Statistics tab > Page Count Options > Algorithm: "E-book Viewer (calibre)". But I think calibre may have changed its algorithm, so it doesn't match now.



On my testings, you could choose "Custom (Chars Per Page)", and set it to 1300. That would be around calibre viewer number.
Thanks for your reply. I tried 1350, 1360, 1380.... One returns the matching page number for a book and not for others. I think the algorithm is more complicated than that.
nqk is offline   Reply With Quote
Old 08-09-2020, 05:42 AM   #1378
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: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by nqk View Post
Thanks for your reply. I tried 1350, 1360, 1380.... One returns the matching page number for a book and not for others. I think the algorithm is more complicated than that.
The "E-book Viewer (calibre)" calculation is from the pre-4.0 version of calibre. I haven't looked at the current version before today. I'm not sure, but, it seems be using the number of non-whitespace characters divided by 1000. With some complications. Apparently a picture is worth a 1000 characters.
davidfor is offline   Reply With Quote
Old 08-09-2020, 08:00 AM   #1379
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Would you please update the plugin to reflect that?
nqk is offline   Reply With Quote
Old 09-26-2020, 10:53 AM   #1380
scorpion2782
Enthusiast
scorpion2782 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Aug 2011
Device: Kobo Glo HD
i have an error when i try to download metadata from goodreads.
this is the log:

Code:
Count Page/Word Statistics
do_count_statistics - book_path=C:\Users\dma02\AppData\Local\Temp\calibre_s0fbfhfj\oppqayyg_count_pages\1539.epub, pages_algorithm=2, page_count_mode=Download, statistics_to_run=['PageCount', 'WordCount', 'FleschReading', 'FleschGrade', 'GunningFog'], custom_chars_per_page=1500, icu_wordcount=True
do_count_statistics - job started for file book_path=C:\Users\dma02\AppData\Local\Temp\calibre_s0fbfhfj\oppqayyg_count_pages\1539.epub
-------------------------------
Logfile for book ID 1539 (Ninfee nere)
	Method of counting _page_count_mode=Download _download_sources=[('goodreads', '30831231')]
	results= {'PageCount': None, 'WordCount': 100640, 'FleschReading': 57.49500249521196, 'FleschGrade': 7.180003232503573, 'GunningFog': 12.521758139287016}
	FAILED TO GET PAGE COUNT FROM WEBSITE
	Found 100640 words
	Computed 57.5 Flesch Reading
	Computed 7.2 Flesch-Kincaid Grade
	Computed 12.5 Gunning Fog Index
1539
do_statistics_for_book:  C:\Users\dma02\AppData\Local\Temp\calibre_s0fbfhfj\oppqayyg_count_pages\1539.epub 2 Download [('goodreads', '30831231')] ['PageCount', 'WordCount', 'FleschReading', 'FleschGrade', 'GunningFog'] 1500 True
DownloadPagesWorker::run - source_id=30831231, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'http://www.goodreads.com/book/show/%s', 'pages_xpath': '//div[@id="details"]/div[@class="row"]/span[@itemprop="numberOfPages"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True}
DownloadPagesWorker::run - self.pages_regex=None
Download source book url: 'http://www.goodreads.com/book/show/30831231'
Failed to parse download source details page: 'http://www.goodreads.com/book/show/30831231'
	Word count using icu_wordcount - trying to count_words
	Word count - used count_words: 100640
	Word count: 100640
	Results of NLTK text analysis:
	  Number of characters: 545458
	  Number of words: 111245
	  Number of sentences: 14245
	  Number of syllables: 185952
	  Number of complex words: 26137
	  Average words per sentence: 7.809406809406809
For this book, using language=ita
	Flesch Reading Ease: 57.49500249521196
	Flesch Kincade Grade: 7.180003232503573
	Gunning Fog: 12.521758139287016
Traceback (most recent call last):
  File "calibre_plugins.count_pages.download", line 77, in _get_details
  File "site-packages\lxml\html\__init__.py", line 875, in fromstring
  File "site-packages\lxml\html\__init__.py", line 761, in document_fromstring
  File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
  File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
  File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
  File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
  File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
  File "", line 1
lxml.etree.XMLSyntaxError: encoding not supported USC4 little endian, line 1, column 1
scorpion2782 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 1252 08-02-2025 09:53 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 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


All times are GMT -4. The time now is 01:23 PM.


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