Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2014, 10:52 PM   #1
Lodril
Junior Member
Lodril began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2014
Device: Kindle
Table Conversion problems ePub to MOBI

This file was originally formatted by a professional, I just wrote the book. There were a couple of typos I wanted to fix, which was easy enough to address in ePub format, but now that I'm trying to convert the ePub to a MOBI, it's messing up the formatting on certain chapter headers, which were set up as tables to keep the appearance of a scripted exchange.

When I convert from Mobi to ePub, the formatting stays the same. When I convert from ePub to Mobi, the formatting changes such that the names on the left are squashed into too-narrow vertical columns, no matter the font size selected.

So here is how it appears in ePub (and how it should appear):


Here is the MOBI version Calibre puts out:


So here is the formatting as it appears when I convert from ePub to MOBI:
Quote:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Gedlund</title>
<link href="../Styles/styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table class="opener" id="chap1">
<col width="40%" />
<col width="60%" />

<tr>
<td class="pr1">
<p class="lnoind2"><a id="start"></a>Lord Blisan:</p>
</td>

<td>
<p class="lnoind">Mr. Baston, you knew Mr. Gilmot in Gedlund, did you not?</p>
</td>
</tr>

<tr>
<td class="pr1">
<p class="lnoind2">A. Baston:</p>
</td>

<td>
<p class="lnoind">I did.</p>
</td>
</tr>

<tr>
<td class="pr1">
<p class="lnoind2">Lord Sinter:</p>
</td>

<td>
<p class="lnoind">(interrupting) That was not your first meeting though, was it?</p>
</td>
</tr>

<tr>
<td class="pr1">
<p class="lnoind2">Lord Blisan:</p>
</td>

<td>
<p class="lnoind">Order! Order! You’ll have your turn!</p>
</td>
</tr>

<tr>
<td class="pr1">
<p class="lnoind2">A. Baston:</p>
</td>

<td>
<p class="lnoind">No, it was not. He actually first joined us in Rakhasin. Despite Marshal Kilgrave’s suggestions to the contrary, Gilmot went spear to spear with the natives, as brave as anyone.</p>
</td>
</tr>
</table>

<p class="right mt2 ml4"><i>Verin Parliamentary Hearings on the Gedlund Invasion</i>, YT 382</p>
For the sake of curiosity, I tried to edit the professionally formatted MOBI version, but that had to be converted to ePub to view first, and the results came out differently than the ePub to MOBI version:
Quote:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Gedlund</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="../stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="../page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<table id="chap1" class="opener">
<col width="35%" class="calibre2"/>
<col width="65%" class="calibre2"/>
<tr class="calibre3">
<td class="pr"><p class="lnoind"><a id="start"></a>Lord Blisan:</p></td>
<td class="calibre4"><p class="lnoind1">Mr. Baston, you knew Mr. Gilmot in Gedlund, did you not?</p></td>
</tr>
<tr class="calibre3">
<td class="pr"><p class="lnoind">A. Baston:</p></td>
<td class="calibre4"><p class="lnoind1">I did.</p></td>
</tr>
<tr class="calibre3">
<td class="pr"><p class="lnoind">Lord Sinter:</p></td>
<td class="calibre4"><p class="lnoind1">(interrupting) That was not your first meeting though, was it?</p></td>
</tr>
<tr class="calibre3">
<td class="pr"><p class="lnoind">Lord Blisan:</p></td>
<td class="calibre4"><p class="lnoind1">Order! Order! You’ll have your turn!</p></td>
</tr>
<tr class="calibre3">
<td class="pr"><p class="lnoind">A. Baston:</p></td>
<td class="calibre4"><p class="lnoind1">No, it was not. He actually first joined us in Rakhasin. Despite Marshal Kilgrave’s suggestions to the contrary, Gilmot went spear to spear with the natives, as brave as anyone.</p></td>
</tr>
</table>
<p class="right"><i class="calibre1">Verin Parliamentary Hearings on the Gedlund Invasion</i>, YT 382</p>
And, for the sake of completion, here is the conversion log of ePub to MOBI:
Quote:
Parsing OEBPS/Text/28-chap23.xhtml ...
Parsing OEBPS/Text/20-chap15.xhtml ...
Parsing OEBPS/Text/17-chap12.xhtml ...
Parsing OEBPS/Text/32-chap27.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/1-cover.xhtml' from manifest
Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating MOBI index for a book
MOBI output written to C:\Users\lodril\AppData\Local\Temp\calibre_dcz1hq\ rshlon.mobi
I'd love to be able to make quick and easy edits to the book on my own, fix any new typos I come across, that sort of thing. Does anyone have any idea how I could manage this sort of conversion without screwing up the formatting in MOBI? Any help in sorting this out would be greatly appreciated!
Lodril is offline   Reply With Quote
Old 12-14-2014, 11:31 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
How was the MOBI formed?

