View Single Post
Old 03-14-2013, 03:33 PM   #28
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: 6,317
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
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.
JimmXinu is offline   Reply With Quote