view bin/unicode @ 4295:e3a8730487a4

<shachaf> echo >bin/rnooodl \'perl -pe \'\\\'\'s/([Nn])ooodl/"\\1@{[o x(3+rand 7)]}dl"/ge\'\\\'
author HackBot
date Tue, 14 Jan 2014 01:18:58 +0000
parents 49ab5b2e2ebf
children ab2d8a9d1432
line wrap: on
line source

#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
import unicodedata
try:
    print u''.join(map(unicodedata.lookup, sys.argv[1:])).encode('utf-8')
except KeyError:
    print u'Unknown character.'