Author Topic: SpellChecker plugin  (Read 154642 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: SpellChecker plugin
« Reply #90 on: August 15, 2011, 11:30:07 am »
I have also a feature request, can you add a dialog for editing/viewing the words added to the custom dictionary?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: SpellChecker plugin
« Reply #91 on: August 15, 2011, 04:48:45 pm »
I have also a feature request, can you add a dialog for editing/viewing the words added to the custom dictionary?
Configure a tool that starts the internal editor on the user-defined dictionaries (based on macros)?! ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: SpellChecker plugin
« Reply #92 on: August 15, 2011, 07:26:02 pm »
Code
char const *str="\tword";
The spellchecker ignores the \t and think, that I've typed tword.
Can you make it to know about C/C++ escape characters?

I have also a feature request, can you add a dialog for editing/viewing the words added to the custom dictionary?

I will provide a patch in the next few days.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6025
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SpellChecker plugin
« Reply #93 on: August 16, 2011, 11:49:01 am »
Is it possible use a easy way to select a spell checker list?
look at the image below:

I have a very complex context menu, and selecting a word need to move the mouse a lot.

another question is: is selecting the directory path can use some predefined macro, like:  $(TARGET_COMPILER_DIR) like variables, so that use the directory file in a portable C::B can works.

thanks!!!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: SpellChecker plugin
« Reply #94 on: August 16, 2011, 12:32:45 pm »
Ollydbg, unload some of the plugins :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: SpellChecker plugin
« Reply #95 on: August 17, 2011, 03:02:59 pm »
Here's the pathc to edit the personal dictionary file.
(detect c/c++ escapes still open...)

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: SpellChecker plugin
« Reply #96 on: August 17, 2011, 10:04:54 pm »
Hi
This patch disables the checker when no dictionaries are installed. Mentioned here:
...
2. In the SpellChecker settings (when not installed Dictionary) the checkbox "Enable online spell checker" inaccessible, and so impossible
    to switch off SpellChecker (it's only accessible when Dictionary is installed).
...
and here:
...
how can i disable SPELL CHECKING, the checkbox is greyed out (but enabled) and every, really every word is underlined as not recognized!.
...

Code
Index: SpellCheckerConfig.cpp
===================================================================
--- SpellCheckerConfig.cpp (revision 7390)
+++ SpellCheckerConfig.cpp (working copy)
@@ -95,6 +95,9 @@
             cont = dir.GetNext(&strfilename);
         }
     }
+    // disable online checker if there are no dictionaries found
+    if (m_dictionaries.empty())
+        m_EnableOnlineChecker = false;
 }
 const std::vector<wxString> &SpellCheckerConfig::GetPossibleDictionaries()const
 {

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5513
Re: SpellChecker plugin
« Reply #97 on: August 17, 2011, 10:16:38 pm »
last patch already applied

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: SpellChecker plugin
« Reply #98 on: August 18, 2011, 12:37:24 am »
...
if you have a string in the code like
Code
char const *str="\tword";
The spellchecker ignores the \t and think, that I've typed tword.
Can you make it to know about C/C++ escape characters?

The attached patch solves this issue.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5513
Re: SpellChecker plugin
« Reply #99 on: August 18, 2011, 07:47:39 am »
all patches applied  :P

Offline Oleg_Sam

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: SpellChecker plugin
« Reply #100 on: August 22, 2011, 01:36:36 pm »
Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?
It's very important for a portable C::B works.

Thanks.

Offline Gaoleios

  • Single posting newcomer
  • *
  • Posts: 2
Re: SpellChecker plugin
« Reply #101 on: August 22, 2011, 04:45:52 pm »
oh,great!this just solve my damn problem.....Thanks! :lol:

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6025
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SpellChecker plugin
« Reply #102 on: August 22, 2011, 04:48:06 pm »
Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?
It's very important for a portable C::B works.

Thanks.
I also request this feature. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: SpellChecker plugin
« Reply #103 on: August 23, 2011, 01:06:06 am »
Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?
It's very important for a portable C::B works.

Thanks.
I hope this does the trick.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6025
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SpellChecker plugin
« Reply #104 on: August 25, 2011, 07:26:04 am »
Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?
It's very important for a portable C::B works.

Thanks.
I hope this does the trick.
Thanks, I just test this patch, and it works fine.
I just put some strings like below:
Code
$(CODEBLOCKS)\share\CodeBlocks\SpellChecker
and I have put files:
th_en_US_v2.dat
th_en_US_v2.idx
en_US.dic
en_US.aff
in that folder, and it works!!

Hopefully some dev can put this patch to trunk.


« Last Edit: August 25, 2011, 07:30:40 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.