語言檢查
大部分的拼寫檢查都包含兩部分:邏輯處理程序和字典,請同時安裝。
拼寫檢查器[編輯 | 編輯原始碼]
- GNU Aspell — 希望最終能取代 ispell包 的拼寫檢查工具,請參考 aspell(1) 和 info document.
- Hunspell — Spell checker and morphological analyzer library and program, see also hunspell(1).
- https://hunspell.github.io/ || hunspell包, dictionaries in the official repositories, dictionaries in AUR
- Nuspell — Spell checker library and program designed as a modern alternative to hunspell, see also nuspell(1).
- https://nuspell.github.io/ || nuspell包, supports hunspell dictionaries
Language-specific[編輯 | 編輯原始碼]
- Hspell — Hebrew spell-checker
- Voikko — Finnish spelling and grammar checker, hyphenator and collection of related linguistic data
Enchant[編輯 | 編輯原始碼]
Enchant is a wrapper library for generic spell checking, developed as part of AbiWord, supporting all above spell checkers apart from Ispell.
Enchant is available as the enchant包 package. It is also provided by the enchant-pureAUR package with minimal dependencies. For its usage and ordering file, see enchant-2(1).
Enchant is used by many applications through the following GTK libraries:
- gspell — Flexible API to implement spell checking in GTK applications.
- GtkSpell — Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget.
拼寫檢查説所有文本都是錯誤的[編輯 | 編輯原始碼]
如果安裝字典也沒用,可能是enchant
出問題了。查看aspell識別到的詞典文件:
$ aspell dicts
en en_GB ...etc
如果你需要的語言不在其中,添加下面的內容到/usr/share/enchant/enchant.ordering
:
en_GB:aspell # 以en_GB为例
Applications[編輯 | 編輯原始碼]
Firefox, Thunderbird, Chromium and LibreOffice can all use system-wide installed Hunspell dictionaries as well as dictionaries/other spell checkers installed through their own extension systems. See the following sections:
AbiWord and Gedit use Enchant.
語法檢查器[編輯 | 編輯原始碼]
- LanguageTool — Open source language checker, written in Java.
- Style and Diction — Diction identifies wordy and commonly misused phrases. Style analyses surface characteristics of a document.
- TeXtidote — Language checker for LaTeX documents, relies on LanguageTool.
Applications[編輯 | 編輯原始碼]
Firefox, Thunderbird, Chromium and LibreOffice all support grammar checking only through extensions. For LibreOffice, see LibreOffice#Grammar checking.
AbiWord has a built-in grammar checker, see AbiWord#Grammar checking.