Debian Linux安装配置ibus rime中文输入法

Linux安装配置Rime

安装

清除所有fcitx软件包

shell 复制代码
sudo apt purge fcitx*

安装ibus和ibus-rime

shell 复制代码
sudo apt install ibus ibus-rime

启用输入法

找到输入法配置

启用ibus输入法

此时由于刚安装完毕ibus并没有启动

要么重启系统

要么输入下面的命令

shell 复制代码
ibus-daemon -drx

找到ibus首选项

输入法->添加->中文->Rime

配置

rime的配置文件在

txt 复制代码
~/.config/ibus/rime

共三个文件

  • default.custom.yaml,配置快捷键和候选词数量
  • ibus_rime.custom.yaml,配置输入样式
  • luna_pinyin_simp.custom.yaml,配置输入方案,按键映射等

default

yaml 复制代码
# Rime default
# encoding: utf-8
patch:
  menu:
    page_size: 7
  switcher:
    hotkeys:
      - "Control+Shift+F4"
  ascii_composer:
    switch_key:
      # 中英文切换策略
      # noop - 屏蔽该按键,不做处理
      # clear - 清空输入
      # inline_ascii - 切换到英文输入模式,回车后提交英文并恢复中文模式
      # commit_text - 提交候选的中文,并切换至英文模式
      # commit_code - 提交输入的英文,并切换至英文模式
      Shift_L: commit_code
      Shift_R: commit_code

ibus_rime

yaml 复制代码
# Ibus rime
# encoding: utf-8
patch:
  style:
    horizontal: true
    inline_preedit: false

luna_pinyin_simp

yaml 复制代码
# Rime luna pinyin simple
# encoding: utf-8
# 明月拼音-简 自定义
patch:
  punctuator:
    import_preset: default
    full_shape:
      "/": "/"
      '\': '、'
      "#": "#"
    half_shape:
      "/": "/"
      '\': '、'

重启

从安装到配置,没有重启过系统,这时应该是不能使用的

所以一定要重启

会有点瑕疵,但是这已经是最好形态了

Qt程序下的输入问题

有解决方案是这样的

/etc/profile里添加:

bashrc 复制代码
export GTK_IM_MODULE=ibus

export XMODIFIERS=@im=ibus

export QT_IM_MODULE=ibus

保存退出,source /etc/profile

没有验证过

相关推荐
Lw老王要学习1 小时前
Linux容器篇、第二章_01Ubuntu22 环境下 KubeSphere 容器平台高可用搭建全流程
linux·运维·服务器·k8s·kubesphere·容器化
張萠飛2 小时前
Linux下如何使用shell脚本导出elasticsearch中某一个index的数据为本地csv文件
linux·运维·elasticsearch
晓枫-迷麟3 小时前
【nano与Vim】常用命令
linux·编辑器·vim
LucienShui3 小时前
Webhook 配置备忘
linux·运维·webhook
超级土豆粉4 小时前
从0到1写一个适用于Node.js的User Agent生成库
linux·ubuntu·node.js
PH_modest4 小时前
【Linux跬步积累】—— 网络编程套接字(二)
linux·运维·网络
CIb0la5 小时前
Ubuntu 25.10 将默认使用 sudo-rs
linux·程序人生·生活
成工小白5 小时前
【Linux】文件操作
linux·运维·服务器
程序员打怪兽5 小时前
基于V4L2摄像头智能识别拍照(人脸和手掌)
linux·嵌入式
张海森-1688207 小时前
windows10搭建nfs服务器
linux