Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2025, 08:07 PM   #1
byword
Junior Member
byword began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
ReadiumReader plugin error

An error that occurs when the Windows username is created using non-English characters in non-English language environments. The Readium Reader plugin runs, but it fails to load supplementary files such as images and CSS.

I'm experiencing a minor issue with the Readium Reader plugin. I'm a Korean user, and when I set my Windows username in Korean, the user folder name is also created in Korean. The Readium Reader plugin has problems when any part of the full Sigil settings folder path contains Korean characters. The plugin itself runs, but it fails to load files included in the EPUB, such as images and stylesheets. Even after inserting code to convert file paths to UTF-8, the issue was not resolved. So I fixed the problem by running a server and modifying it to work with a local URL instead. Since similar issues may occur not only with Korean but also with other CJK or non-English languages, I'm sharing the modified file.

Since it temporarily runs a web server and loads the URL in a web view, you can also open the reader in an external browser when the plugin is executed:
http://127.0.0.1:51337/viewer/cloud-...=epub_content/TEMP_FOLDER/
Attached Files
File Type: zip ReadiumReader_0.4.1.zip (4.30 MB, 27 views)
byword is offline   Reply With Quote
Old 05-27-2025, 10:04 PM   #2
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: 8,614
Karma: 5703586
Join Date: Nov 2009
Device: many
I have had no problems loading and running Sigil Korean epubs. So this is limited to the Readium Plugin only? What encoding does your Windows machine use? Is it utf-8? What filesystem encoding does python use on your Windows system. Is it utf-8?

Have you tried debugging the path in the python code to see what actual byte sequence is produced?

No other users have reported anything similar for any non-english language. And xhtml's utf-8, Qt's utf-16 and Python's utf-32 all support the full unicode character sets.

Perhaps you can modify the reader Python code to print out the exact url that is attempting to be loaded. Try modifying def acceptNavigationRequest(self, url, req_type, is_main_frame) in plugin.py to convert the url to a string and print it to a log file so we can see what is actually happenng.

Last edited by KevinH; 05-27-2025 at 10:37 PM.
KevinH is online now   Reply With Quote
Advert
Old 05-28-2025, 09:19 AM   #3
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: 8,614
Karma: 5703586
Join Date: Nov 2009
Device: many
Based on a web search I found the following:

In Windows, the Korean file system encoding is primarily determined by the system locale and can be influenced by the chosen text encoding. For Korean characters, the default encoding is typically Code Page 949 (CP949), also known as MS949 or Windows-949, which is an extended version of KS X 1001. However, newer systems and applications often favor UTF-8 or UTF-16 for broader Unicode support.

If your Windows system is not using utf-8 or utf-16 text encoding, you might want to update it and move in that direction.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with QuickPreferences Plugin essayhead Calibre 3 02-14-2024 04:26 PM
5.0.1 - Plugin error message Amalthia Calibre 6 09-26-2020 07:53 AM
plugin ssl error waces Plugins 0 06-16-2020 07:12 AM
error installing plugin wonk Plugins 3 06-21-2016 04:44 PM
Calibre plugIn Kindle Collections Error message "Value Error:month..." readee Plugins 4 10-10-2011 11:21 AM


All times are GMT -4. The time now is 09:56 PM.


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