DTK软件使用小小输入法的方法
Tofloor
poster avatar
强迫症晚期患者
deepin
2020-10-29 01:25
Author
本帖最后由 scfy 于 2020-10-29 10:06 编辑

本教程适用于Arch/manjaro和deepin/UOS
一、安装小小输入法
1、下载:小小输入法官网  下载两个东西软件包和qt插件,如果是deepin/UOS系统就下载5.7那个版本;如果是Arch/Manjaro就下载5.9那个版本。版本一定要对应起来,不然的话就算安装了qt插件还是无法在DTk软件上使用。



二、安装qt插件
1、解压软件包:
以/opt目录为例,复制软件包到/opt目录
  1. sudo cp ~/Download/yong-lin-2.5.0-0.7z
Copy the Code

解压软件包
  1. sudo 7z x yong-lin-2.5.0-0.7z
Copy the Code

重命名目录
  1. sudo mv ./yong-lin-2.5.0-0 ./yong
Copy the Code


2、安装软件(安装的时候需要sudo提权,调用的时候不需要提权):
进入安装目录
  1. cd /yong
Copy the Code

执行安装脚本
  1. sudo ./yong-tool.sh --install64  
Copy the Code

执行调用脚本
  1. ./yong-tool.sh --select
Copy the Code

(deepin/UOS下会报错,arch/manjaro下不会)

解决方法:修改/usr/share/im-config/data/10_yong.conf的内容为:
  1. IM_CONFIG_SHORT="Yong Input Method"
  2. IM_CONFIG_LONG="Yong Input Method"
  3. package_auto () {
  4.      package_status yong
  5. }
  6. package_menu () {
  7.      package_status yong
  8. }
Copy the Code

然后重新执行
  1. ./yong-tool.sh --select
Copy the Code

解决方案的来源

3、安装插件(一定要对应版本):
deepin/UOS系统安装qt插件(5.7版本)
  1. sudo cp ~/Download/libyongplatforminputcontextplugin.so /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts
Copy the Code


arch/manjaro系统安装插件(5.9版本)
  1. sudo cp ~/Download/libyongplatforminputcontextplugin.so /usr/lib/qt/plugins/platforminputcontexts
Copy the Code

安装完毕。

三、调用输入法
1、单独使用:
deepin/UOS下执行im-config 使用im-config切换到yong。
Arch/Manjaro没有im-config无法可视化切换,需要设置如下环境变量,先执行sudo -i或者su切换到root 再执行,
  1. echo export GTK_IM_MODULE="yong"\n export QT_IM_MODULE="yong"\n >> /etc/profile
Copy the Code

2、挂载使用:可以将小小输入法挂载到ibus/fcitx下使用,我没有挂载使用过,有这方面需要的请自行搜索。有知道的大佬评论区探讨

四、配置:
每个人的爱好不同,我粘一个地址供参考小小输入法的配置
deepin/UOS使用im-config切换小小输入法会开机自启。
使用环境变量调用小小输入法的arch/manjaro开机不会自启需要手动编写一个desktop放到~/.config/autostart/目录




网络上搜索到的安装教程都是可以用的,我只是做了个整理,重点是想要小小输入法支持DTK应用一定要找对QT插件的版本。

Reply Favorite View the author
All Replies
lanyun7112
deepin
2020-10-29 07:43
#1
楼主辛苦了,我用rime挂码表
Reply View the author
SamLukeYes
deepin
2020-10-29 08:07
#2
给 arch 装你确定不写个 pkgbuild 吗
Reply View the author
强迫症晚期患者
deepin
2020-10-29 17:26
#3
https://bbs.deepin.org/post/204578
给 arch 装你确定不写个 pkgbuild 吗

arch我还没玩出头绪。pkgbild着实为难我了
Reply View the author
强迫症晚期患者
deepin
2020-10-29 17:30
#4
https://bbs.deepin.org/post/204578
楼主辛苦了,我用rime挂码表

rime也是很不错,我没用它是因为依赖fcitx/ibus。
Reply View the author
SamLukeYes
deepin
2020-10-29 17:55
#5
https://bbs.deepin.org/post/204578
arch我还没玩出头绪。pkgbild着实为难我了

arch 那边可能用 fcitx5 的比较多,没什么人用小小输入法,不然 AUR 上早该有小小输入法的 pkgbuild 了
Reply View the author
强迫症晚期患者
deepin
2020-10-29 18:40
#6
https://bbs.deepin.org/post/204578
arch 那边可能用 fcitx5 的比较多,没什么人用小小输入法,不然 AUR 上早该有小小输入法的 pkgbuild 了[t ...

小小太小众了。开发者本人都很佛系
Reply View the author
SamLukeYes
deepin
2020-10-29 18:58
#7
https://bbs.deepin.org/post/204578
小小太小众了。开发者本人都很佛系

话说小小输入法是用什么许可证发布的啊,我在 github 上没看到开源许可证和编译指南
Reply View the author
Comments
scfy
2020-10-29 21:51
https://github.com/dgod/yong
SamLukeYes
deepin
2020-10-29 22:03
#8
对啊,就是在它的 github 仓库既没看见 readme 也没看见 license
Reply View the author
future
deepin
2020-10-30 01:16
#9
很好的输入法
Reply View the author
强迫症晚期患者
deepin
2020-11-04 01:16
#10
SamLukeYes
对啊,就是在它的 github 仓库既没看见 readme 也没看见 license

这老师太佛系了,就是只是发布了源代码。操作手册都是社区帮忙搞定的。

Reply View the author
强迫症晚期患者
deepin
2020-11-04 01:17
#11
future
很好的输入法

我就看上它可以独立于输入法框架独立运行。

Reply View the author
强迫症晚期患者
deepin
2020-11-04 01:26
#12
SamLukeYes
对啊,就是在它的 github 仓库既没看见 readme 也没看见 license

https://github.com/dgod/yong/tree/master/data 

这个地址里面有一个readme,里面有一段版权声明 。

Reply View the author