And little by little I've added some tweaks to my ePUB files. You can unzip one of them ("The Prince and the Pauper" is a good one, since it has embedded fonts too) and see how it's done. They are all hand-written, so everything there is is there because I added it (not because it's the default of some program).

The only thing missing is creating the final zip file. I pack the mimetype file without compression (zip mybook.epub -0 mimetype) and then add the rest of the files (zip mybook.epub -rDX9 META-INF OEPBS).

And little by little I've added some tweaks to my ePUB files. You can unzip one of them ("The Prince and the Pauper" is a good one, since it has embedded fonts too) and see how it's done. They are all hand-written, so everything there is is there because I added it (not because it's the default of some program).

The only thing missing is creating the final zip file. I pack the mimetype file without compression (zip mybook.epub -0 mimetype) and then add the rest of the files (zip mybook.epub -rDX9 META-INF OEPBS).

This is a very useful post, as I'm just starting to figure out epub. Do you have a link to a 'perfectly' tagged ebook, or a sample that you've created? I'm creating a book that has few images and strait text.

This is very useful - thanks - esp. how to center the image. I'm using ID and I can't get my images to anchor in the correct spot on the epub page after conversion -- it always ends up at the end of the chapter! And so does the cutline/caption!

And little by little I've added some tweaks to my ePUB files. You can unzip one of them ("The Prince and the Pauper" is a good one, since it has embedded fonts too) and see how it's done. They are all hand-written, so everything there is is there because I added it (not because it's the default of some program).

The only thing missing is creating the final zip file. I pack the mimetype file without compression (zip mybook.epub -0 mimetype) and then add the rest of the files (zip mybook.epub -rDX9 META-INF OEPBS).

anyone having problems with the link - i've been trying to access the tutorial without much luck ...

The only thing missing is creating the final zip file. I pack the mimetype file without compression (zip mybook.epub -0 mimetype) and then add the rest of the files (zip mybook.epub -rDX9 META-INF OEPBS).

I just found that I have to use (zip mybook.epub -DX0 mimetype) to pass the epubcheck. Otherwise I get an error about extra field length being 28 instead of 0.

I had a look at your Prince & Pauper ePub and it seems to offer the embedded font as an alternative addition to the main style sheets — with the alt.css being called from within the style.css (presumably when embedded fonts are supported) — is that right?

I'd love to use this approach in the ePubs I'm working on. Is it as simple as it looks? (main css, alternative css and embedded fonts in OEBPS; then referencing all these in the Manifest) — Or are there complexities I'm missing?

I had a look at your Prince & Pauper ePub and it seems to offer the embedded font as an alternative addition to the main style sheets — with the alt.css being called from within the style.css (presumably when embedded fonts are supported) — is that right?

I'd love to use this approach in the ePubs I'm working on. Is it as simple as it looks? (main css, alternative css and embedded fonts in OEBPS; then referencing all these in the Manifest) — Or are there complexities I'm missing?

It's almost like that, but not quite. alt.css is referenced in style.css through an @import clause, and it will be read in all circumstances, as long as @import is supported, it does not depend on whether embedded fonts are supported.

The only reason for putting the embedded fonts stuff in a separate CSS file was to make it easier to disable it if needed, just by commenting out the @import line in style.css. Other solutions would imply a larger edit of CSS files, or modifying every XHTML file.

I'm using ID and I can't get my images to anchor in the correct spot on the epub page after conversion -- it always ends up at the end of the chapter! And so does the cutline/caption!

Floating images in ID will end up at the bottom. Solution: select the image and cut it, then paste it into the text so it becomes an in-line graphic. Paste your caption right below it in its own paragraph. They will now both flow with the text and anchor into position. It's best to have the graphic in its own paragraph.