install fcitx chinese input at FreeBSD14.1

从发行版安装Fcitx 5

first find pkg

pkg search fcitx5

pkg search fcitx5
pkg: No SRV record found for the repo 'FreeBSD'
fcitx5-5.1.10                  New implementation of the Fcitx IME framework
fcitx5-configtool-5.1.6        Fcitx5 IM framework configuration tool
fcitx5-gtk-common-5.1.3        Fcitx support for GTK (common files)
fcitx5-gtk2-5.1.3              Fcitx support for GTK (gtk2)
fcitx5-gtk3-5.1.3              Fcitx support for GTK (gtk3)
fcitx5-gtk4-5.1.3              Fcitx support for GTK (gtk4)
fcitx5-lua-5.0.13              Lua support for Fcitx5
fcitx5-m17n-5.1.1              Multilingualization support for Fcitx5
fcitx5-qt-common-5.1.6         Fcitx support for Qt (common files)
fcitx5-qt5-5.1.6               Fcitx support for Qt (qt5)
fcitx5-qt6-5.1.6               Fcitx support for Qt (qt6)
ja-fcitx5-anthy-5.1.4          Anthy support for Fcitx5
ja-fcitx5-cskk-1.2.0           SKK input method plugin for fcitx5 that uses LibCSKK
ko-fcitx5-hangul-5.1.4         Hangul support for Fcitx5
zh-fcitx5-chewing-5.1.5        Chewing support for Fcitx5
zh-fcitx5-chinese-addons-5.1.6 Pinyin and table input method support for Fcitx5
zh-fcitx5-mcbopomofo-2.7       McBopomofo for Fcitx5
zh-fcitx5-rime-5.1.8           RIME support for Fcitx5
zh-fcitx5-table-extra-5.1.6    Extra table support for Fcitx5
zh-fcitx5-table-other-5.1.3    Other table support for Fcitx5

note :

in other system such as Ubuntu the chinese pkg are as :fcitx5-chinese-addons_5.1.3-1build3_all.deb

but in FreeBSD ,it's :

zh-fcitx5-chinese-addons-5.1.6.pkg

config fcitx in ibus

but there's no input

pkg install kwin

root@x250:~ # pkg install plasma6-kwin

after install kwin , fcitx5-configtool is gone

so must reinstall it

pkg install fcitx5-configtool

reinstall fcitx5

first remove fcitx5

and then reinstall

pkg install fcitx5 zh-fcitx5-chinese-addons fcitx5-configtool

intall message:

Message from fcitx5-5.1.10:

--
Remember to set the environment variable XMODIFIERS:

	csh/tcsh:	setenv XMODIFIERS @im=fcitx
	sh/bash:	export XMODIFIERS='@im=fcitx'

For GTK+ programs, you may want to set:

	csh/tcsh:	setenv GTK_IM_MODULE fcitx/xim
	sh/bash:	export GTK_IM_MODULE=fcitx/xim

For Qt programs, you may want to set:

	csh/tcsh:	setenv QT_IM_MODULE fcitx
	sh/bash:	export QT_IM_MODULE=fcitx

To start fcitx with your desktop, just

	cp /usr/local/share/applications/org.fcitx.Fcitx5.desktop \
	    ~/.config/autostart/

Message from fcitx5-5.1.10:

--

Remember to set the environment variable XMODIFIERS:

csh/tcsh: setenv XMODIFIERS @im=fcitx

sh/bash: export XMODIFIERS='@im=fcitx'

For GTK+ programs, you may want to set:

csh/tcsh: setenv GTK_IM_MODULE fcitx/xim

sh/bash: export GTK_IM_MODULE=fcitx/xim

For Qt programs, you may want to set:

csh/tcsh: setenv QT_IM_MODULE fcitx

sh/bash: export QT_IM_MODULE=fcitx

To start fcitx with your desktop, just

cp /usr/local/share/applications/org.fcitx.Fcitx5.desktop \

~/.config/autostart/

run

cp /usr/local/share/applications/org.fcitx.fcitx5-config-qt.desktop ~/.config/autostart/

that's wrong, use this :

cp /usr/local/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/

最重要的事情就是上面这句。当然还有这些配置,也不知道是否正确

.xinitrc 文件:

setenv GTK_IM_MODULE "fcitx5"
setenv GTK3_IM_MODULE "fcitx5"
setenv QT_IM_MODULE "fcitx5"
setenv QT4_IM_MODULE "fcitx5"
setenv xmodifiers "@im=fcitx5"
setenv LC_ALL "zh_CN.UTF-8"

参考自:https://book.bsdcn.org/di-5-zhang-shu-ru-fa-ji-chang-yong-ruan-jian/di-5.1-jie-fcitx-shu-ru-fa-kuang-jia

相关推荐
摸鱼也很难9 分钟前
Docker 镜像加速和配置的分享 && 云服务器搭建beef-xss
运维·docker·容器
woshilys43 分钟前
sql server 查询对象的修改时间
运维·数据库·sqlserver
疯狂飙车的蜗牛1 小时前
从零玩转CanMV-K230(4)-小核Linux驱动开发参考
linux·运维·驱动开发
恩爸编程2 小时前
探索 Nginx:Web 世界的幕后英雄
运维·nginx·nginx反向代理·nginx是什么·nginx静态资源服务器·nginx服务器·nginx解决哪些问题
Michaelwubo3 小时前
Docker dockerfile镜像编码 centos7
运维·docker·容器
远游客07133 小时前
centos stream 8下载安装遇到的坑
linux·服务器·centos
好像是个likun4 小时前
使用docker拉取镜像很慢或者总是超时的问题
运维·docker·容器
LIKEYYLL5 小时前
GNU Octave:特性、使用案例、工具箱、环境与界面
服务器·gnu
云云3216 小时前
搭建云手机平台的技术要求?
服务器·线性代数·安全·智能手机·矩阵
云云3216 小时前
云手机有哪些用途?云手机选择推荐
服务器·线性代数·安全·智能手机·矩阵