March 30, 2008

Xchat replace.conf

Pidgin has a cool plugin named “Text Replacement”. It has a built in big mapping between wrong spellings and correct spellings. So recently in #xchat IRC channel, someone asked for auto replace plugin. XChat has plugin for auto replacement, but it doesn’t have a map. You have to make the map yourself. XChat doesn’t allow cool options that pidgin gives (like case sensitive/insensitive or exact match or partial), so the mapping I am providing is case sensitive and exact match. I converted that Pidgin map (which is usually stored in “~/.purple/dict”) into XChat format (stored in “~/.xchat2/replace.conf”) . So, you can download the replace.conf file from the below given link, and can replace your current replace.conf with this file.

After restarting XChat, you should be able to see the plugin working properly.

here is the link to the file.

http://rohitj.net/myscripts/xchat_replace_conf/replace.conf

The Perl (yes, I still love Perl when it comes to regex) script I used to convert the format is here

http://rohitj.net/myscripts/xchat_replace_conf/replace.perl

You will need to put the script in the folder where “dict” file is.

License : The dictionary copyright mainly belongs to Eric Warmenhoven (piding.im).

Filed under: xchat — 3:07 pm

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Valid XHTML 1.0 Transitional Valid CSS! Creative Commons License Blog Powered By wordpress Wiki Powered By dokuwiki