From dcf186b047bb74d80f2b9d244101b509be71bd59 Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Fri, 10 May 2019 17:06:50 +0800 Subject: [PATCH] Update local installation --- docs/local-installation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/local-installation.md b/docs/local-installation.md index a26cc90..c554d22 100644 --- a/docs/local-installation.md +++ b/docs/local-installation.md @@ -1,5 +1,7 @@ ## Local Installation +Check here for an example: https://github.com/jeromewu/tesseract.js-offline + In browser environment, `tesseract.js` simply provides the API layer. Internally, it opens a WebWorker to handle requests. That worker itself loads code from the Emscripten-built `tesseract.js-core` which itself is hosted on a CDN. Then it dynamically loads language files hosted on another CDN. Because of this we recommend loading `tesseract.js` from a CDN. But if you really need to have all your files local, you can pass extra arguments to `TessearctWorker` to specify custom paths for workers, languages, and core. @@ -21,4 +23,4 @@ A string specifying the location of the [worker.js](./dist/worker.min.js) file. A string specifying the location of the tesseract language files, with default value 'https://tessdata.projectnaptha.com/4.0.0'. Language file URLs are calculated according to the formula `langPath + langCode + '.traineddata.gz'`. ### corePath -A string specifying the location of the [tesseract.js-core library](https://github.com/naptha/tesseract.js-core), with default value 'https://cdn.jsdelivr.net/gh/naptha/tesseract.js-core@v2.0.0-beta.5/tesseract-core.js'. +A string specifying the location of the [tesseract.js-core library](https://github.com/naptha/tesseract.js-core), with default value 'https://unpkg.com/tesseract.js-core@v2.0.0-beta.5/tesseract-core.js'.