View Single Post
Old 12-05-2024, 07:01 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,773
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DoctorOhh View Post
When I convert a book, I can go to Structure detection (see image) and insert the following expression in the "Detect chapters at (XPath expression" and insert this expression

//*[re:test(., "Chapter", "i")]

then go to Chapter mark: and choose pagebreak and the conversion will split the HTML at every instant of the word chapter. Making the creation of a TOC easy.

My question is when I'm in the book editor and I choose to split at multiple locations (see image). Which expression can I insert here to have the same result? Currently, after merging the files, if I see the need I will save the book and back out then convert the book to accomplish my desired results. I would much prefer to be able to insert an expression here and do the same thing.
Same one I use in Convert (cut and paste) just worked for me. But it didn't persist, maybe it will if you create the expression with the Wizard.

BR
BetterRed is offline   Reply With Quote