Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手动配置混输模式,与挂载词库产生冲突 #36

Open
quitdoing opened this issue Feb 16, 2023 · 2 comments
Open

手动配置混输模式,与挂载词库产生冲突 #36

quitdoing opened this issue Feb 16, 2023 · 2 comments
Labels
need more info Insufficient information to locate the problem

Comments

@quitdoing
Copy link

操作过程:
1、将 easy_en.schema.yaml easy_en.dict.yaml easy_en.yaml lua/easy_en.lua 复制到 rime 配置目录。
2、在 luna_pinyin.custom.yaml 文件中的 patch 下添加 __include: easy_en:/patch。
3、重新布署rime。
结果发现rime只能输入英文,无法输入中文,注释掉 __include: easy_en:/patch后可正常输入中文。注释掉luna_pinyin.custom.yaml 文件中的translator/dictionary: luna_pinyin.extended后可以正常中英混输。

@BlindingDark
Copy link
Owner

能否尝试将 __include: easy_en:/patch 放在 translator/dictionary: luna_pinyin.extended 的后面?

@BlindingDark BlindingDark added the need more info Insufficient information to locate the problem label Mar 12, 2023
@Yukai-Qian
Copy link

@quitdoing 我找到了一个解决方法,供你参考:

  1. 不要添加 __include: easy_en:/patch 一行
  2. luna_pinyin.custom.yaml 中,添加如下几行:
patch:
  "engine/translators/+":
    - table_translator@easy_en
  "schema/dependencies/+":
    - easy_en
  easy_en:
    __include: easy_en.schema:/translator
    enable_completion: true
    enable_sentence: true
    initial_quality: -1
  "recognizer/patterns/uppercase": ''
  "speller/alphabet":
    __include: easy_en.schema:/speller/alphabet

@BlindingDark 看起来这几行的作用和只添加一行 __include: easy_en:/patch 的作用理应是一样的,但确实只有手动添加这几行才能正常工作。希望对你 debug 有帮助!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Insufficient information to locate the problem
Projects
None yet
Development

No branches or pull requests

3 participants