Skip to content

Instantly share code, notes, and snippets.

@ShamoX
Last active October 23, 2018 14:46
Show Gist options
  • Save ShamoX/49143fa1b1a539fcd641b0c009c0f579 to your computer and use it in GitHub Desktop.
Save ShamoX/49143fa1b1a539fcd641b0c009c0f579 to your computer and use it in GitHub Desktop.
#!/bin/bash
TESSDATA_PATH=${1:-/usr/share/tesseract-ocr}
for F in $(find $TESSDATA_PATH/tessdata|grep "^$TESSDATA_PATH/tessdata/fra")
do
rm -f "${F/fra/fre}"
link "$F" "${F/fra/fre}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment