ɐ
Flip

Script key: Flip

Posted by Dr. Drang

Install

Details

Label ɐ
Voice Over Flip
Script
function flip(s) {
  var pchars = "abcdefghijklmnopqrstuvwxyz,.?!'(){}[]"
    , fchars = "ɐqɔpǝɟƃɥıɾʞlɯuodbɹsʇnʌʍxʎz'˙¿¡,)(}{]["
    , count  = pchars.length
    , regex  = new RegExp('.', 'g')
    , trans  = {}
    , t      = s.toLowerCase()
    , lookup = function(c) { return trans[c] || c; };
  
  for (var i=0; i<count; i++) {
    trans[pchars[i]] = fchars[i];
  }
  var a = t.split("");
  a.reverse();
  return a.join("").replace(regex, lookup);
}

setSelectedText(flip(getSelectedText()))

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus