Thread: HTML Metadata
View Single Post
Old 09-12-2010, 01:09 AM   #6
drsassafras
Junior Member
drsassafras began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: ipod
I really like the OPF idea. When I am creating the OPF, would I only need to create the <metadata> portion or would I also need to generate the <manifest> section?

When you say I would reference it, how would I do this? Through a HTML meta tag? Or do you mean that the OPF be dragged into calabre for processing & the HTML index page be referenced for calabre to link up to the HTML data?

I pulled the OPF metadata off one book I am trying to "bind".

Also, I don't see the cover file referenced here. It is specified in titlepage.xhtml though. Can I specify a cover image in teh OPF? Can you give an example?

I am trying to turn a book archive website that hosts books in HTML over so an ePUB can be made of all of them. I am thinking the most streamlined way i can think of is to have a separate "book" made by the server and zipped up. The zip could the be dragged into calabre, or perhaps unzipped and the index (or some other file) dragged into calabre and boom! the ePUB is created. No manually specifying meta data or format or such.

Thanks for all your help.

<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnspf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:creator opf:role="aut" opf:file-as="Brendan, Ferguson">Brendan Ferguson</dc:creator>
<dcublisher>Southern Cross Review, London</dcublisher>
<meta name="calibre:series_index" content="1"/>
<meta name="calibre:rating" content="0"/>
<dc:language>en</dc:language>
<meta name="calibre:timestamp" content="2010-09-07 03:11:09.117767+00:00"/>
<dc:title opf:file-as="Leading Thoughts">Leading Thoughts</dc:title>
<meta name="cover" content="cover"/>
<dc:date>1973-09-06 00:00:00-04:00</dc:date>
<dc:contributor opf:role="bkp">calibre (0.7.17) [http://calibre-ebook.com]</dc:contributor>
<dc:identifier id="uuid_id" opf:scheme="uuid">3a6d021e-5018-48b1-b4b2-04d1323bc7b5</dc:identifier>
<dc:identifier opf:scheme="ISBN"></dc:identifier>
<dc:description></dc:description>
</metadata>
drsassafras is offline   Reply With Quote