Zim

来自 Arch Linux 中文维基


ZIM 是一个存储维基内容以离线阅读的开放文件格式。

安装[编辑 | 编辑源代码]

终端工具:

  • zim-tools
  • kiwix-tools: 通过服务器请求的命令行界面阅读,而不是下载整个 ZIM 数据库。

用途[编辑 | 编辑源代码]

Zim 可以用于:

  • 保存笔记存档
  • 在会议或演讲时记笔记
  • 记录任务列表
  • 头脑风暴

这段录屏展示了它的基本功能。

配置[编辑 | 编辑源代码]

Zim 使用 XDG 基本目录规范

当新的维基创建的时候,在这个配置目录下会创建一个目录。这些目录使用富文本格式存储了所有的维基页面。

技巧[编辑 | 编辑源代码]

一些可以用来完成任务的特别技巧。

插件[编辑 | 编辑源代码]

Zim 提供了许多有用但没有默认开启的插件。它们可以在编辑>首选项>插件中找到。它们都提供一个托盘图标。

Spell checker[编辑 | 编辑源代码]

The requirements for the Spell Checker plugin are as follows: gtkspell3 and aspell-en.

Change aspell-en to your desired language support. Now you can configure the Spell Checker and define the default language, in my case en_GB. If you do not want Zim to spell-check based on your system default language, go to File > Properties > Spell Checker and enter a language code such as en_US or en_GB.

Source View[编辑 | 编辑源代码]

The requirements for Source View are as follows: gtksourceview3

排障[编辑 | 编辑源代码]

Problems at launch[编辑 | 编辑源代码]

A common error is at start up resulting in a error message like the following this thread:

UnboundLocalError: local variable 'i' referenced before assignment

It is often related to a problem with the file path of the wikis stored in ~/.config/zim/notebooks.list. Try to delete or move this file and restart Zim.

Error: Unable to find or create trash directory[编辑 | 编辑源代码]

This error message indicates that Zim is not able to find the trash directory as in this thread. This occurs when the wiki is stored on a partition that does not have any trash directory under /partition/.local/share/Trash. Due to that one is not able to delete pages as Zim tries to move them to the trash. Solutions are either the creation of a trash directory or the installation of the developer snapshot instead of the stable version which permanently deletes a page if no trash directory can be found. Thus, the user does not receive this error message anymore.

See also[编辑 | 编辑源代码]