Project

General

Profile

Feature #4586

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

Added by westor (GR) 12 days ago. Updated 12 days 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!

History

#1

Updated by Per Amundsen 12 days ago

What is the use-case you need this for?

#2

Updated by westor (GR) 12 days 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)

Also available in: Atom PDF