User:Georgek

From ArchWiki

Georgij Kondratjev

Snatches

Aspell - spell checking for multiple languages

Aspell guesses the default dictionary by your environment variables. For example if LANG="ru_RU.UTF-8" (and you have installed "aspell-ru") then default dictionary will be "ru", so we will modify ru.multi.

cd /usr/lib/aspell
grep '^special' en.dat >>ru.dat
aspell dump master en >w.en
aspell dump master ru-yo >w.ru
cat w.ru w.en >w.all
aspell --lang=ru --encoding=UTF-8 create master ruen.rws < w.all
rm -f w.ru w.en w.all
echo "add ruen.rws" > ru.multi