This repo is a demo for compiling the hunspell spell checking library with emscripten.org to JavaScript for client side spellchecking
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dictionaries @ 958b613
embuild
hunspell @ a6a137e
.gitmodules
README.md
demo.html
hunspell-worker.js

README.md

emscripten-hunspell

This repo is a demo for compiling the hunspell spell checking library with emscripten to JavaScript for client side spellchecking.

Building hunspell with emscripten

You must have emscripten and autoreconf installed. You can use the docker image of apiaryio:

docker run --rm -v $(pwd):/src -ti apiaryio/emcc bash
apt-get install dh-autoreconf

Making hunspell:

cd hunspell
autoreconf -vfi
emconfigure ./configure
emmake make

Creating the js file

cd jsbuild
./build.sh

Running the demo:

python -m SimpleHTTPServer 8080

Open http://localhost:8080/demo.html in your Browser.