Transliteration of names from Greek and Latin writing systems to our modern Roman writing system following conventions of the Classical Atlas Project.
Project description
-- encoding: utf-8 --
Copyright 2009, 2010 Institute for the Study of the Ancient World, New York University
Introduction
This package provides modules for transliteration of names from Greek and Latin writing systems into our modern Roman writing system following conventions of the Classical Atlas Project.
Examples:
>>> from pleiades.transliteration import transliterate_name
Roma in Latin
>>> transliterate_name('la', 'Roma') 'Roma'
Choma in Greek with Latin transliteration (pretend it’s ancient!)
>>> transliterate_name('grc-latn', 'Choma') 'Choma'
Aphrodisias in Greek
>>> name = u'\u1f08\u03c6\u03c1\u03bf\u03b4\u03b5\u03b9\u03c3\u03b9\u03b5\u03cd\u03c2' >>> transliterate_name('grc', name) 'Aphrodeisieus'
Aphrodisiensis in Greek characters (no accents)
>>> name = u'\u1f08\u03c6\u03c1\u03bf\u03b4\u03b9\u03c3\u03b9\u03b5\u03bd\u03c3\u03b9\u03c2' >>> transliterate_name('la-grek', name) 'Aphrodisiensis'
Invalid script
>>> transliterate_name('en', 'Ryland') # doctest: +ELLIPSIS Traceback (most recent call last): ... ValueError: Unsupported writing system (en)
Editorial characters that should be permitted
>>> transliterate_name('la', '(...)sinsensium') '(...)sinsensium'
Out-of-range characters that shouldn’t be there if the validator was used first. Aphrodisias in Greek but mis-languaged as latin
>>> name = u'\u1f08\u03c6\u03c1\u03bf\u03b4\u03b9\u03c3\u03b9\u1f71\u03c2' >>> transliterate_name('la', name.encode('utf-8')) '??????????'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pleiades.transliteration-0.2.tar.gz
.
File metadata
- Download URL: pleiades.transliteration-0.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80252f13b464fec74d74ba55ffb3eaf2b2c253d8aed5b11f8541d2b9651f3b8 |
|
MD5 | 88ad5c60248340125619b36be6c48ca2 |
|
BLAKE2b-256 | 66b65cf26bb92dd0d7fa0c70a368d5ab1c1c8034bf14bb6a7bf2226bae5c2f9c |