Thread: EPUB output
View Single Post
Old 01-31-2009, 04:50 PM   #320
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,447
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Coolmicro View Post
I explain the things badly, in English

The XHTML produced by format ODT, in OpenOffice, is valid. But, when one uses the XHTML produced by a file ODT in OpenOffice (Export) with Calibre, the result is not the same one as when one uses directly format ODT for th same file, with Calibre.

To understand, here 2 pictures, the same text, with ODT, and with XHTML produced with OpenOffice:
Epub Calibre with ODT:
https://www.mobileread.com/forums/att...1&d=1233436953
Epub Calibre with xhtml:
https://www.mobileread.com/forums/att...1&d=1233436953
Appearance is not the same one, the margins in particular (not to take account of space between paragraphs, it is an error which I did)

That's because the library used by OpenOffice to convert ODT to HTML is different from that used by calibre to convert ODT to HTML. Genrally speaking (though I haven't tested this) you should get better results converting from ODT to EPUB rather than from the exported HTML to EPUB.
kovidgoyal is offline   Reply With Quote