View Single Post
Old 09-14-2010, 12:32 PM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,805
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Chapter detection, by its very nature needs to match tags, not random regexps. In fact for links to chanpters to work the tags must be block tags like heading, div or p. Or anchors.

That is why the options use XPath.

If you are asking for a generic regexp pre-processing option, that can be done (though really I would suggest using the conversion debug option, then using whatever regexp tool you like (I prefer vim) on the files in the input directory. zip up the input directory and have calibre convert that.
kovidgoyal is online now   Reply With Quote