update completion to tesseract 3

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@359 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
joregan 2010-05-26 08:28:18 +00:00
parent 144dcbd22c
commit c7d32234ff

View File

@ -9,7 +9,7 @@
_tesseract_languages()
{
local TESSDATA="/usr/share/tesseract-ocr/tessdata/"
local langs="$(ls $TESSDATA | grep DangAmbigs | cut -d \. -f 1)"
local langs="$(ls $TESSDATA | grep traineddata | cut -d \. -f 1)"
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W "$langs" -- "$cur") )
}