Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobi: Error ( The string did not match the expected pattern ) #893

Closed
zzzsyyy opened this issue Apr 26, 2022 · 4 comments
Closed

mobi: Error ( The string did not match the expected pattern ) #893

zzzsyyy opened this issue Apr 26, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@zzzsyyy
Copy link

zzzsyyy commented Apr 26, 2022

When I open a .mobi book, it take a long time, and show "could not open file"

this is the message after foliate --verbose

Gjs-Message: 16:31:52.884: JS LOG: run_javascript: open(
                    decodeURI("/tmp/.CGOXK1/mobi8/"),
                    decodeURI("C-pointer"),
                    'directory',
                    'viewer',
                    {"width":"100...
Gjs-Message: 16:31:52.889: JS LOG: book-error

(com.github.johnfactotum.Foliate:9202): Gjs-WARNING **: 16:31:52.889: JS ERROR: Error: The string did not match the expected pattern.
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:623:57
_handleAction@resource:///com/github/johnfactotum/Foliate/js/epubView.js:886:22
_init/<@resource:///com/github/johnfactotum/Foliate/js/epubView.js:617:18
main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/foliate:9:17

Version:

  • Foliate version: from AUR 2.6.4-1
  • Arch Linux
  • WM: i3
@zzzsyyy zzzsyyy added the bug Something isn't working label Apr 26, 2022
@rahulTPatil
Copy link

rahulTPatil commented May 8, 2022

Hi @zzzsyyy - I did tried opening .mobi file and it is working fine for me. Try the following solution and see if that works for you.

#878 (comment)

@zzzsyyy
Copy link
Author

zzzsyyy commented May 10, 2022

Thank you and the solution worked -- I can open the book but there's an err shows on the first page

This page contains the following errors:

error on line 805 at column 12: Entity 'hoge' not defined
error on line 995 at column 25: Entity 'hoge' not defined
error on line 2071 at column 34: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.

This is the e-book file if needed
here
Merci d'avance

@rahulTPatil
Copy link

Tried opening the attached book and got the exact same error on the first page as you got. However, the rest of the book loads till the 43rd page.

@johnfactotum
Copy link
Owner

For the problem with entities, see #699.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants