Add readme and fix Makefile

main
Oystein Kristoffer Tveit 2022-04-12 18:41:49 +02:00
parent 481b439a52
commit 62c070d37b
4 changed files with 21 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
target
elm-stuff
node_modules
dist/app.js

View File

@ -1,4 +1,6 @@
default: app.js
app.js: src
elm make src/Main.elm --output=dist/app.js
app.js: src dist
mkdir -p target
cp dist/index.html dist/style.css target
elm make src/Main.elm --output=target/app.js

16
README.md Normal file
View File

@ -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)

BIN
screenshots/screenshot1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB