Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2019, 05:33 PM   #1
z537815
Junior Member
z537815 began at the beginning.
 
Posts: 3
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?
z537815 is offline   Reply With Quote
Old 08-23-2019, 06:10 PM   #2
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,696
Karma: 2219304
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?
KevinH is offline   Reply With Quote
Old 08-23-2019, 07:43 PM   #3
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,696
Karma: 2219304
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.
KevinH is offline   Reply With Quote
Old 08-23-2019, 08:25 PM   #4
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,696
Karma: 2219304
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:
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?
KevinH is offline   Reply With Quote
Old 08-24-2019, 05:24 AM   #5
z537815
Junior Member
z537815 began at the beginning.
 
Posts: 3
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)"?
z537815 is offline   Reply With Quote
Old 08-24-2019, 05:54 AM   #6
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,675
Karma: 14746481
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by z537815 View Post
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)"?
In epub3 books, metadata entries are primarily used as refines. Here's a typical example:

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 first refine defines the creator as an author and the second refine defines the author sort order.

The epub2 equivalent is:

Code:
<dc:creator opf:file-as="Doe, John" opf:role="aut">John Doe</dc:creator>
As you can see, the epub3 version is a bit more verbose.
Doitsu is offline   Reply With Quote
Old 08-24-2019, 06:08 AM   #7
z537815
Junior Member
z537815 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2019
Device: Lenovo TB-X704F
I see. Thank you. That seems clear and straightforward enough.
z537815 is offline   Reply With Quote
Old 08-24-2019, 08:50 AM   #8
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,696
Karma: 2219304
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" />
KevinH is offline   Reply With Quote
Reply

Tags
custom metadata, epub 3.0

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:23 AM.


MobileRead.com is a privately owned, operated and funded community.