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

没有验证过

相关推荐
蜡台6 小时前
Python包管理工具pip完全指南-----2
linux·windows·python
Ujimatsu6 小时前
虚拟机安装Debian 13.x及其常用软件(2026.4)
linux·运维·ubuntu
千百元6 小时前
zookeeper启不来了
linux·zookeeper·debian
AnalogElectronic8 小时前
linux 测试网络和端口是否连通的命令详解
linux·网络·php
Edward111111119 小时前
4月28日防火墙问题
linux·运维·服务器
子琦啊9 小时前
【算法复习】字符串 | 两个底层直觉,吃透高频题
linux·运维·算法
AOwhisky10 小时前
Kubernetes 学习笔记:集群管理、命名空间与 Pod 基础
linux·运维·笔记·学习·云原生·kubernetes
小龙在慢慢变强..11 小时前
目录结构(FHS 标准)
linux·运维·服务器
2035去旅行11 小时前
嵌入式开发,如何选择C标准库
linux·arm开发
刘延林.11 小时前
win11系统下通过 WSL2 安装Ubuntu 24.04 使用RTX 5080 GPU
linux·运维·ubuntu