Just FYI for anyone interested ...
Based on a very quick look, the current algorithm for calculating Wordcount appears to be taken from main calibre code (calibre.utils.wordcount, author="Ryan Ginstrom") rather than being created specifically for the 'Count Pages' plugin.
I imagine getting it changed would involve either:
- Convincing Kovid/Ryan Ginstrom to change it calibre-wide (good luck with that
) or
- Replacing a couple of lines in your own personal copy of 'Count Pages' statistics.py
From:
Code:
wordcount = get_wordcount_obj(book_text)
return wordcount.words
To:
Code:
words = _my_wordcount_algorithm(book_text)
return words
def _my_wordcount_algorithm(text):
wcount = <Your personal wordcount algorithm here>
return wcount
ETA: Damn - not quick enough!