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

没有验证过

相关推荐
mCell1 小时前
从删库到跑路?这50个Linux命令能保你职业生涯
linux·windows·macos
杰克逊的日记1 小时前
GPU运维常见问题处理
linux·运维·gpu
誰能久伴不乏2 小时前
Linux系统调用概述与实现:深入浅出的解析
linux·运维·服务器
程序员学习随笔2 小时前
Linux进程深度解析(2):fork/exec写时拷贝性能优化与exit资源回收机制(进程创建和销毁)
linux·运维·服务器
mmoyula2 小时前
【RK3568 PWM 子系统(SG90)驱动开发详解】
android·linux·驱动开发
-SGlow-2 小时前
MySQL相关概念和易错知识点(2)(表结构的操作、数据类型、约束)
linux·运维·服务器·数据库·mysql
代码改变世界ctw3 小时前
Linux内核设计与实现 - 第14章 块I/O层
linux·运维·服务器
van叶~5 小时前
Linux网络-------1.socket编程基础---(TCP-socket)
linux·网络·tcp/ip
风吹落叶花飘荡5 小时前
Ubuntu系统 系统盘和数据盘扩容具体操作
linux·运维·ubuntu
zoulingzhi_yjs6 小时前
haproxy配置详解
linux·云原生