Home » Community » U++ community news and announcements » IME improved support
|
|
Re: IME improved support [message #58135 is a reply to message #58134] |
Sun, 27 February 2022 09:52 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Oblivion wrote on Sun, 27 February 2022 09:39Hello Mirek,
Thank you very much for this improvement.
My question is: how are we going to activate or use the preedit in our apps or widgets? (I'd like to test it)
Best regards,
Oblivion
Well, reastically, there are just 4 widgets with text input right now - EditField, LineEdit, DocEdit and RichText. All of them have what counts as "full support" and it works out of box.
If you want to develop your own widget with IME support, well, if it shows Caret, you will have IME (because default implementation of GetPreedit returns caret position). The only thing you eventually need to add is CancelMyPreedit here and there to cancel composition on some actions (e.g. cursor moved).
|
|
|
Re: IME improved support [message #58137 is a reply to message #58135] |
Tue, 01 March 2022 07:45 |
Tom1
Messages: 1212 Registered: March 2007
|
Senior Contributor |
|
|
Hi Mirek,
Looks very elegant!
However, please fix the following on Linux:
/home/tom/upp.src/uppsrc/CtrlCore/GtkEvent.cpp:659:4: error: expected expression
DLOG(GetKeyDesc(kv) << ", pressed: " << pressed << ", count: " << CurrentEvent.count);
^
/home/tom/upp.src/uppsrc/Core/Diag.h:158:26: note: expanded from macro 'DLOG'
#define DLOG(x) @ // To clean logs after debugging, this produces error in release mode
^
/home/tom/upp.src/uppsrc/CtrlCore/GtkEvent.cpp:669:4: error: expected expression
DDUMPHEX(kv);
^
/home/tom/upp.src/uppsrc/Core/Diag.h:164:26: note: expanded from macro 'DDUMPHEX'
#define DDUMPHEX(nx) @ // To clean logs after debugging, this produces error in release mode
^
2 errors generated.
Best regards,
Tom
EDIT: Sorry this newbie question here... How do I test the IME support? I just wish to know how it works.
[Updated on: Tue, 01 March 2022 08:10] Report message to a moderator
|
|
|
|
Re: IME improved support [message #58144 is a reply to message #58137] |
Thu, 03 March 2022 09:20 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Tom1 wrote on Tue, 01 March 2022 07:45Hi Mirek,
Looks very elegant!
However, please fix the following on Linux:
/home/tom/upp.src/uppsrc/CtrlCore/GtkEvent.cpp:659:4: error: expected expression
DLOG(GetKeyDesc(kv) << ", pressed: " << pressed << ", count: " << CurrentEvent.count);
^
/home/tom/upp.src/uppsrc/Core/Diag.h:158:26: note: expanded from macro 'DLOG'
#define DLOG(x) @ // To clean logs after debugging, this produces error in release mode
^
/home/tom/upp.src/uppsrc/CtrlCore/GtkEvent.cpp:669:4: error: expected expression
DDUMPHEX(kv);
^
/home/tom/upp.src/uppsrc/Core/Diag.h:164:26: note: expanded from macro 'DDUMPHEX'
#define DDUMPHEX(nx) @ // To clean logs after debugging, this produces error in release mode
^
2 errors generated.
Best regards,
Tom
EDIT: Sorry this newbie question here... How do I test the IME support? I just wish to know how it works.
In windows, you have to add chinese language in settings.
|
|
|
|
|
Goto Forum:
Current Time: Sat May 04 14:48:06 CEST 2024
Total time taken to generate the page: 0.02632 seconds
|