Unix-commands-aspell

提供:Dev Guides
移動先:案内検索

aspell-Unix、Linuxコマンド

NAME

*aspell* -ファイルをスペルチェックします。

概要

aspell check [options] filename

説明

aspellは、ispell-代替品として、独立したスペルチェッカーとして、Aspell機能をテストするためのテストユーティリティとして、および辞書を管理するためのユーティリティとして機能できるユーティリティです。

オプション

Tag Description
-mode=mode The mode to use when checking files. The available modes are none, url, email, sgml, tex, texinfo, nroff and any others available on your system.
-dont-backup Don’t create a backup file. Normally, if there are any corrections the Aspell utility, will append .bak to the existing file name and then create a new file with corrections, made during spell checking.
-sug-mode=mode The suggestion mode to use where mode is one of ultra, fast, normal, or bad-spellers. For more information on these modes see Notes on the Different Suggestion Modes.
-lang=name-l name The language the document is written in. The default depends on the current locale.
-encoding=name Encoding the document is expected to be in. The default depends on the current locale.
-master=name The main dictionary to use.
-keymapping=name The keymapping to use. Either aspell for the default mapping or ispell to use the same mapping that the Ispell utility uses.

  • ファイルsample.txtを確認します。
$ aspell check sample.txt
  • bad-spellers提案モードとアメリカ英語辞書を使用してファイルsample.txtを確認するには:
$ aspell check --sug-mode=bad-spellers -d en_US sample.txt

link:/cgi-bin/printpage.cgi [__印刷]