![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Anyone use Calibre to produce ebooks from HTML?
The heading says it all.
I very much prefer to work in HTML when producing ebooks, and would like to try Calibre to compare with Mobipocket Creator. But I can't for the life of me understand how it works, and have not had any success in getting information through the Calibre forum. So if anyone here uses Calibre to convert HTML files to ebooks could you please give me an outline of how it's done? Or point me to a How To? Regards, Alex |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
What do you want to know? I mean, the minimal conversion process is simply calling
Code:
html2lrf my_book_in_html_format.htm |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizzard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
What sort of issues are you having? I've done this before with 'normal' HTML (& CSS, for ePub, at least) with things such as:
Code:
<h1>Hayden </h1> <h2>Chapter 1</h2> <p><strong>Present Day</strong></p> <p>Dilara Kenner wound her way through ...</p> <p> ... look that said <em>you've got to be kidding me</em>, then</p> Code:
html2epub --margin-right=10 --level1-toc="//h1" --level2-toc="//h2" --cover=cover_ark.jpg -t "The Ark" -a "Morrison, Boyd" The_Ark.html |
![]() |
![]() |
![]() |
#4 |
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
From the GUI interface you can choose either epub, mobi or LRF and Calibre will convert your html to the chosen format. I've done it for a book I'd converted first to HTML and then used Calibre to "publish it" as a Mobi.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
I've done it, and in my experience it works better than MobiPocket creator, at least with the HTML files I've used.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
The only issues I am aware of are chapter detection and multi-file HTML.
For chapter detection: Quote:
For a multi-file HTML ebook I think it is still the case that you need a root HTML file that references the rest (e.g. a TOC file). So it may be easiest to produce the original as a single HTML file. |
|
![]() |
![]() |
![]() |
#7 |
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
I know it can be done, but I just don't know how to do it. What I really need is a tutorial like HarryT's excellent tutorial on Mobipocket Creator. I should mention that I do not use Calibre for it's library functions. Rightly or wrongly I have no need for that; I just want to use the file conversion function. Suppose I open Calibre, and have set the output to mobi. And I have my HTML file and it's CSS file in a directory. How do I bring my files to Calibre's attention so it will convert them to mobi? Regards, Alex |
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Drag the .html file into calibre's main window. It'll find all associated files, .zip them together and add them to your calibre library. (I'm pretty sure it'll just "find" your .css file if it's in the same directory as the .html file--though I've always embedded my CSS into my .html file myself rather than use a separate file, so I'm not 100% sure... but I do know it has no trouble finding images, etc.) Change the output format option on the right to .mobi, highlight the listing in your library, and click the convert button above (or right click and click the option for conversion). Then just follow the GUI. If you have any questions, ask here (or in the calibre subforum).
Last edited by frabjous; 07-02-2009 at 08:13 AM. |
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
A poster in another section has a sig which says she is well known for many things, but technological competence is not one of them. That applies to me too. Regards, Alex |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Recipe HTML content differs from raw html of index.html. | krunk | Calibre | 4 | 09-20-2010 09:48 PM |
Reading HTML ebooks from Calibre | Clytie | Calibre | 3 | 05-04-2010 10:44 AM |
Mobigen Mass Batch conversion of HTML-Single-File ebooks to .mobi ebooks | cklammer | Kindle Formats | 9 | 11-20-2009 03:00 AM |
[Old Thread] unable to convert ebooks(rtf, txt,lit,html,pdf) to lrf in calibre .4.131 | jackdeth191 | Calibre | 9 | 05-02-2009 02:55 AM |
Using perl scripts to produce .IMP ebooks and more... | nrapallo | IMP | 43 | 04-22-2009 12:05 AM |