[Topic DIscussion] fcitx5词库
Tofloor
poster avatar
老咸鱼
deepin
2021-11-30 05:54
Author

我的fcitx5词库下载不了搜狗词库,本地也导入不了。

奇怪了,一直卡在那里,谁知道什么问题吗

系统信息:

  1. uname -a:

    Linux xzyande-PC 5.10.60-amd64-desktop #3 SMP Tue Nov 9 20:52:29 CST 2021 x86_64 GNU/Linux
    
  2. lsb_release -a:

    No LSB modules are available.
    Distributor ID: Deepin
    Description:    Deepin 20.3
    Release:        20.3
    Codename:       n/a
    
  3. lsb_release -d:

    Description:    Deepin 20.3
    
  4. /etc/lsb-release:

    DISTRIB_ID=Deepin
    DISTRIB_RELEASE=20.3
    DISTRIB_DESCRIPTION="Deepin 20.3"
    DISTRIB_CODENAME=apricot
    
  5. /etc/os-release:

    PRETTY_NAME="Deepin 20.3"
    NAME="Deepin"                                                                            
    VERSION_ID="20.3"                                                                        
    VERSION="20.3"                                                                           
    ID=Deepin                                                                                
    HOME_URL="https://www.deepin.org/"                                                       
    BUG_REPORT_URL="https://bbs.deepin.org/"                                                 
    
  6. 桌面环境:

    桌面环境为 gnome3

  7. Bash 版本:

    BASH_VERSION='5.0.3(1)-release'
    

环境:

  1. DISPLAY:

    DISPLAY=':0'
    
  2. 键盘布局:

    1. setxkbmap:

      xkb_keymap {
          xkb_keycodes  { include "evdev+aliases(qwerty)" };                               
          xkb_types     { include "complete"      };                                       
          xkb_compat    { include "complete"      };                                       
          xkb_symbols   { include "pc+cn+us:2+inet(evdev)"        };                       
          xkb_geometry  { include "pc(pc105)"     };                                       
      };                                                                                   
      
    2. xprop:

      _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "cn,us", "", ""
      
  3. Locale:

    1. 全部可用 locale:

      C
      C.UTF-8                                                                              
      en_US.utf8                                                                           
      POSIX                                                                                
      zh_CN.utf8                                                                           
      
    2. 当前 locale:

      LANG=zh_CN.UTF-8
      LANGUAGE=zh_CN                                                                       
      LC_CTYPE="zh_CN.UTF-8"                                                               
      LC_NUMERIC="zh_CN.UTF-8"                                                             
      LC_TIME="zh_CN.UTF-8"                                                                
      LC_COLLATE="zh_CN.UTF-8"                                                             
      LC_MONETARY="zh_CN.UTF-8"                                                            
      LC_MESSAGES="zh_CN.UTF-8"                                                            
      LC_PAPER="zh_CN.UTF-8"                                                               
      LC_NAME="zh_CN.UTF-8"                                                                
      LC_ADDRESS="zh_CN.UTF-8"                                                             
      LC_TELEPHONE="zh_CN.UTF-8"                                                           
      LC_MEASUREMENT="zh_CN.UTF-8"                                                         
      LC_IDENTIFICATION="zh_CN.UTF-8"                                                      
      LC_ALL=                                                                              
      
  4. 目录:

    1. 主目录:

      /home/xzyande
      
    2. ${XDG_CONFIG_HOME}:

      环境变量 XDG_CONFIG_HOME 是设定为 /home/xzyande/.config

      XDG_CONFIG_HOME 的当前值是 ~/.config (/home/xzyande/.config)。

    3. Fcitx5 设置目录:

      当前 fcitx5 设置目录是 ~/.config/fcitx5 (/home/xzyande/.config/fcitx5)。

  5. 当前用户:

    脚本作为 xzyande (1000) 运行。

Fcitx 状态:

  1. 可执行文件:

    /usr/bin/fcitx5 找到了 fcitx5。

  2. 版本:

    Fcitx 版本: 5.0.5

  3. 进程:

    找到了 1 个 fcitx5 进程:

    13803 fcitx5
    
  4. fcitx5-remote:

    fcitx5-remote 工作正常。

  5. DBus 界面:

    使用 dbus-send 来检查 dbus。

    DBus 名称 org.fcitx.Fcitx5 的所有者是 :1.492

    DBus 名称 org.fcitx.Fcitx5 的 PID 所有者是 13803

Fcitx 配置界面:

  1. 配置工具封装:

    /usr/bin/fcitx5-configtool 找到了 fcitx5-configtool。

  2. Qt 的配置界面:

    /usr/bin/fcitx5-config-qt 找到了 fcitx5-config-qt

  3. KDE 的配置界面:

    kcmshell5 未找到.

前端设置:

Xim:

  1. ${XMODIFIERS}:

    环境变量 XMODIFIERS 已经正确地设为了“@im=fcitx”。
    从环境变量中获取的 Xim 服务名称为 fcitx.

  2. 根窗口上的 XIM_SERVERS:

    Xim 服务的名称与环境变量中设置的相同。

Qt:

  1. qt4 - ${QT4_IM_MODULE}:

    环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。

  2. qt5 - ${QT_IM_MODULE}:

    环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。

  3. Qt 输入法模块文件:

    找到了 fcitx5 的 qt5 输入法模块:/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
    找到了 fcitx5 qt5 模块:/lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx-quickphrase-editor5.so
    无法找到 Qt4 的 fcitx5 输入法模块。

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    环境变量 GTK_IM_MODULE 已经正确地设为了“fcitx”。

  2. gtk-query-immodules:

    1. gtk 2:

      无法找到 gtk 2 的 gtk-query-immodules

      无法找到 gtk 2 的 fcitx5 输入法模块。

    2. gtk 3:

      无法找到 gtk 3 的 gtk-query-immodules

      无法找到 gtk 3 的 fcitx5 输入法模块。

  3. Gtk 输入法模块缓存:

    1. gtk 2:

      /lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache 找到了 gtk 2.24.32 的输入法模块缓存。
      版本行:

      # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.32                                                                                            
      

      无法输入法模块缓存 /lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache 中找到 fcitx5

      无法在缓存中找到 gtk 2 的 fcitx5 输入法模块。

    2. gtk 3:

      /lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache 找到了 gtk 3.24.5 的输入法模块缓存。
      版本行:

      # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.24.5                                                                                              
      

      已找到 gtk 3.24.5 的 fcitx5 输入法模块。

      "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
      "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"                                                                                                 
      "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"                                                                                                
      
    3. gtk 4:

      无法找到 gtk 4 的输入法模块缓存

      无法在缓存中找到 gtk 4 的 fcitx5 输入法模块。

  4. Gtk 输入法模块文件:

    1. gtk 2:

      找到的全部 Gtk 2 输入法模块文件均存在。

    2. gtk 3:

      找到的全部 Gtk 3 输入法模块文件均存在。

    3. gtk 4:

      找到的全部 Gtk 4 输入法模块文件均存在。

配置:

Fcitx 插件:

  1. 插件配置文件目录:

    找到了 fcitx5 的插件配置目录:/usr/share/fcitx5/addon

  2. 插件列表:

    1. 找到了 25 个已启用的插件:

      Simplified and Traditional Chinese Translation
      Classic User Inteface                                                                
      Clipboard                                                                            
      Cloud Pinyin                                                                         
      DBus                                                                                 
      DBus Frontend                                                                        
      Emoji                                                                                
      Fcitx4 Frontend                                                                      
      Full width character                                                                 
      IBus Frontend                                                                        
      Input method selector                                                                
      Keyboard                                                                             
      KDE Input Method Panel                                                               
      Status Notifier                                                                      
      Notification                                                                         
      Pinyin                                                                               
      Extra Pinyin functionality                                                           
      Punctuation                                                                          
      Quick Phrase                                                                         
      Spell                                                                                
      Unicode                                                                              
      Wayland                                                                              
      Wayland Input method frontend                                                        
      XCB                                                                                  
      X Input Method Frontend                                                              
      
    2. 找到了 0 个被禁用的插件:

  3. 插件库:

    所有插件所需的库都被找到。

  4. 用户界面:

    找到了 2 个已启用的用户界面插件:

    Classic User Inteface
    KDE Input Method Panel                                                                   
    

日志:

  1. date:

    2021年 11月 29日 星期一 21:53:08 CST
    
  2. /home/xzyande/.config/fcitx5/crash.log:

    /crash.log 未找到.

Reply Favorite View the author
All Replies
chenshijie
deepin
2021-12-02 19:32
#1

确实是bug,没有导入成功。

Reply View the author
chenshijie
deepin
2021-12-02 19:40
#2

你用flatpak安装启用fcitx5试试,这样能获取到fcitx社区的最新版本。

因为一些制度原因,社区版的fcitx5的更新暂时会比较慢。

Reply View the author
老咸鱼
deepin
2021-12-03 19:41
#3
chenshijie

你用flatpak安装启用fcitx5试试,这样能获取到fcitx社区的最新版本。

因为一些制度原因,社区版的fcitx5的更新暂时会比较慢。

不折腾了,有百度云拼音,够用,反正我用得不多

Reply View the author
liwl
deepin
2022-01-09 04:26
#4

重新安装依赖,就可以导入了

sudo apt install fcitx5 fcitx5-pinyin fcitx5-chinese-addons fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-qt5 kde-config-fcitx5 fcitx5-config-qt

我的没有导入成功,重新安装这些依赖,导入成功了

Reply View the author
老咸鱼
deepin
2022-01-14 07:47
#5
liwl

重新安装依赖,就可以导入了

sudo apt install fcitx5 fcitx5-pinyin fcitx5-chinese-addons fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-qt5 kde-config-fcitx5 fcitx5-config-qt

我的没有导入成功,重新安装这些依赖,导入成功了

感谢大佬的回复,谢谢指点

Reply View the author