Quote:
Originally Posted by kovidgoyal
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.
|
Looks almost right- book designer always creates a chapter for <span id=title> and never creates one for <span id=subtitle>. I use this to create a title for (e.g. "A funny thing happened today") but not for the subtitle ("chapter one") so that I have control over what appears in the table of contents. I doubt you would have to do much special handling for span id=subtitle, they will probably take care of themselves just fine.
Quote:
Originally Posted by kovidgoyal
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?
|
Not really sure why BD is the way it is <g>. It's a nice enough tool for creating ebooks, but it has it's quirks, and the pace of development and featureset of libprs500 seems to far outstrip BD (which is why I would like to make the switch).
Thanks a lot for your work on this, I'm sure you'll earn quite a few converts. Let me know when you have something ready for testing- I'm excited to start running my collection through this!