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 05-09-2021, 10:04 AM   #1441
pakz
Junior Member
pakz began at the beginning.
 
pakz's Avatar
 
Posts: 2
Karma: 10
Join Date: Oct 2017
Location: Hamburg, Germany
Device: Kindle
You were correct.
After waiting a while to get unblocked, I could successfully get page counts for books when I querried one at a time.
Already taking 3 at once seems to hit the barrier. So, I'll be taking it slow. Still gonna be so much faster than doing everything manually.

Thanks so much for the quick response and your efforts in maintaining the plugin!
pakz is offline   Reply With Quote
Old 05-18-2021, 06:34 AM   #1442
sup
Zealot
sup began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Is it ((or would it be) possible to discount sections titled "bibliography" "index", "notes" and "table of contents" (and possibly "acknowledgements")? Frequently, in non-fiction books, these can run up to half of the actual content so a book that is over 500 pages (as my Kindle counts) ends up being around 300 pages of actual content that I would read.
sup is offline   Reply With Quote
Old 05-18-2021, 06:47 AM   #1443
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 sup View Post
Is it ((or would it be) possible to discount sections titled "bibliography" "index", "notes" and "table of contents" (and possibly "acknowledgements")? Frequently, in non-fiction books, these can run up to half of the actual content so a book that is over 500 pages (as my Kindle counts) ends up being around 300 pages of actual content that I would read.
No. And I'm not very interested in adding the function.
davidfor is offline   Reply With Quote
Old 05-18-2021, 07:59 AM   #1444
sup
Zealot
sup began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Ok, thanks for the fast reply. I looked into the code and decided I can live without it for the time being:-).

I noticed that when I click the plugin button with no value in my custom column, it calculates the page count using any of the available algorithms. When I click the button again, it recalculates a thta seems to be a word count (102 337). Is that intentional? To me it seems like a bug.

When I use "e-book viewer (Calibre)" algorithm, it reports 645 as opposed to 538 reported by the actual viewer. Should these not be the same?

When I use the "Paragraphs (APNX accurate)", it reports 381. My Kindle actually reports 457 pages. Is there a way to match these two? All my books on my Kindle are actually generated in Calibre so they have a Calibre-generated APNX file.

The books are all in azw3 format.

EDIT: as per Kindle - I see I could use the number generated by the plugin and supply that to the Kindle. But actually the page numbers on the Kindle closely correspond to actual page turns (I use small font size with little margins and it pretty much corresponds with a page count increasing almost every page turn), which is something I like. So is it possible to do it the other way around?

EDIT2: Hm, in the Kindle 2/3/4/Touch Device plugin, I have checked "Send page number informatino when sending books" and it was set to "fast" method. That should amount to 2300 characters. When I use the "custom (char per page)" algorithm in the Count Pages plugin with 2300, it gives 289 pages, which is much less. 2300/(457/289) gives 1454, but when the custom value to 1454, it gave me 448 pages. I guess the Count Pages plugin and Kindle plugin count slightly different things.

EDIT3: When I try it on another ebook, the numbers are still off, but in different ratios, so the custom algorithm does not really help me.

Last edited by sup; 05-18-2021 at 08:34 AM.
sup is offline   Reply With Quote
Old 07-31-2021, 08:36 PM   #1445
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
Update to version 1.11.1

I have just updated the plugin to version 1.11.1 The changes in this version are:
  • Update: Changes to download page count for lubimyczytac.pl - thanks to BeckyEbook.

As usual, calibre will announce the update in the next hour or so. And if there are any problems, please report them here.
davidfor is offline   Reply With Quote
Old 08-05-2021, 11:25 PM   #1446
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 davidfor View Post
I have just updated the plugin to version 1.11.1 The changes in this version are:
  • Update: Changes to download page count for lubimyczytac.pl - thanks to BeckyEbook.

As usual, calibre will announce the update in the next hour or so. And if there are any problems, please report them here.
Dear Davidfor,

Does it support the "calibre pages" now? I hope you would support that if you haven't already.
nqk is online now   Reply With Quote
Old 08-06-2021, 12:40 AM   #1447
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
Does it support the "calibre pages" now? I hope you would support that if you haven't already.
No, I haven't looked at that yet. It hasn't been a priority as it isn't used by anything else.
davidfor is offline   Reply With Quote
Old 08-08-2021, 01:20 PM   #1448
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 davidfor View Post
No, I haven't looked at that yet. It hasn't been a priority as it isn't used by anything else.
Ít is used by the Viewer and more importantly the Browser Viewer, which is consistent in all devices. I hope you will give ... Calibre viewers a chance.
nqk is online now   Reply With Quote
Old 08-08-2021, 09:31 PM   #1449
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
Ít is used by the Viewer and more importantly the Browser Viewer, which is consistent in all devices. I hope you will give ... Calibre viewers a chance.
I did have a look at it over the weekend. Getting to how calibre does it is a little convoluted and I don't want to reimplement it. I'll look at it again soon, but, don't hold your breath.
davidfor is offline   Reply With Quote
Old 08-27-2021, 04:23 PM   #1450
McStubb
Connoisseur
McStubb began at the beginning.
 
Posts: 52
Karma: 10
Join Date: May 2014
Device: None
Any chance you can create a way to break/batch large number of word count jobs up?

Lets say I have 2,000 books. I select them all, and request word counts, Instead of having 1 job with 2000 books, I would get 20 jobs with 100 books each?

Would allow better utilization of parallel jobs, and in the event that Calibre is closed only the affected small segments fail, since you are not waiting on the full 2,000 book job to finish to record every count.
McStubb is offline   Reply With Quote
Old 08-27-2021, 06:19 PM   #1451
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
YOU can queue smaller groups without waiting for the previous to complete. eg 1-20, 21-40...
theducks is offline   Reply With Quote
Old 08-27-2021, 09:52 PM   #1452
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
@McStubb: Sorry, that is not something I am interested in adding. It isn't hard to do manually, and honestly, there isn't a real reason not to do them all at once. I don't think I have done 2000 in a batch, but, I have done several hundred with no issues.
davidfor is offline   Reply With Quote
Old 08-28-2021, 12:49 AM   #1453
McStubb
Connoisseur
McStubb began at the beginning.
 
Posts: 52
Karma: 10
Join Date: May 2014
Device: None
Quote:
Originally Posted by theducks View Post
YOU can queue smaller groups without waiting for the previous to complete. eg 1-20, 21-40...
I know that, and thats what I have been doing, but when you are trying to process 50,000 books, trying to cut a few corners speeds things up.

I was trying to do this in larger batches, but occasionally Calibre randomly closes, and any progress on active jobs gets lost.
McStubb is offline   Reply With Quote
Old 08-28-2021, 09:26 AM   #1454
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 McStubb View Post

I was trying to do this in larger batches, but occasionally Calibre randomly closes, and any progress on active jobs gets lost.
That might be a side effect of trying huge chunks. You run out of resources (cleanup tends to only happen at the task end).
I can't remember the last time Calibre did an ABEND and I have done 200 items tasks (mostly Modify EPUB, Quality check inspired corrections, with multiple of those queued.
theducks is offline   Reply With Quote
Old 09-28-2021, 01:06 PM   #1455
Joliet Jake
Zealot
Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 3098438
Join Date: Feb 2021
Location: Canada
Device: Kobo Sage
I've been using this plugin for a few months, and suddenly it failed.

Today I added the custom column "read" and started going through my library. At one point I encountered a book that still had DRM on it. (An Epub, in fact.) Afterward the plugin stopped working.

I restarted Calibre but the plugin still doesn't work. I'm not sure what I did wrong. (Calibre maintains previous counts, but will not add new ones.)

Also, does anyone know how to change column names? For some reason it says "words" when it means "pages".

Count Page/Word Statistics
do_count_statistics - book_path=C:\Users\[name]\AppData\Local\Temp\calibre_dcjnjy\7jz7ju_count_pa ges\530.epub, pages_algorithm=0, page_count_mode=Estimate, statistics_to_run=[u'PageCount'], custom_chars_per_page=1500, icu_wordcount=True
do_count_statistics - job started for file book_path=C:\Users\[name]\AppData\Local\Temp\calibre_dcjnjy\7jz7ju_count_pa ges\530.epub
-------------------------------
Logfile for book ID 530 (Your Money or Your Life: 9 Steps to Transforming Your Relationship With Money and Achieving Financial Independence: Fully Revised and Updated for 2018)
Method of counting _page_count_mode=Estimate _download_sources=[]
results= {}
530
do_statistics_for_book: C:\Users\[name]\AppData\Local\Temp\calibre_dcjnjy\7jz7ju_count_pa ges\530.epub 0 Estimate [] [u'PageCount'] 1500 True
Traceback (most recent call last):
File "calibre_plugins.count_pages.jobs", line 155, in do_statistics_for_book
File "calibre_plugins.count_pages.statistics", line 56, in get_page_count
File "calibre_plugins.count_pages.statistics", line 95, in _open_epub_file
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 148, in __enter__
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 87, in run_extract_book
File "site-packages\calibre\utils\ipc\simple_worker.py", line 262, in fork_job
File "site-packages\calibre\utils\ipc\simple_worker.py", line 186, in run_job
File "site-packages\calibre\utils\ipc\simple_worker.py", line 123, in communicate
WorkerError: Worker failed

I am using Calibre 4.23.

Last edited by Joliet Jake; 09-28-2021 at 01:28 PM.
Joliet Jake 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 07:30 AM.


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