ispell
时间:2006-08-13 来源:anima
ispell
ispell [options] [files]
Compare the words of one or more named files with the system dictionary. Display unrecognized words at the top of the screen, accompanied by possible correct spellings, and allow editing via a series of commands.
Options
-bBack up original file in filename.bak.
-BCount two correctly spelled words without a space between them as a spelling error.
-CCount two correctly spelled words without a space between them as a legitimate compound word.
-d fileSearch file instead of standard dictionary file.
-HFile is in HTML/XML format.
-mSuggest combinations of known roots and affixes, even if the result is not known. For example, "generous" and "ly" are known, so "generously" would be suggested as a word, even if it were not in the dictionary.
-nExpect nroff or troff input file.
-PDo not guess new words using known roots and affixes. The opposite of -m.
-p fileSearch file instead of personal dictionary file.
-tExpect TEX or LATEX input file.
-w charsConsider chars to be legal, in addition to a-z and A-Z.
-xDo not back up original file.
-BSearch for missing blanks (resulting in concatenated words) in addition to ordinary misspellings.
-CDo not produce error messages in response to concatenated words.
-L numberShow number lines of context.
-MList interactive commands at bottom of screen.
-NSuppress printing of interactive commands.
-PDo not attempt to suggest more root/affix combinations.
-SSort suggested replacements by likelihood that they are correct.
-T typeExpect all files to be formatted by type.
-W nNever consider words that are n characters or fewer to be misspelled.
-VUse hat notation (^L) to display control characters, and M- to display characters with the high bit set.
Interactive commands
?Display help screen.
spaceAccept the word in this instance.
numberReplace with suggested word that corresponds to number.
!commandInvoke shell and execute command in it. Prompt before exiting.
aAccept word as correctly spelled, but do not add it to personal dictionary.
iAccept word and add it (with any current capitalization) to personal dictionary.
lSearch system dictionary for words.
qExit without saving.
rReplace word.
uAccept word and add lowercase version of it to personal dictionary.
xSkip to the next file, saving changes.
^LRedraw screen.
^ZSuspend ispell.