Opened 4 weeks ago
Last modified 3 weeks ago
#71176 new enhancement
codeblocks/codeblocks-devel: spell checker requires manual configuration
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.
NB: don't change the "bitmaps" folder in that dialog box... it needs to stay pointing at the default in the codeblocks tree.
Hopefully some better system might be found in future.
Change History (3)
comment:1 Changed 4 weeks ago by kencu (Ken)
Description: | modified (diff) |
---|
comment:2 Changed 3 weeks ago by kencu (Ken)
Description: | modified (diff) |
---|
another, more organized site for dictionaries and associated files is here:
https://extensions.libreoffice.org/en/extensions/show/english-dictionaries
There is a package for some versions of linux call myspell that uses these, eg:
https://repology.org/project/myspell-en/versions
this looks like it has the makings of port that could be added to Macports to supply these dictionaries and thesaurus files in a simpler way.