|
|
|
@ -457,7 +457,20 @@ t() {
@@ -457,7 +457,20 @@ t() {
|
|
|
|
|
| clr -bg --\>.* \ |
|
|
|
|
| sed "s/\'/'/g" |
|
|
|
|
} |
|
|
|
|
tl() { t $@ | less; } #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 |
|
|
|
|
alias ,ww="vim -c VimwikiIndex" #noindex |
|
|
|
|