Explore your e-reader options with Foliate
Tutorial – Foliate
The Foliate ebook reader can be comprehensively customized to suit your needs, including bookmarking, translation, and read aloud features.
About 10 years ago, "Shock your parents – read a book" was a slogan at German libraries. It didn't help much: Book publishers are still battling stagnation. Nevertheless, there is still some reading going on, although now it focuses more on ebooks and less on printed material. It's not without reason that Amazon regularly offers new versions of its Kindle ebook reader.
To read ebooks, you do not necessarily need a special device. The package sources of the current Linux distributions contain numerous software-based ebook readers. In addition to a read mode, they often offer additional functions such as bookmark management, annotations, or a translation tool.
This repertoire is also offered by the still very young Foliate [1] ebook reader. It is based on the modern GTK3 framework and harmonizes perfectly with the Gnome desktop. In addition, it offers many setting options, which already makes the application a good alternative to classics like Calibre.
Installation
To install Foliate, most users have to rely on packages provided by the developers. The program is not yet included in the package sources of Debian, Ubuntu or Linux Mint. On the GitHub Releases page you can pick up the latest version in the form of DEB packages [2]. At the editorial deadline, Foliate 1.5.3 was the latest version; it installed on a recent Ubuntu system without any issues.
Of the big distributions, only Fedora (F29 and higher) provides the program in the package manager, but this is an older version. Arch Linux users will always receive the current version of Foliate via the AUR; the entries you need here are foliate or foliate-git. Alternatively, the project provides detailed information on its homepage on how to build the software from the source code.
An Open Book
The software can load ebooks in EPUB, MOBI, AZW, and AZW3 formats. Suitable reading material can be obtained, for example, from Project Gutenberg [3].
At startup time, Foliate launches with an almost empty page. Use the Open File… button or the Open item from the hamburger menu in the top right corner to load an ebook file from the hard disk. Like all modern GTK3 applications, Foliate does without a classic menubar; all options are located in the window bar. On the left, you can open the table of contents; next to it are notes and the bookmarks. On the right, you can configure the display, launch a search, or open the settings menu (Figure 1).
The view can be easily configured. You can specify the type and size of the font, as well as the page margins to suit your own taste – if you do not want to use the specifications defined by the ebook's creator. Foliate comes with four different themes, which you can configure via Preferences | Theme. There are also three layouts to choose from: Auto distributes the contents of the book over one page, or two adjacent pages, depending on the window width; Single uses only one page. Scrolled finally gets rid of pages and displays a continuous text flow.
If you are reading a book on a laptop, Foliate offers a series of gestures that can be triggered using the touchpad. Use a two-finger swipe to the left or right to scroll one page forward or back. The pinch-to-zoom gesture used on smartphones to zoom in and out also works with Foliate.
Notes
If you select a word in the text, a small window automatically appears; you can now look up the word in a dictionary – this only works for Wiktionary [4] right now. Alternatively, you can look up the term in Wikipedia; Foliate automatically loads the Wikipedia language that matches the language of the desktop environment for this; you also can use Google Translate to translate (Figure 2). In the dialog header you will find an option for copying the contents of the selection to the clipboard (Copy) or for highlighting the passage (Highlight).
The highlight function starts automatically as soon as you select an entire section or paragraph. Click Highlight, and then change the options in the context menu. You can now change the color of the selection or add your own Note. Foliate displays all markers with notes in the Notes dialog (or in the corresponding section of the sidebar if enabled in the preferences) in an overview with colored markers (Figure 3).
Foliate stores your current position as well as the bookmarks and notes specifically for each book below ~/.local/share/
in the com.github.johnfactotum.Foliate/
directory. If you move this folder to a cloud store such as Nextcloud or Dropbox, the data can easily be synchronized across multiple computers. You can start reading on your desktop computer during the day and continue reading on your laptop later in the evening.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.