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 11-02-2020, 08:16 AM   #1396
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 698
Karma: 294342
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by davidfor View Post
Separating the page and word count for PDF might make sense.
I have planned to do a pdf metadata plugin that would extract everything it could find. Page count is on the list, and is trivial. But I don't know when I'll get around to it -- maybe end of next month.

Quote:
How often does it actually fail.
I've had two or three PDFs fail, a couple of markdowns fail (!!) and one or two extremely large epubs with lots of pictures fail.

For the pdfs -- I wonder if it would be possible to modify it to extract the text directly with a pdf tool instead of using pdf2html.


edit: And yes, at least some of those really did fail. One created >5G of images from a <20M pdf and filled up /tmp.

Last edited by compurandom; 11-02-2020 at 08:19 AM.
compurandom is offline   Reply With Quote
Old 11-02-2020, 12:33 PM   #1397
jist
Enthusiast
jist began at the beginning.
 
Posts: 29
Karma: 10
Join Date: May 2018
Device: Onyx Note Lite - Win10
Quote:
Originally Posted by compurandom View Post
I have planned to do a pdf metadata plugin that would extract everything it could find. Page count is on the list, and is trivial.
This forum is alive and kicking, nice!

So there are three experienced members capable of working on such a plugin, kiwidude, davidfor, and you.

Wouldn't it be better to join forces and improve the existing Count Pages plugin?
jist is offline   Reply With Quote
Old 11-02-2020, 02:52 PM   #1398
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: 26,905
Karma: 41870062
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by jist View Post
This forum is alive and kicking, nice!

So there are three experienced members capable of working on such a plugin, kiwidude, davidfor, and you.

Wouldn't it be better to join forces and improve the existing Count Pages plugin?
Kiwidude is off doing other things these days.
theducks is offline   Reply With Quote
Old 11-02-2020, 02:56 PM   #1399
ownedbycats
Wizard
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo Aura HD
For someone who only joined a few years ago, Kiwidude almost feels like some mythical figure.
ownedbycats is offline   Reply With Quote
Old 11-02-2020, 03:00 PM   #1400
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: 26,905
Karma: 41870062
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ownedbycats View Post
For someone who only joined a few years ago, Kiwidude almost feels like some mythical figure.
He was
He probably created a early set of PI that many folk use frequently.
Other folk have stepped up and are keeping many of those (popular ones) up to date.
theducks is offline   Reply With Quote
Old 11-02-2020, 03:37 PM   #1401
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,258
Karma: 1579358
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite, iPad Pro
Quote:
Originally Posted by ownedbycats View Post
For someone who only joined a few years ago, Kiwidude almost feels like some mythical figure.
My ears were burning... lol

Absolutely no interest from me in trying to do anything more with PDFs - it is a dreadful book format to try to develop tools to work with. From what I can vaguely recall about this plugin the page count for PDFs is already done separately as it is retrieved from the pdf metadata. So if you only want the page count, just turn off the word count column in the settings...
kiwidude is offline   Reply With Quote
Old 11-02-2020, 04:37 PM   #1402
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 5,097
Karma: 876216
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Quote:
Originally Posted by kiwidude View Post
My ears were burning... lol
The great one appears!

