Arabic-English Transliterator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
transliterator
.gitignore
MANIFEST
README.md
push_to_github_and_upload_to_pypi.sh
setup.cfg
setup.py

README.md

transliterator

transliterator transliterates between Arabic and English

Installation

pip install transliterator

Use

from transliterator import get_transliteration_as_pattern
text = "Marhaban"
pattern = get_transliteration_as_pattern(text, from_="English", to_="Arabic")
print pattern
# prints u'(?:\u0645)(?:|\u0627|\u0623)(?:\u0631)(?:|\u062d)(?:|\u0627|\u0623)(?:\u0628)(?:|\u0627|\u0623)(?:|\u0646)'

Features

Languages Supported
Arabic
English

Testing

To test the package run

python -m unittest transliterator.tests.test