Offline dictionary with open formats
Totally offline performant dictionary, with prefix fuzzy autocompleting search, live, and clipboard watching.
- Linux only, currently
- A format I camp up with deliberately when cleaning up some dictionary files
- API server
- REPL
- GUI (tauri)
I personally have some Chinese-English dictionary source files. I cleaned up the data into open formats, and this program is specifically for that.
API:
127.0.0.1:3030/q/some_word_to_lookup
/stat/
Then build the index offdict build
apt install libxcb-shape0-dev libxcb-xfixes0-dev # required for building clipboard-master
Usage
- Input anywhere to start live search.
- Copy anything and it would pop up.
- Press ⬅️ or ➡️ for scrolling
- Tap
Enter
to perform an extensive & expensive search - It loads
config.json5
in the working directory. - To import dictionaries
- Just grab a
data
folder from somewhere (might have vulnerability) - Import with
offdict yaml -p '<wildcard for files>.yaml' -s
(works for both CLI and GUI binaries)
- Just grab a
notes
- faster fuzzy autocompletion algorithm. https://github.com/qinbill/IncNgTrie ?