Skip to main content

A CLI tool for converting text between Arabic and English keyboard layouts.

Project description

ar2en

A CLI tool for converting text between Arabic and English keyboard layouts.

Installation

You can install the package using pip:

pip install ar2en

Usage

Convert Text Directly

To convert text directly from Arabic to English keyboard layout, use:

ar2en "ضصث"

Convert Text from Clipboard

To convert text from the clipboard and copy the result back to the clipboard:

ar2en -c

Convert Text from a File

To convert text from a file and optionally copy the result to the clipboard:

ar2en -f input.txt -c

Convert Text from English to Arabic

To convert text from English to Arabic keyboard layout:

ar2en -r "qwerty"

Interactive Mode

To enter interactive mode and type the text to be converted:

ar2en -i

Verbose Mode

To display detailed information about the conversion:

ar2en -v "ضصث"

Save Output to a File

To save the converted text to an output file:

ar2en -f input.txt -o output.txt

Full Help

For a full list of options and usage, use:

ar2en --help

Examples

Example 1: Simple Conversion

ar2en "ضصث"

Output:

wet

Example 2: Conversion with Verbose Output

ar2en -v "ضصث"

Output:

The conversion of "ضصث" is "wet"

Example 3: Conversion from Clipboard

ar2en -c

If the clipboard contains "ضصث", the clipboard will be updated with "wet".

Example 4: Conversion from File and Save to Another File

ar2en -f input.txt -o output.txt

The content of input.txt will be converted and saved to output.txt.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.

Author

gamalthecreator

>>>>>>> d23772a (initial commit)


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

ar2en-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

ar2en-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ar2en-0.1.2.tar.gz.

File metadata

  • Download URL: ar2en-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for ar2en-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c391ddb12a07be15aa16ba61ed665e45783e86ba633885c6a19ccad56c941316
MD5 2f3ca5fbd5d9c0584faf7e3e8cb6d103
BLAKE2b-256 80e1da8c1dd21a6382943cd7b8fe9be50ff31f5d9fbf6f7d2c9342a262fde6db

See more details on using hashes here.

File details

Details for the file ar2en-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ar2en-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for ar2en-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 020f4dfba6b95ced9c8ea436f879daed4e37e8e1ac87d9e19927e073a5e229e7
MD5 682556766ec01c285be256dea5925def
BLAKE2b-256 32904cf8198d2dfb6c71246495af6d048ee234b6a3901ef08fe0cb862bbb157e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page