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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2009, 04:01 AM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,339
Karma: 3950000
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
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
AlexBell is offline   Reply With Quote
Old 07-01-2009, 06:12 AM   #2
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 601
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-505
What do you want to know? I mean, the minimal conversion process is simply calling
Code:
html2lrf my_book_in_html_format.htm
and you are done. You can use any2lrf or any2epub instead of html2lrf, too.
pepak is offline   Reply With Quote
Old 07-01-2009, 06:13 AM   #3
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,343
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
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>
then it's a matter of setting Calibre's "chapter detection" (and thus it's "page-break") settings. You can either do this in the GUI, or from the command-line, e.g.
Code:
html2epub --margin-right=10 --level1-toc="//h1" --level2-toc="//h2" --cover=cover_ark.jpg -t "The Ark" -a "Morrison, Boyd" The_Ark.html
gwynevans is offline   Reply With Quote
Old 07-01-2009, 09:38 AM   #4
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
Posts: 598
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.
pthwaite is offline   Reply With Quote
Old 07-01-2009, 01:02 PM   #5
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
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.
frabjous is offline   Reply With Quote
Old 07-01-2009, 02:51 PM   #6
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
The only issues I am aware of are chapter detection and multi-file HTML.

For chapter detection:
Quote:
The default is to consider <h1> or <h2> tags that contain the words “chapter”,”book”,”section” or “part” as chapter titles as well as any tags that have class=”chapter”.
Or you can use whatever you like for chapter detection by overriding this, as illustrated by gwynevans. Calibre will then automatically build a TOC for you and add page breaks before each chapter.

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.
wallcraft is offline   Reply With Quote
Old 07-01-2009, 02:59 PM   #7
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 10,626
Karma: 3586209
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by frabjous View Post
I've done it, and in my experience it works better than MobiPocket creator, at least with the HTML files I've used.
Except calibre can't add the "Guide" feature, nor can it make a Mobipocket dictionary.
Nate the great is online now   Reply With Quote
Old 07-01-2009, 03:20 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,733
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Nate the great View Post
Except calibre can't add the "Guide" feature, nor can it make a Mobipocket dictionary.
The 0.6.0 beta version can add the guides for the Kindle.
JSWolf is online now   Reply With Quote
Old 07-02-2009, 07:09 AM   #9
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,339
Karma: 3950000
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
Quote:
Originally Posted by frabjous View Post
I've done it, and in my experience it works better than MobiPocket creator, at least with the HTML files I've used.
Thanks frabjous, and all the other people who responded to my post.

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
AlexBell is offline   Reply With Quote
Old 07-02-2009, 09:09 AM   #10
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
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 09:13 AM.
frabjous is offline   Reply With Quote
Old 07-03-2009, 08:15 AM   #11
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,339
Karma: 3950000
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
Quote:
Originally Posted by frabjous View Post
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).
Many thanks, frabjous. It worked. I think I must have been trying to convert the CSS file when I tried before.

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
AlexBell is offline   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
Calibre Recipe HTML content differs from raw html of index.html. krunk Calibre 4 09-20-2010 10:48 PM
Reading HTML ebooks from Calibre Clytie Calibre 3 05-04-2010 11:44 AM
Mobigen Mass Batch conversion of HTML-Single-File ebooks to .mobi ebooks cklammer Kindle Formats 9 11-20-2009 04: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 03:55 AM
Using perl scripts to produce .IMP ebooks and more... nrapallo IMP 43 04-22-2009 01:05 AM


All times are GMT -4. The time now is 10:29 PM.


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