View Single Post
Old 04-24-2020, 05:27 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,191
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by LoganW View Post
So I know from the manual and from another thread that you can only split on one html file at a time.

But I have a book with 60+ large files that I'd like to split, and rather than opening each one and right-clicking and splitting on <h2> I would just prefer to automate it. Can that be done with a conversion and XPath somehow? The book is currently in AZW3 format.
Using the calibre ebook editor.

Yes:
https://manual.calibre-ebook.com/edi...ing-html-files

What I do is combine all the html files in the ebook into one file, then right click and click split at multiple locations, then use a xpath to do the splits.

bernie
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-04-24 17-22-03.png
Views:	60
Size:	367.8 KB
ID:	178654  
gbm is offline   Reply With Quote