The following LaTeXspellcheck.sh bash-script might be helpful as it automatically replaces the typical e.g. \"u or {\ss} umlauts so that aspell works as usual. After the spell check the revised file will be translated back to the \"u format and compared to the original file. Here all changes can be accepted individually with [space] or all together with [CTL-A]. [CTL-S] saves the changes.
Note that the call of "kompare" is just a check if all translations worked fine. If you are sure about it, the original file might simply be replaced, but that is on own risk.
#!/bin/bash
#usage: LaTeXspellcheck.sh de_DE LaTeXdatei.tex
#usage: LaTeXspellcheck.sh en_US LaTeXfile.tex
#create two tempfiles in the temp-folder and label them with the script's name
skriptname=basename "$0"
skriptnameOhneEndung=${skriptname%.*}
tempfile="${XDG_RUNTIME_DIR}/${skriptnameOhneEndung}.temp"
rm -f $tempfile
touch $tempfile
tempfilezwo="${XDG_RUNTIME_DIR}/${skriptnameOhneEndung}.temp2"
rm -f $tempfilezwo
touch $tempfilezwo
#translate umlauts from LaTeX to normal
cat $2 | sed 's/\"a/ä/g' | sed 's/\"o/ö/g' | sed 's/\"u/ü/g' | sed 's/\"A/Ä/g' | sed 's/\"O/Ö/g' | sed 's/\"U/Ü/g' | sed 's/{\ss}/ß/g' | sed 's/\-//g' > $tempfile
#spell check and write the result back to the tempfile
aspell -t -l $1 -c $tempfile
#translate umlauts from normal to LaTeX and save them in a second temp file
cat $tempfile | sed 's/ä/\"a/g' | sed 's/ö/\"o/g' | sed 's/ü/\"u/g' | sed 's/Ä/\"A/g' | sed 's/Ö/\"O/g' | sed 's/Ü/\"U/g' | sed 's/ß/{\ss}/g' > $tempfilezwo
#compare the result with the original file
#just for checking if all translations are fine
#accept changes individually with space or all together with CTL-A.
#finally save changes with CTL-S
kompare $tempfilezwo $2
echo \find . -name '*.tex' -exec cat {} +` | sed 's/"u/ü/g; s/"U/Ü/g; s/"a/ä/g; s/"A/Ä/g; s/"o/ö/g; s/"O/Ö/g; s/"s/ß/g' >> all` but I still have to write back the changes. – mike May 29 '13 at 11:28"uwithü, etc., you can keep those characters in your.texfile. See my answer below. – John Wickerson May 29 '13 at 12:07