tsujan / FeatherPad

Lightweight Qt Plain-Text Editor for Linux
GNU General Public License v3.0
392 stars 66 forks source link

Replace, Asian composition is lost #800

Open HubKing opened 3 months ago

HubKing commented 3 months ago

For example, if I type "한글" in "Replace with", "글" is still in the composition mode, and only "한" gets inserted. I tried the same thing with KWrite, and this did not happen in KWrite. Also, it happens with Japanese. But unlike Japanese, where you frequently type Chinese letters and you always press enter to confirm the composition, Korean doesn't usually don't press a key to end the composition, because Korean people rarely type Chinese letters.

Please see the screen recording below.

Screencast_20240711_113649.webm

tsujan commented 3 months ago

As I may have mentioned elsewhere, FeatherPad includes no special code for Chinese, Japanese, Korean, or any other language, whether it's Asian or not. Anything you may see is done by Qt. Apps like KWrite or Kate may have codes specific to some languages.

I don't have a plan to add language-specific codes to FeatherPad, but even if I did, I couldn't do it for the above-mentioned languages because I know nothing about them. If extra codes are needed, they should be added by contributors who know them. A cleaner solution would be that Qt should handle them like other languages, i.e., the solution should be implemented in Qt itself.

I'll leave this report open for a while. Clean and concise workarounds would be very appreciated.