Project

General

Profile

Actions

Feature #4586

open

Add $spellchecklang to return the default and per channel spellchecker language

Added by westor (GR) almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
05/15/2019
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

I wanna suggest an identifier that could look and return the currently set spellchecker language, the default or the custom if an window is specified too, i will provide more examples to make it more clear.

Usage :

$spellchecklang([Window Name])

$spellchecklang = with no parameters, will return the default set language.

$spellchecklang(#test) = with a channel window parameter will return the language set for this channel.

Examples :

Command: //echo -a IS: $spellchecklang
Results: en

Command: //echo -a IS: $spellchecklang(#test)
Results: gr

- Thanks!

Actions #1

Updated by Per Amundsen almost 5 years ago

What is the use-case you need this for?

Actions #2

Updated by westor (GR) almost 5 years ago

It can be useful if you wanna print what language is currently set in editbox spell checker

example if someone wants to display in statusbar what language is set for the specific window or default he can't now.

And generally for future scripting usage, especially a guy asked me if he can see (via scripting) what language he set for the active window, i searched a bit and didn't found anything related.

BUT

As i saw in $editbox adiirc wiki there is already " .spellcheckword " , so what about an extra property there like " .spellchecklang " instead of a new identifier?

.spellcheckword - Gets the current word at the cursor position formatted for spellchecking. (AdiIRC only)
.spellchecklang - Gets the current spellchecker set language for this window. (AdiIRC only)
Actions

Also available in: Atom PDF