05-17-2012, 02:02 PM | #1 |
Junior Member
Posts: 8
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! |
05-17-2012, 02:56 PM | #2 |
creator of calibre
Posts: 44,167
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
05-18-2012, 09:48 PM | #3 | |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
|
Quote:
Cheers! |
|
05-18-2012, 10:04 PM | #4 |
creator of calibre
Posts: 44,167
Karma: 22670164
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
|
05-21-2012, 06:59 PM | #5 |
Junior Member
Posts: 8
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?
|
Advert | |
|
05-22-2012, 12:17 AM | #6 |
creator of calibre
Posts: 44,167
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
wget
ebook-convert |
05-23-2012, 02:58 PM | #7 |
Junior Member
Posts: 8
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!
|
Tags |
calibre, html, metadata, xhtml |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub to Mobi issue with metadata | oldbwl | Conversion | 8 | 11-20-2011 06:38 AM |
Updating EPUB/MOBI metadata | Caleb666 | Library Management | 12 | 09-02-2011 12:13 PM |
ePub to mobi metadata page help please | AlexBell | Conversion | 2 | 05-07-2011 11:19 AM |
Mobi to Epub repeats metadata | oldbwl | Calibre | 2 | 12-31-2010 01:41 AM |
xhtml document | deadite66 | iRex | 1 | 08-02-2006 03:15 PM |