[FM Discuss] Convert an html on epub
Tuukka Hastrup
Tuukka.Hastrup at iki.fi
Fri Mar 25 16:32:09 PDT 2011
25.03.2011 23:32, Simon Worthington kirjoitti:
>> On Fri, Mar 25, 2011 at 1:11 PM, Elisa Godoy de Castro Guerra
>> <elisa.dcg at gmail.com> wrote:
>>> Booki import book in epub, i would love get this book in epub. It will
>>> take
>>> less time import an epub than copy and paste the html or the txt.
>>> But i don't know how to do that.
>>>
>>> Anybody have a great tool making this conversion ?
>>
>> Greetings,
>>
>> I think Calibre does have this ability: http://calibre-ebook.com/ (not
>> sure if there's a command-line mode to automatize the process,
>> though).
> Calibre is for creation and editing ePubs
I got the impression that Calibre would be mostly for reading e-books.
It seems to have nice import functionality via its ebook-convert command:
$ sudo apt-get install calibre
$ wget http://eloquentjavascript.net/Eloquent%20JavaScript.zip
$ unzip "Eloquent JavaScript.zip"
$ rm "Eloquent JavaScript"/print.html
$ ebook-convert "Eloquent JavaScript"/index.html ejs.epub
I made the resulting ejs.epub file available at
http://tuukka.iki.fi/tmp/ejs.epub and it imported ok to my Booki
install. The conversion is not perfect but some of the options in
Calibre could improve that.
(If I don't delete the print.html file in the process, the resulting
epub will contain each chapter twice, which triggers bugs in Booki.)
Hoping this helps,
Tuukka
More information about the Discuss
mailing list