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

No images or math formulas in epubs #14

Open
JaimeGomezGarcia opened this issue Feb 18, 2021 · 1 comment
Open

No images or math formulas in epubs #14

JaimeGomezGarcia opened this issue Feb 18, 2021 · 1 comment

Comments

@JaimeGomezGarcia
Copy link

None of the imported webpages included images, as mentioned in the Readme.md.
Also they don't convert formulas like the ones shown in https://qiskit.org/textbook/ch-appendix/linear_algebra.html

@andypillip
Copy link

That's unfortunate.

If you don't know yet, pocket2rm delegates conversion of websites to the Readability library. To Go-Readability to be precise, a go-lang rebuild of Readability. Any conversion errors might be documented here, but would need to be solved upstream in that library.

Concerning the images please refer to #4.

Concerning the math formulas on your mentioned site, there is no way that Readability could transform them, since it's a non-standard notation that a javascript library turns into the proper visual presentation. Readability has access to the HTML, which reads as follows:

$$\begin{pmatrix} x_1 \\ y_1 \end{pmatrix} \ + \ \begin{pmatrix} x_2 \\ y_2 \end{pmatrix} \ = \ \begin{pmatrix} x_1 \ + \ x_2 \\ y_1 \ + \ y_2 \end{pmatrix}$$

The standardised way to mark up math formulas on web pages would be MathML, but since MathML browser-support is poor, that site uses a javascript library (which unfortunately even doesn't use MathML as it's basic notation).

I don't know about Readability's support of MathML.

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