![]() |
#1 |
Epubs for Cylons
![]() Posts: 13
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire
|
![]()
Does anyone know how to include subtitle information in the metadata? I followed IDPF's specs exactly and put this in my opf file (real book title not shown):
<dc:title id="t1">A Dictionary of Modern English Usage</dc:title> <meta refines="#t1" property="title-type">main</meta> <dc:title id="t2">First Edition</dc:title> <meta refines="#t2" property="title-type">edition</meta> However, IDPF's own validator found this meta to be an error, showing this error message: ERROR: book.epub/OEBPS/content.opf(5,45): attribute "refines" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang" ERROR: book.epub/OEBPS/content.opf(5,45): attribute "property" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang" ERROR: book.epub/OEBPS/content.opf(5,45): element "meta" missing required attributes "content" and "name" ERROR: book.epub/OEBPS/content.opf(5,51): text not allowed here; expected the element end-tag ERROR: book.epub/OEBPS/content.opf(7,45): attribute "refines" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang" ERROR: book.epub/OEBPS/content.opf(7,45): attribute "property" not allowed here; expected attribute "content", "id", "name", "scheme" or "xml:lang" ERROR: book.epub/OEBPS/content.opf(7,45): element "meta" missing required attributes "content" and "name" ERROR: book.epub/OEBPS/content.opf(7,55): text not allowed here; expected the element end-tag Before inserting the above title-type metadata, my epub (and opf and it's metadata) had absolutely zero problems passing the inspector. Source of IDPF code: http://www.idpf.org/epub/30/spec/epu...-20111011.html Thanks for any insight you can offer. Amy |
![]() |
![]() |
![]() |
#2 |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
Note that what you are reading is a draft on suggested developments in EPUB3 and are not standard at present. The validator is only what is established. I would suggest just using the standard metadata so that the file passes validation
Required dc:title dc:identifier dc:language dc:creator dc:date dc: publisher Optional: <dc:subject /> <dc:description /> <dc:rights /> <dc:subject /> <dc:description /> <dc:source /> Top of the document says "A diff of changes from the previous draft is available at this link. Please refer to the errata for this document, which may include some normative corrections. " Last edited by SusanM; 04-15-2013 at 11:04 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Epubs for Cylons
![]() Posts: 13
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire
|
Hmm. I did not notice that there were different versions of the Recommended Specifications. That being said, I clicked on the most current version of the Specs, but the exact same title-type info was listed.
In the end, I did what you suggested: ditched the extra metadata fields and used the standard ones so that I could pass validation. |
![]() |
![]() |
![]() |
#4 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
i think that <meta> tags with the 'refines' attribute were only introduced in epub3, and that the only dublin:core tags that allowed attributes (specifically the 'role' attribute) were the 'creator' and 'contributor' tags (i.e., <dc:creator opf:role="aut"... <dc:contributor opf:role="dsr"... ).
so basically, in epub2, you can't use <meta refines... for a subtitle, and you can't have a second <dc:title/> element with the attribute opf:role="subtitle". it seems like part of the reason the idpf is introducing the meta tags to refine roles in epub3 is actually that people/publishers were complaining that they couldn't include subtitles in the metadata. https://code.google.com/p/epub-revis...d_Subtitles_(A) |
![]() |
![]() |
![]() |
#5 | |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Quote:
I just want to add: unfortunately, as discussed either on IDPF forum or on Twitter w/ tech guys of IDPF (I do not remember exactly), support for these "extended" metadata is scarce and often conflicting between different Reading Systems. So, once again, you might want to stay on the "conservative" side, and use DC metadata elements that were already supported in EPUB 2. Last edited by AlPe; 04-18-2013 at 04:36 PM. Reason: spelling |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
it appears that your meta is for an epub 3.0 file and the validation tool you're using only validates up to 2.0. This is an example of why many companies will not take full epub 3.0 files. You can implement certain epub 3.0 criterias but coding fully for epub 3.0 will not be backwards compatible and will render your epub invalid.
|
![]() |
![]() |
![]() |
#7 | |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
Quote:
<dc:title id="t1">A Dictionary of Modern English Usage</dc:title> <meta refines="#t1" property="title-type">main</meta> <dc:title id="t2">First Edition</dc:title> <meta refines="#t2" property="title-type">edition</meta> The above does not validate in IDPF's own validator. |
|
![]() |
![]() |
![]() |
#9 | |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
Quote:
Last edited by curiousgeorge; 04-23-2013 at 09:39 AM. |
|
![]() |
![]() |
![]() |
#11 |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
You're not being rude. I am agreeing with you. That being said, you can distribute your books without going through the major retailers and in that case you can add the enhanced metadata as you wish. For example, the University of Adelaide eBooks have extensive metadata, but since they don't distribute through retailers they can do as they please.
|
![]() |
![]() |
![]() |
#12 | |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
The general consensus, at least in the academic world, is that because Dublin Core doesn't define support for subtitles, you should shove everything into the title, separated by a space, a colon, and another space, e.g.
Code:
Alice's Adventures in Wonderland : A Thrilling Adventure of Psychoactive Substance Abuse |
![]() |
![]() |
![]() |
#14 | |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
Quote:
Last edited by SusanM; 05-04-2013 at 06:14 PM. |
|
![]() |
![]() |
![]() |
#15 | |
Bemused by possibilities
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
|
Quote:
Last edited by SusanM; 05-04-2013 at 06:13 PM. |
|
![]() |
![]() |
![]() |
Tags |
epub, idpf, metadata, subtitle, title-type |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to enter book title and subtitle when publishing at Smashwords | amoroso | Writers' Corner | 5 | 05-10-2013 01:00 PM |
Distance between title and subtitle | GraciousMe | ePub | 1 | 10-23-2012 01:37 PM |
Subtitle / Sub-Series on a Kindle? | M4cc45 | Library Management | 0 | 06-28-2012 03:08 PM |
RK2729 subtitle srt font size | istvan58 | Introduce Yourself | 2 | 09-22-2011 07:21 PM |
Book SubTitle? | taraboom11 | Library Management | 1 | 03-01-2011 08:48 PM |