I can think of ways that might do it, sure.
You could look inside the Count Pages plugin for ideas on how to count pages and words to find where you want to split.
After that, you could look at the splitHtml() function in my epubsplit.py for ideas on how to extract only desired ranges of HTML.
Or you could maybe use epubsplit as-is by Inserting an anchor tag at the point you want to split (found by counting words/pages) and add it to the TOC. Then use epubsplit.
|