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[編輯 | 編輯原始碼]