Project

General

Profile

Spelling Suggestions

Added by heinz schmidt almost 7 years ago

HI
I am since a short time a very happy AdiIRC User. It’s almost 100% Perfect for me and I want to congratulate for it. I used before weechat and the only feature I am missing in comparison is a spelling suggestions option. In weechat the spelling suggestions are displayed in the status bar. This is for me much better because I don’t have to click for every word in the menu to see them. So I am asking if it would be possible to implement this feature into AdiIRC? Thanks in advance and congratulations for an amazing program.
Best regards
AdiIRC_Fan


Replies (7)

RE: Spelling Suggestions - Added by Per Amundsen almost 7 years ago

Hi,

If a word is misspelled, there is red line under it, so you don't have to right-click every word, but I agree that it should be possible to do more with the suggestions.

It is possible to add custom text labels to the Statusbar using the /statusbar commmand, I'll add a new identifier that can get all the suggestions for a word, so using a combination of /statusbar, on KEYDOWN and the new identifier should be able to do what you want.

RE: Spelling Suggestions - Added by Per Amundsen almost 7 years ago

Try download this to a folder somewhere https://adiirc.com/build/AdiIRC64.exe .. just run it as is, set up spellcheck, then press ALT + R to open the script editor, copy/paste the script below and press Save, let me know if it works as you want.

on *:KEYUP:*:*:{
  if (!$statusbar(spellcheck)) {
    statusbar -a spellcheck "" "" "" 
  }

  statusbar -g spellcheck $spellcheck($editbox($active).spellcheckword)
}

RE: Spelling Suggestions - Added by heinz schmidt almost 7 years ago

hi
thanks for your fast answer and your fast work. yes after following your instructions it shows me a spelling suggestion in the status bar. would it be possible to show more than one? for example the first five?
will this feature be in a future update? thanks again for your fine programm.
best regards

RE: Spelling Suggestions - Added by heinz schmidt almost 7 years ago

hi
after some thought i have realized that maybe its already doing that, showing more than one suggestion? i only tried it with one word so maybe its already working?

RE: Spelling Suggestions - Added by Per Amundsen almost 7 years ago

Try replace the previous script with this:

on *:KEYUP:*:*:{
  if (!$statusbar(spellcheck)) {
    statusbar -a spellcheck "" "" "" 
  }

  var %text, %count 0, %sp $editbox($active).spellcheckword
  while (%count < 5) {
    inc %count

    var %word = $spellcheck(%sp, %count)

    if (!%word) {
      break
    }

    %text = %text %word
  }

  statusbar -g spellcheck %text
}

Edit: Yes the script changes will be in the next beta.

RE: Spelling Suggestions - Added by heinz schmidt almost 7 years ago

hi
i am sorry but i cant try it out at the moment. when will be the beta a final relase version? thanks for your fast implentation of the feature.
best regards

RE: Spelling Suggestions - Added by Per Amundsen almost 7 years ago

Beta will be out soon, you can type /betaup to switch to beta releases, final is many months away.

    (1-7/7)