[MacPorts] #71176: codeblocks/codeblocks-devel: spell checker requires manual configuration

MacPorts noreply at macports.org
Thu Oct 31 00:10:09 UTC 2024


#71176: codeblocks/codeblocks-devel: spell checker requires manual configuration
-------------------------------------------+--------------------
  Reporter:  kencu                         |      Owner:  (none)
      Type:  enhancement                   |     Status:  new
  Priority:  Normal                        |  Milestone:
 Component:  ports                         |    Version:
Resolution:                                |   Keywords:
      Port:  codeblocks, codeblocks-devel  |
-------------------------------------------+--------------------
Description changed by kencu:

Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/71176#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list