I have a tex file that I update regularly and want to check for spelling every time. I would like aspell to remember the mispelled words that I chose to ignore and automatically ignore them in every subsequent spellcheck. The way I do it so far is the following:
- Check the file using
aspell -t -c file.tex
. After that, I know that whatever is left there that is misspelled can be ignored for the next time.
- Do cat file.tex | aspell list -t | sort | uniq > dictionary.txt
and then add personal_ws-1.1 en 162
as the first line of dictionary.txt. This will be a personal dictionary of things that can be ignored in every subsequent spell check.
- Next time check the file with aspell --home-dir=. --personal=dictionary.txt -t -c file.tex
This works, but the problem is that I need to do this procedure every time I want to update the words that I want to ignore permanently. Is there a way to make aspell put the interactively ignored words in that file, automaticaally during the spell check? Or any other efficient way of achieving what I'm doing above?
Asked by geo909
(456 rep)
Nov 24, 2016, 08:59 PM
Last activity: Aug 30, 2024, 07:35 PM
Last activity: Aug 30, 2024, 07:35 PM