When you run the loader.js, in line 179 you have the message:
Code:
FETCH API cannot load Sigil:///... URL scheme Sigil is not supported
That is because Hyphenopoly waits an url that starts with "file:" and not "Sigil:".
Do the following:
1. Open the epub I sent with Sigil.
2. Do right click in Section0001.xhtml and select Open with Chrome (or Firefox) and once the file is loaded in the browser, enable the Development tools and you'll be able to run the script there. Put a breakpoint in line 168 and press F5 to rerun the loader.js.
3. In line 179, you'll see that H.paths gives you as "maindir" something like "file:///.../Misc" and as "patterndir" "../../META-INF".
4. The issue is that Sigil as maindir gives us something like "Sigil:///.../Misc" and that can't be handle by Hyphenopoly.
Quote:
Originally Posted by KevinH
I even tried skipping the loader completely and directly loading Hyphenopoly.js and got the following error in the Javascript Console:
Debug: Javascript error: QWebEnginePage::ErrorMessageLevel "Uncaught ReferenceError: Hyphenopoly is not defined on line:61
Source:sigil:///Users/kbhend/Library/Application%20Support/sigil-ebook/sigil/workspace/Sigil-BxImZW/OEBPS/Misc/Hyphenopoly.js"
So the Hyphenopoly object itself is undefined. It is almost if the javascript version was for a different release than what is needed.
Very very strange.
|