Thread: LRF output
View Single Post
Old 10-04-2007, 07:30 PM   #471
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,405
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm tell me if the following mapping is correct
<span id=title> --> <h1>
<span id=subtitle> --> <h2>
What about lower levels of headings? subsubtitle, etc?
That way you can match chapters on either h1 or h2.

<hr> --> <span style="page-break-after:always" />

I will probably modify html2lrf's handling of the div tag to take care of the blank lines.

Incidentally, the way BD uses the id attribute is puzzling. According to the HTML spec ids should be unique, is there some reason vvv chose to use the id attribute rather than the class attribute, which is a much more natural fit?
kovidgoyal is offline   Reply With Quote