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

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
Old 01-20-2012, 12:07 PM   #3
slm
Useless
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: 230
Karma: 481862
Join Date: Feb 2003
Device: Kindle1, Kindle 2, Jetbook, EZ Reader EZ pocket pro, ipad, archos 5 ch
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 online now   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
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 04:19 AM.


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