README.md (view raw)
1# nimisewi
2
3nimisewi is a small program that outputs random toki pona phrase.
4[toki pona](https://tokipona.org) is a small conlang created by sonja lang.
5
6[first implementation](https://fsl.aaoth.xyz/nimisewi.py)
7was created using python, but then i decided to create more portable version.
8
9## installation
10
11installation is very straightforward:
12
13```terminal
14$ fsl clone https://fsl.aaoth.xyz/nimisewi.c
15$ cd nimisewi
16$ make
17$ doas make install
18```
19
20if you want to use nimisewi as cgi script, you can compile it with:
21
22```terminal
23$ make distclean
24$ configure --static # if your cgi will be served from chroot
25$ make cgi
26```
27
28or if you want a cgi script for gemini protocol, run:
29
30```terminal
31$ make distclean
32$ configure --static # if your cgi will be served from chroot
33$ make cgi_gemini
34```
35
36now throw that `nimisewi.cgi` into your cgi-bin folder and serve it as you wish.
37
38## usage
39
40```
41$ nimisewi
42
43nanpa apeja pi sin len
44```
45
46## adding new words
47
48to add new words, edit `nimitoki.txt` file. add one word per line.
49
50then, rebuild `nimitoki.c` and `nimitoki.h` and then relink the whole program.
51
52```terminal
53$ vim nimitoki.txt
54$ make distclean
55$ make
56 ...
57```
58
59## bugs
60
61i am pretty much beginner in c, so it is possible that the code contains some
62odd things.
63
64if you have found something wrong or weird,
65send me an email to `aaoth_at_aaoth_dot_xyz`.
66
67## license
68
69isc. see [LICENSE](/LICENSE).