(I've been resisting the temptation to start a "kiwidude facts" list, ala Chuck Norris. )
JimmXinu is offline   Reply With Quote
Old 11-02-2020, 06:05 PM   #1403
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 698
Karma: 294342
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by kiwidude View Post
My ears were burning... lol
From what I can vaguely recall about this plugin the page count for PDFs is already done separately as it is retrieved from the pdf metadata.
That's good to know! Now if there was a button on the plugin for "count pages only" I could at least get that when extracting the text hurts too much without messing with options I can't remember to turn back on.

Quote:
Originally Posted by jist View Post
So there are three experienced members capable of working on such a plugin, kiwidude, davidfor, and you.
Don't hold your breath for me, I won't have time to do any development until the end of the year, and I've got 3 other projects (including 2 other plugins) that need work.

Quote:
Wouldn't it be better to join forces and improve the existing Count Pages plugin?

The PDF metadata plugin would be totally unrelated to count pages ... its primary purpose would be to skim out everything I can from the pdf; top on my list is presence / quality of a TOC in the book, but a couple of people have asked for some other things that are not already being extracted.

If I can extract TOC info, page count would be just a few more lines of code. The hard part is learning the API for the existing calibre pdf library. The manual is on my reading list, waiting for some empty cycles.

After I've done that, it might be worth it to come back to this plugin and see if I can adapt it to use that library instead of pdf2html.
compurandom is offline   Reply With Quote
Old 11-07-2020, 05:23 PM   #1404
Loco1911
Junior Member
Loco1911 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2020
Device: Noblex ER6a15
Hello, very good plugin. Are the Flesch, Kincaid and Gunning Fog indexes suitable for books in Spanish?
Loco1911 is offline   Reply With Quote
Old 11-07-2020, 05:30 PM   #1405
BetterRed
null operator
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: 17,691
Karma: 20473671
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Loco1911 View Post
Hello, very good plugin. Are the Flesch, Kincaid and Gunning Fog indexes suitable for books in Spanish?
Probably not, see Wikipedia ==>>Gunning fog index and Flesch–Kincaid readability tests

BR
BetterRed is offline   Reply With Quote
Old 11-14-2020, 08:00 PM   #1406
Ansem_93
Connoisseur
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: 71
Karma: 3090
Join Date: Mar 2013
Location: Italy
Device: Kindle Paperwhite 3
Hi,
I tried this plugin today and I don't why it gets the page count completely wrong.
I already used it on my preview pc and the counting was fine.
For example a book was 1397 pages before, I tried to recount the page and now it 8.

I left the default settings, should I edit something?
Ansem_93 is offline   Reply With Quote
Old 11-14-2020, 09:16 PM   #1407
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: 23,231
Karma: 41975128
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
Hi,
I tried this plugin today and I don't why it gets the page count completely wrong.
I already used it on my preview pc and the counting was fine.
For example a book was 1397 pages before, I tried to recount the page and now it 8.

I left the default settings, should I edit something?
Are you saying you use the plugin to count pages and it gave 1397 and then did it again but got 8? And there were no changes in the books or other configuration between them? If so, I need some details. A calibre debug log when you do the counts. And seeing the actual book involved would be good.
davidfor is offline   Reply With Quote
Old 12-06-2020, 06:28 PM   #1408
sweth
Connoisseur
sweth began at the beginning.
 
Posts: 67
Karma: 10
Join Date: May 2015
Device: Kobo Aura H20, Kindle Fire 7 (7G), Kindle PW (2G), Nook GlowLight Plus
Trying to get some word counts for books that I don't have copies of using the Goodreads download option, but when I try (selecting "Download page/word counts - Goodreads"), I get an error that no convertible format was found; when I select that option for a book that I do have a copy of, it does appear to download the counts, based on these lines in the log:
Quote:
page_count_mode=Download, statistics_to_run=[u'WordCount', u'GunningFog', u'PageCount', u'FleschReading', u'FleschGrade'], custom_chars_per_page=1500, icu_wordcount=True
...
Method of counting _page_count_mode=Download _download_sources=[(u'goodreads', u'49005014')]
results= {u'GunningFog': 10.136449454678765, u'download_source': u'goodreads', u'PageCount': 370, u'FleschGrade': 5.890847768307214, u'FleschReading': 83.10697277976355, u'WordCount': 101388}
Downloaded page count from Goodreads: 370
...
Download source book url: u'http://www.goodreads.com/book/show/49005014'
Is downloading counts from Goodreads supposed to work for records w/ no formats?
sweth is offline   Reply With Quote
Old 12-06-2020, 08:12 PM   #1409
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: 23,231
Karma: 41975128
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by sweth View Post
Trying to get some word counts for books that I don't have copies of using the Goodreads download option, but when I try (selecting "Download page/word counts - Goodreads"), I get an error that no convertible format was found; when I select that option for a book that I do have a copy of, it does appear to download the counts, based on these lines in the log:


Is downloading counts from Goodreads supposed to work for records w/ no formats?
The plugin doesn't actually download the word count from anywhere. It can get the page count from the available sites, but the word count is still done from the file. When you use the download option, if you have the word count column configure, it will download the page count and try to do the word count. But, if there is no format that the word count can be done from, you will see that warning.
davidfor is offline   Reply With Quote
Old 12-06-2020, 08:27 PM   #1410
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 2,183
Karma: 25056996
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Lenovo P11
Not sure if this question belongs in this thread, but it is related: I'm curious to know what the median word count of my unread books is, as generated by this plugin. How do I obtain this/these data?
Uncle Robin is offline   Reply With Quote
Reply

Tags
count pages, page count


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 386 11-24-2021 01:38 AM
[GUI Plugin] Quality Check kiwidude Plugins 1093 09-27-2021 12:19 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 49 04-05-2021 05:30 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 01:02 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 09:15 PM.


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