Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2011, 02:22 PM   #1
Nessyta
Junior Member
Nessyta began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2011
Device: nono
Epub to Mobi (calibre) Table dosen't show

Hi!
I converted an .epub to .mobi with calibre and it works perfect, BUT the tables dosen't show, only therir content.
Any idea on how to fix this?
I use Notepad++ to build and edit the epub file. Can the prolem be on the code?

Thanks
Nessyta is offline   Reply With Quote
Old 05-18-2011, 04:32 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Did you define border="1"
DaleDe is offline   Reply With Quote
Advert
Old 05-20-2011, 03:11 PM   #3
Nessyta
Junior Member
Nessyta began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2011
Device: nono
Thumbs up

Quote:
Originally Posted by DaleDe View Post
Did you define border="1"
No, I didn't, that was the problem I had changed thar value several times, using the same format of border of the other parts of the table without success. It's true what they say, simplify the code and it will all work :P
Thanks! I hope not to fall to another stupid mistake like this one :P
Nessyta is offline   Reply With Quote
Old 05-25-2011, 11:03 AM   #4
SoftwareManiac
Member
SoftwareManiac began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle
I also have seen issues with getting table borders to work. Using InDesign, a CSS style is produced for tables and this is what I modified in the .epub generated file:

table.Lined-Table {
border-collapse : collapse;
border-width : 1px;
border : 1;
border-style : solid;
border-color : #000000;
margin-top : 0px;
margin-bottom : 0px;
}

The table content shows just fine -- the border doesn't in the resultant .mobi using calibre v0.8.1. Odd, when I view the modified .epub using Adobe Digital Editions or even the calibre internal viewer, the tables render as I'd expect. It is only the resultant conversion to .mobi.

Help?
SoftwareManiac is offline   Reply With Quote
Old 05-25-2011, 11:51 AM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by SoftwareManiac View Post
I also have seen issues with getting table borders to work. Using InDesign, a CSS style is produced for tables and this is what I modified in the .epub generated file:

table.Lined-Table {
border-collapse : collapse;
border-width : 1px;
border : 1;
border-style : solid;
border-color : #000000;
margin-top : 0px;
margin-bottom : 0px;
}

The table content shows just fine -- the border doesn't in the resultant .mobi using calibre v0.8.1. Odd, when I view the modified .epub using Adobe Digital Editions or even the calibre internal viewer, the tables render as I'd expect. It is only the resultant conversion to .mobi.

Help?
Way too complicated for mobi. Mobi is an older web format, mostly predating HTML 4.0. It has no knowledge of CSS. The conversion program attempts to convert CSS to something mobi can understand but the above it beyond what it can do. It cannot collapse the width to 1 pixel for example. Table support in mobi is primitive.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 05-27-2011, 08:16 AM   #6
SoftwareManiac
Member
SoftwareManiac began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle
Thank you - I appreciate that. Good information to know about the mobi format, but there is an Amazon InDesign to Kindle plug-in that does work with tables and it does put a nice border around tables. The calibre to mobi format conversion does not. Mmmm...anyone know how to get the .mobi format specification?

Thanks, Ken
SoftwareManiac is offline   Reply With Quote
Old 05-27-2011, 09:25 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by SoftwareManiac
Mmmm...anyone know how to get the .mobi format specification?
Offer Amazon a bajillion dollars to buy it from them?
It's proprietary. Much has been guessed at and reverse engineered by others, but there are still unsolved mysteries. You can check out what is known on the format wiki here at MobileRead.

Quote:
Originally Posted by SoftwareManiac
but there is an Amazon InDesign to Kindle plug-in that does work with tables and it does put a nice border around tables. The calibre to mobi format conversion does not.
I would suggest unpacking an InDesign generated mobi (that contains a table with a nice border around it) with something like the MobiUnpack python script to see exactly what the html to produce what you want, looks like. Then you can modify your source epub (by hand or with Sigil) to something that calibre can work with.

