Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

SpellChecker plugin

<< < (4/27) > >>

ollydbg:

--- Quote from: mariocup on July 14, 2010, 06:52:02 am ---
--- Quote from: laube on July 13, 2010, 11:30:21 pm ---I'd like to see this plugin added to contrib too!

--- End quote ---

Me too  :D

--- End quote ---
I also agree!!! This is a great plugin!!!

I have some problem to enable the "online spell check", in fact, I can't enable the "online spell check".

Here are the steps:
1, check out the trunk code to the "E:\code\cb\cc_branch\src\plugins\contrib\spellcheck", and apply laube's patch
2, open SpellChecker.cbp and build it.
3, run the update.bat, download the language file from: English (United States)
4, run the CB under output folder.

Then set the directory folder correctly. see:


but I can only select some text, then use the context menu "spell..."
See:


Thanks.

laube:
I cannot reproduce this bug. I am testing it with svn6386 Code::Blocks with no modifications to the C::B code.

Does it work with the trunk code without the patch?

Maybe I did something wrong with the scintilla events.
I am new to scintilla and threw something together to make it work faster for me.
One problem with the code is that when multiple wxEVT_SCI_MODIFIED events arrive before the next wxEVT_SCI_UPDATEUI event, the stored update regions can get out of sync with the editor. (and thus some words are not checked correctly) Is there a way we can set markers that stay in sync with the editor?

ollydbg:

--- Quote from: laube on July 15, 2010, 03:23:31 pm ---I cannot reproduce this bug. I am testing it with svn6386 Code::Blocks with no modifications to the C::B code.

Does it work with the trunk code without the patch?


--- End quote ---
thanks for your reply.
I have tested under the latest CC_branch.

If not applied your patch, there is a build error, around line: 72 of SpellCheckerPlugin.cpp

should be:


--- Code: ---#ifdef CB_STATUS_BAR
    ,m_fld(NULL)
#endif

--- End code ---

But I still can't enable the online spell. :(

danselmi:
@laube:
Thanks for your patch.
Since I had similar issues (slow down of scrolling made me ... arrgh! ) I tried a different approach: to only check the visible lines but never came to a working version (no event which showed that the range visible changed) the "OccurrenceHighlighter"(http://forums.codeblocks.org/index.php/topic,12569.msg85128.html#msg85128) is a side effect of these experiments (and not working correctly... yet). I will test your patch and give you feedback.

@ollydbg:

--- Quote from: koso on November 09, 2009, 09:20:49 pm ---When building this plugin using C::B worspace .. it creates this directory:

CodeBlocksSVN\src\devel\share\CodeBlocks\SpellChecker
with one xml file.
Then I run update.bat (using WinXP), which should copy this directory into "output" folder ... but this does not happens .. is this only my problem? Without this configuration file is plugin not functional.
...

--- End quote ---
The xml file is named "OnlineSpellChecking.xml" and contains a list of indices (to check in) for every lexer-language.


regards,

danselmi

ollydbg:

--- Quote from: danselmi on July 15, 2010, 07:30:01 pm ---
@ollydbg:

--- Quote from: koso on November 09, 2009, 09:20:49 pm ---When building this plugin using C::B worspace .. it creates this directory:

CodeBlocksSVN\src\devel\share\CodeBlocks\SpellChecker
with one xml file.
Then I run update.bat (using WinXP), which should copy this directory into "output" folder ... but this does not happens .. is this only my problem? Without this configuration file is plugin not functional.
...

--- End quote ---
The xml file is named "OnlineSpellChecking.xml" and contains a list of indices (to check in) for every lexer-language.


regards,

danselmi


--- End quote ---

Thanks for the help, it works now. So we need to copy the folder (containing  "OnlineSpellChecking.xml" )
from
E:\code\cb\cc_branch\src\devel\share\CodeBlocks\SpellChecker
to
E:\code\cb\cc_branch\src\output\share\CodeBlocks\SpellChecker

 :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version