Skip to content

gerdreiss/hanzi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

汉字

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.

Usage

Before using

  1. Install Ollama
  2. Pull a model of your choice. In my experience, mistral works best for translations.
  3. Start ollama as a background service or run ollama run <model> or ollama serve

To see logs, start Hanzi providing environment variable RUST_LOG=<log level>

How-to

  1. Enter any chinese phrase into the text field, push enter
  2. Translation and pinyin appear below
  3. F1 key to display help dialog
  4. <Ctrl+B> on Linux or <Cmd+B> to display the about dialog
  5. <Ctrl+S> on Linux or <Cmd+S> to save the phrase into the database
  6. <Ctrl+F> on Linux or <Cmd+F> to search for saved phrases
  7. <Ctrl+X> on Linux or <Cmd+X> to exercise (not implemented yet)
  8. <Ctrl+,> on Linux or <Cmd+,> to open settings

image

About

学习汉语很有趣!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages