本仓库为小鹤双拼Linux Rime挂接版镜像,挂接内容来自官方网盘。
- 网盘地址: http://flypy.ys168.com/
Linux小鹤音形无直接对应程序,需要挂载Rime使用。
Rime是个优秀的输入工具,在MacOS/Windows/GNU/Linux/Andrido/IOS平台都有对应的实现。
Linux平台的Rime依赖Fcitx或IBus。(本仓库挂接版为Fcitx配置,IBUS请自行测试)
小鹤双拼挂载官方提供的是基于Fcitx框架
rime-data
├── build
│ ├── flypydz.prism.bin
│ ├── flypydz.reverse.bin
│ ├── flypydz.table.bin
│ ├── flypyplus.prism.bin
│ ├── flypyplus.reverse.bin
│ ├── flypyplus.table.bin
│ ├── flypy.prism.bin
│ ├── flypy.reverse.bin
│ └── flypy.table.bin
├── default.yaml
├── flypyplus.schema.yaml
├── flypy.schema.yaml
├── flypy_sys.txt
├── flypy_top.txt
├── flypy_user.txt
└── rime.lua
已经在Archlinux下测试可以正常使用。
-
Archlinux
- Manjaro
- Arch分支
-
其他GNU/Linux发型版请测。
注意Fcitx分4和5版本,默认Fcitx的版本是Fcitx4(以下Fcitx默认指Fcitx4),安装Fcitx5才是5.但是版本显示都是4.xx。
下面开始的是fcitx4版本的安装过程,如果使用的是fcitx5请直接点击fcitx5安装。
-
Fcitx输入法框架
-
Rime输入法
在Archlinux及Arch分支(例如Manjaro)下安装
$ sudo pacman -S fcitx-rime
$ sudo pacman -S fcitx-configtool
或者使用yay
作为包管理工具:
$ sudo yay fcitx-rime
$ sudo yay fcitx-configtool
将GNU/Linux版本的小鹤双拼文件下载后,进入rime-data文件夹。
将rime-data目录下的文件复制到用户目录下的Rime配置rime-data文件夹
$ cd rime-data
$ cp -r * ~/.config/fcitx/rime
提醒:不要将配置文件移动到系统配置目录
/usr/share/rime-data/
复制个人配置文件
$ cp default.yaml default.custome.yaml
提醒:不要直接编辑default.yaml配置文件,不然以后更新时会被覆盖。
重启Fcitx,并切换到Rime输入法。(右键fcitx托盘重启和选择输入法)。
到了这一步,应该可以使用Fcitx-Rime小鹤双拼了。
但是查看启动日志还是会有问题。
日志在**/tmp下,以rime.fcitx-rime**开头。
最新的日志对应着3个软链接文件,可以直接查询对应不同的日志级别日志:
$ cat rime.fcitx-rime.ERROR # 错误级别
$ cat rime.fcitx-rime.INFO # 普通级别
$ catrime.fcitx-rime.WARNING # 警告级别
直接查看错误级别的日志信息:
$ tail -f rime.fcitx-rime.ERROR
Log file created at: 2019/12/18 17:33:01
Running on machine: maojun-pc
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E1218 17:33:01.904620 19037 dict_compiler.cc:46] source file '/home/maojun/.config/fcitx/rime/flypy.dict.yaml' does not exist.
E1218 17:33:01.916185 19037 dict_compiler.cc:46] source file '/home/maojun/.config/fcitx/rime/flypyplus.dict.yaml' does not exist.
E1218 17:33:02.072552 19021 engine.cc:349] error creating translator: 'lua_translator'
E1218 17:33:02.072582 19021 engine.cc:349] error creating translator: 'lua_translator'
发现有有码表文件不存在错误和lua脚本加载错误。
码表文件不存在问题是由于rime加载的目录的用户配置主目录,而码表文件在build文件中,把build文件夹下的所有bin文件移到上一层即可。
$ cd rime-date/build
$ mv *.bin ,,.
具体讨论可以参考: https://flypy.com/bbs/forum.php?mod=redirect&goto=findpost&ptid=516&pid=2354
美化设置
Fcitx用户目录位置:
~/.config/fcitx/rime/
rime的皮肤用的是fcitx的皮肤,自定义皮肤目录为:/usr/share/fcitx/skin
$ ~/.config/fcitx/skin
提醒:如果没有目录直接创建一个或者从系统皮肤文件夹复制一份~~/usr/share/fcitx/skin~~ 但不要直接在系统配置文件上修改
Rime配置
禁用Rime的英文模式
rime的英文模会将Shift
键触发为rime的英文模式。
从输入方案中 engine/processor
列表里注释掉ascii_composer
Installation process of librim-lua plugin with fcitx 5.xx
For Archlinux/Using pacman as a package management system
- uninstall fcitx4 and its dependencies.
- install fcitx5 and its dependencies.
sudo pacman -S fcitx5-git fcitx5-gtk-git fcitx5-qt5-git fcitx5-rime-git
- Remove only librime
$ sudo pacman -Rdd librime
- install librime & librime-lua plugins
$ git clone https://github.com/rime/librime.git
$ cd librime
$ git checkout 1.5.3 # important(Maybe the above problems will be fixed in a future version)
$ ./install-plugins.sh hchunhui/librime-lua
$ make merged-plugins
$sudo make install
注意,安装并配置了让Rime支持Lua插件。如果用Fcitx4安装会无法启动报错。用Fcit5安装需要先卸载通过二进制包安装的librime,然后手动从源码编译lua插件并安装。 参考:hchunhui/librime-lua#25 (comment)
fcitx5的配置在:
~/.config/fcitx5
注意:修改配置的时候先关闭Fcitx5,否则重启Fcitx5时配置会被重置。
但是fcitx5的词库目录及皮肤主题目录在:
~/.local/share/fcitx5