[Share Experiences] 在 deepin 中使用小鹤音形
Tofloor
poster avatar
deepin-superuser
deepin
2022-04-18 23:18
Author

转载于:https://blog.kt286.com/post/use-flypy-in-deepin/

前言

之前一直在使用全拼输入法,但是全拼有一个众所周知的问题:重码率高。虽然这类输入法大都有词频动态调整、云输入等功能。但是每个用户习惯不同,换台设备后打字效率就会降低。而五笔输入法需要记忆大量字根,上手难度大。所以在网上看到小鹤音形的时候眼前一亮,决定尝试一下。

介绍

小鹤音形分双拼和双形两部分,简单理解就是先告诉输入法这个字怎么读,再告诉输入法怎么写。通过两个维度确定一个字,极大减少了重码问题。详细介绍见小鹤音形官网1。下边放一下双拼键位图和鹤形字根图备忘。

双拼

小鹤双拼键位图

双形

小鹤鹤形字根图

使用

方案1:rime 挂接(官方)

小鹤官方只提供了 Windows 和 Android 版安装包,其他平台需要使用 rime 挂接。但是 deepin 仓库中未提供 fcitx5-rime 包,需要我们自己编译安装。

# 安装编译工具
sudo apt-get install -y build-essential cmake-extras extra-cmake-modules

# 编译支持 lua 的 librime 库
sudo apt-get install -y libcapnp-dev libgoogle-glog-dev libyaml-cpp-dev libleveldb-dev libmarisa-dev capnproto
git clone https://github.com/rime/librime.git ~/workspace/librime
cd ~/workspace/librime
./install-plugins.sh hchunhui/librime-lua
make merged-plugins
sudo make install

# 编译 fcitx5-rime
sudo apt-get install -y appstream libecm-dev libfcitx5core-dev fcitx5-modules-dev
mkdir -p ~/workspace/fcitx5-rime
git clone https://github.com/fcitx/fcitx5-rime.git ~/workspace/fcitx5-rime
mkdir -p ~/workspace/fcitx5-rime/build
cd ~/workspace/fcitx5-rime/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j4
sudo make install

编译安装完成后,下载小鹤网盘2中挂接文件 3.1.挂接——音形码/小鹤音形“鼠须管”for macOS.zip。解压后,将 rime 目录中所有文件复制到 ~/.local/share/fcitx5/rime 目录中。重启 fcitx5 ,添加 中州韻 输入法后即可使用。
fcitx5-rime

方案2:fcitx5-flypy

fcitx5-flypy 是基于公开码表打造的适配 fcitx5 的输入法,无需安装 rime 即可使用。编译安装方法如下

