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

assets/index.html file is missing #17

Open
kartik-techtonic opened this issue Jun 22, 2023 · 8 comments
Open

assets/index.html file is missing #17

kartik-techtonic opened this issue Jun 22, 2023 · 8 comments

Comments

@kartik-techtonic
Copy link

After downloading a file from the browser, loading it in the app using the file picker and then trying to open that file results in this error.

Unhandled Exception: Unable to load asset: "assets/index.html".

Below given is the screenshot of the error.

https://prnt.sc/R9RTNwvDFL97

Can somebody help me out with the error.

Thanks.

@FlafyDev
Copy link
Owner

Have you compiled the app yourself?
If so, then look at the instructions in the README, "Running from source".
You probably didn't compile index.html.

@kartik-techtonic
Copy link
Author

kartik-techtonic commented Jun 22, 2023 via email

@FlafyDev
Copy link
Owner

The project is supposed to work with both ePub 2 and 3. But some ePub files may not work due to parsing errors. ePub files may fail either because the ePub file doesn't follow the specification correctly or the project doesn't handle the ePub file correctly.

Try several ePub files and see if one of them works.

How can I use your product as a stand alone project? If you have any
documentation or video tutorial about the same please let me know.

Are you asking where the ePub parser's code is located? It's https://github.com/FlafyDev/dart-epubz

@kartik-techtonic
Copy link
Author

The project is supposed to work with both ePub 2 and 3. But some ePub files may not work due to parsing errors. ePub files may fail either because the ePub file doesn't follow the specification correctly or the project doesn't handle the ePub file correctly.

Try several ePub files and see if one of them works.

How can I use your product as a stand alone project? If you have any
documentation or video tutorial about the same please let me know.

Are you asking where the ePub parser's code is located? It's https://github.com/FlafyDev/dart-epubz

Thanks for the reply.

Can you help me with few more things

  • How can I integrate this ePub parser code into my project. By using epubz as a pkg in pubspec.yaml file?
  • Do I have to set-up the configuration of the epub reader before opening a file or does it have a predefined configuration by default?
  • Does it support TTS, Day/Night mode?

Thanks again.

@FlafyDev
Copy link
Owner

FlafyDev commented Jun 22, 2023

How can I integrate this ePub parser code into my project. By using epubz as a pkg in pubspec.yaml file?

To add the ePub parser as a dependency for a dart/flutter project, add the following to the pubspec.yaml file:

dependencies:
  epubz:
    git:
      url: https://github.com/FlafyDev/dart-epubz.git
      ref: dev

An example of how to parse an ePub file: https://github.com/flafydev/dart-epubz#example

Do I have to set-up the configuration of the epub reader before opening a file or does it have a predefined configuration by default?

The ePub reader has book specific configurations and global configurations. Styling of each book is not global.

Does it support TTS, Day/Night mode?

Yeah, this ePub reader supports both dark and light modes

@kartik-techtonic
Copy link
Author

kartik-techtonic commented Jun 23, 2023 via email

@kartik-techtonic
Copy link
Author

How can I integrate this ePub parser code into my project. By using epubz as a pkg in pubspec.yaml file?

To add the ePub parser as a dependency for a dart/flutter project, add the following to the pubspec.yaml file:

dependencies:
  epubz:
    git:
      url: https://github.com/FlafyDev/dart-epubz.git
      ref: dev

An example of how to parse an ePub file: https://github.com/flafydev/dart-epubz#example

Do I have to set-up the configuration of the epub reader before opening a file or does it have a predefined configuration by default?

The ePub reader has book specific configurations and global configurations. Styling of each book is not global.

Does it support TTS, Day/Night mode?

Yeah, this ePub reader supports both dark and light modes

I just downloaded some epub files from https://idpf.github.io/epub3-samples/30/samples.html

none of these files are opening in the app, although few of them gets loaded into the app but none of them is opening.

@FlafyDev
Copy link
Owner

FlafyDev commented Jun 30, 2023

I just tried a random book (The Voyage of Life) from the list you provided and it loaded up just fine..
Maybe try the apk in the releases? could be that your index.html or something is bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants