draftsight无法输入中文

工作需要用到cad软件,用draftsight打开后可以显示中文,但是无法输入中文,只能输入英文

其他应用输入法是正常的吗?
在./.bashrc中最后添加以下行:
export XIM_PROGRAM=fcitx
export XIM=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=“@im=fcitx”
再注销登录试试?

没有用,可能是软件本身的问题吧

发现一个新的问题,安装ibus拼音后切换到ibus重启系统,然后就可以输入中文了,看来是不支持fcitx

刚才在其他地方找到的解决fcitx支持draftsight的方法,但是不是很明白,求助
Ok it’s an app bundle with its own qt, so it’s not surprise it doesn’t work with
systems fcitx qt5 plugin.

I tried to analyze the path and library it used, seems it can work with xenial’s
fcitx-qt5.

You can try to get two required files from libfcitx-qt5-1 and fcitx-fronted-qt5
and put them under :
/opt/dassault-systemes/DraftSight/Libraries/libFcitxQt5DBusAddons.so.1
/opt/dassault-systemes/DraftSight/QtPlugIns/platforminputcontexts/libfcitxplatforminputcontextplugin.so

I can use fcitx in draftsight on my system.

It works. Thank you very much.

原贴地址:http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=484216

意思就是draftsight使用自带的qt,所以需要把支持fcitx的这两个库复制到它自己的路径下面。

好吧,其实我只是不明白具体怎么操作:(

apt-get download libfcitx-qt5-1 fcitx-fronted-qt5
然后解压下载的.deb包,找到libFcitxQt5DBusAddons.so.1和libfcitxplatforminputcontextplugin.so文件,放到如下路径中去
/opt/dassault-systemes/DraftSight/Libraries/libFcitxQt5DBusAddons.so.1
/opt/dassault-systemes/DraftSight/QtPlugIns/platforminputcontexts/libfcitxplatforminputcontextplugin.so