add proper error handling for all final exec calls
[hband-tools.git] / user-tools / noacute
blob709b8c4ba327a8a8f72706b363abbde8131c6121
1 #!/usr/bin/env python
3 """
4 =pod
6 =head1 NAME
8 noacute - Strip diacritics (acute, umlaut, ...) from letters on the input stream
10 =cut
12 """
15 import sys
16 import unicodedata
18 while True:
19 line = sys.stdin.readline()
20 if line == '':
21 break
22 line = line.decode('utf-8')
23 print unicodedata.normalize('NFKD', line).encode('ASCII', 'ignore'),