Page 1 of 2

Chinese input problem (solved) on Ubuntu 2022.04

Posted: 18.09.2022 07:27
by lookoutside
I am a newbie for (ubuntu) linux and install Cudatext on ubuntu 2022 today. The details are as below:

CudaText 1.170.5.1
Ubuntu 2022.04
qt version

Problems:

1. When I save a new file to disk, It takes too long for the new window to pop and locate the file path;
2. I can use Chinese input method in most cases, but some Chinese words can't be input in Cudatext, such as: 有, 创建, 不, ...
3. In Chinese input mode, I can't input "-". I guess it the same problem as the second

Thank you!

Posted: 18.09.2022 08:49
by main Alexey
1. Do you mean "save file as" dialog, that it appears too long?

EDIT: No need to report 2) and 3) to lazarus bugtracker.

Posted: 18.09.2022 08:50
by main Alexey
Also see https://wiki.freepascal.org/CudaText#Li ... t_problems
Install "ibus" package
In the OS environment file, set 2 variables (for 2 builds of CudaText, gtk2 and qt5):
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
if you change GTK_IM_MODULE, it helps?

Posted: 18.09.2022 14:06
by main Alexey
Advice about IME: "I suggest fcitx for Chinese IM."

Posted: 19.09.2022 01:38
by lookoutside
main Alexey wrote:1. Do you mean "save file as" dialog, that it appears too long?
Yes. But that's not all. When the "save file as" dialog appear, It freeze there for one minute before I can change path, then another one minute before I can type in the file name.
EDIT: No need to report 2) and 3) to lazarus bugtracker.
Advice about IME: "I suggest fcitx for Chinese IM."
I tried fcitx, but the problem still exists. Some of characters can't be inserted in the text under the cursor.

However, I can type normally in other editors, but not in cudatext.

Perhaps it's not a problem of cudatext but a problem of Ubuntu 2022.04. And I should try ubuntu 2020 later.

Thank you!

Posted: 19.09.2022 07:11
by lookoutside
When I upgrade cudatext to the latest verstion (1.171), all the problem disappeared!

Thank you!

Posted: 19.09.2022 09:24
by main Alexey
But that's not all. When the "save file as" dialog appear, It freeze there for one minute before I can change path, then another one minute before I can type in the file name.
That must be issue of lazarus GTK2 widgetset (if not issue of OS or GTK2).
Pls, try on different lazarus apps to reprduce it.
Double Commander (need to find where it has the 'save file as'? maybe internal text editor?),
maybe Lazarus IDE too (can be installed by 2 clicks from fpcupdeluxe
https://github.com/LongDirtyAnimAlf/fpc ... e/releases ).
to the latest verstion (1.171), all the problem disappeared
it's very strange!

Posted: 19.09.2022 09:32
by main Alexey
>it's very strange!

sometimes I think somebody breaks my lazarus installation, because I (PC) was hacked year ago (somebody got my SourceForce password). if you want to check it, compile Cud from source, v1.170, and check it. sources of 1.170 are at Sourceforge in 'src' dir.

Posted: 21.09.2022 00:28
by lookoutside
main Alexey wrote:>it's very strange!

sometimes I think somebody breaks my lazarus installation, because I (PC) was hacked year ago (somebody got my SourceForce password). if you want to check it, compile Cud from source, v1.170, and check it. sources of 1.170 are at Sourceforge in 'src' dir.
Sorry, I don't know how to do it. I will if I prepare myself for the linux knowledge.

Posted: 30.09.2022 01:20
by lookoutside
Dear author,

I encounter the same problem again on another Ubuntu 2022.04.

The fact is that the problem only exists on cudatext qt version. The gtk2 version works well.

please use gtk version cudatext.


Thank you!