Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-05-2009, 05:24 AM   #1
Lord KiRon
Connoisseur
Lord KiRon began at the beginning.
 
Posts: 89
Karma: 44
Join Date: Jul 2007
Device: Kobo Forma
Bug in Adobe EPUB implementation

The Adobe EPUB implementation (both ADE and Sony) has a bug related to CSS settings.
Look here:


This is result of rendering this file:

Bad File

However here is the same file with one small differences that get displayed correctly:
Good File

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

Quote:
p {
margin: 0px;
text-indent: 1.5em;
text-align: justify;
display: inline-block
}
The "bad" file has it, the "good one" does not.
Lord KiRon is offline   Reply With Quote
Old 09-05-2009, 06:27 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You'll be "delighted" to know that's not the only glitch in ADE

However, note that the current ePUB spec does not support "display: inline-block;". Anyway, showing paragraphs as inline-block is probably not what you want.
Jellby is offline   Reply With Quote
Advert
Old 09-05-2009, 08:43 AM   #3
Lord KiRon
Connoisseur
Lord KiRon began at the beginning.
 
Posts: 89
Karma: 44
Join Date: Jul 2007
Device: Kobo Forma
Quote:
Originally Posted by Jellby View Post
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.


Quote:
Originally Posted by Jellby View Post
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.
Lord KiRon is offline   Reply With Quote
Old 09-05-2009, 09:06 AM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
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...tml#Section3.3 "Visual Display Model")

Quote:
Originally Posted by Lord KiRon View Post
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.
pdurrant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Curious Quirk- Cursed epub or bug? p_a_smith Kobo Reader 4 09-15-2010 12:02 AM
iBooks - ePub - Linking Bug lcoleman79 Apple Devices 2 06-30-2010 11:06 AM
0.6.37 convert to ePub bug(?) cutterjohn42 Calibre 1 02-05-2010 09:14 AM
Adobe epub or Adobe Digital Edition? Davimee Astak EZReader 11 01-17-2010 08:15 PM
Seriously thoughtful What reader has the best epub implementation Greg Anos Lounge 3 12-07-2009 03:59 AM


All times are GMT -4. The time now is 07:49 AM.


MobileRead.com is a privately owned, operated and funded community.