-
Install helper programs, run in Terminal:
sudo apt install tesseract-ocr xclip
-
Download
ocr-screenshot.sh
to your chosen location (e.g./home/user/bin/ocr-screenshot.sh
) (hint: open the Raw view and Save the file) -
Install global hotkey:
3.1. Open "System Settings" app
3.2. On "System Settings", open "Devices" menu, open "Keyboard" menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rope.base import project | |
from rope.refactor import restructure | |
import yaml | |
import pathlib | |
import sys | |
if len(sys.argv) < 2: | |
print("refactoring name not provided") | |
sys.exit(-1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quick start: | |
1. Download ocr.py to your ~/Downloads folder (hint: open the Raw view and Save the file) | |
2. Open "Terminal" app | |
3. Run `python ~/Downloads/ocr.py --help` and follow the embedded installation instruction | |
Basic usage: | |
1. Make sure you have followed the embedded installation guide | |
2. Press Shift+PrintScreen, your cursor will turn into + sign |
I hereby claim:
- I am lieryan on github.
- I am lieryan (https://keybase.io/lieryan) on keybase.
- I have a public key whose fingerprint is 59E4 0501 4540 113E 24E5 0F62 7DAD E721 E79E B036
To claim this, I am signing this object: