04-07-2015, 11:26 AM | #61 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi,
I tested this in Sigil pre 0.9.0 master and your epub3 is left unchanged. That said, it does not display properly in the QWebView at all. I will look into fixing that. Take care, Kevin |
04-07-2015, 06:08 PM | #62 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi,
I will add the list of mathml tags to the next Sigil 0.8.6 tidy set of new tags in an attempt to prevent tidy from removing the tags when cleaning is done. Kevin |
Advert | |
|
05-06-2015, 01:21 PM | #63 |
Wizard
Posts: 1,612
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Problems with the output of the epub3 plugin
After converting an epub to epub3, svg images that looked ok under ADE 4 (as epub2), they look very tiny or they are not showed at all (as epub3). Also, after conversion to epub3, ADE 4 doesn't support widows, orphans and page-break-after: avoid (but the properties are supported if I read the epub -on ADE 4- as epub2). So, it would seem that is a problem of the plugin; or not?
|
05-06-2015, 01:30 PM | #64 | |
Grand Sorcerer
Posts: 28,085
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If it doesn't validate and/or those properties are actually missing/altered after using the epub3 plugin, then perhaps it might be an issue with the plugin. Last edited by DiapDealer; 05-06-2015 at 01:45 PM. |
|
05-06-2015, 04:05 PM | #65 | |
Wizard
Posts: 1,612
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
I followed your advice and I have validate the epub (epubCheck) as epub2 and I get the message: "Congratulations! No problems were found in..." But as epub3, I get the following error messages: -value of attribute "height" is invalid; must be an integer. -XML document structures must start and end within the same entity. -The string "--" is not permitted within comments. -External DTD entities are not allowed. Remove the DOCTYPE. Regarding my issues with svg images, the respective error message is: -XML document structures must start and end within the same entity. So, what must we think? Regards Rubén |
|
Advert | |
|
05-06-2015, 05:53 PM | #66 |
Grand Sorcerer
Posts: 5,651
Karma: 23456789
Join Date: Dec 2010
Device: Kindle PW2
|
@RbnJrg: I've tested the plugin with many ePub2 files and never had any validation problems with the generated ePub3 files.
The only message that I consistently got is: External DTD entities are not allowed. Remove the DOCTYPE. However, this is a known bug in epubcheck 3.0.1 related to the .ncx file. As for ADE 4. They released a new version with MathML support some time ago. If you haven't already installed it, re-check your file with the latest version. For good measure also check the converted ePub3 file with Readium. Please also post an ePub2 test file with svg images for KevinH. |
05-06-2015, 07:26 PM | #67 |
Grand Sorcerer
Posts: 28,085
Karma: 199770456
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
05-06-2015, 09:50 PM | #68 |
Wizard
Posts: 1,612
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Doitsu and DiapDealer;
Here I attach both, the epub2 and epub3 ebook. As you'll be able to see, as epub2 is showed ok under ADE 4 but as epub3, the cover is very tiny and the svg images are not showed. Also the epub2 validates in EpubCheck but not as epub3 (however, this time I couldn't reproduce "The string "--" is not permitted within comments" error message). @Doitsu: I'm using the last version of ADE (release 4.0.3.114137). Regards Rubén Last edited by RbnJrg; 05-06-2015 at 09:53 PM. |
05-07-2015, 08:27 AM | #69 |
Grand Sorcerer
Posts: 5,651
Karma: 23456789
Join Date: Dec 2010
Device: Kindle PW2
|
Hi Rubén,
I had a look at your file and it seems that some of the problems are caused by missing spaces before and after comments in caratula.xhtml and titulo.xhtml. After inserting spaces after the initial two hyphens and before the final two hyphens the book exports fine with the plugin and looks fine in Readium but not in ADE 4. IMHO, this means that ADE 4 is not 100% ePub3 compatible when it comes to svg rendering. When I checked the exported ePub3 file with the latest ePubcheck 4.x Alpha version I only got the following error messages: Code:
WARNING(OPF-007): epub3.epub/OEBPS/content.opf(2,146): Re-declaration of reserved prefix 'rendition'. ERROR(RSC-005): epub3.epub/OEBPS/content.opf(36,9): Error while parsing file 'element "guide" incomplete; missing required element "reference"'. ERROR(RSC-005): epub3.epub/OEBPS/Text/autor.xhtml(14,74): Error while parsing file 'value of attribute "width" is invalid; must be an integer'. Code:
prefix="rendition: http://www.idpf.org/vocab/rendition/#" |
05-07-2015, 10:21 AM | #70 |
Wizard
Posts: 2,611
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
1. He just forgot to suppress all the comments ( this <!-- before <rect ) Code:
<!--<rect y="5" width="590px" style="fill: none; stroke-width:5; stroke: black" x="5" height="890px"/> Code:
width="175" 3. This kind of Doctype is no more allowed (toc.ncx) Code:
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> Code:
<?xml version="1.0" encoding="UTF-8" ?> <ncx version="2005-1" xml:lang="fr" xmlns="http://www.daisy.org/z3986/2005/ncx/"> Last edited by roger64; 05-07-2015 at 10:43 AM. |
05-07-2015, 10:58 AM | #71 |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
FWIW, this appears to NOT be a plugin issue.
That DOCTYPE on the ncx is actually legal as Doitsu pointed out, that is a bug in epubcheck 3 that has already been fixed. KevinH |
05-07-2015, 11:16 AM | #72 |
Grand Sorcerer
Posts: 5,651
Karma: 23456789
Join Date: Dec 2010
Device: Kindle PW2
|
True, but there are some cosmetic issues that you could fix by simply suppressing some output that epubcheck 4 doesn't like:
1. Since it doesn't like prefix="rendition: http://www.idpf.org/vocab/rendition/#", I'd delete it. 2. Since it doesn't like empty <guide /> tags in .opf files, I'd recommend removing empty guide tags from the .opf file, even though they're perfectly valid. |
05-07-2015, 12:07 PM | #73 | |
Wizard
Posts: 1,612
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
@Roger; I didn't forget to supress "<!--", in fact, I didn't want the rectangle Many thanks again Rubén |
|
05-07-2015, 02:03 PM | #74 | |
Sigil Developer
Posts: 8,258
Karma: 5568412
Join Date: Nov 2009
Device: many
|
Hi Doitsu,
The first is just a warning and is not an issue given the current spec. The second is correct as it stands again according to my reading of the spec. We are trying to hit the spec, not epubcheck 3 or 4. Perhaps once this plugin becomes part of Sigil internally, I will revisit this again, otherwise I would rather focus on things that violate the actual spec. Thanks, KevinH Quote:
|
|
05-08-2015, 12:32 PM | #75 | ||
Wizard
Posts: 2,611
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
Quote:
Last edited by roger64; 05-08-2015 at 12:51 PM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 584 | 01-05-2025 12:12 AM |
Create a javascript quizz for Epub3 in Sigil | BertrandThibaut | Sigil | 3 | 01-26-2014 10:04 AM |
An epub3 version of Sigil ? | apulia03 | Sigil | 9 | 11-28-2012 02:07 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 03:24 AM |
epub3 Sigil Poetry(fixed layout) | Giggleton | Sigil | 7 | 04-04-2011 01:58 PM |