View Full Version : Bug in Adobe EPUB implementation


Lord KiRon
09-05-2009, 06:24 AM
The Adobe EPUB implementation (both ADE and Sony) has a bug related to CSS settings.
Look here:
http://img136.imageshack.us/img136/7353/epubbug.png

This is result of rendering this file:

Bad File (http://rapidshare.com/files/275889527/gaiman_neil_coraline_bad.epub)

However here is the same file with one small differences that get displayed correctly:
Good File (http://rapidshare.com/files/275889648/gaiman_neil_coraline_good.epub)

The only difference between them is one line in CSS (CSS\default.css) :


p {
margin: 0px;
text-indent: 1.5em;
text-align: justify;
display: inline-block
}


The "bad" file has it, the "good one" does not.

Jellby
09-05-2009, 07:27 AM
You'll be "delighted" to know that's not the only glitch in ADE ;)

However, note that the current ePUB spec (http://www.idpf.org/2007/ops/OPS_2.0_final_spec.html) does not support "display: inline-block;". Anyway, showing paragraphs as inline-block is probably not what you want.

Lord KiRon
09-05-2009, 09:43 AM
You'll be "delighted" to know that's not the only glitch in ADE ;)

Same bug in Sony readers, tested on PRS-505 and 600. There it become even worse.



Anyway, showing paragraphs as inline-block is probably not what you want.
Actually I do, the problem is that files I cave converted from FB2 that put almost any line inside <p> that is OK for FB2 readers BUT when converted to EPUB it creates huge space between "paragraphs" and this does not look good.

pdurrant
09-05-2009, 10:06 AM
Sony readers display ePub using Adobe software. It's the same 'bug'.

I'd suggest adding

margin-top:0;
margin-bottom:0;

to your p CSS, rather than using an attribute which isn't supported in the ePub specification. (See http://www.idpf.org/2007/ops/OPS_2.0_final_spec.html#Section3.3 "Visual Display Model")

Same bug in Sony readers, tested on PRS-505 and 600. There it become even worse.



Actually I do, the problem is that files I cave converted from FB2 that put almost any line inside <p> that is OK for FB2 readers BUT when converted to EPUB it creates huge space between "paragraphs" and this does not look good.