All pastes #442047 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-16 00:13 UTC
rendered paste body
#!/usr/bin/python2.5
# -*- coding: utf8 -*-

import sys

alphabet = u'αвς∂єfgнιנкℓмиσρqяѕтυνωχγz'
ours = 'abcdefghijklmnopqrstuvwxyz'

class dick(dict):
    def __missing__(self, key):
        return key
tr = dick()
for a, b in zip(ours, alphabet):
    tr[a] = b

if len(sys.argv) > 1:
    text = ' '.join(sys.argv[1:])
    sys.stdout.write(''.join([tr[letter] for letter in 
    text]).encode('utf-8'))
    sys.stdout.write('\n')
for line in sys.stdin:
    sys.stdout.write(''.join([tr[letter] for letter in line]).encode('utf-8'))