veket官方网站论坛

veket

 找回密码
 要注册
搜索
查看: 782|回复: 8

请教veket22 下fcitx5-rime安装及i使用问题

[复制链接]
发表于 2022-8-24 19:13 | 显示全部楼层 |阅读模式
本人纯小白,使用98五笔,从98五笔资源库(http://98wb.ysepan.com/)中选择相应的98五笔输入法使用,后期了解到其实是在rime输入法上修改得来的。由于已习惯rime输入法,现在想在veket22下使用rime输入法。

现在本人的安装思路是先安装rime输入法,经配置在veket内达到可以使用,然后参考98五笔安装包,在此基础上进行98五笔词库等移植工作,最终适配可完美用rime输入法使用98五笔打字。

第一步,安装fcitx5-rime,终端代码如下:


  1. ~$ pkg a fcitx5-rime
  2. 下载 fcitx5-rime from bullseye-main repo:  
  3. URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5-rime/fcitx5-rime_5.0.4-1_amd64.deb
  4. Downloading fcitx5-rime_5.0.4-1_amd64.deb. Please wait: 100%
  5. 已下载: /root/pkg/fcitx5-rime_5.0.4-1_amd64.deb
  6. 安装程序包 fcitx5-rime_5.0.4-1_amd64:  
  7. Installed: fcitx5-rime_5.0.4-1_amd64
  8. 解析依赖项 ..
  9. 要获取的依赖项: libfcitx5config6 libfcitx5core7 libfcitx5utils2 librime-data librime1
  10. 下载 libfcitx5config6 from bullseye-main repo:  
  11. URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5/libfcitx5config6_5.0.5-1_amd64.deb
  12. Downloading libfcitx5config6_5.0.5-1_amd64.deb. Please wait: 100%
  13. 已下载: /root/pkg/libfcitx5config6_5.0.5-1_amd64.deb
  14. 安装程序包 libfcitx5config6_5.0.5-1_amd64:  
  15. Installed: libfcitx5config6_5.0.5-1_amd64
  16. 下载 libfcitx5core7 from bullseye-main repo:  
  17. URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5/libfcitx5core7_5.0.5-1_amd64.deb
  18. Downloading libfcitx5core7_5.0.5-1_amd64.deb. Please wait: 100%
  19. 已下载: /root/pkg/libfcitx5core7_5.0.5-1_amd64.deb
  20. 安装程序包 libfcitx5core7_5.0.5-1_amd64:  
  21. Installed: libfcitx5core7_5.0.5-1_amd64
  22. 下载 libfcitx5utils2 from bullseye-main repo:  
  23. URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5/libfcitx5utils2_5.0.5-1_amd64.deb
  24. Downloading libfcitx5utils2_5.0.5-1_amd64.deb. Please wait: 100%
  25. 已下载: /root/pkg/libfcitx5utils2_5.0.5-1_amd64.deb
  26. 安装程序包 libfcitx5utils2_5.0.5-1_amd64:  
  27. Installed: libfcitx5utils2_5.0.5-1_amd64
  28. 下载 librime-data from bullseye-main repo:  
  29. URL: http://ftp.de.debian.org/debian/pool/main/b/brise/librime-data_0.38.20190120-1_all.deb
  30. Downloading librime-data_0.38.20190120-1_all.deb. Please wait: 100%
  31. 已下载: /root/pkg/librime-data_0.38.20190120-1_all.deb
  32. 安装程序包 librime-data_0.38.20190120-1_all:  
  33. Installed: librime-data_0.38.20190120-1_all
  34. 下载 librime1 from bullseye-main repo:  
  35. URL: http://ftp.de.debian.org/debian/pool/main/libr/librime/librime1_1.6.1+dfsg1-1_amd64.deb
  36. Downloading librime1_1.6.1+dfsg1-1_amd64.deb. Please wait: 100%
  37. 已下载: /root/pkg/librime1_1.6.1+dfsg1-1_amd64.deb
  38. 安装程序包 librime1_1.6.1+dfsg1-1_amd64:  
  39. Installed: librime1_1.6.1+dfsg1-1_amd64
  40. ~$

复制代码

第二步、安装完成后,重启fcit5输入法,

第三步、可以在fcit5配置中的“输入法”选项卡下“可用输入法”栏找到“中州韵”添加到“当前输入法”中,

第四步、然后切换到“附加组件“选项卡,点击中州韵的“配置”按钮,弹出“中州韵配置”对话框,可是发现对话框中是空白什么也没有,固无法对其进行设置。

疑问:现在想请教是我安装有误,还是设置不对?可否告知正确的安装配置方法,谢谢啦。



由6#楼的RIOVAN提供的pet包安装后,就可以开启 中州韵的配置对话框 了。

第五步、下载http://98wb.ysepan.com/网站下的 Fcitx5-Rime-With_Lua.tar.xz包

第六步、解压上面的包,修改rime.sh脚本,
将 sudo apt install fcitx5-frontend-qt5 fcitx5 fcitx5-rime librime-plugin-lua fcitx5-config-qt -y 这一行注释掉,然后保存。

第七步、执行rime.sh脚本。


  1. ~/下载/Fcitx5-Rime-With_Lua$ sh rime.sh
  2. /usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs
  3. /usr/share/fonts/TTF: caching, new cache contents: 3 fonts, 0 dirs
  4. /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 2 dirs
  5. /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
  6. /usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
  7. /usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
  8. /usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
  9. /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 2 dirs
  10. /usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
  11. /usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
  12. /usr/share/fonts/default: caching, new cache contents: 0 fonts, 1 dirs
  13. /usr/share/fonts/default/TTF: caching, new cache contents: 11 fonts, 0 dirs
  14. /usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 2 dirs
  15. /usr/share/fonts/truetype/freefont: caching, new cache contents: 2 fonts, 0 dirs
  16. /usr/share/fonts/truetype/wqy: caching, new cache contents: 3 fonts, 0 dirs
  17. /usr/X11R6/lib/X11/fonts: skipping, no such directory
  18. /usr/local/share/fonts: skipping, no such directory
  19. /root/.local/share/fonts: caching, new cache contents: 3 fonts, 0 dirs
  20. /root/.fonts: skipping, no such directory
  21. /usr/share/fonts/TTF: skipping, looped directory detected
  22. /usr/share/fonts/X11: skipping, looped directory detected
  23. /usr/share/fonts/cMap: skipping, looped directory detected
  24. /usr/share/fonts/cmap: skipping, looped directory detected
  25. /usr/share/fonts/default: skipping, looped directory detected
  26. /usr/share/fonts/truetype: skipping, looped directory detected
  27. /usr/share/fonts/X11/encodings: skipping, looped directory detected
  28. /usr/share/fonts/X11/util: skipping, looped directory detected
  29. /usr/share/fonts/cmap/adobe-cns1: skipping, looped directory detected
  30. /usr/share/fonts/cmap/adobe-gb1: skipping, looped directory detected
  31. /usr/share/fonts/default/TTF: skipping, looped directory detected
  32. /usr/share/fonts/truetype/freefont: skipping, looped directory detected
  33. /usr/share/fonts/truetype/wqy: skipping, looped directory detected
  34. /usr/share/fonts/X11/encodings/large: skipping, looped directory detected
  35. /var/cache/fontconfig: cleaning cache directory
  36. /root/.cache/fontconfig: not cleaning non-existent cache directory
  37. /root/.fontconfig: not cleaning non-existent cache directory
  38. fc-cache: succeeded
  39. 98WB专用字体更新完毕
  40. 中州韻配置文件安置成功,注销一次系统后,在「区域与语言」中添加「汉语」-「rime」即可。
  41. ~/下载/Fcitx5-Rime-With_Lua$
复制代码


第八步、进入fcitx5配置 中的 附加组件 中的 经典用户界面 将 字体调整为 98WB-1 确认保存即可。

下面就可以使用 rime的 98五笔输入法了。
再次感谢RIOVAN!!!

1、配置中找到中州韵

1、配置中找到中州韵

2、配置中添加中州韵

2、配置中添加中州韵

3、对中州韵进行配置

3、对中州韵进行配置

4、中州韵配置框中空白无法设置

4、中州韵配置框中空白无法设置

5、下载Fcitx5-Rime-With_Lua.tar.xz包

5、下载Fcitx5-Rime-With_Lua.tar.xz包

6、修改rime.sh脚本

6、修改rime.sh脚本

7、调整配置字体

7、调整配置字体
 楼主| 发表于 2022-8-24 19:57 | 显示全部楼层
以下为本机的fcitx5的诊断输出内容,可惜本人不懂。

  1. ~$ fcitx5-diagnose
  2. # 系统信息:
  3. 1.  `uname -a`:

  4.         Linux veket 5.15.60-veket #1 SMP Tue Aug 16 08:25:30 CST 2022 x86_64 GNU/Linux

  5. 2.  `lsb_release -a`:

  6.         No LSB modules are available.
  7.         Distributor ID:        Veket
  8.         Description:        veket/Linux 22
  9.         Release:        22
  10.         Codename:        22

  11. 3.  `lsb_release -d`:

  12.         Description:        veket/Linux 22

  13. 4.  `/etc/lsb-release`:

  14.         DISTRIB_DESCRIPTION="veket"

  15. 5.  `/etc/os-release`:

  16.         NAME=veket
  17.         VERSION="22"
  18.         ID=veket_veket
  19.         VERSION_ID=22
  20.         PRETTY_NAME="veket 22"
  21.         ANSI_COLOR="0;34"
  22.         CPE_NAME="cpe:/o:veket:veket_linux:22"
  23.         HOME_URL="http://www.lucky8k.com/"
  24.         SUPPORT_URL="http://www.lucky8k.com/"
  25.         BUG_REPORT_URL="http://www.lucky8k.com/"

  26. 6.  桌面环境:

  27.     桌面环境为 `xfce`。

  28. 7.  Bash 版本:

  29.         BASH_VERSION='5.1.4(1)-release'

  30. # 环境:
  31. 1.  DISPLAY:

  32.         DISPLAY=':0.0'

  33. 2.  键盘布局:

  34.     1.  `setxkbmap`:

  35.             xkb_keymap {
  36.                     xkb_keycodes  { include "evdev+aliases(qwerty)"        };
  37.                     xkb_types     { include "complete"        };
  38.                     xkb_compat    { include "complete"        };
  39.                     xkb_symbols   { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)+keypad(pointerkeys)"        };
  40.                     xkb_geometry  { include "pc(pc104)"        };
  41.             };

  42.     2.  `xprop`:

  43.             _XKB_RULES_NAMES(STRING) = "evdev", "pc104", "us", "", "keypad:pointerkeys,terminate:ctrl_alt_bksp"

  44. 3.  Locale:

  45.     1.  全部可用 locale:

  46.             C
  47.             en_US
  48.             POSIX
  49.             zh_CN
  50.             zh_CN.utf8
  51.             zh_CN.UTF-8

  52.     2.  当前 locale:

  53.             LANG=zh_CN.UTF-8
  54.             LANGUAGE=
  55.             LC_CTYPE="zh_CN.UTF-8"
  56.             LC_NUMERIC="zh_CN.UTF-8"
  57.             LC_TIME="zh_CN.UTF-8"
  58.             LC_COLLATE="zh_CN.UTF-8"
  59.             LC_MONETARY="zh_CN.UTF-8"
  60.             LC_MESSAGES="zh_CN.UTF-8"
  61.             LC_PAPER="zh_CN.UTF-8"
  62.             LC_NAME="zh_CN.UTF-8"
  63.             LC_ADDRESS="zh_CN.UTF-8"
  64.             LC_TELEPHONE="zh_CN.UTF-8"
  65.             LC_MEASUREMENT="zh_CN.UTF-8"
  66.             LC_IDENTIFICATION="zh_CN.UTF-8"
  67.             LC_ALL=zh_CN.UTF-8

  68. 4.  目录:

  69.     1.  主目录:

  70.             /root

  71.     2.  `${XDG_CONFIG_HOME}`:

  72.         环境变量 `XDG_CONFIG_HOME` 是设定为 `/root/.config` 。

  73.         `XDG_CONFIG_HOME` 的当前值是 `~/.config` (`/root/.config`)。

  74.     3.  Fcitx5 设置目录:

  75.         当前 fcitx5 设置目录是 `~/.config/fcitx5` (`/root/.config/fcitx5`)。

  76. 5.  当前用户:

  77.     脚本作为 root (0) 运行。

  78.     1.  `sudo` 环境变量:

  79.         SUDO_COMMAND 没有设定。

  80.         SUDO_USER 没有设定。

  81.         SUDO_UID 没有设定。

  82.         SUDO_GID 没有设定。

  83.     2.  以管理员运行:

  84.         **你可能以 `root` 或者 `sudo` 登录运行此脚本。这意味着两种情况,要么你有安全问题或该脚本的结果可能不准确。有关更多信息,请参见 [以 root 身份运行不好的原因](https://www.google.com/search?q=以+root+身份运行不好的原因) 或者 [sudo 的环境变量](https://www.google.com/search?q=sudo+的环境变量) 。**

  85. # Fcitx 状态:
  86. 1.  可执行文件:

  87.     在 `/usr/bin/fcitx5` 找到了 fcitx5。

  88. 2.  版本:

  89.     Fcitx 版本: `5.0.5`

  90. 3.  进程:

  91.     找到了 1 个 fcitx5 进程:

  92.          6409 fcitx5

  93. 4.  `fcitx5-remote`:

  94.     `fcitx5-remote` 工作正常。

  95. 5.  DBus 界面:

  96.     使用 `dbus-send` 来检查 dbus。

  97.     DBus 名称 `org.fcitx.Fcitx5` 的所有者是 `:1.50`。

  98.     DBus 名称 `org.fcitx.Fcitx5` 的 PID 所有者是 `6409`。

  99. # Fcitx 配置界面:
  100. 1.  配置工具封装:

  101.     在 `/usr/bin/fcitx5-configtool` 找到了 fcitx5-configtool。

  102. 2.  Qt 的配置界面:

  103.     在 `/usr/bin/fcitx5-config-qt` 找到了 `fcitx5-config-qt`。

  104. 3.  KDE 的配置界面:

  105.     **`kcmshell5` 未找到.**

  106. # 前端设置:
  107. ## Xim:
  108. 1.  `${XMODIFIERS}`:

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

  111. 2.  根窗口上的 XIM_SERVERS:

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

  113. ## Qt:
  114. 1.  qt4 - `${QT4_IM_MODULE}`:

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

  116. 2.  qt5 - `${QT_IM_MODULE}`:

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

  118. 3.  Qt 输入法模块文件:

  119.     找到了 fcitx5 qt5 模块:`/usr/lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx-quickphrase-editor5.so`。
  120.     找到了 fcitx5 的 qt5 输入法模块:`/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。
  121.     找到了未知的 fcitx qt 模块:`/usr/lib/x86_64-linux-gnu/fcitx/qt/libfcitx-quickphrase-editor5.so`。
  122.     **无法找到 Qt4 的 fcitx5 输入法模块。**

  123. ## Gtk:
  124. 1.  gtk - `${GTK_IM_MODULE}`:

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

  126. 2.  `gtk-query-immodules`:

  127.     1.  gtk 2:

  128.         在 `/usr/bin/gtk-query-immodules-2.0` 找到了 gtk `2.24.33` 的 `gtk-query-immodules`。
  129.         版本行:

  130.             # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

  131.         已找到 gtk `2.24.33` 的 fcitx5 输入法模块。

  132.             "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx5.so"
  133.             "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
  134.             "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"

  135.     2.  gtk 3:

  136.         在 `/usr/bin/gtk-query-immodules-3.0` 找到了 gtk `3.24.24` 的 `gtk-query-immodules`。
  137.         版本行:

  138.             # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.24

  139.         已找到 gtk `3.24.24` 的 fcitx5 输入法模块。

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

  143. 3.  Gtk 输入法模块缓存:

  144.     1.  gtk 2:

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

  147.             # Created by gtk-query-immodules-2.0 from gtk+-2.24.33

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

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

  150.     2.  gtk 3:

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

  153.             # Created by gtk-query-immodules-3.0 from gtk+-3.24.24

  154.         **无法输入法模块缓存 `/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache` 中找到 fcitx5**

  155.         **无法在缓存中找到 gtk 3 的 fcitx5 输入法模块。**

  156.     3.  gtk 4:

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

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

  159. 4.  Gtk 输入法模块文件:

  160.     1.  gtk 2:

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

  162.     2.  gtk 3:

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

  164.     3.  gtk 4:

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

  166. # 配置:
  167. ## Fcitx 插件:
  168. 1.  插件配置文件目录:

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

  170. 2.  插件列表:

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

  172.             Simplified and Traditional Chinese Translation
  173.             Classic User Inteface
  174.             Clipboard
  175.             Cloud Pinyin
  176.             DBus
  177.             DBus Frontend
  178.             Emoji
  179.             Fcitx4 Frontend
  180.             Full width character
  181.             IBus Frontend
  182.             Lua IME API
  183.             Input method selector
  184.             Keyboard
  185.             Lua Addon Loader
  186.             Status Notifier
  187.             Notification
  188.             Pinyin
  189.             Extra Pinyin functionality
  190.             Punctuation
  191.             Quick Phrase
  192.             Rime
  193.             Spell
  194.             Table
  195.             Unicode
  196.             Wayland
  197.             Wayland Input method frontend
  198.             XCB
  199.             X Input Method Frontend

  200.     2.  找到了 0 个被禁用的插件:

  201. 3.  插件库:

  202.     **无法找到插件 `Rime` 所需的库 `rime`。**

  203.         libglog.so.0
  204.         libleveldb.so.1d

  205. 4.  用户界面:

  206.     找到了 1 个已启用的用户界面插件:

  207.         Classic User Inteface

  208. # 日志:
  209. 1.  `date`:

  210.         2022年 08月 24日 星期三 20:08:09 CST

  211. 2.  `/root/.config/fcitx5/crash.log`:

  212.     `/crash.log` 未找到.
  213. ~$

复制代码
 楼主| 发表于 2022-8-24 20:07 | 显示全部楼层
”研究“一番,感觉可能是缺少相应的库文件,诊断输出信息中有提到:

3.  插件库:

    **无法找到插件 `Rime` 所需的库 `rime`。**

        libglog.so.0
        libleveldb.so.1d

缺少libglog.so.0和libleveldb.so.1d文件。
请问有什么方法可以补上这两个库文件?
发表于 2022-8-24 21:43 | 显示全部楼层
小鹿鸣 发表于 2022-8-24 20:07
”研究“一番,感觉可能是缺少相应的库文件,诊断输出信息中有提到:

用pkg命令也可以安装上
发表于 2022-8-24 21:45 | 显示全部楼层
http://www.lucky8k.com/thread-134014-1-1.html
这里有98五笔,另外在华宇拼音好像也是有98五笔可以选择的:
http://www.lucky8k.com/thread-134241-1-1.html
极点五笔也有98五笔。
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2024-5-6 05:21

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表