Convert Arabic characters to their Latin (English) homophones.
Project description
arabic2latin
Convert Arabic characters to their Latin (English) homophone.
Installation
Install from source:
pip install git+https://github.com/rexa222/arabic2latin
Alternatively, install from PyPI:
pip install arabic2latin
Usage/Examples
from arabic2latin import arabic_to_latin
arabic_text = "السَّلَامُ عَلَيْكَ"
converted_text = arabic_to_latin(arabic_text)
print(converted_text)
Output:
alsaalaamo aalayka
Debug Mode
If you came across a character that was not converted, you can find it using debug feature and report it as guided in the contributing section.
converted_text = arabic_to_latin(arabic_text, debug=True)
Output:
unknown character: ?
Contributing
If you find a bug 🐛, please open a bug report. If you have an idea for an improvement or new feature 🚀, please open a feature request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arabic2latin-1.0.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for arabic2latin-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10f7030b3f91f7cc73c357daf1dd1ddaadc7435ebc6cf9e7f99d8a3be7556d8 |
|
MD5 | d52942a3790af66e5d84585670d634db |
|
BLAKE2b-256 | 87e9f86542348cbe42ce7e1d59713a9471e6cbc497356b7a6ae926e7cd8099e5 |