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 01-30-2022, 06:17 AM   #1486
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 costis View Post
I love that you have implemented readability options (Gunning Fog Index / Flesch-Kincaid Grade).

For language learning the following ideas for implementation would be great:
1. Count the unique words in an e-book.
2. Count how many unique words are different between certain e-book combinations.

These ideas help language learning with the following.
First, I know I will not meet a lot of unknown words in my next book. Second, I know I will not spend too much time studying a book with only a few new unknown words or, in contrast, too many, making the reading of an e-book painful.

Right now, I do these with the help of ebook-convert and bash scripts but it'd be nice to see them in calibre.
Is there a git page for this plugin? I'm new to the calibre ecosystem hence the question.
Neither of those are things that I am interested in doing. If you want to do the first one, then I'm happy to answer any questions about the plugin.

But, I'm not sure the second fits with this plugin. The plugin only acts on one book and does the calculations and stores them. And strictly, once done, it won't be needed to be done again. For the comparison, you would need to select multiple books and the calculation. Then choose different books and do them again. And where would the results be stored?

There are some other plugins that might help. There is the "English Noun Frequency" plugin which does various things related to English nouns. And "Similar Books" that does some comparison to show if a book is similar to another. It hasn't been updated for a while, so might not work.

There is no Git or similar repository for the plugin. The code is completely within the plugin. If you want to make changes and discuss them, you can do it here. Same if you want to post a beta.
davidfor is offline   Reply With Quote
Old 01-30-2022, 03:58 PM   #1487
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,884
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@costis - if you have a book in an editable format (EPUB, AZW3) the Reports option in calibre's Book Editor can provide a list of unique words, and counts, which can be saved to a file. You could use a diff tool to compare word lists from different books.

The one thing it lacks is a case insensitive option - hint, hint Kovid

BR
BetterRed is offline   Reply With Quote
Old 02-04-2022, 11:59 AM   #1488
Jan76
Member
Jan76 began at the beginning.
 
Jan76's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2021
Device: Acer aspire 5
Help plugin "count page"

Hi to all,
I installed on my Calibre from pc the plugin "Count page", but I see that the book appear as usual and doesn't compare any page number. Can you explain me how does it work?

Thanks
Jan76 is offline   Reply With Quote
Old 02-04-2022, 12:14 PM   #1489
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,164
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Did you create any custom columns?
Then did you configure the plugin to use the new columns?
(and optionally, what method to use to count/download the page count)
theducks is online now   Reply With Quote
Old 02-04-2022, 12:24 PM   #1490
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,884
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Jan76 View Post
Hi to all,
I installed on my Calibre from pc the plugin "Count page", but I see that the book appear as usual and doesn't compare any page number. Can you explain me how does it work?
Did you read the first post in the Count Pages plugin thread? See Index of plugins

BR

Last edited by BetterRed; 02-04-2022 at 12:26 PM.
BetterRed is offline   Reply With Quote
Old 02-07-2022, 04:05 PM   #1491
Jan76
Member
Jan76 began at the beginning.
 
Jan76's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2021
Device: Acer aspire 5
Quote:
Originally Posted by BetterRed View Post
Did you read the first post in the Count Pages plugin thread? See Index of plugins

BR
Well, I'm not very expert with the english..can you explain me just if is possible see the page number on the book that I'm reading, please.
Jan76 is offline   Reply With Quote
Old 02-07-2022, 08:01 PM   #1492
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 Jan76 View Post
Well, I'm not very expert with the english..can you explain me just if is possible see the page number on the book that I'm reading, please.
Yes. But, the plugin has to be configured, then you need to run it for each book you want the page count for. The page count can come from the book (calculated in different ways) or retrieved from a web site. Once this is done, the page count will be displayed.

Beyond that, the information is in the first post of the thread. Rewriting that is unlikely to help, as it would be written in English and take a reasonable amount of time. But, if you have tried to follow those instructions and don't understand something, ask and we can try and explain it.
davidfor is offline   Reply With Quote
Old 02-08-2022, 10:14 AM   #1493
Jan76
Member
Jan76 began at the beginning.
 
Jan76's Avatar
 
Posts: 10
Karma: 10
Join Date: Mar 2021
Device: Acer aspire 5
Quote:
Originally Posted by davidfor View Post
Yes. But, the plugin has to be configured, then you need to run it for each book you want the page count for. The page count can come from the book (calculated in different ways) or retrieved from a web site. Once this is done, the page count will be displayed.

Beyond that, the information is in the first post of the thread. Rewriting that is unlikely to help, as it would be written in English and take a reasonable amount of time. But, if you have tried to follow those instructions and don't understand something, ask and we can try and explain it.
Ok, thank you for explaining. I will try to find out how to do.
Jan76 is offline   Reply With Quote
Old 02-26-2022, 01:15 PM   #1494
Ansem_93
Zealot
Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.
 
Posts: 110
Karma: 3090
Join Date: Mar 2013
Location: Italy
Device: Kindle Paperwhite 3
Download identifiers error

Hi,
I'm recieving this error:
The Rising of the Shield Hero Vol 01 (No identifiers for selected download sources)

