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, 07:16 AM   #1396
compurandom
Wizard
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: 1,018
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
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 07:19 AM.
compurandom is offline   Reply With Quote
Old 11-02-2020, 11:33 AM   #1397
jist
Enthusiast
jist began at the beginning.
 
Posts: 40
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, 01: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: 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
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, 01:56 PM   #1399
ownedbycats
Custom User Title
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: 11,158
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly 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, 02: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: 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
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, 02:37 PM   #1401
kiwidude
Calibre Plugins 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,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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, 03: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: 7,042
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
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, 05:05 PM   #1403
compurandom
Wizard
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: 1,018
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
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, 04:23 PM   #1404
Loco1911
Junior Member
Loco1911 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2020
Location: Mendoza, Argentina
Device: Noblex ER6a15, Kindle Basic 10th
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, 04:30 PM   #1405
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 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, 07:00 PM   #1406
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
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, 08: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: 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
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, 05:28 PM   #1408
sweth
Connoisseur
sweth began at the beginning.
 
Posts: 68
Karma: 10
Join Date: May 2015
Device: Kindle Fire 7 (7G), Kindle PW (2G), Kindle Scribe
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, 07: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: 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 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, 07: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: 3,662
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
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 online now   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 03:20 PM.


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