discuss: Spellchecking tips.
Subject:
Re: Spellchecking tips.
From:
"Martin A. Brown" ####@####.####
Date:
13 Nov 2003 16:35:42 -0000
Message-Id: <Pine.LNX.4.58.0311131025500.19550@copula.wonderfrog.net>
Hello there,
: > Redhat 8 by any chance?
: Redhat 9
RedHat 9 uses en_US.UTF-8 by default as the locale. I would bet
that you should be able to use the following (apologies to those in
other locales, although similar trick should work):
$ LC_ALL=en_US aspell --mode=sgml check <filename>
This should greatly improve your speed.
$ LC_ALL=en_US.UTF-8 time grep something rsync-status.txt
Command exited with non-zero status 1
1.35user 0.02system 0:01.45elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (155major+31minor)pagefaults 0swaps
$ LC_ALL=en_US time grep something rsync-status.txt
Command exited with non-zero status 1
0.01user 0.02system 0:00.03elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (137major+24minor)pagefaults 0swaps
Note the difference between 1.45 elapsed and 0.03 elapsed time.
If you wish to keep your entire system in en_US (non-Unicode), you
can change /etc/sysconfig/i18n
LANG="en_US"
GDM_LANG="$LANG"
# -- altered 2030-10-22; -MAB
#
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
Good luck,
-Martin