View Single Post
Old 09-18-2011, 04:34 PM   #1
NMinker
Junior Member
NMinker began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2011
Device: iTouch
Question Converting txt to epub, chapter heading contains number

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.
NMinker is offline   Reply With Quote