All pastes #771808 Raw Edit

rejects

public text v1 · immutable
·published 2007-11-13 07:45 UTC
rendered paste body
***************
*** 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):
          """[<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):
          """[<channel>] [<command>]
  
***************
*** 186,191 ****
          irc.reply(text.encode('rot13'))
      rot13 = wrap(rot13, ['text'])
  
      def lithp(self, irc, msg, args, text):
          """<text>
  
--- 186,213 ----
          irc.reply(text.encode('rot13'))
      rot13 = wrap(rot13, ['text'])
  
+     def albhed(self, irc, msg, args, text):
+         """<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):
+         """<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):
          """<text>