Input chinese text, outputs into a format where you can click on words for their definitions with pinyin displayed below the words.
Pinyin displayed underneath the chinese text is not necessarily always correct. It is choosing one of the definitions of the detected word from the dictionary to draw pinyin from, and may select the wrong one given the context (because it does not take the context into account).
- Grab a
cedict_ts.u8and put it in adatafolder. zig build -Doptimize=ReleaseSmallgenerates thechineseassistant.wasm.
./serve.sh will run zig build -Doptimize=ReleaseSmall, and then hosts a server with miniserve on the public folder with port 8000.
I use cp in build.zig; might not work on Windows?