*************** *** 75,81 **** _filterCommands = ['jeffk', 'leet', 'rot13', 'hexlify', 'binary', 'lithp', 'scramble', 'morse', 'reverse', 'colorize', 'squish', 'supa1337', 'colorstrip', 'aol', 'rainbow', 'spellit', - 'hebrew', 'undup', 'gnu', 'shrink'] def outfilter(self, irc, msg, args, channel, command): """[] [] --- 75,81 ---- _filterCommands = ['jeffk', 'leet', 'rot13', 'hexlify', 'binary', 'lithp', 'scramble', 'morse', 'reverse', 'colorize', 'squish', 'supa1337', 'colorstrip', 'aol', 'rainbow', 'spellit', + 'hebrew', 'undup', 'gnu', 'shrink', 'albhed'] def outfilter(self, irc, msg, args, channel, command): """[] [] *************** *** 186,191 **** irc.reply(text.encode('rot13')) rot13 = wrap(rot13, ['text']) def lithp(self, irc, msg, args, text): """ --- 186,213 ---- irc.reply(text.encode('rot13')) rot13 = wrap(rot13, ['text']) + def albhed(self, irc, msg, args, text): + """ + + Translates from English to Al Bhed. + """ + table = string.maketrans( + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', + 'ypltavkrezgmshubxncdijfqowYPLTAVKREZGMSHUBXNCDIJFQOW') + irc.reply(string.translate(text, table)); + albhed = wrap(albhed, ['text']) + + def unalbhed(self, irc, msg, args, text): + """ + + Translates from Al Bhed to Al English. + """ + table = string.maketrans( + 'ypltavkrezgmshubxncdijfqowYPLTAVKREZGMSHUBXNCDIJFQOW', + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') + irc.reply(string.translate(text, table)); + unalbhed = wrap(unalbhed, ['text']) + def lithp(self, irc, msg, args, text): """