all repos — nimisewi_c @ main

simple random toki pona phrase generator

a09dfac1
added ability to specify max amount of words generated by nimisewi

added new flag to main program, that displays sad version of prompt

removed unnecessary function that sets up random seed for systems where
arc4random is not available

updated readme

FossilOrigin-Name: 1195601f8a81524006e8d3c9014abb26cf613ad995b60455d9553fd7bb50d337
la-ninpre leobrekalini@gmail.com
Sat, 20 Nov 2021 19:00:28 +0000
6cf69cba
fixed error in CMakeLists.txt

and in this case i'm really unsure about version bump.

FossilOrigin-Name: 151c415c947559fc2c8889286a988ce9ec05a56d6720b5ba92cbde53ccfea20e
la-ninpre leobrekalini@gmail.com
Sat, 11 Sep 2021 10:27:15 +0000
b9307275
fixed compiler warning about integer type

also added NIMISEWI_STATIC_BUILD option.

anyway, i'm curious, if such changes require a version bump or not.

FossilOrigin-Name: ae170493ce2c0aef31cb81ff7c448134862967ad8a7918d1fde94f05542c6466
la-ninpre leobrekalini@gmail.com
Sat, 11 Sep 2021 10:22:39 +0000

nimisewi

nimisewi is a small program that outputs random toki pona phrase. toki pona is a small conlang created by sonja lang.

first implementation was created using python, but then i decided to create more portable version.

dependencies

installation

installation is very straightforward:

$ fsl clone https://fsl.aaoth.xyz/nimisewi.c
$ cd nimisewi
$ mkdir build && cd build
$ cmake ..
$ cmake --build .
$ doas make install

compilation options

to specify these options, pass them as -D{OPTION} to initial cmake invocation. for example, these commands result in building both http and gemini versions of cgi script.

$ mkdir build && cd build
$ cmake -DBUILD_CGI=ON -DBUILD_GEMINI=ON ..
$ cmake --build .

usage

$ nimisewi

musi taso jaki pi selo olin lukin

options:

adding new words

to add new words, edit nimitoki.txt file. add one word per line.

then, just clean everything and recompile the program.

$ vim nimitoki.txt
$ cd build
$ make clean
$ make
  ...

changelog

bugs

i am pretty much beginner in c, so it is possible that the code contains some odd things.

if you have found something wrong or weird, send me an email to aaoth_at_aaoth_dot_xyz.

license

all code that makes up nimisewi, nimisewi.cgi, nimisewi_gemini.cgi and makenimitoki programs is licensed under ISC license (see LICENSE).

nimitoki.txt is in public domain.

clone
git clone https://git.aaoth.xyz/nimisewi_c