summaryrefslogtreecommitdiffabout
path: root/README.md
blob: 6a241025b07c7c979360adc29390c13f363a0e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### dict: a simple dictionary webapp

#### Demo

Featuring a toki pona dictionary: [http://dev.isomorphis.me/tokipona/](http://dev.isomorphis.me/tokipona/)

#### Build

Install dependencies:
```
opam install batteries js_of_ocaml-ppx js_of_ocaml-tyxml js_of_ocaml-lwt
```

Then:
```
make deploy
firefox public/index.html
```

#### Changing the dictionary

- Add a `.txt` file in `init/`, with a translation per line, translations being
  separated by `::`. See `init/dict.txt` for a simple example.
- Adapt `let lang = ...` and `let dict_name = ...` at the beginning of `dict.ml`.