![]() |
#1 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Aug 2019
Device: Lenovo TB-X704F
|
Sigil 0.9.17 and Epub 3.0 Metadata
I'm running Sigil 0.9.17 and have a problem with the metadata of Epub 3.0-books.
If I open the Metadata-editor, I only see the "Dublin Core"-elements, while at least 1 book had a content.opf with an entry that definitely lookes like a non-DC element: "Sigil Version" (value "0.9.16"). Yet it doesn't show up in the editor. Why? If I try to add an element: Add Metadata > Custom element, it seems to go Ok. A "Custom Element" appears in the list of metadata-elements, and I can fill in the values. I then exit with an "Ok". But when I then re-enter the Metadata editor, this custom element has disappeared! It's not in the content.opf either. So...what gives? Is it a bug or a feature? |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Was your custom element syntax correct for epub3? Meta tags in epub3 have content and are not self-closed. Did you properly save it? Does it appear in your content.opf in the metadata segment?
What exactly did you the in the custom entry? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
I looked and Yes pure meta tags are explicitly excluded in epub3. Your best bet to workaround this is to carefully edit any pure meta tags (not refines) in the metadata section of the content.opf section. I will work to remove this restriction in the next release.
Last edited by KevinH; 08-23-2019 at 08:24 PM. |
![]() |
![]() |
![]() |
#4 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Okay, I just pushed some changes to master that allow the epub3 metadata editor to allow editing and creation of unrecognized (primary) meta tags. Those are meta tags whose whose property attributes do not match any of the elements/properties the editor recognizes.
The fix will appear in the next release of Sigil. Until then open the content.opf tab in Sigil and directly edit any metadata meta tags that do not involve refines (ie. are primary). Thank you for your bug report. Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Aug 2019
Device: Lenovo TB-X704F
|
Thanks. Looking forward to trying out your fix.
Just another question, though, and it may very well be a dense newbie-question. What exactly do you mean by "metadata meta tags that do not involve refines (ie. are primary)"? |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<dc:creator id="create1">John Doe</dc:creator> <meta scheme="marc:relators" property="role" refines="#create1">aut</meta> <meta property="file-as" refines="#create1">Doe, John</meta> The epub2 equivalent is: Code:
<dc:creator opf:file-as="Doe, John" opf:role="aut">John Doe</dc:creator> |
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Aug 2019
Device: Lenovo TB-X704F
|
I see. Thank you. That seems clear and straightforward enough.
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
And to complete things, generic non-dc meta data that uses the meta tag with only a property attribute (no refines) is sometimes referred to as a primary meta tag. For example:
Code:
<meta property="createdwith">Sigil 0.9.17</meta> which is used in place of the epub2 style meta tag <meta name="createdwith" content="Sigil 0.9.17" /> |
![]() |
![]() |
![]() |
Tags |
custom metadata, epub 3.0 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil's support for EPUB 3.1 specs, metadata | Chang | Sigil | 11 | 09-19-2017 08:15 AM |
Epub crashes on Sigil for Mac, OK on Sigil for PC | crystamichelle | Sigil | 6 | 08-14-2013 02:52 PM |
Metadata deleted in Sigil | Turtle91 | Sigil | 9 | 01-11-2013 11:08 PM |
Multiple files, *-tmp.epub, are left in /tmp/Sigil/scratchpad after closing Sigil | Ahmad Samir | Sigil | 8 | 11-28-2012 04:27 AM |
Metadata in Sigil | bertn33 | Android Devices | 0 | 04-21-2011 02:24 PM |