How can solve it? I tried with multiple books but it doesn't work
Ansem_93 is offline   Reply With Quote
Old 02-26-2022, 01:30 PM   #1495
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,128
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
"No identifiers for selected download sources.". The problem is clear: you configured Count Pages plugin to download page count (instead of generating by analysing the book file) from one of the supported source websites (like Goodreads) but you didn't add to book metadata the ID (identifier) from that website before trying to get page count.

In case of Goodreads the ID can be populated by using either Goodreads Metadata plugin or by using Goodreads Sync plugin. Or manually by copy/paste from Goodreads website into Calibre's Edit metadata window.
shamanNS is offline   Reply With Quote
Old 02-26-2022, 01:32 PM   #1496
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,164
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
That simply says, the Metadata sources you have configured, do not have identifiers.
1) possibly enable / install sources that have that title
2) If there is an entry in the MDE: Identifiers, remove those (broadens the search scope) Do the Get Metadata from the MDE so you can cherry pick the best results
theducks is online now   Reply With Quote
Old 02-26-2022, 02:18 PM   #1497
Ansem_93
Zealot
Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.
 
Posts: 110
Karma: 3090
Join Date: Mar 2013
Location: Italy
Device: Kindle Paperwhite 3
Thanks for the help, so in order to get the page count I should add the goodreads plugin too!
I tried to use the "estimate page" function but it only counts 7 pages out of hundreds.

Here's the log:
Quote:
Logfile for book ID 413
Method of counting _page_count_mode=Estimate _download_sources=[]
results= {'PageCount': 367, 'WordCount': 61685, 'FleschReading': 99.4451527599918, 'FleschGrade': 2.24662954487491, 'GunningFog': 7.2426061472851195}
Found 367 pages
Found 61685 words
Computed 99.4 Flesch Reading
Computed 2.2 Flesch-Kincaid Grade
Computed 7.2 Gunning Fog Index
413
do_statistics_for_book: path 1 Estimate [] ['PageCount', 'WordCount', 'FleschReading', 'FleschGrade', 'GunningFog'] 1500 True
Page count: 367
Word count using icu_wordcount - trying to count_words
Word count - used count_words: 61685
Word count: 61685
Results of NLTK text analysis:
Number of characters: 272408
Number of words: 68322
Number of sentences: 5939
Number of syllables: 77297
Number of complex words: 4511
Average words per sentence: 11.503956895100185
For this book, using language=eng
Flesch Reading Ease: 99.4451527599918
Flesch Kincade Grade: 2.24662954487491
Gunning Fog: 7.2426061472851195
For some reason even if counts 367 pages in the page columns it display 7.

Just to be sure I deleted and recreated the pages columns just like the istruction said.
Also other bug: after disabling Gunning fog, the first count will save the number of words. Running the plugin again will correctly save the number of pages.

Apparently the plugin is not taking the right number when saving it. The version is 1.11.2

Last edited by Ansem_93; 02-26-2022 at 02:36 PM.
Ansem_93 is offline   Reply With Quote
Old 02-27-2022, 04:31 AM   #1498
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 Ansem_93 View Post
Thanks for the help, so in order to get the page count I should add the goodreads plugin too!
I tried to use the "estimate page" function but it only counts 7 pages out of hundreds.

Here's the log:


For some reason even if counts 367 pages in the page columns it display 7.

Just to be sure I deleted and recreated the pages columns just like the istruction said.
Also other bug: after disabling Gunning fog, the first count will save the number of words. Running the plugin again will correctly save the number of pages.

Apparently the plugin is not taking the right number when saving it. The version is 1.11.2
You probably have the column for the pages incorrectly configured. Check that it is an integer and that the formatting makes sense. And you can check the actual value using the metadata editor/
davidfor is offline   Reply With Quote
Old 02-27-2022, 02:14 PM   #1499
Ansem_93
Zealot
Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.Ansem_93 could sell banana peel slippers to a Deveel.
 
Posts: 110
Karma: 3090
Join Date: Mar 2013
Location: Italy
Device: Kindle Paperwhite 3
Quote:
Originally Posted by davidfor View Post
You probably have the column for the pages incorrectly configured. Check that it is an integer and that the formatting makes sense. And you can check the actual value using the metadata editor/
I created the pages column by copy pasting the first post. It's integer and the formatting is {0:,d}.
In the metadata editor the value is "correct" (64000pages), if I run twice it works properly.

Tried to uninstall and reinstall, same behavoir: first run-> save words count, second run ->save pages, third run -> save words, etc. in a loop.

Last edited by Ansem_93; 02-27-2022 at 02:18 PM.
Ansem_93 is offline   Reply With Quote
Old 02-28-2022, 12:50 AM   #1500
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 Ansem_93 View Post
I created the pages column by copy pasting the first post. It's integer and the formatting is {0:,d}.
In the metadata editor the value is "correct" (64000pages), if I run twice it works properly.

Tried to uninstall and reinstall, same behavoir: first run-> save words count, second run ->save pages, third run -> save words, etc. in a loop.
I missed that statement in the first post. Check what you have set as the column to be used for each of the stats. That behaviour sounds like you have the same column used for both the word and page count. And possibly the other stats. That means the value of the column will be set to whichever of the stats was updated to the metadata last. You need to use different columns for each stat you want to calculate.
davidfor 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 12:54 PM.


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