![]() |
#1 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
More questions on Metadata
I have placed the following Meta Data line into a PG HTML file by taking info from elsewhere in the PG file.
Code:
<head> ... <meta name="Producer" content="Nick Hodson of London, England" /> ... </head> If I go to the the advanced menu and select Producer and enter the data everything seems fine. The following is the entry from the Sigil OPF. Code:
dc:contributor opf:role="pro" opf:file-as="Nick Hodson of London, England">England Nick Hodson of London</dc:contributor> Is there something wrong with my entry or, as I suspect, is this a Calibre problem? Its a real hassle using winRAR to check the OPF. A OPF editor would be very nice. This would not have to allow changes but could be read only. It would allow one to see what is really going on in the output. Last edited by crutledge; 10-01-2010 at 02:48 PM. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
or use it fro Calibre: Type "T" with the book selected. Remember to use a Text editor like Notepad++ and not Word(pad) to make changes, the pack-it back up ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Hi,
Actually you can include the dc. and dcterms. meta data right into your html. So please try one of the following (I forget which works anymore) <head> <meta name="dc.contributor.Producer" content="Nick Hodson of London, England" /> </head> <head> <meta name="dcterms.Producer" content="Nick Hodson of London, England" /> </head> Anyway, something here will work. There is support for the dc. and dcterms. namespace to be properly interpreted and stored by Sigil when presented in meta tags right in the html. I helped contribute support for it a long time back (with huge amounts of help from Valloric). If you search Metadata in this forum (or my username KevinH) you should find a discussion of what was added, the forms it accepts, and hopefully when I get some more free time, some additional things to hopefully contribute to Valloric down the line. KevinH |
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Hi,
Actually, I think we need to use the official 3 letter relator codes to make this work For "Producer" the proper 3 letter relator code is "pro", so something like this should work: <head> <meta name="dc.contributor.pro" content="Nick Hodson of London, England" /> </head> <head> <meta name="dcterms.contributor.pro" content="Nick Hodson of London, England" /> </head> should actually work. You can find a full set of the dc. relator codes on the Sigil website by browsing the source code or by simply searching on the web. Hope this helps, Kevin |
![]() |
![]() |
![]() |
#5 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
Extract from WIKI: Code:
<meta http-equiv="Content-Type" content="text/html;" /> <title>MyBookTitle</title> <meta name="DCTERMS.title" content="MyBookTitle" /> <meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646" /> <meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml" /> <meta name="DCTERMS.issued" content="TimeOf Creation eg:2006-05-25T16:53:56" scheme="DCTERMS.W3CDTF"/> <meta name="DCTERMS.creator" content="Author's Name"/> <meta name="DCTERMS.contributor" content="Other Contributor's Name" /> <meta name="DCTERMS.modified" content="Last Modified eg:2010-02-06T13:28:08.71" scheme="DCTERMS.W3CDTF"/> <meta name="DCTERMS.provenance" content="Your ISBN Number" /> <meta name="DCTERMS.subject" content="What book is about" /> <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en" /> <link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en" /> <link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en" /> <link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en" /> <link rel="stylesheet" type="text/css" href="ebook.css" /> <base href="." /> Code:
<meta name="DCTERMS.whatever" content="Fill in the blank" /> What about the <link rel ... and <base href="." |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Book producer in OPF is
<dc:contributor opf:role="bkp">name</dc:contributor> |
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Hi,
You wrote: > This tells me that I should be able to use any of the terms in the Meta Data > editor, e.g. producer using > Code: > <meta name="DCTERMS.whatever" content="Fill in the blank" /> Pretty much. Sigil also understands what the DC website calls "refinements" (adding an additional . followed by the refinement. So something like <head> <meta name="dcterms.contributor.bkp" content="Nick Hodson of London, England" /> </head> should work for Book Producer (Kovid nicely pointed out!) > What about the <link rel ... and <base href="." Sigil will ignore all of that in the html since an ebook may not be able to access the internet when it is read, I just went with a simple dc. and dc.terms mapping to try and allow for pure html to completely specify everything needed for an epub ebook. See this thread on in this forum for a more complete list of what is recognized by Sigil in html (and properly put into the opf). https://www.mobileread.com/forums/sho...094#post711094 I have no idea whether the exact same thing works in Calibre but as good as that product is, I assume they support some form of the Dublin Core dc. or dcterms. Hope this helps, KevinH |
![]() |
![]() |
![]() |
#8 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
I spend my time formatting PG files and believe that everyone contributing to the production of the eBook should get credit. I now have a set of meta data statements that allows me to do this. I also have to cancel Sigil Issue 604 which was submitted without full appreciation of the situation. Many thanks to you and Kovid. Charlie |
|
![]() |
![]() |
![]() |
#9 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
FlightCrew
I ran a Sigil file through FlightCrew and received the following report:
Quote:
Code:
14:<dc:date opf:event="publication"></dc:date> In the Sigil code: Code:
<head> ... <meta content="10/4/2010" name="dcterms.date of publication" /> ... </head> And in the HTML: Code:
<meta name="dcterms.date of publication" content="10/4/2010" /> I have tried other formats from the Meta Data thread to no avail. Will someone point me to either the proper Meta statement or Date format and I can smile at having a fully correct ePub file. ![]() |
|
![]() |
![]() |
![]() |
#10 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The date has to be in the format:
YYYY[-MM[-DD]] Meaning the year goes first and is compulsory, with 4 digits. The month is optional, with two digits, and separated with a hyphen. The day is also optional (but you have to specify the month too), with two digits and hypen as well. So try entering "2010-10-04" in the date. |
![]() |
![]() |
![]() |
#11 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
Thank you. ![]() |
|
![]() |
![]() |
![]() |
#12 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
![]() |
![]() |
![]() |
#13 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
Something like: Congratulations, Charlie! You have just built a Perfect ePub file. ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#14 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#15 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
I agree, there should be something like "no errors found". Add the request to the FC tracker.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata? | nessin | Calibre | 5 | 10-19-2010 01:48 PM |
Metadata | jgray | ePub | 1 | 10-01-2010 08:20 AM |
metadata | formacmeg | ePub | 7 | 09-09-2010 06:35 PM |
Metadata | crutledge | Sigil | 2 | 09-09-2010 06:50 AM |
metadata.db same? | TallMomof2 | Calibre | 2 | 06-24-2009 06:25 PM |