1 常用的输入法框架介绍

  • Fcitx (英文全称为FlexibleInput Method Framework) ,中文名为小企鹅输入法

    Fcitx是一个以 GPL 方式发布的输入法平台,编写它的目是为桌面环境提供一个灵活的输入方案,彻底解决在GNU/Linux下没有一个好的中文输入法的问题。Fcitx支持XIM和GTK2,GTK3,QT4的IM Module,可为支持 XIM 的 X 应用程序提供输入服务。 fcitx 的源码包内提供了区位和全/简/双拼,并支持基于码表的输入法。可以输入UTF-8编码中的文字。有配置界面,界面展现形式更接近与windows,比较适合windows转linux的用户。资源占用低,处理速度快。

    alt text

  • IBus (英文全称为Intelligent Input Bus)

    是GNU/Linux和类UNIX操作系统下的以GPL协议分发源代码的开源免费多语言输入法框架。因为它采用了总线(Bus)式的架构,所以命名为Bus。IBus支持多种输入法,如拼音输入法,并支持基于码表的输入法,如五笔等输入法,是多个流行的GNU/Linux发行版(如Debian,RedHat等)的默认非英文输入法平台。IBus 是用C及 Python 开发的,如此可以避免 C++ABI transition 问题。无配置界面,资源占用比较可观

2 系统配置使用fcitx5

2.1 安装依赖

sudo apt install -y fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5 libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2 libgsettings-qt1

2.2 系统选择fcitx5输入法

alt text

2.3 配置fcitx5输入法

2.3.1 fcitx5更换主题

主题下载链接:https://github.com/sxqsfun/fcitx5-sogou-themes

alt text

主题下载完成后,拷贝到

~/.local/share/fcitx5/themes/

alt text

输入法中设置主题 .png alt text

alt text

2.3.2 fcitx5设置词库

可以在下面链接下载中文输入法词库:https://github.com/wuhgit/CustomPinyinDictionary

alt text

  1. 词库下载完成后,拷贝到以下目录:
     ~/.local/share/fcitx5/pinyin/dictionaries
    

    alt text

  2. fcitx5中设置选择词库

    alt text

    alt text

2.3.3 fcitx5云拼音

alt text

可以选择云拼音出现在候选第二个

alt text

云拼音后端选择Baidu

alt text

3 系统配置使用fcitx4

3.1 官网下载使用搜狗输入法

https://shurufa.sogou.com/linux

4 为桌面会话设置环境变量

alt text

gedit ~/.bashrc
# 更新以下
source ~/.bashrc