Question. I'm not very familiar with device quirks since I haven't tried converting for various ebook readers, but would an external stylesheet not be possible? The formatting for divs could each be assigned a class. Then, just have a separate stylesheet for each format which takes into account the quirks of the device.
The html file would only include <link href="style.css" rel="stylesheet" type="text/css" />. Assuming you have a stylesheet for each device (e.g. prs505.css, prs505-justified.css, left-toc.css, center-toc.css, mobi.css, etc), you only need to copy/rename the device-specific CSS to "style.css" before you convert.
|