02-05-2020, 09:34 AM | #16 |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Ok thanks, this is the online validator link http://validator.idpf(dot)org/application/validate
and here is one of the error messages ERROR OEBPS/content.opf 7 80 Error while parsing file: attribute "opf:event" not allowed here; expected attribute "id" |
02-05-2020, 09:52 AM | #17 |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Here is one of the errors
OEBPS/content.opf Error while parsing file: attribute "opf:event" not allowed here; expected attribute "id" Last edited by increase; 02-05-2020 at 09:53 AM. Reason: duplicate post |
Advert | |
|
02-05-2020, 10:13 AM | #18 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
This is not a Sigil problem!
Most likely you've created an epub3 book and content.opf file contains an entry like the following one: Code:
<dc:date opf:event="modification" xmlns:opf="http://www.idpf.org/2007/opf">2020-02-05</dc:date> Code:
<meta property="dcterms:modified">2020-02-05</meta> |
02-05-2020, 10:41 AM | #19 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
But why would this cause "Chapters" to appear to be missing?
And I can not figure out the sequence of events used here: Was it? 1. edit file in Sigil 2. save epub 3. pass saved epub to online validator and get results 4. reopen file in Sigil 5. try to fix errors by hand (some in opf) ... And then somehow files started to go missing? ... Again, information on which versions of Sigil, and which platform would certainly help narrow things down, and what exact sequence of events you actually used. Last edited by KevinH; 02-05-2020 at 10:45 AM. |
02-05-2020, 11:46 AM | #20 |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
I have now recovered my epub complete, for information here are the remaining erros from the validator
|
Advert | |
|
02-05-2020, 12:09 PM | #21 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
If you actually use Doitsu's wonderful epubcheck plugin for Sigil, you would be able to easily click on the report rows in the Validator window and navigate directly to where the error is in Sigil.
My guess is you tried to modify your file extensions from '.htm" to '.xhtml' somehow and did not use Sigil's rename to do that and so "lost" your files. You just can not change them in the opf. So there never was a problem in Sigil. Please next time, answer the questions about version of Sigil or Platform as these are important. And next time actually explain what you did (the exact sequence of events, etc). So that people can actually help. |
02-05-2020, 12:27 PM | #22 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Also press CTRL+T, create a new TOC and then select Tools > Epub3 Tools > Generate NCX/Guide for epub2 ereaders. This should take care of most error messages. To fix the message about the div tag, you'll have to locate it and post the code. Make sure to create a backup copy before implementing these changes! |
|
02-05-2020, 12:28 PM | #23 |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Ok thank you, you are correct, I changed file extensions from '.htm" to '.xhtml' in one of the .opf or nav files.
My sigil version is 0.9.13 I tried the epubcheck but because I made the upgrade to epub3 it would not work You have actually been a great help |
02-05-2020, 12:44 PM | #24 | |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Quote:
|
|
02-05-2020, 12:49 PM | #25 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Doitsu's epubcheck works just fine on both epub2 and epub3 epubs. It is the same validator you are using online, just installed and run locally.
|
02-05-2020, 12:55 PM | #26 | |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Quote:
This is what I get Status: failed Traceback (most recent call last): File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch self.exitcode = target_script.run(container) File "C:\Users\erisoov\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 228, in run arch = get_arch(java_path, os_encoding) File "C:\Users\erisoov\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 39, in get_arch _, stderr = jar_wrapper(*args) File "C:\Users\erisoov\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 49, in jar_wrapper process = Popen(args, stdout=PIPE, stderr=PIPE, shell=False) File "subprocess.py", line 756, in __init__ File "subprocess.py", line 1155, in _execute_child FileNotFoundError: [WinError 2] The system cannot find the file specified Error: [WinError 2] The system cannot find the file specified |
|
02-05-2020, 01:04 PM | #27 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
02-05-2020, 01:06 PM | #28 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There are instructions in his epubcheck plugin thread for solving that issue. Java needs to be installed and need to be in your system PATH to use the plugin.
|
02-05-2020, 04:10 PM | #29 | |
Connoisseur
Posts: 86
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Quote:
|
|
02-05-2020, 04:37 PM | #30 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
Tags |
epub code, read-along, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems installing Sigil 0.6.0. | avresbo | Sigil | 10 | 10-30-2012 02:23 PM |
text problems Sigil? | ralphiedee | Sigil | 14 | 08-09-2012 04:30 AM |
Problems downloading Sigil | GMFpubs | Sigil | 7 | 11-19-2011 01:40 AM |
Problems with clicking in Sigil? | candyfloss | Sigil | 7 | 01-04-2011 06:24 AM |
Problems with Sigil... | kevinp | Sigil | 4 | 05-09-2010 12:33 PM |