01-12-2019, 10:21 PM | #1 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
problem with error RSC-005
I took a short Word .doc, turned it into an .odt in LO then turned that into an .html and opened that in Sigil. When I ran the Epub check I got this:
I couldln't figure out what it wanted. Thanks. |
01-12-2019, 11:28 PM | #2 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Set the starting semantics (semantics fills in the guide entries) or remove the unused tags |
|
01-12-2019, 11:37 PM | #3 | |
Bibliophagist
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Sample from content.opf in a book I was recently editing: Code:
<guide> <reference type="toc" title="Table of Contents" href="Text/part0001.xhtml"/> <reference type="text" title="Beginning" href="Text/part0004.xhtml"/> <reference type="cover" title="Cover" href="Text/titlepage.xhtml"/> </guide> Edit: If you are feeling really bored, here's the link to the Epub 2.0.1 spec item: Section 2.6: Guide Last edited by DNSB; 01-13-2019 at 02:52 PM. Reason: Added link to EPUB 2.0.1 Guide entry |
|
01-13-2019, 09:07 AM | #4 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That error is actually pretty new. Whatever version of EpubCheck came with the previous version of Doitsu's plugin didn't flag the empty guide element as an error in epub2. It's a little odd that it does flag it as an error given the wording of the spec:
Quote:
EpubCheck doesn't bark at all if the guide element is left out entirely, but of course Sigil adds it back in during its parsing. I wonder what changed to make them start flagging empty guides in epub2? That basically renders Sigil's default blank epub2 as invalid right out of the gate. Last edited by DiapDealer; 01-13-2019 at 03:29 PM. |
|
01-13-2019, 02:51 PM | #5 | ||
Bibliophagist
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
||
01-13-2019, 03:38 PM | #6 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I understand why they may not want an empty guide section, I just don't understand why now (the end of Nov 2018). It wasn't an error until EpubCheck 4.1. The wording of the 2.01 spec hasn't changed, so why, suddenly, has their interpretation of it? Sigil's created tons of epubs with empty guide items that all passed EpubCheck cleanly up until nearly the end of 2018. It doesn't make sense a lot of sense to me. But then, it clearly doesn't have to.
|
01-13-2019, 05:01 PM | #7 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
This was only an error under epub3. Code was addd to OPFParser.cpp to skip xml generation of an empty guide but only for epub3. So something changed the epub2 interpretation un epubcheck.
See src/ResourceObjects/OPFParser.cpp Code:
if ((m_guide.size() > 0) || (m_package.m_version.startsWith("2"))) { xmlres << " <guide>\n"; foreach(GuideEntry ge, m_guide) { xmlres << ge.convert_to_xml(); } xmlres << " </guide>\n"; } That said, epubcheck should not be changing how it checks epub2 after the fact unless it is a bug (and it was not under epub2). |
01-13-2019, 05:49 PM | #8 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Thanks a lot guys. I deleted the guide tags but when I saved it they came back. So I added a Copyright Page and a Title Page and saved and then I had that stuff in the guide tags and Epub Check was happy. (And so was I. )
|
01-14-2019, 01:15 PM | #9 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
BTW, this change to epubcheck was made because of this bug report:
https://github.com/w3c/epubcheck/issues/663 So we will need to remove empty guide elements for epub2 as well. This will probably impact plugin code that generates the opf on the fly as well. I will look into making those fixes in time for our next release. KevinH |
01-14-2019, 01:47 PM | #10 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
FWIW, I just pushed fixes for this to remove empty guide elements for epub2 (already happened under epub3) so that Sigil generates empty epubs that will pass epubcheck 4..
So this should be fixed in master. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
strange SVG error/positioning problem | psychovertical | ePub | 2 | 10-11-2018 10:59 AM |
Young Adult Belka, W.: 005 - Kapitän Merling und seine Familie. V1.1 [German] 03.12.2017 | Zentaurus | ePub Books | 0 | 12-03-2017 04:47 PM |
ERROR:Problem starting the wireless device | mariaclaudia | Devices | 15 | 10-27-2017 08:15 AM |
Help - Error - Re-installation question/problem | Tej | Devices | 4 | 06-03-2017 03:37 AM |
PRS-T1 File to Unroot T1 1.0.005? | Rizla | Sony Reader Dev Corner | 0 | 06-27-2014 02:31 PM |