In this thread it was suggested the use of custom entities (like &rsquo; or &mdash; ) as a possible typographic tool. I would like to test it and see if (and how) different ePUB readers support it. Basically, the trick is adding entity definitions to the DOCTYPE line.

In this file I've used &loquo; and &roquo; for outer quotes and &liquo; and &riquo; for inner quotes, as well as &ap; for apostrophes. Chapter 1 has the definitions in-line, while Chapter 2 uses an external file (this would be preferable, since it allows changing all chapters in a single place).

I've tried with Calibre, and Chapter 1 (internal) works, but Chapter 2 (external) doesn't. Besides, both chapters show some garbage at the top. Could you try with other readers and maybe test other possible solutions?

Device: eb1150 & is that a nook in her pocket, or she just happy to see you?

excellent timing, i was trying to play with this myself after seeing the custom entities used in adobe's alice in wonderland sample book, but i couldn't get it to work ; i got a bit of garbage showing at the beginning of the page, and the entities weren't translated correctly. i'm very interested to learn more about it. i starting looking for some info but haven't had time to get very far, but we could start by trying to reverse-engineer that adobe file.

It's meant to be at the bottom of the title page. Of course, the page size can be altered, so whether it will fit in the page or not is not predictable. (I could use "position: absolute", but that is discouraged in the ePUB specification).

Quote:

Originally Posted by JSWolf

The reason the headers failed is because you did not define a page template.

I don't try to create an ePUB customized for ADE, but a general compliant ePUB. I used "display: oeb-page-head", and, according to the spec:

The content of an element assigned display: oeb-page-headshould be presented only as a header, and the content of an element assigned display: oeb-page-footshould be presented only as a footer. Neither should be simply presented as if it were inline or block.

(Where "should" means: "This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course.")

And the page you linked says:

oeb-page-head and oeb-page-head values for display properties can be used to move the content to the page header or footer area. They are very similar to adobe-other-region display value, but need dynamic allocation of the header and footer space - something that Digital Editions 1.0 still cannot do. In future they are expected to work just like adobe-other-region value with adobe-region set to either xsl-region-before or xsl-region-after - at least in paginated mode. The good thing about these properties is that they are convey more semantic than adobe-other-region and thus can be used by Digital Editions even if epub is displayed in scroll mode (something that we do not have currently). Thus, I think these values are critical to implement right.

As for the chapter number in the titles, I see ADE is not behaving the way I expected, it's moving the float down, and normal browsers don't do that. I wonder if this is a bug or some ambiguity in the specification...