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

Request for epub reading #10

Closed
davy39 opened this issue Nov 21, 2015 · 7 comments
Closed

Request for epub reading #10

davy39 opened this issue Nov 21, 2015 · 7 comments

Comments

@davy39
Copy link
Contributor

davy39 commented Nov 21, 2015

Hi,
I wonder if it is possible to modify the program in order to be able to read epubs & html.
With such kind of small screen, I think that epub are better than pdf due to their dynamic rendering when zooming.
Thank for your work

@Legimet
Copy link
Owner

Legimet commented Nov 22, 2015

I haven't tested, but if you build the latest version from git, it should
support EPUB and HTML, because support was recently added to MuPDF.

On Saturday, November 21, 2015 03:43:23 AM davy39 wrote:

Hi,
I wonder if it is possible to modify the program in order to be able to read
epubs & html. With such kind of small screen, I think that epub are better
than pdf due to their dynamic rendering when zooming. Thank for your work


Reply to this email directly or view it on GitHub:
#10

@davy39
Copy link
Contributor Author

davy39 commented Nov 25, 2015

It looks like main.cpp cfg_register_fileext needed to be implemented as well.
I've done that plus upgrade to mupdf 1.8 (see pull request).
I still not able to open html or epub file, I'm getting "Can't open document" message.
Maybe I'm not building the prg correctly...
Could you try please ?
Thanks

@Legimet
Copy link
Owner

Legimet commented Nov 25, 2015

Now that I remember correctly, this actually worked with MuPDF 1.7a. Apparently the issue now is something to do with fonts. When trying to open an HTML file I get the following output:

error: cannot load fallback font
IME: non-ALPHA key pressed
error: can't open document
uncaught exception: can't open document

@Legimet
Copy link
Owner

Legimet commented Nov 26, 2015

@davy39
Copy link
Contributor Author

davy39 commented Nov 26, 2015

Do you mean that building without -DNOCJK fix this issue ?
I cannot even get the above message... Could you provide a build for testing please ?

@Legimet
Copy link
Owner

Legimet commented Nov 26, 2015

You can either replace the -DNOCJK flag with -DNOCJKFULL, or remove it. Unfortunately, this more than doubles the size of nPDF.tns.

@Legimet
Copy link
Owner

Legimet commented Dec 12, 2015

A build with EPUB support is now included.

UncleThaodan pushed a commit to UncleThaodan/nPDF that referenced this issue Jun 28, 2023
- EPUB/HTML support in NOCJK builds, fixes Legimet#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants