Browse Source

bash: aliases: ++ocr

Maxim Likhachev 5 years ago
parent
commit
2cbfa3e20d
  1. 13
      etc/shell/bash/aliases

13
etc/shell/bash/aliases

@ -457,7 +457,20 @@ t() {
| clr -bg --\>.* \ | clr -bg --\>.* \
| sed "s/\'/'/g" | sed "s/\'/'/g"
} }
tl() { t $@ | less; } #noindex
alias ?=t #noindex alias ?=t #noindex
alias ??=tl #noindex
ocr() {
languages=${2:-eng}
languages="-l ${languages//,/ -l }"
filename=${1?USAGE: ocr filename.pdf [language1,language2]}
ocrcmd=$(printf 'ocrmypdf --force-ocr %s "%s" "%s"' "$languages" "$filename" "${filename/pdf/ocr.pdf}")
echo $ocrcmd | sh
}
#- Vimwiki #- Vimwiki
alias ,ww="vim -c VimwikiIndex" #noindex alias ,ww="vim -c VimwikiIndex" #noindex

Loading…
Cancel
Save