Mercurial > repo
comparison bin/rot13 @ 11112:6412d84cf279
<oerjan> sled bin/rot13//1c#!/hackenv/bin/shebang_args_or_input python
author | HackBot |
---|---|
date | Sat, 22 Jul 2017 00:41:18 +0000 |
parents | ea74d235ff72 |
children |
comparison
equal
deleted
inserted
replaced
11111:ea74d235ff72 | 11112:6412d84cf279 |
---|---|
1 #!/usr/bin/env python | 1 #!/hackenv/bin/shebang_args_or_input python |
2 | 2 |
3 import re, sys, unicodedata as U | 3 import re, sys, unicodedata as U |
4 def tr(c): | 4 def tr(c): |
5 m = re.match(r'(.*\bLATIN\b.*\bLETTER )([A-Z])\b(.*)', U.name(c, '')) | 5 m = re.match(r'(.*\bLATIN\b.*\bLETTER )([A-Z])\b(.*)', U.name(c, '')) |
6 if m: | 6 if m: |