-
-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't enter Korean/Chinese/Japanese in textboxes (IME support) #1778
Comments
The original issue was about shortcut behavior in text fields (e.g. copy, paste) and CJK input. The shortcut behavior is now implemented and i'll leave this issue open for IME support. |
Implementation status:
|
Hello, I have questions about your work and future direction and leave a comment. (I apologize if it seems like i'm trying to pressure you,): Is there any chance that IME will be supported in the future, not only on the desktop, but also in self-hosted web environments? Or would technical difficulties prevent it from being implemented at this point? I also found that for some specialized flash games (AVM2), as shown below, you can enter Korean text even in the current Nightly version. for example, When you try to type '가', you need to type 'ㄱ' and 'ㅏ'. The behavior should be 'ㄱ' -> '가', but it is entered as 'ㄱ' -> 'ㄱ가'. Sample File: 흥해라편의점.zip If this could be fixed, would it be possible to have Korean input in some Flash at this time? Or is this something that would need to be structurally redesigned? Regards, |
I'm glad you're happy! It would be very helpful if you tested IME as its support is being implemented to catch bugs early before we enable it by default :)
The reason I started with desktop it that it's very easy to integrate. It's far more difficult on web. IME basically consists of two parts: (1) behavior in Flash Player, and (2) integration with the environment. The (2) part is trivial on desktop, so I can make sure that (1) works properly before trying to implement (2) on web.
First things first, I'm sorry if I say something wrong about inputting Korean, as I don't know any CJK languages. I've tried inputting Did you have IME enabled in Ruffle when trying to type these characters? If not, it's very likely it's a bug in the software you're using to input Korean. Edit: unless you meant web, in which case it's possible everything's buggy due to how we fake text input. I'd expect it to change when we start implementing IME there.
Currently there are 2 options:
Edit: for web it's more complicated and I don't think there's a reliable way of inputting Korean other than pasting the text. |
This should help: #19896 |
Thank you for your detailed answer, it clarified a lot of things I was wondering and helped me. After enabling the Input Method (experimental) based on Ruffle (2025-03-28 Nightly) in the desktop app, I could see that the Korean characters were entered normally as shown below: However, the cursor doesn't seem to be at the end of the text I'm typing, but the position of the cursor doesn't interfere with my typing. Additionally, i've noticed that Korean input still doesn't work in some text boxes written in AVM1 on desktop Ruffle. Below is the result for Adobe Flash Player: Test swf: avm1_input.zip I'm not sure how helpful this will be, but I figured it could be a test case, so I'm commenting :) |
Unfortunately, I cannot reproduce that, the cursor is always at the right place for me :/ The cursor position is calculated by the input method, and then it just tells Ruffle to place a caret at the position. What input method are you using? What characters are you typing? Does it happen all the time?
Actually, Korean input still works there, but the font just doesn't have the right characters, so they are not displayed. It's a different issue related to missing a proper character fallback behavior in Ruffle. + Flash disables IME when some characters are missing, but that's a more advanced behavior
That's very helpful, thank you! You might also want to focus on some behaviors related to inputting text with IME, e.g. a text field misbehaving when using IME (placeholders not working properly, character limit does not work, etc.). |
Yes, this is always reproduced and happens even when entering incomplete characters in Korean input. One peculiarity is that when you paste text using Ctrl+V, the cursor appears normally on the far right.
I'm on Windows 11 24H2 and using Windows' default Korean keyboard. For example, to type "강", you need to type r, k, and d on the keyboard; when you type r, you should see an "ㄱ". Since the initial letter has already been typed, the cursor (|) on the screen from this point on should show 'ㄱ|' instead of '|ㄱ'.
However, the behavior i've seen in that flash file, and i still need to find other examples in other flash files. As IME features are improved in the future, i plan to check out more test cases, including languages other than Korean :) |
The original issue was about shortcut behavior in text fields (e.g. copy, paste) and CJK input. The shortcut behavior is now implemented and i'll leave this issue open for IME support.
This issue will probably be tracked here: #277
IME is a feature that hasn't been implemented in a very long time, and i'd really like to see it implemented for multilingual users.
Thanks,
TODO
The text was updated successfully, but these errors were encountered: