Last active
August 29, 2015 14:03
-
-
Save izabera/de626754d1cec1b418ad to your computer and use it in GitHub Desktop.
kvirc - convert special characters to ascii while typing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#new handler OnTextInput | |
%string=$0 | |
%string=$str.replace(%string,"À","A'",1)#,1 = case sensitive | |
%string=$str.replace(%string,"Á","A'",1) | |
%string=$str.replace(%string,"È","E'",1) | |
%string=$str.replace(%string,"É","E'",1) | |
%string=$str.replace(%string,"Ì","I'",1) | |
%string=$str.replace(%string,"Í","I'",1) | |
%string=$str.replace(%string,"Ò","O'",1) | |
%string=$str.replace(%string,"Ó","O'",1) | |
%string=$str.replace(%string,"Ù","U'",1) | |
%string=$str.replace(%string,"Ú","U'",1) | |
%string=$str.replace(%string,"à","a'",1) | |
%string=$str.replace(%string,"á","a'",1) | |
%string=$str.replace(%string,"è","e'",1) | |
%string=$str.replace(%string,"é","e'",1) | |
%string=$str.replace(%string,"ì","i'",1) | |
%string=$str.replace(%string,"í","i'",1) | |
%string=$str.replace(%string,"ò","o'",1) | |
%string=$str.replace(%string,"ó","o'",1) | |
%string=$str.replace(%string,"ù","u'",1) | |
%string=$str.replace(%string,"ú","u'",1) | |
say %string | |
halt #halt to avoid sending the message twice | |
#new alias: deascii | |
#to be used with emoticons and stuff that really needs those letters | |
say $0- #won't be parsed by OnTextInput |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment