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 01-12-2012, 04:18 PM   #1
drjonez
Junior Member
drjonez began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: ipad
Converting Epub to HTML from CLI removes formatting

Hi there. I'm using Calibre from the command line. Great software!

Here's my command line:
Code:
/opt/calibre/ebook-convert path-to/file.epub  temp/file.htmlz
Everything works great, but a lot of formatting seams to be lost. For example, text that was originally centered on the page is no longer centered in the html. Is there a switch to preserve formatting that I'm not aware of? I plowed through the docs and didn't find anything.

Thanks for your help!
drjonez is offline   Reply With Quote
Old 01-20-2012, 09:07 AM   #2
drjonez
Junior Member
drjonez began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: ipad
anyone?
drjonez is offline   Reply With Quote
Advert
Old 01-20-2012, 12:07 PM   #3
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 377
Karma: 3557934
Join Date: Feb 2003
Device: Kindle Voyage, Kindle PW1, Kobo Glo HD, Nook Glowlight Plus ...
Calibre is "not supposed" to do that.
I'm not the right person to respond to this but until someone who knows what they are doing does, here are some suggestions:
1. For epub, you would expect it to keep the underlying html and css information nearly intact.
Are there particular tags that disappeared?
(You can unzip the the epub and take a look at how it implemented the missing formatting, and then see what how calibre reflected that.)
2. Once you can find what didn't show up in the conversion, you can look to see whether the source complies with the HTML standard for that. Although the developers have made some effort to compensate for common errors, misformed HTML is the most likely reason for the conversion to come out wrong.

Good luck.
slm is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any ePub viewer able to display html formatting? ondrejandrej Android Devices 2 11-20-2011 01:21 PM
Converting epub to mobi removes value from li blitzmd Kindle Formats 2 10-11-2011 11:16 PM
Number of HTML converting to EPUB HoushaSen Conversion 11 08-16-2011 07:49 AM
Formatting issues when converting PDF to EPUB raptir Calibre 2 10-21-2009 10:32 PM


All times are GMT -4. The time now is 08:03 PM.


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