I have started working on a Python port of Avro Phonetic that I call pyAvroPhonetic. My main inspiration here has been Rifat Nabi’s jsAvroPhonetic, and I owe a good deal of code and ideas to him for this project. The project is on Github at kaustavdm/pyAvroPhonetic. It is also listed on PyPi as PyAvroPhonetic.This is my second attempt at writing something useful in Python. So, the code can be expected to evolve a lot in future. As of now, I’ve planned to implement a basic text parser as a Python library so that other Python applications can use it to do Avro Phonetic-style transliteration.
I’m writing this in Python 2, specifically from 2.5 to 2.7. Porting this to Python 3 will be easy enough once simplejson for Py3 is stable. Getting Unicode to work in Python 2 was a good enough challange. I feel I’ve conquered it mostly. I’m writing extensive tests to ensure proper parsing.
The code is far from stable now. It doesn’t parse vowels properly. I’ll need to fix that.
[Update]: It is fixed now in 0.1.3.