Transliterating from Greek and Latin

Update (2010-07-08): The latest and greatest is uploaded to PyPI: http://pypi.python.org/pypi/pleiades.transliteration

The code we use to transliterate names from Greek and Latin writing systems in the style of the Barrington Atlas is now available from our package index.

$ easy_install -i http://atlantides.org/eggcarton/index/ pleiades.transliteration

For example, the name Ἀφροδεισιάδος from an edition of a letter from Trajan to Smyrna [IAph 2007 8.33] is transliterated to Aphrodeisiados:

>>> from pleiades.transliteration import transliterate_name
>>> s = u'\u1f08\u03c6\u03c1\u03bf\u03b4\u03b5\u03b9\u03c3\u03b\u03ac\u03b4\u03bf\u03c2'
>>> transliterate_name('grc', s)
'Aphrodeisiados'