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

在哪里设置候选词个数? #1825

Open
hwypengsir opened this issue Feb 26, 2025 · 1 comment
Open

在哪里设置候选词个数? #1825

hwypengsir opened this issue Feb 26, 2025 · 1 comment

Comments

@hwypengsir
Copy link

我设置了候选词20个,发现无法使用。

进入设置文件夹

cd  ~/.config/ibus/rime
ls 
build			     luna_pinyin.extended.dict.yaml
default.custom.yaml	     luna_pinyin_simp.custom.yaml
installation.yaml	     luna_pinyin_simp.yaml
luna_pinyin.41448.dict.yaml  luna_pinyin.userdb
luna_pinyin.8105.dict.yaml   user.yaml
luna_pinyin.base.dict.yaml

设置参数

vim  luna_pinyin_simp.custom.yaml
patch:
  #设定简化字为默认选项
  switches:
    - name: ascii_mode
      reset: 0
      states: [ 中文, 西文 ]
    - name: full_shape
      states: [ 半角, 全角 ]
    - name: zh_simp           # 注意這裏(※1)
      reset: 1
      states: [ 漢字, 汉字 ]

  menu/page_size: 20 # 候选词个数

  "translator/dictionary": luna_pinyin.extended

重新启动
ibus-daemon -xdr
别说显示20个字,选字的菜单根本就不出现了,重新启动电脑后,还是这样。
menu/page_size: 10
这下正常了,也就是仅仅显示10个。
我找的文件不对吗?

@lotem
Copy link
Member

lotem commented Feb 26, 2025

界面是 ibus 提供的。可能不支持那麼多候選項。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants