TagSpaces is an offline, open source, document manager with tagging support
tessaract.js now use local data
Borislav Sapundzhieveced6c927dbd
diff --git a/data/index.html b/data/index.htmlindex 9e768702b..1eb06afce 100644--- a/data/index.html+++ b/data/index.html@@ -5,7 +5,7 @@source code is governed by a AGPL3 license that can be found in the LICENSE file. --><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">- <meta http-equiv="Content-Security-Policy" content="default-src file: gap: https:; frame-src 'self' file: gap: http: https: ; img-src 'self' data: ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'">+ <meta http-equiv="Content-Security-Policy" content="default-src file: gap: ; frame-src 'self' file: gap: http: https: ; img-src 'self' data: ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'"><title>TagSpaces</title><style type="text/css">#loadingLogo {diff --git a/data/libs/tesseract.js/eng.traineddata.gz b/data/libs/tesseract.js/eng.traineddata.gznew file mode 100644index 000000000..9940ed9efBinary files /dev/null and b/data/libs/tesseract.js/eng.traineddata.gz differdiff --git a/data/libs/tesseract.js/worker.js b/data/libs/tesseract.js/worker.jsindex 346a6b826..9f6130b54 100755--- a/data/libs/tesseract.js/worker.js+++ b/data/libs/tesseract.js/worker.js@@ -9424,7 +9424,8 @@ var tesseractinit = (function createTesseractInstance(memory){}})var xhr = new XMLHttpRequest();- xhr.open('GET', 'https://cdn.rawgit.com/naptha/tessdata/gh-pages/3.02/'+lang+'.traineddata.gz', true);+ //xhr.open('GET', 'https://cdn.rawgit.com/naptha/tessdata/gh-pages/3.02/'+lang+'.traineddata.gz', true);+ xhr.open('GET', lang+'.traineddata.gz', true);xhr.responseType = 'arraybuffer';xhr.onerror = function(){ cb(xhr, null) }xhr.onprogress = function(e){