veket官方网站论坛

小鹿鸣 发表于 2022-8-24 19:13

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

本人纯小白,使用98五笔,从98五笔资源库(http://98wb.ysepan.com/)中选择相应的98五笔输入法使用,后期了解到其实是在rime输入法上修改得来的。由于已习惯rime输入法,现在想在veket22下使用rime输入法。

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

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


~$ pkg a fcitx5-rime
下载 fcitx5-rime from bullseye-main repo:
URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5-rime/fcitx5-rime_5.0.4-1_amd64.deb
Downloading fcitx5-rime_5.0.4-1_amd64.deb. Please wait: 100%
已下载: /root/pkg/fcitx5-rime_5.0.4-1_amd64.deb
安装程序包 fcitx5-rime_5.0.4-1_amd64:
Installed: fcitx5-rime_5.0.4-1_amd64
解析依赖项 ..
要获取的依赖项: libfcitx5config6 libfcitx5core7 libfcitx5utils2 librime-data librime1
下载 libfcitx5config6 from bullseye-main repo:
URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5/libfcitx5config6_5.0.5-1_amd64.deb
Downloading libfcitx5config6_5.0.5-1_amd64.deb. Please wait: 100%
已下载: /root/pkg/libfcitx5config6_5.0.5-1_amd64.deb
安装程序包 libfcitx5config6_5.0.5-1_amd64:
Installed: libfcitx5config6_5.0.5-1_amd64
下载 libfcitx5core7 from bullseye-main repo:
URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5/libfcitx5core7_5.0.5-1_amd64.deb
Downloading libfcitx5core7_5.0.5-1_amd64.deb. Please wait: 100%
已下载: /root/pkg/libfcitx5core7_5.0.5-1_amd64.deb
安装程序包 libfcitx5core7_5.0.5-1_amd64:
Installed: libfcitx5core7_5.0.5-1_amd64
下载 libfcitx5utils2 from bullseye-main repo:
URL: http://ftp.de.debian.org/debian/pool/main/f/fcitx5/libfcitx5utils2_5.0.5-1_amd64.deb
Downloading libfcitx5utils2_5.0.5-1_amd64.deb. Please wait: 100%
已下载: /root/pkg/libfcitx5utils2_5.0.5-1_amd64.deb
安装程序包 libfcitx5utils2_5.0.5-1_amd64:
Installed: libfcitx5utils2_5.0.5-1_amd64
下载 librime-data from bullseye-main repo:
URL: http://ftp.de.debian.org/debian/pool/main/b/brise/librime-data_0.38.20190120-1_all.deb
Downloading librime-data_0.38.20190120-1_all.deb. Please wait: 100%
已下载: /root/pkg/librime-data_0.38.20190120-1_all.deb
安装程序包 librime-data_0.38.20190120-1_all:
Installed: librime-data_0.38.20190120-1_all
下载 librime1 from bullseye-main repo:
URL: http://ftp.de.debian.org/debian/pool/main/libr/librime/librime1_1.6.1+dfsg1-1_amd64.deb
Downloading librime1_1.6.1+dfsg1-1_amd64.deb. Please wait: 100%
已下载: /root/pkg/librime1_1.6.1+dfsg1-1_amd64.deb
安装程序包 librime1_1.6.1+dfsg1-1_amd64:
Installed: librime1_1.6.1+dfsg1-1_amd64
~$


第二步、安装完成后,重启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脚本。


~/下载/Fcitx5-Rime-With_Lua$ sh rime.sh
/usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/TTF: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/default: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/default/TTF: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/wqy: caching, new cache contents: 3 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/root/.local/share/fonts: caching, new cache contents: 3 fonts, 0 dirs
/root/.fonts: skipping, no such directory
/usr/share/fonts/TTF: skipping, looped directory detected
/usr/share/fonts/X11: skipping, looped directory detected
/usr/share/fonts/cMap: skipping, looped directory detected
/usr/share/fonts/cmap: skipping, looped directory detected
/usr/share/fonts/default: skipping, looped directory detected
/usr/share/fonts/truetype: skipping, looped directory detected
/usr/share/fonts/X11/encodings: skipping, looped directory detected
/usr/share/fonts/X11/util: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-cns1: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-gb1: skipping, looped directory detected
/usr/share/fonts/default/TTF: skipping, looped directory detected
/usr/share/fonts/truetype/freefont: skipping, looped directory detected
/usr/share/fonts/truetype/wqy: skipping, looped directory detected
/usr/share/fonts/X11/encodings/large: skipping, looped directory detected
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
98WB专用字体更新完毕
中州韻配置文件安置成功,注销一次系统后,在「区域与语言」中添加「汉语」-「rime」即可。
~/下载/Fcitx5-Rime-With_Lua$


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

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

小鹿鸣 发表于 2022-8-24 19:57

以下为本机的fcitx5的诊断输出内容,可惜本人不懂。

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

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

2.`lsb_release -a`:

      No LSB modules are available.
      Distributor ID:        Veket
      Description:        veket/Linux 22
      Release:        22
      Codename:        22

3.`lsb_release -d`:

      Description:        veket/Linux 22

4.`/etc/lsb-release`:

      DISTRIB_DESCRIPTION="veket"

5.`/etc/os-release`:

      NAME=veket
      VERSION="22"
      ID=veket_veket
      VERSION_ID=22
      PRETTY_NAME="veket 22"
      ANSI_COLOR="0;34"
      CPE_NAME="cpe:/o:veket:veket_linux:22"
      HOME_URL="http://www.lucky8k.com/"
      SUPPORT_URL="http://www.lucky8k.com/"
      BUG_REPORT_URL="http://www.lucky8k.com/"

6.桌面环境:

    桌面环境为 `xfce`。

7.Bash 版本:

      BASH_VERSION='5.1.4(1)-release'

# 环境:
1.DISPLAY:

      DISPLAY=':0.0'

2.键盘布局:

    1.`setxkbmap`:

            xkb_keymap {
                    xkb_keycodes{ include "evdev+aliases(qwerty)"        };
                    xkb_types   { include "complete"        };
                    xkb_compat    { include "complete"        };
                    xkb_symbols   { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)+keypad(pointerkeys)"        };
                    xkb_geometry{ include "pc(pc104)"        };
            };

    2.`xprop`:

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

3.Locale:

    1.全部可用 locale:

            C
            en_US
            POSIX
            zh_CN
            zh_CN.utf8
            zh_CN.UTF-8

    2.当前 locale:

            LANG=zh_CN.UTF-8
            LANGUAGE=
            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=zh_CN.UTF-8

4.目录:

    1.主目录:

            /root

    2.`${XDG_CONFIG_HOME}`:

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

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

    3.Fcitx5 设置目录:

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

5.当前用户:

    脚本作为 root (0) 运行。

    1.`sudo` 环境变量:

      SUDO_COMMAND 没有设定。

      SUDO_USER 没有设定。

      SUDO_UID 没有设定。

      SUDO_GID 没有设定。

    2.以管理员运行:

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

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

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

2.版本:

    Fcitx 版本: `5.0.5`

3.进程:

    找到了 1 个 fcitx5 进程:

         6409 fcitx5

4.`fcitx5-remote`:

    `fcitx5-remote` 工作正常。

5.DBus 界面:

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

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

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

# 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}`:

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

2.qt5 - `${QT_IM_MODULE}`:

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

3.Qt 输入法模块文件:

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

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

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

2.`gtk-query-immodules`:

    1.gtk 2:

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

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

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

            "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.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:*"

    2.gtk 3:

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

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

      已找到 gtk `3.24.24` 的 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 输入法模块缓存:

    1.gtk 2:

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

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

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

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

    2.gtk 3:

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

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

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

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

    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.找到了 28 个已启用的插件:

            Simplified and Traditional Chinese Translation
            Classic User Inteface
            Clipboard
            Cloud Pinyin
            DBus
            DBus Frontend
            Emoji
            Fcitx4 Frontend
            Full width character
            IBus Frontend
            Lua IME API
            Input method selector
            Keyboard
            Lua Addon Loader
            Status Notifier
            Notification
            Pinyin
            Extra Pinyin functionality
            Punctuation
            Quick Phrase
            Rime
            Spell
            Table
            Unicode
            Wayland
            Wayland Input method frontend
            XCB
            X Input Method Frontend

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

3.插件库:

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

      libglog.so.0
      libleveldb.so.1d

4.用户界面:

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

      Classic User Inteface

# 日志:
1.`date`:

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

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

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

小鹿鸣 发表于 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五笔。
页: [1] 2
查看完整版本: 请教veket22 下fcitx5-rime安装及i使用问题