-
Notifications
You must be signed in to change notification settings - Fork 343
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
Workaround for unexpected commitment of the node text when inpputting Japanese via IME on inline-edit. #31
Conversation
Hello, unfortunately I was not able to find sufficient information about InputMethodEvent and AttributedCharacterIterator. I do not understand the intention of the code and check it. Could you please explain here what it is supposed to do and may be provide some references where I can learn more about it. I am asking you to help me because I want to be sure that I understand the code and can maintain it myself. Regards, Dimitry |
Well, actually I want to understand
|
Hello,
Inputted text by IME. http://en.wikipedia.org/wiki/Input_methodI public void inputMethodTextChanged(InputMethodEvent event) {
System.out.println("+++ committed:"+committedLen+"/"+inputLen); typed: {Space} (convert trigger)
|
InputMethodEvent: http://docs.oracle.com/javase/7/docs/api/java/awt/event/InputMethodEvent.html
It is because I thought that the number of input characters was acquirable only by getEndIndex().
I'm sorry, it seems that you have to have serious work done. |
Dimitry, maybe you don't have to be able to reproduce it - as long as the change doesn't break input for others our Japanese (and Chinese?) users could test the IME part. I remember people asking for improvement for IME and it's great that we have a helping hand here. |
Hello, If I wrote information which is not enough, please let me know. Regards, hokorobi |
Thank you very much four the message. The reason for the things slowing down is that we want to change our release status to release candidate and it is not a good time for merging in issues which I can not test and support by myself. In addition I do not understand your solution at the point where you take getEndIndex() instead of the difference getEndIndex() - getBeginIndex() . It may be right, I don't know, have you tested your solution if you edit an existing text and add text to it? So I decided not to merge your pull request into the release branch to get time for testing by users and bug fixing. I do appreciate your contribution, I just do not like to take the risk right now. Regards, Dimitry |
I understood. I think that it is the right judgment.
I consider once again. |
As long as I tested, getBeginIndex() always returns 0. Regards, hokorobi |
Some Questions:
|
|
… Japanese via IME on inline-edit. Pull - request #31
I refactored your code and integrated it into the master branch. But I was not able to test it because I do not use IME myself. Could you please check the solution in commit 4b3549f ? |
Thank you very much, Dimitry. |
… Japanese via IME on inline-edit. Pull - request #31
commit bcc1417 Author: dpolivaev <dpolivaev> Date: Thu Jun 19 13:11:31 2014 +0200 Workaround for unexpected commitment of the node text when inpputting Japanese via IME on inline-edit. Pull - request #31 commit ecccf95 Author: Volker Boerchers <boercher@web.de> Date: Tue Sep 2 01:46:25 2014 +0200 Attribute formats: show 'Text' instead of 'NO_FORMAT' commit 8760587 Author: Volker Boerchers <boercher@web.de> Date: Tue Sep 2 01:15:57 2014 +0200 #2173: special handling for identity format pattern in attributes: using FormattedObjects is the only way to preserve formats since there is no external format commit 43b7c9c Author: Volker Boerchers <boercher@web.de> Date: Tue Sep 2 01:13:59 2014 +0200 special handling for identity format pattern commit b0bdf0e Author: dpolivaev <dpolivaev> Date: Sat Aug 30 17:44:57 2014 +0200 #2181 File names on tabs are not shown properly in Japanese language commit bc20545 Author: dpolivaev <dpolivaev> Date: Mon Aug 18 22:19:03 2014 +0200 follow redirects for http and https mind map urls commit 485fb68 Author: dpolivaev <dpolivaev> Date: Mon Aug 18 22:18:11 2014 +0200 do not forward modifier only key events to freeplane menu
Although I input Japanese using IME, if setLineWrap() is performed, inputting text will be comitted against an intention.
For this reason, during the IME input, it changed so that setLineWrap() might do nothing.