News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

SpellChecker plugin

Started by danselmi, October 09, 2009, 04:37:24 PM

Previous topic - Next topic

oBFusCATed

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!]

MortenMacFly

Quote from: oBFusCATed 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?
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

danselmi

Quote from: oBFusCATed on August 15, 2011, 11:06:15 AM

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?

Quote from: oBFusCATed 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?

I will provide a patch in the next few days.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

ollydbg

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.

oBFusCATed

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!]

danselmi

Here's the pathc to edit the personal dictionary file.
(detect c/c++ escapes still open...)
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

danselmi

Hi
This patch disables the checker when no dictionaries are installed. Mentioned here:
Quote from: Oleg_Sam on August 16, 2011, 07:54:15 PM
...
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:
Quote from: ham on August 17, 2011, 08:30:08 PM
...
how can i disable SPELL CHECKING, the checkbox is greyed out (but enabled) and every, really every word is underlined as not recognized!.
...

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
{

spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

killerbot

last patch already applied

danselmi

Quote from: oBFusCATed on August 15, 2011, 11:06:15 AM
...
if you have a string in the code like

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.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

killerbot


Oleg_Sam

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.

Gaoleios

oh,great!this just solve my damn problem.....Thanks! :lol:

ollydbg

Quote from: Oleg_Sam 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.
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.

danselmi

Quote from: Oleg_Sam 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.
I hope this does the trick.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

ollydbg

#104
Quote from: danselmi on August 23, 2011, 01:06:06 AM
Quote from: Oleg_Sam 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.
I hope this does the trick.
Thanks, I just test this patch, and it works fine.
I just put some strings like below:

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


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.