diff --git a/services/web/config/settings.defaults.js b/services/web/config/settings.defaults.js index 8bd02a94d2..fe040ac952 100644 --- a/services/web/config/settings.defaults.js +++ b/services/web/config/settings.defaults.js @@ -462,11 +462,7 @@ module.exports = { { code: 'ca', dic: 'ca', name: 'Catalan' }, { code: 'hr', dic: 'hr_HR', name: 'Croatian' }, { code: 'cs', dic: 'cs_CZ', name: 'Czech' }, - { - code: 'da', - // dic: 'da_DK', TODO: re-enable client spell check - name: 'Danish', - }, + { code: 'da', dic: 'da_DK', name: 'Danish' }, { code: 'nl', dic: 'nl', name: 'Dutch' }, { code: 'dz', dic: 'dz', name: 'Dzongkha', server: false }, { code: 'eo', dic: 'eo', name: 'Esperanto' }, @@ -536,7 +532,7 @@ module.exports = { { code: 'ts', name: 'Tsonga' }, { code: 'tn', name: 'Tswana' }, { code: 'tr_TR', dic: 'tr_TR', name: 'Turkish', server: false }, - // { code: 'uk_UA', dic: 'uk_UA', name: 'Ukrainian', server: false }, + { code: 'uk_UA', dic: 'uk_UA', name: 'Ukrainian', server: false }, { code: 'hsb', name: 'Upper Sorbian' }, { code: 'uz_UZ', dic: 'uz_UZ', name: 'Uzbek', server: false }, { code: 'vi_VN', dic: 'vi_VN', name: 'Vietnamese', server: false }, diff --git a/services/web/frontend/js/features/source-editor/hunspell/compile.sh b/services/web/frontend/js/features/source-editor/hunspell/compile.sh index e14639cf65..889c76cea2 100755 --- a/services/web/frontend/js/features/source-editor/hunspell/compile.sh +++ b/services/web/frontend/js/features/source-editor/hunspell/compile.sh @@ -14,6 +14,7 @@ em++ \ -s EXPORTED_FUNCTIONS="['_Hunspell_create', '_Hunspell_destroy', '_Hunspell_spell', '_Hunspell_suggest', '_Hunspell_free_list', '_Hunspell_add_dic', '_Hunspell_add', '_Hunspell_remove', '_free', '_malloc', 'FS']" \ -s EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap', 'getValue', 'stringToNewUTF8', 'UTF8ToString', 'WORKERFS']" \ -s ENVIRONMENT=worker \ + -s STACK_SIZE=5MB \ -s ALLOW_MEMORY_GROWTH \ -lworkerfs.js \ -O2 \ diff --git a/services/web/frontend/js/features/source-editor/hunspell/wasm/README.md b/services/web/frontend/js/features/source-editor/hunspell/wasm/README.md index 317c7031c5..81dd64da36 100644 --- a/services/web/frontend/js/features/source-editor/hunspell/wasm/README.md +++ b/services/web/frontend/js/features/source-editor/hunspell/wasm/README.md @@ -5,3 +5,5 @@ The files in this directory are: * `hunspell.wasm`: [Hunspell](https://github.com/hunspell/hunspell) compiled to WebAssembly using Emscripten, via the [build.sh](../build.sh) script. * `hunspell.mjs`: a JavaScript wrapper for the WebAssembly module, generated by Emscripten. * `hunspell.d.ts`: manually-created types for the exports from the JavaScript module. + +Note: To speed up compilation on ARM architecture (e.g. Apple M1), add `-arm64` to the Docker image tag in `Dockerfile`. diff --git a/services/web/frontend/js/features/source-editor/hunspell/wasm/hunspell.wasm b/services/web/frontend/js/features/source-editor/hunspell/wasm/hunspell.wasm index 9ac85110d0..4f8e972184 100644 Binary files a/services/web/frontend/js/features/source-editor/hunspell/wasm/hunspell.wasm and b/services/web/frontend/js/features/source-editor/hunspell/wasm/hunspell.wasm differ