Page 1 of 1

Chinese Text?

Posted: Thu Mar 15, 2018 2:21 pm
by asym
I'm trying to use traditional Chinese in the Add Text (TA) tool, but I can't seem to get it to work.

With dimensions, I can select a font that includes Chinese (like the google Noto fonts) , and although I can't directly use a Chinese input method in the qcad application, I can copy/paste Chinese characters (廚房 for kitchen for instance). So dimensions are doable.

With the Add Text tool, though, the font selection is more limited and doesn't include any for Chinese. Is there any workaround to getting Chinese to work here?

BTW I'm running qcad 3.19.2 on 64-bit Ubuntu 16.04 (English interface).


Thanks for any help!

Aaron

Re: Chinese Text?

Posted: Thu Mar 15, 2018 2:56 pm
by andrew
I cannot reproduce this problem here.

I've installed "Noto Sans CJK TC" under 64-bit Ubuntu and it shows up in the text dialog and I can also create text with it (QCAD 3.19.2).

Please check if you might have configured QCAD to only display a limited range of fonts in the text dialog under:
Edit > Application Preferences > Draw > Text

Re: Chinese Text?

Posted: Fri Mar 16, 2018 1:14 am
by asym
Aha - that was it. Only a limited selection of fonts were displayed. Thanks!

Re: Chinese Text?

Posted: Thu May 27, 2021 6:34 am
by chenjuanhung
My laptop environment:
Debian 10
qcad-3.26.2-trial-linux-qt5.14-x86_64
qt5
fcitx

Only copy some files to the directory as follows:
:~$ cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/* home/user/opt/qcad-3.26.2-trial-linux-qt5.14-x86_64/platforminputcontexts/

Now you can input chinese by fcitx which in the Qcad text dialogue.

2024.10.26 add:
The qcad have "libibusplatforminputcontextplugin.so", so you can use ibus input chinese in qcad which don't do anything.


My laptop environment:
openSUSE Tumbleweed 20241011 (Qt5.15.15)
qcad-3.31.1-pro-linux-qt5.14-x86_64 (Qt5.14.2)
chinese IM:fcitx

Due to the Qt version of system different from qcad, so the "libfcitxplatforminputcontextplugin.so" of system file copy to "~/opt/ qcad-3.31.1-pro-linux-qt5.14-x86_64/platforminputcontexts/" which don't work.

solution:
refer https://blog.csdn.net/weixin_42233642/a ... /136296326
compile fcitx-qt5 to build "libfcitxplatforminputcontextplugin.so" of "Qt5.14.2" version.
Copy "libfcitxplatforminputcontextplugin.so" of "Qt5.14.2" version to "~/opt/ qcad-3.31.1-pro-linux-qt5.14-x86_64/platforminputcontexts/". Now you can use fcitx input chinese in qcad.

Re: Chinese Text?

Posted: Thu May 27, 2021 6:48 am
by andrew
chenjuanhung: I'm curious as to what files you have in there.

platforminputcontexts contains only these two files here:

libcomposeplatforminputcontextplugin.so
libibusplatforminputcontextplugin.so

And they both ship with QCAD.

Thanks.

Re: Chinese Text?

Posted: Tue Jun 08, 2021 12:55 pm
by chenjuanhung
When I had installed qcad which directory "qcad-3.26.2-trial-linux-qt5.14-x86_64/platforminputcontexts/" is empty.

Directory "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/" contains only these two files here:
libcomposeplatforminputcontextplugin.so
libibusplatforminputcontextplugin.so

thanks

Re: Chinese Text?

Posted: Sat Oct 19, 2024 12:05 am
by xyen2001
Hi,

I'm encountering an issue where I cannot directly input Chinese characters in the text input window. While displaying existing Chinese characters and copying/pasting from other programs work fine, direct input remains unavailable.

Font: Noto Sans CJK TC
Chinese Input Method: fcitx5

I've already attempted the suggested method of copying the platform input context plugins

cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/* home/user/opt/qcad-3.26.2-trial-linux-qt5.14-x86_64/platforminputcontexts/

Unfortunately, this solution didn't resolve the issue.

For reference, the directory /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts contains the following files:

libcomposeplatforminputcontextplugin.so
libfcitx5platforminputcontextplugin.so (already using this one)
libibusplatforminputcontextplugin.so
plasmaimplatforminputcontextplugin.so

Any suggestions on how to enable direct Chinese character input in QCAD would be greatly appreciated.

Debian 12, Wayland, KDE
Qcad 3.31.1.0 (3.31.1)
Qt Version: 5.14.2 Compiler: gcc 5.4.0

Re: Chinese Text?

Posted: Tue Sep 09, 2025 12:30 pm
by chenjuanhung
I have an old laptop used debian 11, I check the QT version of old laptop debian 11 which is QT5.15.2.

My thoughts which is the Debian 12 Qt Version maybe above of 5.15.2, but not is 5.14.2.

Due to the Qt version of system different from qcad, so the "libfcitxplatforminputcontextplugin.so" of system file copy to "~/opt/ qcad-3.31.1-pro-linux-qt5.14-x86_64/platforminputcontexts/" which don't work.

solution:
refer https://blog.csdn.net/weixin_42233642/a ... /136296326
compile fcitx-qt5 to build "libfcitxplatforminputcontextplugin.so" of "Qt5.14.2" version.
Copy "libfcitxplatforminputcontextplugin.so" of "Qt5.14.2" version to "~/opt/ qcad-3.31.1-pro-linux-qt5.14-x86_64/platforminputcontexts/". Now you can use fcitx input chinese in qcad.