Bug 203865 - Unexpecting string produced from input sequence using SCIM hangul input method
Summary: Unexpecting string produced from input sequence using SCIM hangul input method
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk+
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: FC6Desktop
TreeView+ depends on / blocked
 
Reported: 2006-08-24 04:08 UTC by Jong Bae KO
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-01 15:09:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Screenshot (42.38 KB, image/png)
2006-08-24 04:08 UTC, Jong Bae KO
no flags Details

Description Jong Bae KO 2006-08-24 04:08:31 UTC
Description of problem:
Nautilus cannot produce correct Hangul file or folder name.

Version-Release number of selected component (if applicable):
nautilus-2.15.4-4.el5
scim-1.4.4-29.fc6
scim-hangul-0.2.2-6.fc6

How reproducible:
always

Steps to Reproduce:
1. create new file or folder from naultilus
2. rename it
3. type " rhwhdqo"

Actual results:
ê³ ì¡°ããã

Expected results:
ê³ ì¢ë°°

Additional info:
when I press a right arrow key between "rh","whd" and "qo", I can produce
correct name. eg."rh->whd->qo"
I think it is a buffer problem.

Comment 1 Jong Bae KO 2006-08-24 04:08:31 UTC
Created attachment 134772 [details]
Screenshot

Comment 2 Alexander Larsson 2006-08-24 12:18:32 UTC
Does this not happen in any other application?


Comment 3 Jong Bae KO 2006-08-25 02:19:01 UTC
No. other application works fine in Hangul. I tested with gedit,kedit,oowriter etc

Comment 4 Alexander Larsson 2006-08-25 08:43:25 UTC
This might be a problem with EelEditableLabel which handles the editing in the
icon container. Does it work in a nautilus window that shows the list view?


Comment 5 Jong Bae KO 2006-08-27 23:55:16 UTC
Yes Hangul name is showed in the nautilus. Only Hangul writing problem.
In the terminal, a naming folder or file and viewing are working fine in Hangul.

Comment 6 Akira TAGOH 2006-08-28 06:14:33 UTC
(In reply to comment #4)
> This might be a problem with EelEditableLabel which handles the editing in the
> icon container. Does it work in a nautilus window that shows the list view?
> 

Well, it works fine with creating a new folder. but failed the following steps
with renaming on even the list view:

1. create a folder and just press enter with the default folder name.
2. select Rename from the context menu of the folder that created at step 1.
3. activate scim-hangul with ctrl+space and type rhwhdqo

it looks like an initial cursor position is relevant to this issue. actually it
works if I do reselect the strings like:

2.1. move the cursor at the beginning of line.
2.2. reselect the whole of current folder name with shift+right

or

2.1. move the cursor at the end of line.
2.2. reselect the whole of current folder name with shift+left


Comment 7 Alexander Larsson 2006-08-28 08:11:13 UTC
Very strange. The initial state should be in either of those two states.

Comment 8 Akira TAGOH 2006-08-28 11:22:21 UTC
Interesting thing are, when the selection is replaced by hangul character "rh" -
it happens when typing "rhwh", because "rhw" is still valid hangul character,
but not "rhwh" and IM considers to commit "rh" - normally "wh" is still in the
preedit. but on editing the filename, "wh" is also committed in the front of the
cursor. I mean it looks like "rh"<cursor>"wh" on the editbox.

After the selection is deleted, it looks to me like someone invokes
gtk_im_context_reset(). I haven't looked at the source code yet though.

Comment 9 Matthias Clasen 2006-08-31 19:27:42 UTC
Does 

* Tue Aug 29 2006 Akira TAGOH <tagoh> - 0.2.2-7
- scim-hangul-update-caret.patch: backported from CVS to update the caret.
  (#198721)

have any effect on this ?

Comment 10 Jong Bae KO 2006-09-01 04:45:45 UTC
This bug is getting worse on FC6Test2.

Version-Release number of selected component (if applicable):
nautilus-2.15.92.1-2.fc6
scim-1.4.4-32.fc6
scim-hangul-0.2.2-7.fc6

How reproducible:
always

Steps to Reproduce:
1. create new file or folder from naultilus
2. rename it
3. Activate SCIM-Hangul
4. type " rhwhdqo"

Actual results:
고h조ㅇqㅂㅐ

Expected results:
고종배

Comment 11 Akira TAGOH 2006-09-01 07:40:23 UTC
(In reply to comment #9)
> Does 
> 
> * Tue Aug 29 2006 Akira TAGOH <tagoh> - 0.2.2-7
> - scim-hangul-update-caret.patch: backported from CVS to update the caret.
>   (#198721)
> 
> have any effect on this ?

Well, yes, but this issue is always reproducible in either way no matter what
view is currently used and there are the selection or not then. it may be likely
that reselecting strings just happened to work, because old one and new one
works fine on gedit say.

after upgrading scim-hangul, the behavior seems to be changed. let me describe it:

no changes when the preedit string is committed of course. so it's when you
typed a second 'h'. but right now it looks like <rh>h<wh>[cursor]. and no
preedit strings there. so I'm still suspecting that eel may invokes the
unnecessary gtk_im_context_reset() somewhere.


Comment 12 Alexander Larsson 2006-09-01 09:43:33 UTC
I have a fix that makes eel not reset the context on commit. I'm building it now.


Comment 13 Alexander Larsson 2006-09-01 10:01:14 UTC
The fix is in eel2-2.15.92-4.fc6. Could you verify that it works?


Comment 14 Alexander Larsson 2006-09-01 10:07:36 UTC
Also, a similar bug seems to be in GtkEntry, see:
http://bugzilla.gnome.org/show_bug.cgi?id=353803

Comment 15 Akira TAGOH 2006-09-01 10:33:03 UTC
it works on the icon view. but not on the list view. does it use GtkEntry right?

Comment 16 Alexander Larsson 2006-09-01 10:55:19 UTC
Ah, yes it does. Reassigning this to Gtk+ then.


Comment 17 Matthias Clasen 2006-09-01 15:09:22 UTC
fixed in 2.10.2-6, thanks

Comment 18 Jong Bae KO 2006-09-05 03:37:47 UTC
I tested it, and it works fine.


Note You need to log in before you can comment on or make changes to this bug.