Note: this project is a work in progress!
The goal of this project is to create a simple desktop app that queries a LLM model for translation and save it to a database, to be used later for learning.
- Install Ollama
- Pull a model of your choice. In my experience, mistral works best for translations.
- Start ollama as a background service or run
ollama run <model>orollama serve
To see logs, start Hanzi providing environment variable RUST_LOG=<log level>
- Enter any chinese phrase into the text field, push enter
- Translation and pinyin appear below
- F1 key to display help dialog
- <Ctrl+B> on Linux or <Cmd+B> to display the about dialog
- <Ctrl+S> on Linux or <Cmd+S> to save the phrase into the database
- <Ctrl+F> on Linux or <Cmd+F> to search for saved phrases
- <Ctrl+X> on Linux or <Cmd+X> to exercise (not implemented yet)
- <Ctrl+,> on Linux or <Cmd+,> to open settings
