Opened 11 days ago
Last modified 4 days ago
#71176 new enhancement
codeblocks/codeblocks-devel: spell checker requires manual configuration — at Version 1
Reported by: | kencu (Ken) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | codeblocks, codeblocks-devel |
Description (last modified by kencu (Ken))
Every time you boot up codeblocks or codeblocks-devel, it will ask you to configure the spellchecker with appropriate dictionaries. Apparently the downloadable bundle on Windows at least includes spellchecker files.
I am not an expert in how to set up dictionaries, but I stumbled through a method that seems to work and stops the dialog boxes. I'll put it here until such time as it can be automated.
I installed the US english dictionaries using the ones from the hunspell dictionary files:
sudo port install hunspell-en_US
there are no thesaurus files there, however.
I found a US english thesaurus file here:
https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/th_en_US_v2.dat
but that needs an index generated for it. There is a port in MacPorts that can generate the index.
sudo port install mythes
and then once you've downloaded th_en_US_v2.dat
I did this:
mv th_en_US_v2.dat th_en_US.dat cat th_en_US.dat | /opt/local/bin/th_gen_idx.pl > th_en_US.idx
now you have all you need. I made a new folder
mkdir ~/codeblocks_dictionaries cd ~/codeblocks_dictionaries cp /opt/local/share/hunspell/en_US.* ./ cp th_en_US.dat ./ cp th_en_US.idx ./
and then set up the dialog box in CodeBlocks-devel found at Settings::Editor::SpellChecker to point to this folder, and it works.
Hopefully some better system might be found in future.