View Single Post
Old 06-02-2023, 01:50 PM   #60
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 11722446
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
Quote:
Originally Posted by JSWolf View Post
ADE 2.0.1 does not do ePub 3. So <figure> is not going to work better with an ePub 3 then an ePub 2. ADE 2.0.1 doesn't do <figure>. But if you replace <figure> with <div> both in CSS and HTML, it works.
So you are using <figure> with epub2, not epub3? That's likely your problem.

Well, ADE 2.0.1 does <figure> just fine for epub3 as long as I tell it that <figure>, along with <aside><section><nav><figcaption> etc... are to be displayed as block elements. Major publishing houses that do epub3 do the same darn thing, so that their epub3s work on older devices. One also needs both toc.ncx and nav.xhtml for backward compatible navigation.

Here's an epub3 for you, which has an illustration towards the end of Chapter 1. I put it in there twice, once with <figure><figcaption>, once with <div><p>. Two classes, .illustration and .caption. The captions themselves will tell you which is which, otherwise, there's no visual difference in ADE 2.0.1.

The text and illustrations are public domain material in the USA and also in Mobile Read terms. Leo Edwards died in 1944 and Bert Salg in 1938. The book was first published in 1926. The title is Poppy Ott and the Stuttering Parrot. Two chapters worth.

It's a little rough, as I threw it together fast. But you asked, so here ya go:
Attached Files
File Type: epub SAMPLE_Leo_Edwards-PO-01-Stuttering_Parrot.epub (1.94 MB, 125 views)
graycyn is offline   Reply With Quote