Quote:
Originally Posted by seanos
I had already tried faking small caps (font-size: 80%; text-transform: uppercase;), so I could easily just change styles.
|
Good try, but "text-transform" is not in the ePub spec (unlike "font-variant" which
is in the spec, but not supported by ADE).
Quote:
Don't suppose anyone's come up with a hacky way of detecting ADE like the old IE hacks?
|
You can, sort of, by using conditional styles in the page template. I explained it somewhere in the ePub forum, I think it was in the "snippets" thread. I've used this trick for two things so far:
1. Hide elements supposed to be in a header (display: oeb-page-head), which ADE wrongly leaves in the normal text flow. I don't know of any reader that actually supports headers, but at least they should hide the content.
2. Apply some different style instead of smallcaps in ADE. Often, smallcaps are used simply as a way of emphasizing or making some text stand out, and it's not really that important for the text to be rendered actually as smallcaps. In this case, I change the style to bold, or gray background, or underlined... but it's still set as smallcaps in the main CSS.