I'm sure this has been asked before, but using Google got me dead ends.
I'm using calibre to convert a txt to epub. And the chapter headings are just the chapter numbers (i.e. One, Two, Ten, Twenty-Three, etc).
I'm using this code to detect chapters:
Code:
//*[((name()='p') and re:test(., 'chapter', 'i'))]
The current detection code doesn't detect chapters properly.
I need help to improve the code to work for my means, so I don't have to painfully add every chapter to the ToC.
Thanks ahead for any help.