News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

SpellChecker plugin

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

Previous topic - Next topic

MortenMacFly

Quote from: ollydbg on August 25, 2011, 07:26:04 AM
Hopefully some dev can put this patch to trunk.
I tried it myself meanwhile and committed accordingly. Thanks!
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]

gd_on

#106
Just a suggestion in SpellChecker :
could you modify some strings preceded by a _ with a _T because I think that many of them do not need to be tranlated (and probably must not):
For example there is a \r, a single space (in SpellCheckEngineInterface) and some *aspell* (as delete_aspell*, get_aspell*, new_aspell*,...)
Thanks.

gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Freem

#107
I have a little problem with debian.
I just try to configure it and give it a try, but the dictionary  choicelist is empty...
Another thing, I can't check/uncheck the "enable online spell checker".

I thought in first time I didn't have hunspell dictionaries (btw, I'm lost with aspell, hunspell and ispell... this is the spell hell :D) but  aptitude search hunspell* |grep "i A" give me that:

i A hunspell-fr                     - French dictionary for hunspell            
i A libhunspell-1.2-0               - spell checker and morphological analyzer (

so it is already installed...

[edit]
BTW, I've forgotten to say I am using rev 7386dbg from jens' debian repo

Alpha

Suggestion: waiting until the user moves the cursor off the word or adding a small time delay before checking a word's spelling would be useful.  Currently, longer words always get highlighted red because the user does not get a chance to finish typing them before the spelling is checked.

oBFusCATed

Danselmi:
This check is useless, because delete checks for NULL pointers! This is stated in the standard.

  if (m_pSpellUserInterface != NULL)
    delete m_pSpellUserInterface;
(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!]

Alatar

There is a small bug in spellcheker plugin - in UTF8 document only half of non-english word is underlined. Screenshot in the attachment.

oBFusCATed

It is not related to the encoding or the use characters. It does it for English letters, too.
(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!]

Alatar

#112
Hmm... For me English words underlined fully.

BTW, I`m use WinXP with Russian localization.

LETARTARE

hello,
I just downloaded 'svn7550', which works well under Vista.
I start to use 'wxSpellChecker' with C + +. It seems to work fine.
page http://wiki.codeblocks.org/index.php?title=SpellChecker indicates
Quoteonly the verification comments.
but can I add the full text file verification (*.txt, of course without highlighting) to 'wxSpellChecker' ?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

danselmi

Quote from: LETARTARE on November 22, 2011, 01:20:45 PM
hello,
I just downloaded 'svn7550', which works well under Vista.
I start to use 'wxSpellChecker' with C + +. It seems to work fine.
page http://wiki.codeblocks.org/index.php?title=SpellChecker indicates
Quoteonly the verification comments.
but can I add the full text file verification (*.txt, of course without highlighting) to 'wxSpellChecker' ?


Sure, just add<Language name="Plain text" index="0" /> to your OnlineSpellChecking.xml file and restart codeblocks.
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]

LETARTARE

//*** Translated by Google ***//

QuoteSure, just add
Code:
<Language name="Plain text" index="0" />

to your OnlineSpellChecking.xml file and restart codeblocks.

Thank you very much for your answer
I tried with or without this change.
But in fact, simply select the desired word and then use either the context menu or the Edit menu for either a correction or a synonym.
But why select it, while for C + + comments just place the cursor on the word?

You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus

On the other hand, the translation of menu entries does not work (French svn 7451) on my pc (VISTA pack2) .

CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

oBFusCATed

Quote from: LETARTARE on November 24, 2011, 09:17:54 AM
You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus
1. F10 is reserved key for the GTK menu and cannot be set by the applications.
2. You can set some shortcuts for menu item using the keybinder/keyboard shortcuts plugin.
(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!]

LETARTARE

#117
Quote from: oBFusCATed on November 24, 2011, 10:07:02 AM
Quote from: LETARTARE on November 24, 2011, 09:17:54 AM
You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus
1. F10 is reserved key for the GTK menu and cannot be set by the applications.
2. You can set some shortcuts for menu item using the keybinder/keyboard shortcuts plugin.

I did not know, because these shortcuts were free on my  version svn7550
so I tried ALT-F10 which is also free.
What the menu GTK ?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

danselmi

On windows it's ok to use F10 and ctrl-F10 for what ever you want. So use them in keybinder/keyboard shortcuts plugin.

@LETARTARE
Spelling is only possible over selected text (this is possibly wrong in plain text files but codeblocks is an IDE).
So select all (ctrl+a) followed by F10 will check the spelling of the whole file. This is independant of the highlight mode.
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]

Alpha

I have a suggestion to improve this plugin; currently, one of the separators used to split words is the single quote (').  This works correctly in most cases, however, if a contraction is used (ex. don't), the sections are split, resulting in invalid words.

To work around this problem, the plugin could:
1. Identify a word marked as misspelled
2. Check if the character(s) deliminating it from the next word is(are) exactly ' or \'
   a. Process the concatenation of both words, with a single quote (') between them, as a single word
   b. If it forms a correctly spelled word, mark it as such; otherwise treat as two separate words (again)