https://github.com/fnl/ungreek
scripts to work with tools that can only handle ASCII
https://github.com/fnl/ungreek
Last synced: 21 days ago
JSON representation
scripts to work with tools that can only handle ASCII
- Host: GitHub
- URL: https://github.com/fnl/ungreek
- Owner: fnl
- Created: 2014-01-20T23:02:40.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-03T14:04:44.000Z (over 12 years ago)
- Last Synced: 2023-03-11T13:18:37.537Z (over 3 years ago)
- Language: C
- Homepage:
- Size: 203 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ungreek
=======
`ungreek` is a simple C99 script to expand Greek letters in **UTF-8** encoding to their Latin names.
In addition, `uncode` is a Python 2.6+ and 3.0+ script to [normalize][NIH] non-ASCII characters to ASCII.
Both scripts accept input from `` or as file arguments and write to ``.
To compile `ungreek`, a C99 compiler has to be available; type `make` to compile using GNU Make.
To use `uncode`, the PyPI `unidecode` package has to be installed (`pip install unidecode` or `easy_install unidecode`).
Example conversion of a input text file in UTF-8 format:
ungreek unicode.txt | uncode > ascii.txt
[NIH]: http://lexsrv2.nlm.nih.gov/LexSysGroup/Projects/lvg/2011/docs/designDoc/UDF/unicode/unicodeToAscii.html