Chinese input problem (solved) on Ubuntu 2022.04

Solved bugs are moved into this topic...
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Chinese input problem (solved) on Ubuntu 2022.04

Post 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!
Last edited by lookoutside on 30.09.2022 01:22, edited 3 times in total.
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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.
Last edited by main Alexey on 18.09.2022 09:15, edited 1 time in total.
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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?
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post by main Alexey »

Advice about IME: "I suggest fcitx for Chinese IM."
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Post 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!
Last edited by lookoutside on 19.09.2022 07:12, edited 1 time in total.
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Post by lookoutside »

When I upgrade cudatext to the latest verstion (1.171), all the problem disappeared!

Thank you!
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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!
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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.
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Post 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.
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Post 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!
Post Reply