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.4.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file arabic2latin-1.1.4.tar.gz
.
File metadata
- Download URL: arabic2latin-1.1.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143b34cf61488843d081cf7a50520683f020aa06e6306b0baf4a2a14b47220e1 |
|
MD5 | f5a7e79e827d990d067da66f99060efb |
|
BLAKE2b-256 | 884ab664e075c243dc8120ac008932e6e74f2a197ec7414aae11ea4c3d25b04d |
File details
Details for the file arabic2latin-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: arabic2latin-1.1.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0518089e925e6d2943d837112d854c6bbe10f233375b3a8d1f54f0c56a7aded2 |
|
MD5 | cecb359e7d36d2f0a09396e454e61cc5 |
|
BLAKE2b-256 | db0e857d3b200897500e539c22cbf4b64152ee4bc49462dc6fe3fe5969a76686 |