05-03-2017, 05:28 PM | #241 |
Member
Posts: 19
Karma: 10
Join Date: May 2017
Device: None
|
Looks like I'm late to the party, lol. So just remove that whole line, THEN convert from epub 2 to epub 3 and the OEBPS error will be gone. Thanks!
|
05-03-2017, 05:30 PM | #242 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, just delete that meta line.
|
Advert | |
|
08-17-2017, 08:57 AM | #243 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've been seeing more and more commercial EPUBs that contain empty dc metadata:
Code:
<dc:contributor/> <dc:description/> <dc:coverage/> <dc:source/> <dc:contributor /> <dc:description /> <dc:coverage /> <dc:source />) EpubCheck for EPUB2 doesn't seem to care about these empty metadata items, but it considers them errors in an EPUB3. Code:
Col: 37: ERROR(RSC-005): Error while parsing file 'character content of element "dc:contributor" invalid; must be a string with length at least 1 (actual length was 0)'. |
08-17-2017, 09:08 AM | #244 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, I can modify the plugin to check for and delete empty metadata elements in the opf easy enough.
Thanks for the head's up. |
08-23-2017, 11:38 AM | #245 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
ePub3-itizer Version 0.3.8 Released
There is a now a new version posted in this thread.
Changes Include: - restrict fix that forced focus to Mac systems only to prevent problems on other platforms - remove display:none css from parts of the nav since they are redudant given the hidden attribute (Thank you Doitsu) - remove empty dc: metadata since for epub3 epubcheck barfs on it - Add LGPL V2 or LGPL V3 license info to plugin.py Have fun! |
Advert | |
|
10-21-2017, 08:22 AM | #246 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
epub converted to 3 non passing epubcheck 4.02
Hello !
Great job ! But using Sigil 0.9.8 for W10 with epub-itiser 0.3.8 and epubcheck 0.4.02 on epub2 done with Amanuensis green Snake 24 (passing epubcheck before conversion) I get the message with the epub3 converted on all xhtml files : line 6 (that is : <link type="text/css" href="../Styles/style.css" charset="UTF-8" rel="stylesheet"/> ) offset 290 Col: 84: ERROR(RSC-005): Erreur lors de l'analyse du fichier 'lattribut {0} nest pas autorisé ici ; lattribut {0} est attendu'. The same withe any epub 2 of this type. Does I anything wrong or is there a problem ? Thanks |
10-21-2017, 09:00 AM | #247 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
This error is caused by the optional charset="UTF-8" attribute, which isn't allowed in epub3 books (charset="UTF-8" isn't flagged in epub2 books).
|
10-21-2017, 09:00 AM | #248 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
According to the Mozilla Develloper Network docs on xhtml, the "charset" is an obsolete attribute in a link tag and should NOT be used. So use search and replace to remove the charset="UTF-8" from each link tag. Does that then allow it to pass epub3 epubcheck?
If not, please copy and paste the top 10 or so lines from the xhtml file (up to the body tag) so that we can see if the nesting of tags is correct. |
10-21-2017, 09:06 AM | #249 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
@KevinH: Removing charset="UTF-8" will allow the epub3 to pass epubcheck. IMHO, charset="UTF-8" should also be flagged by epubcheck in epub2 books.
|
10-21-2017, 09:13 AM | #250 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Thanks for letting me know. I will add checking for and removing the charset attribute from link tags to the next version of ePub3-itizer since it should be an easy fix.
|
10-21-2017, 01:48 PM | #251 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Just committed this change to ePub3-itizer master. It will appear in the next release.
|
10-22-2017, 05:08 AM | #252 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
Thanks Doitsui and KevinH for your answers !
And KevinH for the change in the next release ! I tried to supress charset="UTF-8" : it does work ! And the epub is fine. Now I have to think how to pass this plugin on several epubs... |
10-22-2017, 08:36 AM | #253 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The current design of the plugin itself means it is not particularly scriptable as it is a Sigil output plugin and relies on Sigil doing its thing first to order the epub, mass rename file extensions, run the epubcheck plugin, before doing the final conversion to an epub3.
|
10-22-2017, 09:44 AM | #254 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
I know (sigh.)
But thanks, really for this work ! Really great ! |
10-23-2017, 08:34 AM | #255 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
A last (small) remarque. When removing charset="utf-8" manually (until the new release of the plugin), if you use "replace all" in xhtml files it also remove the part of <meta charset="utf-8"/> in the nav.xhtml file (line 6). With a new error message from epubcheck. Then, or you suppress the rest (<meta> alone) else you manage to keep it entier (wich I did).
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 551 | 07-18-2023 06:22 AM |
Create a javascript quizz for Epub3 in Sigil | BertrandThibaut | Sigil | 3 | 01-26-2014 09:04 AM |
An epub3 version of Sigil ? | apulia03 | Sigil | 9 | 11-28-2012 01:07 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
epub3 Sigil Poetry(fixed layout) | Giggleton | Sigil | 7 | 04-04-2011 12:58 PM |