I would expect you should get a master EPUB that can then be processed by kindlegen to directly create the final MOBI for submission to Amazon. If you can get ahold of that master EPUB, you should be able to apply targeted fixes to the unpacked HTML and then simply reconvert using the same process your professional used.

Tables are... problematic in general, and particularly in the legacy MOBI format. There
eschwartz is offline   Reply With Quote
Advert
Old 12-15-2014, 12:18 AM   #3
Lodril
Junior Member
Lodril began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2014
Device: Kindle
Thanks, eschwartz... it had never occurred to me that the results of Kindlegen would be cleaner (or even different) than Calibre's. I ran the ePub through that, and it came out just right.
Lodril is offline   Reply With Quote
Old 12-15-2014, 12:46 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
calibre does a great deal of post-processing, that in theory makes it more generically suited for ereaders. That doesn't necessarily mean it is always right and using a completely independent tool may result in different outcomes.

Especially if the EPUB was specially crafted to fit with kindlegen, which seems to have been the case here.

We have a resolution, yay!
eschwartz is offline   Reply With Quote
Old 12-15-2014, 12:33 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
kindlegen is converting to AZW3 not MOBI (technically a joint MOBI file). Convert to AZW3 in calibre and you will be fine.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-15-2014, 12:37 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Lodril View Post
Thanks, eschwartz... it had never occurred to me that the results of Kindlegen would be cleaner (or even different) than Calibre's. I ran the ePub through that, and it came out just right.
But what you are seeing is most likely the KF8 part of the joint Mobi/KF8 file generated by Kindlegen. So you still won't know if your table is OK.
JSWolf is offline   Reply With Quote
Old 12-15-2014, 03:10 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
kindlegen is converting to AZW3 not MOBI (technically a joint MOBI file). Convert to AZW3 in calibre and you will be fine.
I know that ebook producers usually describe fallbacks for MOBI, so it degrades gracefully on older devices -- does calibre recognize the fallbacks kindlegen does? e.g. media queries...

For a professionally-published book, you want dual-MOBI so older Kindles automatically can read it, also Amazon checks to see if calibre created the KF8 and gets all mean.
eschwartz is offline   Reply With Quote
Old 12-15-2014, 09:35 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is not much point since amazon often rejects calibre produced joint MOBI files (for no discernible reason), if you want to publish with amazon, you are better off just sending them an EPUB or using kindlegen.
kovidgoyal is offline   Reply With Quote
Old 12-15-2014, 10:37 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Right, so converting to AZW3 instead is not the be-all and end-all.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MathJax and SVG conversion problems to epub or MOBI waiting90days Conversion 4 12-31-2013 10:15 PM
Problems With Conversion (DeDRMed MOBI to EPUB) isogrifo Conversion 2 02-04-2013 01:32 AM
Newbie problems with Epub -> Mobi conversion adam_lipscombe Conversion 1 02-21-2012 08:52 AM
Table of Contents- fine in mobi, problems in epub jmanque Calibre 0 11-13-2011 07:51 AM
epub to mobi conversion problems rcdc Calibre 5 09-18-2010 02:29 AM


All times are GMT -4. The time now is 09:45 AM.


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