View Single Post
Old 07-02-2008, 01: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: 25,919
Karma: 5035037
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 offline   Reply With Quote