dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: c70b31fc011653ad3679c6b99ae5d8d302b329b5
Parent: d6cf551bb9ae57f57559874fd1402772e483248d
Author: Randy Palamar
Date:   Thu, 21 Nov 2024 07:15:37 -0700

ocr: use system tessdata dir

Diffstat:
Mbin/ocr | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/bin/ocr b/bin/ocr @@ -7,8 +7,6 @@ # or the capture2text one here: # https://sourceforge.net/projects/capture2text/files/Dictionaries/Japanese.zip/download -TESS_DATA="$HOME/.local/share/tesseract" - usage() { echo "usage: ocr [-l lang][-d dpi]" @@ -28,6 +26,5 @@ dpi=${dpi:-96} sxot -g "$(selx)" | tesseract stdin stdout \ - --dpi $dpi -l $lang \ - --tessdata-dir "$TESS_DATA" | + --dpi $dpi -l $lang | xclip -sel clip