Skip to content

FiggyFoxFunc/chineseassistant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chinese Text Reading Assistant

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

using

  1. Grab a cedict_ts.u8 and put it in a data folder.
  2. zig build -Dgen_def=true run to generate definitions using the cedict_ts.u8.
  3. zig build -Doptimize=ReleaseSmall generates the chineseassistant.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?

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Zig 73.3%
  • JavaScript 18.7%
  • HTML 7.9%
  • Shell 0.1%