home icon indicating copy to clipboard operation
home copied to clipboard

在哪里设置候选词个数?

Open hwypengsir opened this issue 10 months ago • 3 comments

我设置了候选词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个。 我找的文件不对吗?

hwypengsir avatar Feb 26 '25 02:02 hwypengsir

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

lotem avatar Feb 26 '25 03:02 lotem

最多只支持10个候选词。

Ressler-Git avatar Apr 15 '25 09:04 Ressler-Git

若无异议,请关闭 issue,减少项目复杂度,节约维护者精力,方便你我他大家。

otakutyrant avatar May 21 '25 08:05 otakutyrant