File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,15 @@ get-debloated-pkgs --add-common --prefer-nano
2424# Use tessdata_fast script models since they are way lighter than what archlinux provides
2525echo " Downloading tesseract script models..."
2626echo " ---------------------------------------------------------------"
27- rm -rf /usr/share/tessdata
28- git clone --depth 1 https://github.com/tesseract-ocr/tessdata_fast /usr/share/tessdata
29- rm -rf /usr/share/tessdata/.git
27+ tessdata_dir=/usr/share/tessdata
28+ tessdata_source=https://github.com/tesseract-ocr/tessdata_fast/raw/main
29+ rm -rf " $tessdata_dir "
30+ mkdir -p " $tessdata_dir "
31+ for lang in deu eng fin fra por rus spa; do
32+ echo " Downloading $lang .traineddata"
33+ wget --retry-connrefused --tries=30 " $tessdata_source " /" $lang " .traineddata -O " $tessdata_dir " /" $lang " .traineddata
34+ done
35+ wget --retry-connrefused --tries=30 " $tessdata_source " /osd.traineddata -O " $tessdata_dir " /osd.traineddata
3036
3137# if you also have to make nightly releases check for DEVEL_RELEASE = 1
3238#
You can’t perform that action at this time.
0 commit comments