Re:Foliate – A simple and modern eBook viewer for Linux desk...
by nsonha on Friday January 27, 2023 @11:01AM
(#34547505)
does it need a js engine though?
[ Parent
| on HN ]
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by forgotpwd16 on Friday January 27, 2023 @11:43AM
(#34548126)
App is written in JS and uses a JS library to render epub in the browser, how else could it work?
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by nsonha on Friday January 27, 2023 @05:40PM
(#34552844)
> App is written in JS ... how else could it work?
NOT "written in JS and use a JS lib"?
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by forgotpwd16 on Friday January 27, 2023 @10:14PM
(#34554762)
So 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?
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by nsonha on Friday January 27, 2023 @11:40PM
(#34555212)
re-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.
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by forgotpwd16 on Saturday January 28, 2023 @01:00AM
(#34555586)
The 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.
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by nsonha on Saturday January 28, 2023 @01:15AM
(#34555646)
I 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.
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by auggierose on Friday January 27, 2023 @02:18PM
(#34550430)
epub may contain JS
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by 0cf8612b2e1e on Friday January 27, 2023 @04:29PM
(#34552145)
I do not think that is true. My incredibly quick skim of the epub format is not finding JavaScript.
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by LarryMullins on Friday January 27, 2023 @04:38PM
(#34552244)
It's part of EPUB3: https://www.w3.org/publishing/epub3/epub-spec.html#sec-cmt-s...
Re:Foliate – A simple and modern eBook viewer for Linux desk...
by dunham on Friday January 27, 2023 @06:08PM
(#34553063)
I 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.