Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2011, 07:55 PM   #1
robach
Junior Member
robach began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2011
Location: Barcelona - Spain
Device: PRS-650
Need help with images and captions in ADE

Hello.

I have to show 2 images with their captions.

One image has to be aligned to the right with his caption at his left side and vertically aligned to the bottom line of the image.
The second image has to be aligned to the left with the caption at his right side also vertically aligned to the bottom line of the image.

I tried to make it with 2 tables, and the result is OK in Sigil and iBooks, but in ADE the second table displays the caption out of limits.

In the images I've uploaded you can see that in ADE the first table displays the two cells OK, but in the second table something goes wrong and cells aren't displayed as I want.

Can someone open my eyes? Is there a better way for doing it?

I've also uploaded the epub.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	What ADE shows.jpg
Views:	97
Size:	83.9 KB
ID:	78938   Click image for larger version

Name:	What iBooks shows.jpg
Views:	94
Size:	318.7 KB
ID:	78939   Click image for larger version

Name:	What Sigil Shows.jpg
Views:	101
Size:	141.9 KB
ID:	78940  
Attached Files
File Type: epub Test.epub (47.1 KB, 76 views)

Last edited by robach; 11-13-2011 at 08:15 PM.
robach is offline   Reply With Quote
Old 11-14-2011, 12:11 AM   #2
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,800
Karma: 7999034
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Did you notice that the borders around Img2 don't look the same as around img1? When I am more awake I will change the size classes to have different border styles to see more clearly what is happening. It looks like the 100% image width over-rode the 55% cell width.

You may have an example of one (more?) of the ADE bugs noted in the sticky thread here.

BTW, on my BeBook the images are on different pages, perhaps due to the blank status line at the bottom of the screen.
pholy is offline   Reply With Quote
 
Advertisement
Old 11-14-2011, 04:33 AM   #3
robach
Junior Member
robach began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2011
Location: Barcelona - Spain
Device: PRS-650
Hello pholy.

Thanks for your time.

Quote:
Originally Posted by pholy View Post
Did you notice that the borders around Img2 don't look the same as around img1?
Yes. That's the reason I used borders for the cells, to see what's wrong.


Quote:
Originally Posted by pholy View Post
It looks like the 100% image width over-rode the 55% cell width.
But this doesn't happen in the first table with the image in the right cell. Also, if I define the second table as the first one (with the image at the right side) it's displayed OK.


Quote:
Originally Posted by pholy View Post
You may have an example of one (more?) of the ADE bugs noted in the sticky thread here.

BTW, on my BeBook the images are on different pages, perhaps due to the blank status line at the bottom of the screen.
It's very fun to have to put extra code to make the books look good on all platforms.

Ricard

Last edited by robach; 11-14-2011 at 05:30 PM.
robach is offline   Reply With Quote
Old 11-14-2011, 05:53 AM   #4
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: 6,308
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Why do you "have" to do this? It's not a good format for an ebook.
Jellby is offline   Reply With Quote
Old 11-14-2011, 07:06 AM   #5
robach
Junior Member
robach began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2011
Location: Barcelona - Spain
Device: PRS-650
Quote:
Originally Posted by Jellby View Post
Why do you "have" to do this? It's not a good format for an ebook.
That's why I'm here asking...

...and as I said...

Quote:
Originally Posted by robach View Post
Is there a better way for doing it?
Thanks Jellby.


Ricard
robach is offline   Reply With Quote
Old 11-14-2011, 08:44 AM   #6
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: 6,308
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I would just put the caption before or after the image, and wrap both in a block with "page-break-inside: avoid" to disencourage the reading system from inserting a page break between image and caption (but not really prevent it).

If the caption is very long, I'd even insert pagebreaks before and after both caption and image, like in Kipling's Just So Stories. Basically you find a page with only the caption ("The following illustration shows this and that..."), then a page with only the illustration to its full glory, then the story continues.
Jellby is offline   Reply With Quote
Old 11-14-2011, 10:18 AM   #7
robach
Junior Member
robach began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2011
Location: Barcelona - Spain
Device: PRS-650
Thank you Jellby.

I'll do it as you recommend. I was only trying to make it as similar as possible to the original.


Ricard
robach is offline   Reply With Quote
Old 11-14-2011, 04:10 PM   #8
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,800
Karma: 7999034
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
A Bug in ADE

After changing the border styles in your test, I am convinced you have found a bug in the ADE engine. Note that in the attached picture the solid lines look slightly dotted - this is due to dithering to try to make the line look blue. When I changed the colour to #000000 it looks exactly right - the lines, not where they are.

In the picture you can see that the first data cell border (dashed) extends beyond the table border, and the second cell borders (dotted) start within the table and extend beyond the table and beyond the first cell border.

To me, that's a bug, not a feature.

It gets really weird if you remove the "width=100%" from the image spec, by the way --- another bug, I think.
Edit: Oh, RE no width: I think the size of the image is controlling the size of the its cell, leaving little left for the other cell.

Basically, there is an interaction in the handling of tables and images, which is handled poorly.
Attached Thumbnails
Click image for larger version

Name:	PB140211.JPG
Views:	100
Size:	1,019.2 KB
ID:	78985   Click image for larger version

Name:	PB140212.JPG
Views:	98
Size:	1.13 MB
ID:	78986  

Last edited by pholy; 11-14-2011 at 04:23 PM.
pholy is offline   Reply With Quote
Old 11-14-2011, 05:30 PM   #9
robach
Junior Member
robach began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2011
Location: Barcelona - Spain
Device: PRS-650
Hello pholy.

As I said in my last post, I've given up the idea.

I wanted to respect the original design, but now I'm convinced that it wasn't a good idea.

Perhaps it's an ADE bug (iBooks and Sigil show it OK), but I prefer not to have any trouble. I'll make it safer, one image per page with caption below.

Thanks for your time.

Ricard

EDIT:
Quote:
Originally Posted by pholy View Post
Edit: Oh, RE no width: I think the size of the image is controlling the size of the its cell, leaving little left for the other cell.
But have you noticed that if you put the image in the second cell (the one at the right) with the same 56% size, it doesn't happen?

Last edited by robach; 11-14-2011 at 05:43 PM. Reason: adding more comments
robach is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
issue with table headers in ADE iain robinson ePub 2 07-08-2011 03:55 AM
Anyone know how to convert a pdf table into a table in Word or HTML? BasilC Workshop 7 06-25-2010 02:02 AM
Sideway Table in ePub (Rotate table/text) Lapiz ePub 3 01-29-2010 02:11 PM
Forget coffee table books-- how about a kitchen table book? ardeegee Lounge 10 12-02-2009 01:00 PM
Creator Table of Contents Nate the great Kindle Formats 5 07-10-2008 06:55 AM


All times are GMT -4. The time now is 03:47 AM.


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