11-09-2018, 02:12 PM | #1 |
Guru
Posts: 936
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Metadata link element urls not being updated
Hi, @Doitsu.
I have a doubt about an error msg suposedly thrown by EpubCheck. The error message is: Code:
WARNING (RSC-007W): Referenced resource could not be found in the EPUB. Code:
<link rel="onix-record" href="meta/9788584850396.xml" /> Only the Sigil plugin is throwing this error. Is this a bug? Maybe because is on the META folder? But this is the standard procedure suggested by the ePub 3 specs. |
11-09-2018, 03:09 PM | #2 | |
Grand Sorcerer
Posts: 5,589
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Open your epub with Sigil and check the Misc folder for files. (If you didn't disable (Mend XHTML > Source Code On > Open), Sigil should update the path of all files moved to the Misc folder and epubcheck shouldn't report problems.) |
|
Advert | |
|
11-09-2018, 03:49 PM | #3 |
Grand Sorcerer
Posts: 27,579
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil won't update the path and all references to an unmanifested file (and per epub3 spec: files referenced in metadata link elements must be unmanifested). Looks like this falls through the cracks of Sigil's EPUB3 support in general.
|
11-09-2018, 05:49 PM | #4 | ||
Guru
Posts: 936
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Metadata link element urls not being updated
Quote:
Quote:
Thank you, guys! |
||
11-09-2018, 06:40 PM | #5 |
Grand Sorcerer
Posts: 27,579
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
To be fair: it's the first instance of the epub spec insisting on an unmanifested file that I can recall.
|
Advert | |
|
11-09-2018, 06:56 PM | #6 | |
Guru
Posts: 936
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
I just wish there was a way Sigil wouldn't rearrange my folder structure. The user should have the option to choose. |
|
11-10-2018, 09:54 AM | #7 |
Sigil Developer
Posts: 7,683
Karma: 5433388
Join Date: Nov 2009
Device: many
|
We will have to special case that opf link tag as my understanding was that it can only be used to point to EXTERNAL metadata resources and was never designed to create an unmanifested file inside the epub.
FWIW, I have never seen a commercial epub3 that used it in that way. Instead the extra logistics/manufacturing metadata was hosted externally. I will double check the official spec to confirm one way or the other. Update: Yes the href attribute does allow a relative iri in the opf metadata link tag so we will have to special case this when opening the epub. I just never saw it used that way and therefore Sigil does not handle it now, but it soon will. Last edited by KevinH; 11-10-2018 at 10:24 AM. |
11-10-2018, 11:17 AM | #8 | |
Grand Sorcerer
Posts: 5,589
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<dc:source id="src-id">urn:isbn:9780141194523</dc:source> <meta property="identifier-type" refines="#src-id" scheme="onix:codelist5">15</meta> <dc:identifier id="book_id">urn:isbn:9780141963624</dc:identifier> <meta property="identifier-type" refines="#book_id" scheme="onix:codelist5">15</meta> |
|
11-10-2018, 01:05 PM | #9 |
Grand Sorcerer
Posts: 27,579
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks for checking into it, Kevin.
|
11-10-2018, 10:50 PM | #10 | |||
Guru
Posts: 936
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
But, to be honest: I'm just an enthusiast and not a publishing professional, so I don't really know how Publishers and Reading Systems really use those records. Quote:
Quote:
Epub 3.2 is intended to update 3.1 in order to maintain backward compatibility with 3.0.1, wich was broke with 3.1. Now, REFINES is back, but it will retain the precedence definition of 3.1 (linked metadata > package metadata). So, for now, using REFINES allows me to provide great metadata on the PACKAGE. But, the specs are clearly encouraging authors to use linked records to improve metadata info, leaving just the basics on the opf. |
|||
11-11-2018, 09:55 AM | #11 |
Grand Sorcerer
Posts: 27,579
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I do know that the epub specs allow reading systems to ignore any and all metadata links (even ones internal to the epub). With that kind of "permission," it's not likely that any commercial epub rendering engines will be very quick to utilize them.
Just mentioning it; not making a judgement. Also keep in mind that Sigil's EPUB3 support has not been extended to 3.01 or 3.1 (let alone 3.2). The spec is too volatile to even attempt to keep up. |
11-11-2018, 10:40 AM | #12 | |
Guru
Posts: 936
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
I just like to follow the specs, in the hope of future implementation and adoption. Is just like acessibility features: I'll do my best to use correct markup and follow both epub and aria guidelines; but I know much of it is still not used by the mainstream Reading Systems and even screen readers. Well, if they do not implement the specs, there's nothing I can do about it, but I'll keep doing my part. I know. Also, the recomendation now its not to use or implement 3.1, but jump directly to 3.2 (when finished). So, like you said: very volatile. Last edited by thiago.eec; 11-11-2018 at 10:47 AM. |
|
11-11-2018, 10:51 AM | #13 |
Grand Sorcerer
Posts: 27,579
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
@Doitsu: just say the word if you want me to break this conversation out of your plugin thread and into its own.
|
11-13-2018, 12:16 PM | #14 |
Sigil Developer
Posts: 7,683
Karma: 5433388
Join Date: Nov 2009
Device: many
|
do you have a sample epub testcase?
@thiago.eec
I am working on adding support for unmanifested but local metadata link record files in epub3's. So if you have a simple example epub that uses this feature that can be publicly shared, would you please post it as an attachment to this thread so that I can test with it. If you only have private ones but are still willing to share it privately, would you please you pm KevinH with a link and I will delete it when I am done testing with it. Thanks, KevinH |
11-13-2018, 01:50 PM | #15 |
Sigil Developer
Posts: 7,683
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Okay, I have a potential "fix" for this but I will wait to test it with your test case (if possible) before pushing it to master.
Thanks for your bug report! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Highlight updated Metadata | Paltieldav | Library Management | 1 | 04-10-2016 08:21 AM |
metadata not being updated | madzharov | Library Management | 4 | 10-18-2013 12:06 PM |
blank TOC page - attribute 'link' not declared for element 'body' | wyatt650 | Sigil | 4 | 04-18-2013 01:41 PM |
updated metadata=updated file? | jomaweb | Calibre | 13 | 01-28-2010 08:12 PM |
Crash on nonexistent "title" metadata element | Valloric | EPUBReader | 3 | 12-10-2009 01:46 PM |