Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2017, 05:28 PM   #241
2manymovies
Member
2manymovies began at the beginning.
 
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!
2manymovies is offline   Reply With Quote
Old 05-03-2017, 05:30 PM   #242
KevinH
Sigil Developer
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: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes, just delete that meta line.
KevinH is offline   Reply With Quote
Advert
Old 08-17-2017, 08:57 AM   #243
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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/>
(a Sigil edit/save changes these to
<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)'.
Do you think the plugin should remove these empty items upon conversion, or do you think it's better to let the user clean them up themselves before or after using the plugin?
DiapDealer is offline   Reply With Quote
Old 08-17-2017, 09:08 AM   #244
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Old 08-23-2017, 11:38 AM   #245
KevinH
Sigil Developer
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: 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!
KevinH is offline   Reply With Quote
Advert
Old 10-21-2017, 08:22 AM   #246
Julie34
Enthusiast
Julie34 began at the beginning.
 
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
Julie34 is offline   Reply With Quote
Old 10-21-2017, 09:00 AM   #247
Doitsu
Grand Sorcerer
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: 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).
Doitsu is offline   Reply With Quote
Old 10-21-2017, 09:00 AM   #248
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Old 10-21-2017, 09:06 AM   #249
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
So use search and replace to remove the charset="UTF-8" from each link tag. Does that then allow it to pass epub3 epubcheck?
@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.
Doitsu is offline   Reply With Quote
Old 10-21-2017, 09:13 AM   #250
KevinH
Sigil Developer
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: 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.

Quote:
Originally Posted by Doitsu View Post
@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.
KevinH is offline   Reply With Quote
Old 10-21-2017, 01:48 PM   #251
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Old 10-22-2017, 05:08 AM   #252
Julie34
Enthusiast
Julie34 began at the beginning.
 
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...
Julie34 is offline   Reply With Quote
Old 10-22-2017, 08:36 AM   #253
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Old 10-22-2017, 09:44 AM   #254
Julie34
Enthusiast
Julie34 began at the beginning.
 
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 !
Julie34 is offline   Reply With Quote
Old 10-23-2017, 08:34 AM   #255
Julie34
Enthusiast
Julie34 began at the beginning.
 
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).
Julie34 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 12:30 PM.


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