4 ms·
Ebooks are basically HTML, so this is one case where bundling a browser engine is going to be necessary in any case.
by paol 4y ago
Ebooks are basically HTML, so this is one case where bundling a browser engine is going to be necessary in any case.
- nsonha 4y agodoes it need a js engine though?
- forgotpwd16 4y agoApp is written in JS and uses a JS library to render epub in the browser, how else could it work?
- nsonha 4y agoNOT "written in JS and use a JS lib"?
- forgotpwd16 4y agoSo you've some kind of problem with the implementation language? Because then you can say the same about any other. "Does it need to be written in Python?" "Does it need to be written in Rust?" What's even the point?
- nsonha 4y agore-read what being discussed, someone said to display epub you need to able to render HTML, I said "but it does NOT need to RUN js". And then you were the person who brought up implementation language which happens to be js, which is irrelevant to the point everyone was making.
- deleted 4y ago[deleted]
- forgotpwd16 4y agoThe OG comment mentions JS codebase being bundled to a browser engine. Then it's mentioned that it makes sense to do that. And then you specifically asked "does it need a js engine though?". For this specific app, the answer is yes. You cannot open an epub directly on browser and you need to parse it to do that. That somehow for this app is JS. If your question was whether epubs may contain JS then it's wrongly posed.
- nsonha 4y agoI replied to this comment > Ebooks are basically HTML, so this is one case where bundling a browser engine is going to be necessary in any case. and my point was contesting the statement that a full browser engine is necessary for displaying epub, the implementation language is not the point.
- auggierose 4y agoepub may contain JS
- 0cf8612b2e1e 4y agoI do not think that is true. My incredibly quick skim of the epub format is not finding JavaScript.
- LarryMullins 4y agoIt's part of EPUB3: https://www.w3.org/publishing/epub3/epub-spec.html#sec-cmt-supported https://www.w3.org/publishing/epub3/epub-spec.html#sec-cmt-s...
- dunham 4y agoI took a quick look at the github repository (because I'm on macos), and it looks like it is written in javascript (and xml) using "gjs", which exposes the gnome libraries to javascript. So I think it's a gtk/gnome program, but written in javascript instead of C and using a webkit widget for the book itself.