chiark
/
gitweb
/
~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2b0e9dc
)
tesseract: Fix build after tessdata repo updates
author
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 7 Jan 2017 05:59:09 +0000
(
00:59
-0500)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 7 Jan 2017 05:59:09 +0000
(
00:59
-0500)
packages/tesseract/build.sh
patch
|
blob
|
blame
|
history
diff --git
a/packages/tesseract/build.sh
b/packages/tesseract/build.sh
index 5333c5f9d81081e3ed90c7c66c2c67bd3baa238c..5e020320a9e62911565532f0f363a141eb187e7c 100644
(file)
--- a/
packages/tesseract/build.sh
+++ b/
packages/tesseract/build.sh
@@
-20,6
+20,9
@@
termux_step_post_make_install() {
rm -f eng.*
for f in cube.{bigrams,fold,lm,nn,params,size,word-freq} tesseract_cube.nn traineddata; do
f=eng.$f
rm -f eng.*
for f in cube.{bigrams,fold,lm,nn,params,size,word-freq} tesseract_cube.nn traineddata; do
f=eng.$f
- termux_download https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/$f $f
+ # From the tessdata README: "These language data files only work with
+ # Tesseract 4. They are based on the sources in tesseract-ocr/langdata on GitHub.
+ # Get language data files for Tesseract 3.04 or 3.05 from the 3.04 tree."
+ termux_download https://raw.githubusercontent.com/tesseract-ocr/tessdata/3.04.00/$f $f
done
}
done
}