Convert Arabic characters to their Latin (English) homophones.
Project description
arabic2latin
Convert Arabic characters to their Latin (English) homophone.
Installation
Install from PyPI:
pip install arabic2latin
Alternatively, install from source:
pip install git+https://github.com/rexa222/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.1.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for arabic2latin-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6b73c8cddbacad60d471e8b7a89bbac980686a6f0fabfa0b2953f7f9f065f12 |
|
MD5 | 664d13a4272e9028b8e2ad1ff922597a |
|
BLAKE2b-256 | ef179d7e804f4a1f8a9892584a8b99a8e9d2601fee7286c567b2f97032f9be89 |