But if you already have InDesign with the Kindle plugin, why are you using calibre to convert your books to mobi? I love me some calibre, but I'm going to use Amazon's official mobi creation software (if they're available to me) to ensure maximum compatibility for ebooks that are going to be read on their devices and apps.

Last edited by DiapDealer; 05-27-2011 at 11:01 AM.
DiapDealer is offline   Reply With Quote
Old 05-27-2011, 11:19 AM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by SoftwareManiac View Post
Thank you - I appreciate that. Good information to know about the mobi format, but there is an Amazon InDesign to Kindle plug-in that does work with tables and it does put a nice border around tables. The calibre to mobi format conversion does not. Mmmm...anyone know how to get the .mobi format specification?

Thanks, Ken
The best reverse engineering documentation available about the format is in our wiki. Amazon has not released the specification. They do have some documentation which is also linked in our wiki.

Dale
DaleDe is offline   Reply With Quote
Old 06-03-2011, 02:18 PM   #9
SoftwareManiac
Member
SoftwareManiac began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle
Hi. Well, I am actually using both Amazon InDesign Kindle Plug-in and EPUB export. Why? The KPI is still in beta and there are some significant issues still and probably isn't up to date with ID CS5.5 EPUB (in combination with calibre for .mobi conversion) is extremely stable and most recently the EPUB export has been dramatically overhauled.

Thanks for the advice about unpacking .mobi.
SoftwareManiac is offline   Reply With Quote
Old 06-13-2011, 10:35 AM   #10
SoftwareManiac
Member
SoftwareManiac began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle
News flash -

Based on my initial post. I use InDesign's EPUB Export feature to produce an .epub. Uncompressing the .epub I adjusted the CSS definitions to include what should have produced a table border:

border-style : solid;
border-width : 2px;

I tried all sorts of other CSS border definition combinations. None of them worked. Thanks to Grey's comments I did the unthinkable and added the border="1" to all the <table> occurrences in my HTML source document tag and re-compressed into a new .epub file. I ran it back through calibre to convert to .mobi and voila! It worked. Every table now has a border (including each cell). If I am missing a statement that I should put into my .css definition instead please let me know (I tried the "border : 1px solid black" and other variations), please let me know.

This is a kludge, but at least it makes tables look like tables again!
SoftwareManiac is offline   Reply With Quote
Old 06-15-2011, 06:20 AM   #11
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Mobi doesn't support CSS - what happens is that the various Mobi creation tools attempt to convert CSS into the appropriate tag attributes, so it's a question of how well (or otherwise) the various tools carry out this conversion.

If you want the maximum flexibility, you're best off avoiding CSS (and this conversion process) and directly coding the attributes in the HTML tags, as you've done in the example you quote.
HarryT is offline   Reply With Quote
Old 06-24-2011, 08:55 AM   #12
SoftwareManiac
Member
SoftwareManiac began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle
Thank you guys! You all fixed it in 0.8.6. Next week I am definitely donating a wad of loot to the cause. I am extremely happy!

Software Maniac
author of Indesign to Kindle
Seattle, WA
SoftwareManiac is offline   Reply With Quote
Old 06-24-2011, 09:48 AM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by SoftwareManiac
Software Maniac
author of Indesign to Kindle
Seattle, WA
Sneaky, sneaky.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub to Mobi, table is converted properly ebookuser Conversion 1 05-10-2011 03:45 AM
ePub or HTML to Mobi Table of Contents problem Dark123 Conversion 2 05-08-2011 03:43 PM
Calibre and mobi format - creating a paige or location specific table of contents coaver Conversion 2 01-25-2011 05:22 AM
Table of contents problem converting from mobi to epub dlmecum Calibre 7 01-21-2011 07:07 PM
[Calibre]Table des matiere .mobi ? androgyn3 Software 14 01-13-2010 09:46 AM


All times are GMT -4. The time now is 06:44 AM.


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