目前发现几个小问题:

  1. 使用万能键 ` 时,会提示词语,而不仅仅是单字
  2. 码表中记录条数没有官方码表多(Windows 版有 67656 条数据,但本项目只有 57655 条数据)
  3. 使用 orq、ouj 无法输入当前日期和时间

Windows 版码表

如在使用过程中遇到其他问题,欢迎到 github 中提 issue。

后记

  1. deepin 20 仓库里虽然提供了 fcitx5,但是只提供了一些基础包。fcitx5-rime、fcitx5-lua 等都没有提供。希望后续可以补全。
  2. 使用了一段时间小鹤音形后,输入人名拼音时会不自觉输入双拼。而且由于之前过于依赖拼音输入法,导致很多字只会读,不会写。打字速度反而明显降低。需要一段时间去适应。算是有得有失吧。

参考

Reply Favorite View the author
All Replies
2 / 2
To page
Breeze
deepin
2022-05-28 05:43
#21
deepin-superuser

libime-bin
image.png

这回总没错了吧

发现我是没有安装fcitx5本身?

sudo apt install fcitx5

就可以正常安装了,谢谢

Reply View the author
Breeze
deepin
2022-05-28 05:44
#22
deepin-superuser

libime-bin
image.png

这回总没错了吧

两种都安装上了, nice

Reply View the author
LIU
deepin
2022-07-03 20:07
#23

各位大佬,请问一下,我在执行方案一代码的时候,卡在了make merged-plugins。导致后面的步骤都无法进行。用搜索引擎查找也没有发现类似的问题。😭
卡在这一步了。

image.png
后面的无法进行

image.png

Reply View the author
Breeze
deepin
2024-06-04 14:40
#24

V23可用吗?刚安装配好,怕搞崩了sob

Reply View the author
deepin-superuser
deepin
2024-06-04 15:03
#25
Breeze

V23可用吗?刚安装配好,怕搞崩了sob

可以用

http://120.132.17.134:3000/better-dde/ppa/raw/branch/master/fcitx5-flypy/fcitx5-flypy_5.0.3_all.deb

Reply View the author
Breeze
deepin
2024-06-04 19:41
#26
deepin-superuser

可以用

http://120.132.17.134:3000/better-dde/ppa/raw/branch/master/fcitx5-flypy/fcitx5-flypy_5.0.3_all.deb

打不开了😧

Reply View the author
deepin-superuser
deepin
2024-06-05 08:52
#27
Breeze

打不开了😧

Reply View the author
深度极客
deepin
2024-06-05 16:54
#28

双拼两周,打字50/min😂

Reply View the author
deepin-superuser
deepin
2024-06-06 09:30
#29
深度极客

双拼两周,打字50/min😂

我已经学废了,现在打字慢的很,换了别人的设备都不会打字了😂

Reply View the author
我傻了
deepin
2024-11-06 00:41
#30
LIU

各位大佬,请问一下,我在执行方案一代码的时候,卡在了make merged-plugins。导致后面的步骤都无法进行。用搜索引擎查找也没有发现类似的问题。😭
卡在这一步了。

image.png
后面的无法进行

image.png

同樣的問題,請問解決了嗎?

Reply View the author
我傻了
deepin
2024-11-06 00:46
#31

請問遇到這種情況怎麼辦?sad

image.png

Reply View the author
deepin-superuser
deepin
2024-11-06 08:35
#32
我傻了

請問遇到這種情況怎麼辦?sad

image.png

现在V23已经提供 fcitx5-rime 了就不需要自己编译了

如果是V20报这个错,推荐方法二

或者直接使用打包好的

http://120.132.17.134:3000/better-dde/ppa/raw/branch/master/fcitx5-flypy/fcitx5-flypy_5.0.3_all.deb

Reply View the author
我傻了
deepin
2024-11-06 08:42
#33
deepin-superuser
现在V23已经提供 fcitx5-rime 了就不需要自己编译了

如果是V20报这个错,推荐方法二

或者直接使用打包好的

http://120.132.17.134:3000/better-dde/ppa/raw/branch/master/fcitx5-flypy/fcitx5-flypy_5.0.3_all.deb

非常感谢大佬,我的是v23。但😢 这个链接一直显示正在加载诶。

Reply View the author
我傻了
deepin
2024-11-06 08:51
#34

https://github.com/better-dde/ppa/blob/master/fcitx5-flypy/fcitx5-flypy_5.0.3_all.deb 这个好像可以用

Reply View the author
deepin-superuser
deepin
2024-11-06 08:57
#35
我傻了

https://github.com/better-dde/ppa/blob/master/fcitx5-flypy/fcitx5-flypy_5.0.3_all.deb 这个好像可以用

主要是github速度慢才放了个国内的链接 结果国内那个貌似挂了😂

Reply View the author
我傻了
deepin
2024-11-06 23:15
#36
deepin-superuser

主要是github速度慢才放了个国内的链接 结果国内那个貌似挂了😂

确实很慢,一直加载,最后也没能打开。sob

Reply View the author
OneZ_
deepin
2024-12-19 00:46
#37

一开始用'sudo apt install fcitx-[Tab]'找的 我还想怎么没有fcitx5-rime呢 然后就一步一步的编译,用AI找着错误都快编译完了,出现一个错误是“Fcitx5Core”找不到 我寻思怎么会找不到这个呢 应该有啊 然后就翻翻评论区吧 这一看没事,好家伙 V23有fcitx5-rime 然后我又试了一下 Tab还是没看到,心里想既然说有,那应该就是有 直接下载吧 嘿~ 可以下载 突然就想,刚才指定就是用的fcitx- Tab的…… 好了 用上了 心满意足了~

Reply View the author
2 / 2
To page