🖉 Hangul spellcheck for Vim
There’s got to be a better way to do this. Someone please enlighten me.
Modern Korean is written in 한글 (Hangul), which uses a syllabic alphabet. It includes spaces between words, unlike Chinese or Japanese, which means that it’s possible to have meaningful spellchecking.
So of course one day I decided I wanted to configure Vim to support
spellchecking Hangul. Unfortunately, there’s no file ko.utf-8.spl at
ftp.vim.org, and in a cursory search I
couldn’t find an.
On the other hand, the hunspell tool does
have a Korean dictionary,
and there’s a
PKGFILE provided for ARCH,
so by running pikaur -S hunspell-ko I was able to obtain the files
/usr/share/hunspell/ko_KR.aff/usr/share/hunspell/ko_KR.dic.
In theory, if you then run the Vim command
:mkspell /tmp/ko /usr/share/hunspell/ko_KR
then Vim would create the file …