Skip to main content

wrong lang? you got typeshit

Project description

Typeshit

Typeshit Illustration

Typeshit is a Python tool that detects and corrects text input, particularly useful for switching between Arabic and English typing.

Installation

Install Typeshit using pip: pip install typeshit It's recommended to use a virtual environment for isolated package management.

Usage

After installation, activate Typeshit from your command line: typeshit The tool will start listening for keyboard input and automatically correct text based on the detected language.

How It Works

Typeshit uses a debounce mechanism to process input efficiently:

  1. Each keypress triggers a timer reset.
  2. If no keys are pressed within the debounce delay, the process_buffer function is called.
  3. The function then processes the accumulated input, detecting the language and applying necessary corrections.

Features

  • Automatic language detection (Arabic/English)
  • Real-time text correction
  • Efficient input processing with debounce mechanism

Development

For contributors and developers:

  • test.txt is provided for input testing purposes.
  • The main logic resides in src/typeshit/main.py.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Contact

Ebrahim Ramadan - ramadanebrahim791@gmail.com

Project Link: https://github.com/ebrahim-ramadan/wetype

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

typeshit-0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typeshit-0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file typeshit-0.2.tar.gz.

File metadata

  • Download URL: typeshit-0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for typeshit-0.2.tar.gz
Algorithm Hash digest
SHA256 570caaddad926104679a04ea73d2ddf2e6ab10b7ec9b7dea7cc23d71dc2d3b0f
MD5 779b3015b91bf45831c9bc7ee7045ea5
BLAKE2b-256 e70823edc9b6602f7f9bf050783ed3788f2fa6e5b7559b01c5bfa9aaa37c1a9c

See more details on using hashes here.

File details

Details for the file typeshit-0.2-py3-none-any.whl.

File metadata

  • Download URL: typeshit-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for typeshit-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d74c7f89ae57c1732b28901ee433f38377d1bdca16eac2d51084548a801129d5
MD5 5b4eade9fd589081dccd3635504bb690
BLAKE2b-256 b9392577a58ed52754b5c261823b458ba65250e4f91adfcd639fcc556ec73b2c

See more details on using hashes here.

Supported by

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