rime / home

Rime::Home is home to Rime users and developers
https://rime.im
4.27k stars 231 forks source link

rime_dict_manager -l 为何列不出用户词库? #1528

Closed hwypengsir closed 6 months ago

hwypengsir commented 6 months ago

我按照网页的提示 https://gist.github.com/lotem/5443073#file-luna_pinyin-kunki-dict-yaml.

设置 luna_pinyin.custom.yaml

cat   luna_pinyin.custom.yaml
# encoding: utf-8
patch:
  translator/dictionary: luna_pinyin.my

自定义词库文件的设置:

cat  luna_pinyin.my.dict.yaml
# Rime dictionary
# encoding: utf-8

---
name: luna_pinyin.my
version: "2013.04.23"
sort: by_weight
use_preset_vocabulary: true
# 從 luna_pinyin.dict.yaml 導入包含單字的碼表
import_tables:
  - luna_pinyin
...

# table begins

# 自定義的詞條

钕载  nv zai  100

设置完成后,重新部署。 show

我输入 "nv zai",可以显示 钕载;表明自定义词库成功了。

rime_dict_manager  -l
I20240417 08:33:42.977586  2656 registry.cc:14] registering component: userdb
W20240417 08:33:42.977952  2656 config_data.cc:68] nonexistent config file 'installation.yaml'.
no user dictionary is found.

为何rime_dict_manager -l 列不出这个词库呢?

ksqsf commented 6 months ago
nonexistent config file 'installation.yaml'.

先 cd 到 rime 用户目录里。