2023年11月4日星期六

Ubuntu22.04安装Fcitx5中文输入法

直接使用 apt 进行安装
sudo apt install fcitx5 \ 
fcitx5-chinese-addons \ 
fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 \ 
fcitx5-frontend-qt5

安装中文词库
# 下载词库文件
wget https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.4/zhwiki-20220416.dict # 创建存储目录 
mkdir -p ~/.local/share/fcitx5/pinyin/dictionaries/
# 移动词库文件至该目录 
mv zhwiki-20220416.dict ~/.local/share/fcitx5/pinyin/dictionaries/

配置

#设置为默认输入法
im-config
根据弹出窗口的提示,将首选输入法设置为 Fcitx 5
如无该命令需先安装工具
sudo apt download im-config

#环境变量
设置桌面会话环境变量
export XMODIFIERS=@im=fcitx 
export GTK_IM_MODULE=fcitx 
export QT_IM_MODULE=fcitx
将以上配置内容写入配置文件中
vim /etc/profile 
i       编辑插入配置文件内容最后
ESC
:wq  保存退出
如未安装vim,需先安装
sudo apt-get install vim

#将 Fcitx 5 添加到「开机启动程序」列表
安装Tweaks
sudo apt install gnome-tweaks
打开设置开机启动项:
显示应用程序->工具->优化



没有评论:

发表评论

中国开通使用Apple Intelligence的秘诀

人在中国大陆使用 Apple Intelligence(苹果 AI)时遭遇报错,通常并不是因为“没有连接科学上网”,而是触发了 Apple 专门设置的三重地理与硬件限制机制。 务必顺着以下 3 个关键排查项找出问题原因: 排查 1:设备型号是否为“国行”?(硬件级封锁) 这是最常...