This script fixes accidentally typed Farsi text by converting it to the correct Latin characters based on physical Mac keyboard layout.
- π‘ Converts Persian characters (typed with Persian layout) to their equivalent English letters (as if typed with English layout).
- β¨οΈ Listens for typing in the background and stores characters typed in the last 10 seconds.
- π§ Press
Ctrl + Shift + Pto convert and copy the last 10 seconds of typing to your clipboard. - β Ignores modifier-based shortcuts (
Cmd,Ctrl,Option) likeCmd+C,Cmd+V. - π Supports
Backspaceto remove from buffer. - π Automatically clears buffer when
Cmd+Vis pressed to avoid double typing.
Install dependencies via pip by running:
pip install -r requirements.txt