XChat Spell Checking



Contents

First

Windows
Install XChat in English or Operating system language
Enable spell checking

Linux
Enable spell checking
Enable spell checking for different languages
Enable different spell checking languages with the same language code e.g (en) en_GB, en_US, en_CA
Enable spell checking for a language other than the interface language
Start XChat in a different interface language
Start XChat in a different interface language and enable spell checking for different languages



First

LANGUAGE=
"LANGUAGE=" is only to be used to change interface language.
e.g. If the interface language is set to English and you want to use XChat in Russian simply use "LANGUAGE=ru".
"LANGUAGE=en:ru" will skip to Russian interface language because the default interface language is already English.
So if you don't want to change the interface language forget "LANGUAGE=".

LANG=
To enable different spell checking languages use "LANG="
e.g."LANG=ru:de:fr:en:nl" will enable spell checking for Russian, German, French, English and Dutch.

Combined
To change interface language and enable spell checking use "LANGUAGE=", the first language will be the interface language, the next languages will be the spell checking languages.
e.g. "LANGUAGE=nl:fr:de" will start XChat in Dutch with Dutch, French and German spell checking.



Install XChat in English or Operating system language - Windows

To use XChat in English uncheck 'Language Translations' in XChat's setup dialog.
If you select 'Language Translations' XChat will install in your operating systems language.




Enable spell checking - Windows

Download Aspell and an English dictionary. They can be found here.
To turn on the spell checker in XChat type:

/set gui_input_spell on

All misspelled words are now underlined. By right-clicking the misspelled word you'll get a menu which shows spelling suggestions.



Enable spell checking - Linux

Install gtkspell or libsexy package(s) before installing or compiling XChat, spell checking should be automatically supported then.
As configure option you could use: --enable-spell=type
Note: On my debian machine I had to install libsexy2 and libsexy-dev to get XChat to support spell checking after a normal compile from source.


To turn on the spell checker in XChat go to Settings -> Preferences -> Input box - Check 'Spell checking' or type:

/set gui_input_spell on



Enable spell checking for different languages - Linux

There is no beautiful way of doing this yet.
The problem is that when you enable different spell checking languages it's enabled for all languages at once. E.g. if you have English and French spell checking enabled and you type an English word like "chatter" but in stead you type "chatte" it will not show as incorrectly spelled because the word is correctly spelled in French.

I have only tested this with Aspell on a debian(lenny/sid) machine.
I have no idea how this will work in windows and it will probably work differently on other linux distributions and there also might be nicer ways to get this to work.

Install the aspell language packages you need, e.g. to enable spell checking for English, German, Dutch and French install aspell-en, aspell-de, aspell-nl and aspell-fr. Start XChat in a terminal like this:

LANG=en:de:nl:fr xchat


(UTF-8: LANG=en_US.UTF-8:en:de_DE.UTF-8:de:nl_NL.UTF-8:nl:fr_FR.UTF-8:fr xchat)

To turn on the spell checker in XChat go to Settings -> Preferences -> Input box - Check 'Spell checking' or type:

/set gui_input_spell on



Enable different spell checking languages with the same language code e.g (en) en_GB, en_US, en_CA - Linux

This is a funny one.
"LANG=en_US(:en):en_GB(:en):en_CA(:en)" is not going to work here because of the same language codes used right after eachother (don't ask me why).
The trick here is to put another language(code) in between and it will work like a charm.
(Again this is what I came up with there might be other and/or nicer ways to get this to work.)

Install the right aspell packages (aspell-en, aspell-ru and aspell-nl).

Here I've used:

LANG=en_US:en:ru_RU:ru:en_GB:en:nl_NL:nl:en_CA:en xchat

This enables spell checking for English(United States), Russian, English(United Kingdom), Dutch and English(Canada).


(UTF-8: LANG=en_US.UTF-8:en:ru_RU.UTF-8:ru:en_GB.UTF-8:en:nl_NL.UTF-8:nl:en_CA.UTF-8:en xchat)
To turn on the spell checker in XChat go to Settings -> Preferences -> Input box - Check 'Spell checking' or type:

/set gui_input_spell on



Enable spell checking for a language other than the interface language - Linux

E.g. if your interface language is set to English and you only want spell checking support for Dutch, install aspell-nl and start XChat in a terminal like this:

LANG=nl xchat

This will start XChat in English with Dutch spell checking support only, it will not have English spell checking support.

(UTF-8: LANG=nl_NL.UTF-8:nl xchat)
To turn on the spell checker in XChat go to Settings -> Preferences -> Input box - Check 'Spell checking' or type:

/set gui_input_spell on



Start XChat in a different interface language - Linux

E.g. to use XChat in German with German spell checking install aspell-de and start XChat in a terminal like this:

LANGUAGE=de xchat

this will start XChat in German with German spell checking support.


(UTF-8: LANGUAGE=de_DE.UTF-8:de xchat)
To turn on the spell checker in XChat go to Settings -> Preferences -> Input box - Check 'Spell checking' or type:

/set gui_input_spell on



Start XChat in a different interface language and enable spell checking for different languages - Linux

E.g. to start XChat in French and enable spell checking for French, German, English and Dutch install aspell-fr, aspell-de, aspell-en, aspell-nl, then start XChat in a terminal like this:

LANGUAGE=fr:de:en:nl xchat


(UTF-8: LANGUAGE=fr_FR.UTF-8:fr:de_DE.UTF-8:de:en_US.UTF-8:en:nl_NL.UTF-8:nl xchat)
To turn on the spell checker in XChat go to Settings -> Preferences -> Input box - Check 'Spell checking' or type:

/set gui_input_spell on








Help Auto Replace Buttons Charset Connect
CTCP Replies     Downloads Help Commands     Ignore Popups
Screenshots SET Variables     Spell Checking Strftime Text Events
Themes Timers Tips & Tricks User Commands     xchat-gnome!=xchat



XChat Official
- Documentation
- Download
- FAQ
- Forum
- News
- Scripts & Plugins



changed February 11, 2012