I need help.
I am Studying Godot engine recently.
I am making a diary app.
But here is a problem dealing with Korean text input in TextEdit node.
What 's the solution?
[

  • Toxe replied to this.

    cynicband Is is possible to enter korean characters with a US keyboard? I tried copy-and-pasting them into the text field and that worked.

    Could you try if copy-and-paste works for you?

    cynicband Also could you go to Help --> Copy System Info and post that output here?

      Toxe Godot v4.1.3.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 (NVIDIA; 31.0.15.3667) - AMD Ryzen 5 2600 Six-Core Processor (12 Threads) <-my system info
      and...
      please be aware of the caret position.
      texts left of the caret were saved.
      the last korean character typed was right side of the caret and did not saved.
      when I "typed a period, space or right arrow key" then caret move to the right of the last korean char and saved well.
      If there is a way to do "that" in GDscript then maybe my problem would be solved I think.
      I can't find the way yet.
      Thank you for your concern.

      • Toxe replied to this.

        cynicband Ah I just fully understood the problem now. So it's not the input, it is leaving the control and coming back to it. Got it.

        Does that also happen with Latin characters or for example Japanese? And what happens if you type a Korean character and after that one Latin character? Does that one disappear as well?

          Toxe It only happens for Korean character.
          latin character after korean character? all saved of course.

          Toxe I think, the problem is happened because Godot engine don't care the characteristcs of "Han Geul"- Korean Alphabet- maybe. or because I don't know Godot well.

          • Toxe replied to this.

            Even though it is a bug, hopefully you can find a workaround until it is fixed. It will require testing to figure out what will work though.

            Hook up to the text_changed signal and see whether or not it triggers when entering a Korean character and what it contains. Based on that, you may be able to programmatically adjust the text when the user hits save but before it saves in order to get the correct text saved.

              award text_changed signal don't emit when the caret position is in the left side of the last Korean char.
              I think if text_changed signal is emited and caret is moved to the right side of the last Korean char then this problem will be solved.
              I can see the Korean char in my monitor screen
              but the char is not in the $TextEdit.text yet
              so the text changed signal don,t emit
              I wonder where is the last Korean char in? Could I manage the memory - cache, temp what so ever...where the last char is temporaly in ?
              I want to know...
              Okay this is about IME and composite character maybe... OTL
              at this time, the solution I found is just use input event, key shortcut(ctrl+s or F1 etc) to save text instead of using button node.