mirror of
https://github.com/archlinux/aur.git
synced 2026-01-27 20:28:31 +01:00
- Update symspellpy installation instruction to use yay instead of pip - Improve visual structure with clear sections
62 lines
3.4 KiB
Text
62 lines
3.4 KiB
Text
post_install() {
|
|
cat << 'EOF'
|
|
|
|
╔══════════════════════════════════════════════════════════════════════════╗
|
|
║ SnipText OCR - Installation Complete ║
|
|
╚══════════════════════════════════════════════════════════════════════════╝
|
|
|
|
[!] STEP 1: Configure keyboard shortcut (REQUIRED!)
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
Recommended keybind: Ctrl+Alt+T
|
|
Command to run: sniptext --capture-now
|
|
|
|
Configuration examples:
|
|
|
|
Hyprland (~/.config/hypr/hyprland.conf):
|
|
bind = CTRL ALT, T, exec, sniptext --capture-now
|
|
|
|
Sway/i3 (~/.config/sway/config or ~/.config/i3/config):
|
|
bindsym Ctrl+Alt+t exec sniptext --capture-now
|
|
|
|
GNOME: Settings -> Keyboard -> Custom Shortcuts
|
|
KDE: System Settings -> Shortcuts -> Custom Shortcuts
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
[!] STEP 2: Install screenshot tools (REQUIRED!)
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
For Wayland (Hyprland, Sway, etc):
|
|
sudo pacman -S slurp grim wl-clipboard
|
|
|
|
For X11 (i3, bspwm, etc):
|
|
sudo pacman -S maim xclip
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
[*] OPTIONAL: Enhanced text correction (recommended)
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
For better OCR error correction:
|
|
yay -S python-symspellpy
|
|
|
|
* Dictionary-based spell checking for OCR output
|
|
* Basic correction works without it, but this makes it better!
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
Test it!
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
Test from terminal:
|
|
sniptext --capture-now
|
|
|
|
Documentation:
|
|
/usr/share/doc/sniptext/README.md
|
|
|
|
╚══════════════════════════════════════════════════════════════════════════╝
|
|
|
|
EOF
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|