Update your input method preferences as Genshin Impact updates and rolls out a new version, just some keystrokes away.
- This software was tested on a macOS device having Python 3.9 installed. It may also work on some other Linux or BSD distros but probably not on a Windows device
- You have to git clone https://github.com/Dimbreath/GenshinData to your local PC first
- git clone this repository to your local disk
- Find
Common/conf.py
and change thedataPath
andprodPath
variables. pip3 install opencc pypinyin
- cd to
{ProjectRoot}
and runpython3 app.py
- The program will run and produce some output to console.
- The generated files required by Rime (Squirrel) will be produced at
{ProjectRoot}/Build
folder. Copy all the three files there to your Rime config folder. - Re-deploy your input method and enjoy
To make Yuhao-compatible wordlib, first make sure that the file
~/Library/Rime/yuhao.full.dict
exists before proceeding as follows:
- Make sure that GenshinData is present and run yuhao.py.
- Copy
Build/yuhao.genshin.dict.yaml
to~/Library/Rime
. - Find
~/Library/Rime/yuhao.dict.yaml
and appendyuhao.genshin
under nodeimport_tables
. Addingyuhao.dict.custom.yaml
is not going to work. You have to make this change every time the input scheme updates. - Re-deploy and use it.
Attention, to prevent too many words taking the same input sequence, we
have excluded Artifact
and Homeworld
by default. To add these back,
you have to alter the function parameters. See
https://github.com/duoduoffff/genshinAutoGlossary/blob/master/Common/gen.py#L61.
If Python complains about missing openCC, try installing it using
brew install opencc
. If it continues complaining that the opencc library
is missing, find that (it is typically installed under
/opt/homebrew/Cellar/opencc/1.1.6/lib
), and add it to your .zshrc
environment variable by adding export LIBOPENCC='/opt/homebrew/Cellar/opencc/1.1.6/lib/libopencc.dylib'
, and
then source it.