View Single Post
Old 09-29-2015, 09:54 PM   #1
morgon
Junior Member
morgon began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2015
Device: none
detecting chapters in plain txt

Hi,

I would like to convert a plain (ascii) text file to epub and generate a toc.

As this is a text file xpath does not make much sense (at least to me), but I can construct a regext that allows chapters to be detected.

How can I teach calibre to use this regex to detect chapters when converting plain text to epub?

many thanks!
morgon is offline   Reply With Quote