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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-17-2012, 03:02 PM   #1
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 6
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
XHTML to EPUB and MOBI: How to mark up metadata in source document

Hi!

I'm a web developer, and I want to mark up XHTML documents for quick conversion to EPUB and MOBI formats. Calibre handles my source documents very well, but I'd like to automate the process as much as possible— Is there any way to incorporate metadata in the XHTML source code in a way that Calibre can recognize? In particular, I'd like to specify an image URL to be used as the cover, author(s), a publisher, and keywords.

I note that Readability uses something similar to the hAtom microformat to extract article metadata, and I haven't incorporated that into my template yet. Can Calibre parse mircoformats or other data structures?

Thanks for your guidance!
johnstephens is offline   Reply With Quote
Old 05-17-2012, 03:56 PM   #2
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: 26,454
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://www.mobileread.com/forums/sho...44&postcount=9
kovidgoyal is online now   Reply With Quote
Old 05-18-2012, 10:48 PM   #3
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 6
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
Quote:
Originally Posted by kovidgoyal View Post
Thank you, Kovid! That's exactly what I was looking for. Do you know of any way to specify the URL of an image for Calibre to use as the cover?

Cheers!
johnstephens is offline   Reply With Quote
Old 05-18-2012, 11:04 PM   #4
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: 26,454
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
cover specification in html is not supported. I suggest using the --cover option to ebook-convert
kovidgoyal is online now   Reply With Quote
Old 05-21-2012, 07:59 PM   #5
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 6
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
Thank you again! I did not know that Calibre had command-line tools— that's great! I have tried to specify a URL for the input file with no success. Is there a quick way to point Calibre's ebook-convert tool to a web document for input?
johnstephens is offline   Reply With Quote
Old 05-22-2012, 01:17 AM   #6
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: 26,454
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
wget
ebook-convert
kovidgoyal is online now   Reply With Quote
Old 05-23-2012, 03:58 PM   #7
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 6
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
Thank you! wget was my backup plan. I'll do some more testing before posting additional questions— I'm very grateful for your guidance and support!
johnstephens is offline   Reply With Quote
Reply

Tags
calibre, html, metadata, xhtml

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub to Mobi issue with metadata oldbwl Conversion 8 11-20-2011 07:38 AM
Updating EPUB/MOBI metadata Caleb666 Library Management 12 09-02-2011 01:13 PM
ePub to mobi metadata page help please AlexBell Conversion 2 05-07-2011 12:19 PM
Mobi to Epub repeats metadata oldbwl Calibre 2 12-31-2010 02:41 AM
xhtml document deadite66 iRex 1 08-02-2006 04:15 PM


All times are GMT -4. The time now is 01:20 AM.


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