diff --git a/.gitignore b/.gitignore index 271ee76..e85c5fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +target elm-stuff node_modules dist/app.js diff --git a/Makefile b/Makefile index d0e18cc..269e2f4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ default: app.js -app.js: src - elm make src/Main.elm --output=dist/app.js \ No newline at end of file +app.js: src dist + mkdir -p target + cp dist/index.html dist/style.css target + elm make src/Main.elm --output=target/app.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..b664fc2 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# google-handwriting-api-elm + +[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org) + +This is a proof of concept to figure out how the google translate API works. +It consists of a canvas which will send its data to google in order to recognize japanese letters. + +There are toggles which lets you filter out hiragana, katakana, etc. + +## Running + +If you have elm (and make) already installed, you can run `make` and check the target directory for outputs. + +However, it's preferably built with `nix build` + +![screenshot](screenshots/screenshot1.png) diff --git a/screenshots/screenshot1.png b/screenshots/screenshot1.png new file mode 100644 index 0000000..746d996 Binary files /dev/null and b/screenshots/screenshot1.png differ