• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    Ubuntu22.04安装Fcitx5中文输入法

    Scheduled Pinned Locked Moved Ubuntu
    1 Posts 1 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      george
      last edited by george

      • 检查系统中文环境
        在 Ubuntu 设置中打开「区域与语言」—— 「管理已安装的语言」,然后会自动检查已安装语言是否完整。若不完整,根据提示安装即可。
        4e2d75a8-9bc3-4b13-bf9e-2a7a51c368fd-image.png

      • 最小安装
        为使用 Fcitx 5,需要安装三部分基本内容:
        Fcitx 5 主程序
        中文输入法引擎
        图形界面相关
        按照这个思路,可以直接使用 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 工具可以配置首选输入法,在任意命令行输入:
      im-config
      

      bfc48726-2de3-4d4d-8a76-00b2a8f7a2c5-image.png
      根据弹出窗口的提示,将首选输入法设置为 Fcitx 5 即可。

      • 开机启动fcitx5
      sudo cp /usr/share/applications/org.fcitx.Fcitx5.desktop /etc/xdg/autostart/
      
      1 Reply Last reply Reply Quote 1
      • 1 / 1
      • First post
        Last post