dotfiles/bin/ranal
2021-10-16 23:18:48 -04:00

14 lines
1.4 KiB
Python
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
import random
sortedletters = {' ': [' '], 'A': ['A', 'a', '', '', ''], 'B': ['B', 'b', 'ß', 'ʙ', '', '', ''], 'C': ['C', 'c', 'ʗ', '', '', ''], 'D': ['D', 'd', 'Ɖ', '', '', ''], 'E': ['', 'E', 'e', '', '', '', '', ''], 'F': ['F', 'f', '', '', ''], 'G': ['G', 'g', 'ɡ', 'ɢ', '', ''], 'H': ['H', 'h', 'ʜ', '', ''], 'I': ['', 'I', 'i', 'ı', 'ɪ', '', ''], 'J': ['J', 'j', 'ȷ', '', '', ''], 'K': ['K', 'k', '', '', ''], 'L': ['L', 'l', 'ʟ', '', ''], 'M': ['M', 'm', '', '', ''], 'N': ['Nj', 'N', 'n', 'ɴ', '', ''], 'O': ['O', 'o', '', '', ''], 'P': ['P', 'p', '', '', ''], 'Q': ['Q', 'q', '', ''], 'R': ['R', 'r', 'ʀ', '', '', '', 'ſ'], 'S': ['S', 's', '', ''], 'T': ['T', 't', '', '', ''], 'U': ['U', 'u', '', '', ''], 'V': ['V', 'v', '', '', ''], 'W': ['W', 'w', '', '', ''], 'X': ['X', 'x', '', ''], 'Y': ['Y', 'y', 'ʏ', '', ''], 'Z': ['Z', 'z', 'Dz', '', '', ''], '/': ['', '', '/', '', '', '', '🙼'], '\\': ['\\', '', '', '', '🙽'], '!': ['', '!'], '~': ['','~'], '#':['','#'], '.':['.'], ',':[',']}
while True:
inp = input().upper()
for l in inp:
print(random.choice(sortedletters[l] if l in sortedletters else l),end='',flush=True)
print()