letters.py - command line tool to look up the name of Unicode characters in a text
✓ Published0🌍 Public
Aamundo
Last edited Mar 2, 2012
Created on Mar 2, 2012
The tool reads UTF-8 text from standard input and prints each character’s Unicode name, its code point in hexadecimal, and a JSON-style escape sequence. It uses Python’s `unicodedata.name` to look up names, `sys.stdin.read` to capture input, and `codecs.getwriter` to ensure UTF-8 output. Characters without a defined name are skipped silently. The output is displayed as a line per character, showing the letter, name, hex code, and escaped form.
AI-generated description