View Single Post
Old 07-02-2008, 02:21 AM   #2
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: 26,343
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It tries to read metadata from HTML comments. For example for title the regular expression is
Code:
<!--.*?TITLE=(?P<q>[\'"])(.+)(?P=q).*?-->
Basically,

Code:
<!-- TITLE=book title-->
Similarly for AUTHOR, PUBLISHER, ISBN
kovidgoyal is online now   Reply With Quote