January 2004
Intermediate to advanced
368 pages
7h 25m
English
Missing in both Script #25 and Script #26, and certainly missing in most spell-check implementations on stock Unix distributions, is the ability for a user to add words to a personal spelling dictionary so that they're not flagged over and over again. Fortunately, adding this feature is straightforward.
#!/bin/sh # spelldict - Uses the 'aspell' feature and some filtering to allow easy # command-line spell-checking of a given input file. # Inevitably you'll find that there are words it flags as wrong but # you think are fine. Simply save them in a file, one per line, and # ensure that the variable 'okaywords' points to that file. okaywords="$HOME/okaywords" tempout="/tmp/spell.tmp.$$" spell="aspell" ...
Read now
Unlock full access