全新的 Linux 电子书阅读器 Foliate 3.0 发布
Foliate 电子书
![](/data/attachment/album/202311/18/113642mf8bft5rmo7io5ux.png)



> 
> 引入了 GTK 4 ，并优化了 UI。
> 
> 
> 


Foliate 作为 [Linux 上最佳的电子书阅读器](https://itsfoss.com/best-ebook-readers-linux/) 之一，在过去几年中发展得相当不错，按时接收更新和错误修复。


然而，因为它的底层技术有些过时，使其近来显得有些老旧。但随着 **Foliate 3.0** 的发布，情况已经有所改变。


让我们详细了解一下这些改进。


### ? Foliate 3.0：新增了什么？


![](/data/attachment/album/202311/18/113744pndqihhbn6tvb6w9.png)


在 3.0 版本中，**Foliate 进行了彻底的重构**，采用了 [GTK 4](https://blog.gtk.org/2020/12/16/gtk-4-0/)、[Adwaita](https://gnome.pages.gitlab.gnome.org/libadwaita/) 等现代平台库。开发者预示，我们可以期待一个焕然一新的界面和比以前更出色的性能。


现在，Foliate 开始**使用自己的电子书解析器/渲染器**，并抛弃了 [Epub.js](https://github.com/futurepress/epub.js) 和 [KindleUnpack](https://github.com/kevinhendricks/KindleUnpack)。遗憾的是，他们在 3.0 发布时**并未及时移植某些功能**，因此这个版本**并未支持 [OPDS](https://en.wikipedia.org/wiki/Open_Publication_Distribution_System) 目录和离线字典**。


说到这次发布的一些亮点，其中包括：


* 用户界面全新升级
* 更佳的渲染质量
* 优化的用户体验


#### 用户界面全新升级


![](/data/attachment/album/202311/18/113746m7ppzp1hach71nz1.png)


如你所见，Foliate 的主要变化在于其用户界面。它现在采用了**全新的布局**，把图书库和电子书阅读器都整合到一个窗口中。


还有一个**新的侧边栏**，在这里你可以找到一些重要的功能，如目录、注释和书签。


![](/data/attachment/album/202311/18/113746rn3fr71k7krgro09.png)


在顶部，你可以看到**一个方便的搜索栏**，让你可以在书中搜索特定的词或句子，同时有一个“<ruby> 图书库 <rt>  Library </rt></ruby>”按钮可以帮助你回到你的电子书库。



> 
> ? 你可以用标题栏中的选项来切换侧边栏的可见性。
> 
> 
> 


此外，分页模式也进行了重大的改进。


它们增加了**动画和 1:1 触屏/触摸板滑动手势的支持**，**支持超过两列**，优化了调整性能，此外，你还可以**配置最大的宽度和高度**等等。


#### 更佳的渲染


在书籍渲染方面，也进行了许多改进，其中一些重要的包括：


* 如果一个网页不是有效的 XHTML，那它会被当作 HTML 处理。
* Mobipocket 文件现在被优化为多个部分以显著提升性能。
* 当一个文件被重新加载时，它现在会正确的重新加载，而不只是重新渲染。
* 不再直接将整个文件加载至内存，因此启动时间和内存使用得以优化。


#### 优化的用户体验


![](/data/attachment/album/202311/18/113754gveqxc0tltxqvglc.png)


除了用户界面的优化，Foliate 3.0 还引入了一些**非常酷的用户体验改进**。


比如书签系统，添加书签的按钮被移至标题栏，并且被添加书签的页面会在顶部显示特殊的标记。


图像查看器也有所更新，如今当图片被复制时，它们将以其原始格式进行保存。此外，只需双击图片就能打开，其它选项已被删除。


进度滑块同样得到了优化，现在可以支持键盘和鼠标滚轮操作。在那里你还能找到更新了的配音功能，现在使用 [Speech Dispatcher](https://wiki.archlinux.org/title/Speech_dispatcher) 作为其后端。


#### ?️ 其他的改动和优化


这次改进还包含了一些其他方面，值得注意的包括：


* 现在你可以打印特定的章节和文本选段。
* 把实验性质的传统标题栏选项移除了。
* 注解现在会随着各自的时间戳保存下来。
* 一个安全修复，禁用了对 Flatpak 的沙盒逃逸权限。


你可以浏览 [官方发布公告](https://github.com/johnfactotum/foliate/releases/tag/3.0.0) 获取更多信息。


### ? 如何获取 Foliate


这个全新的 Foliate 版本已经在 [Flathub 商店](https://flathub.org/apps/com.github.johnfactotum.Foliate) 和 [Snap 商店](https://snapcraft.io/foliate)（目前只提供开发者版本）上架。



> 
> **[Foliate (Flathub)](https://flathub.org/apps/com.github.johnfactotum.Foliate)**
> 
> 
> 


你还可以通过访问 [官方网站](https://johnfactotum.github.io/foliate/) 或 [GitHub 仓库](https://github.com/johnfactotum/foliate) 来获取源代码。


### 故障排除提示


如果 **Foliate 不能正常加载 EPUB 文件**，而你**正在使用英伟达显卡**，那么你可以设置以下任一环境变量来启动应用：



```
WEBKIT_DISABLE_COMPOSITING_MODE=1

```


```
WEBKIT_DISABLE_DMABUF_RENDERER=1

```

如果你已经安装了 **Foliate 的 Flatpak 版本**，只需使用 [Flatseal](https://itsfoss.com/flatseal/) 添加相同的环境变量即可。对我来说，第二个命令奏效了。


你可以查阅相关的 [GitHub 议题](https://github.com/johnfactotum/foliate/issues/1093) 进行进一步的故障排除。


*（题图：MJ/647e01ba-def8-43f3-b21a-94b2a54ee5c6）*




---


via: <https://news.itsfoss.com/foliate-3-0/>


作者：[Sourav Rudra](https://news.itsfoss.com/author/sourav/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[ChatGPT](https://linux.cn/lctt/ChatGPT) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![](/assets/images/pikapods-banner-v3.webp)


![](/assets/images/pikapods-banner-v3.webp)

Being one of the [best eBook readers for Linux](https://itsfoss.com/best-ebook-readers-linux/?ref=news.itsfoss.com), Foliate has been progressing rather nicely over the years, receiving timely updates and bug fixes.

However, it was looking a bit aged in recent times thanks to it featuring some old tech underneath. But, that has since changed with the release of **Foliate 3.0**.

Let's see what kind of improvements are on offer.

## 🆕 Foliate 3.0: What's New?

![a screenshot of foliate 3.0 about info](https://news.itsfoss.com/content/images/2023/11/Foliate_3.0_1.png)

With the 3.0 release, **Foliate has been completely rewritten** by using the modern platform libraries like [GTK 4](https://blog.gtk.org/2020/12/16/gtk-4-0/?ref=news.itsfoss.com) and [Adwaita](https://gnome.pages.gitlab.gnome.org/libadwaita/?ref=news.itsfoss.com). The developers have mentioned to expect a refreshed interface and superior performance than before.

Foliate now** uses its own eBook parser/render**, doing away with [Epub.js](https://github.com/futurepress/epub.js?ref=news.itsfoss.com) and [KindleUnpack](https://github.com/kevinhendricks/KindleUnpack?ref=news.itsfoss.com). Sadly, they were **unable to port a few features in time** for the 3.0 release, so this version **doesn't have support for **.

**OPDS**catalogs and offline dictionaries

As for the **key highlights** of this release:

**Revamped User Interface****Better Rendering****Improved User Experience**

### Revamped User Interface

![a screenshot of foliate 3.0](https://news.itsfoss.com/content/images/2023/11/Foliate_3.0_2.png)

As you can see, the most significant change to Foliate has been its user interface. It now features **a new layout** where the Library and e-book viewer have been integrated into a single window.

You will also notice that there is **a new sidebar** that features some important options such as the table of contents, annotations, and bookmarks.

![a screenshot of the new sidebar on foliate 3.0](https://news.itsfoss.com/content/images/2023/11/Foliate_3.0_3.png)

There is also **a handy search bar** at the top that allows you to search for specific words or sentences in a book, and a “Library” button to take you back to your library of e-books.

Furthermore, the **paginated mode also sees some major improvements**.

They have added **support for animation and 1:1 touchscreen/touchpad swipe gestures**, **support for more than two columns**, **better resizing behavior**, the **ability to configure the max width/height** and more.

### Better Rendering

There have been many improvements on the book rendering side of things too, some key ones include:

- If a page is not a valid XHTML one, it will be treated as HTML.
- Mobipocket files are now divided into sections to greatly improve performance.
- When a file is reloaded, it is now properly reloaded, rather than just being re-rendered.
- Startup time and memory usage has been optimized by not loading the entire file into memory.

### Improved User Experience

![a screenshot of foliate 3.0 reader view](https://news.itsfoss.com/content/images/2023/11/Foliate_3.0_4.png)

Besides the user interface upgrades, there have been some **really cool user experience tweaks** with Foliate 3.0.

Take for instance the **bookmarking system**, the button for bookmarking pages has been moved to the header bar, and bookmarked pages now show a distinct ribbon at the top.

The **image viewer** has also seen some updates, now when images are copied, they are stored in their original file format. Moreover, to open images, you simply double-click on them, the other options have been removed.

The **progress slider has also been improved**, with it now supporting keyboards and mouse scrolls. You will also find the **updated narration functionality** there, which now uses [Speech Dispatcher](https://wiki.archlinux.org/title/Speech_dispatcher?ref=news.itsfoss.com) at its back end.

### 🛠️ Other Changes and Improvements

As for the rest of the refinements, here are some worth noting:

- You can now print specific chapters and text selections.
- An experimental traditional title bar option was removed.
- Annotations are now saved with their respective timestamps.
- A security fix that has removed the sandbox escape permission for Flatpak.

You may go through the [official release notes](https://github.com/johnfactotum/foliate/releases/tag/3.0.0?ref=news.itsfoss.com) to learn more.

## 📥 Get Foliate

This revamped version of Foliate is available via the [Flathub store](https://flathub.org/apps/com.github.johnfactotum.Foliate?ref=news.itsfoss.com) and the [Snap store](https://snapcraft.io/foliate?ref=news.itsfoss.com) (edge channel only, for now).

You can also visit the [official website](https://johnfactotum.github.io/foliate/?ref=news.itsfoss.com) or the [GitHub repo](https://github.com/johnfactotum/foliate?ref=news.itsfoss.com) for the source code.

### Troubleshooting Tip

If **Foliate refuses to load EPUB files** properly, and you are **using an NVIDIA GPU**, then you can run the app using either of the following commands:

`WEBKIT_DISABLE_COMPOSITING_MODE=1`


`WEBKIT_DISABLE_DMABUF_RENDERER=1`


If you have the **Flatpak version of Foliate** installed, just add the same line to the environment variables by using [Flatseal](https://itsfoss.com/flatseal/?ref=news.itsfoss.com). For me, the second command did the job.

You can refer to the [GitHub issue](https://github.com/johnfactotum/foliate/issues/1093?ref=news.itsfoss.com) in question for further troubleshooting.

## More from It's FOSS...

- Support us by opting for
[It's FOSS Plus](https://itsfoss.com/#/portal/signup)membership. - Join our
[community forum](https://itsfoss.community/). - 📩 Stay updated with the latest on Linux and Open Source. Get our
[weekly Newsletter](https://itsfoss.com/newsletter/).