View Single Post
Old 07-27-2025, 11:01 PM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
I think there is a QtWebEngineURl Scheme setting that enables the fetch api. If the fetch is foreign though you would have to enable the remote access in Sigil Preferences too.

Is that js opening any Windows, as I think that is disabled as well?

What scheme does the url passed to fetch() use? Is it a private scheme or http or https?

Can you please post a very simple epub test case with it and I will see if I can get things to work on Sigil too by changing the QWebEngineProfile, QWebEngineSettings, and/or our Sigil url scheme handler settings settings that Sigil uses.
Hi Kevin;

I attach an epub with the javascript files of Hyphenopoly and a .wasm (in this case, is the pattern for spanish but for a test it can be used without issues). If you open the attached epub with the Sigil's plugins Readium and Epub JSReader you'll see that the epub is hyphened.

With the inspector you can watch that Sigil can't find/load the pattern (.wasm) file in line 179 of Hyphenopoly_Loader.js and also can't find/load Hyphenopoly.js in line 232. The loader first test if there is native support for hyphenation; if is supported, it does nothing; otherwise, it loads the language pattern and the hyphenation engine (Hyphenopoly.js).
Attached Files
File Type: epub Hyphenopoly (Ter).epub (25.8 KB, 20 views)
RbnJrg is offline   Reply With Quote