Thread: EPUB output
View Single Post
Old 09-18-2008, 02:20 AM   #1
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
EPUB output

The long awaited support for epub as an output format is finally here; as of calibre version 0.4.86. In the GUI just select EPUB as your output format in the config dialog. Then all conversion/news fetching operations will result in EPUB files. The command line interface is in the commands: any2epub, comic2epub and feeds2epub.

To see usage information, run the commands without any arguments. I've tested them on a number of ebooks and feeds in avarious different input formats, and they should be ready for more general testing now. So throw your ebooks at them and report any bugs here.

For e.g.
Code:
any2epub file.lit
The only major missing feature is support for font size rationalization and embedding fonts.

Technical note:

For those of you that run epubcheck on the output files, you may get warnings/errors for files in the content/ subdirectory. This is because html2epub doesn't fully convert input files into valid XHTML 1.1 (doing so would likely lead to information loss and is uneccessary because any epub reading software that insists on valid XHTML 1.1 is going to be a miserable failure). However, if you feed html2epub valid XHTML 1.1, then it should output valid XHTML as well.

Last edited by kovidgoyal; 09-23-2008 at 10:58 PM.
kovidgoyal is offline   Reply With Quote