| Message |
Quite an interesting project. :)
You need a script like this, which you would call from the alias "al *" ...
sub Translate (AliasName, AliasLine, arrWildcard)
dim i
dim pos
dim c
dim oldword
dim newword
oldword = arrWildcard (1)
' process each letter
for i = 1 to len (oldword)
' get original letter
c = mid (oldword, i, 1)
' translate if possible
pos = instr ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", c)
' if a match take substitution letter, otherwise copy original letter across
if pos > 0 then
newword = newword + mid ("YPLTAVKREZGMSHUBXNCDFIJQOWypltavkrezgmshubxncdfijqow", pos, 1)
else
newword = newword + c
end if
next
' send results to world
world.send "say " & newword
end sub
I put in your letters twice, once for upper case and once for lower case. To do a different translation just change the string in the middle with the translated letters. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|