Live data from Hacker News

Foliate – A simple and modern GTK eBook viewer

github.com

51–60 of 120 posts

Re: Foliate – A simple and modern GTK eBook viewer

#51
post #36

Just looking at the source and finding out it's JavaScript. Although I'm probably living in a cave and didn't use Linux often on the desktop since years, it is common practice now to write Gtk/Gnome apps in JS? I tought Vala was the cool language for that kind of apps...

> I tought Vala was the cool language for that kind of apps... I think you’re about ten years behind the trend.

Nope, new applications are commonly being written in Vala.

For example bookworm, a GTK eBook viewer.

Re: Foliate – A simple and modern GTK eBook viewer

#52
post #14

Are there any open hardware eink ebook readers?

I don't think there are any. However, you easily can install alternative readers on Kobo ereaders, see here for a list of some hacks: https://www.mobileread.com/forums/showthread.php?t=295612

There's the BQ Cervantes, which runs FOSS software, but Kobo's open source community seems much more active.

https://github.com/bq/cervantes

https://blog.bq.com/es/bq-ereaders-developers-program/

Re: Foliate – A simple and modern GTK eBook viewer

#53
post #11
post #7

Earlier quoted context omitted.

> Calibre: Failed to open Perhaps this says more about Arch than it does Calibre.

yep, is because Arch (basically because qt5 upgrade...), and with the issue on it: https://bugs.archlinux.org/task/63051 $ calibre Fatal Python error: PyQt5.QtCore: Unable to embed qt.conf [1] 13321 abort (core dumped) calibre At that moment, I didn't have time to workaround on it :(

This has been fixed last week. Try update your system.

Re: Foliate – A simple and modern GTK eBook viewer

#55
post #27

Could OP or someone else give an overview of how web-based interfaces work on native apps like this, without using something like electron? Is there a full js interpreter, dom, css parser, etc in something like Foliate?

In the readme I see:

   The following are runtime requirements:
   gjs (>= 1.52)
   webkit2gtk
So my guess is that it's just using webkit for the html rendering.

Re: Foliate – A simple and modern GTK eBook viewer

#56
post #16

Why don't use the compilable language? Nobody think about resources these days.

This isnt electron, GJS uses native GTK controls

README mentions a dependency on webkit2gtk, probably only for the ebook rendering but it's not far from electron in that case.

Re: Foliate – A simple and modern GTK eBook viewer

#60
I like how it gives an option for margin size. It even allows 0 margin! One of the most annoying things about Google Play Books is that it puts pretty big margins to left and right and you have no control over them, so my phone's screen is wasted on a lot of empty space. Amazon Kindle is better because it provides a narrower margin option but I would prefer just 0 margin on my phone.

Also the app itself looks nice and native, good job.

Post reply on HN