At the initial implementation of D3E KeyboardEvent.key, following Hangul related keys are mapped to "Unidentified". They should be mapped correctly as far as possible (I don't familiar with Korean language, though). GDK_Hangul GDK_Hangul_Start GDK_Hangul_End GDK_Hangul_Hanja GDK_Hangul_Jamo GDK_Hangul_Romaja GDK_Hangul_Jeonja GDK_Hangul_Banja GDK_Hangul_PreHanja GDK_Hangul_PostHanja
4 years ago
I'm not familiar with Hangul IME, so, I'm not sure the actual meaning of the keysyms. With Korean keyboard, I can see only two additional keys which cause only GDK_Hangul and GDK_Hangul_Hanja with any modifier state. However, I found this document, see Figure 8: http://www.cs.columbia.edu/~lennox/draft-lennox-avt-app-sharing-00.html#anchor3 Name Code Note ---- ---- ---- Hangul 0x31 Hangul start/stop(toggle) Hangul Start 0x32 Hangul start Hangul End 0x33 Hangul end, English start Hangul Hanja 0x34 Start Hangul->Hanja Conversion Hangul Jamo 0x35 Hangul Jamo mode Hangul Romaja 0x36 Hangul Romaja mode Hangul Code Input 0x37 Hangul code input mode Hangul Jeonja 0x38 Jeonja mode Hangul Banja 0x39 Banja mode Hangul Pre-Hanja 0x3A Pre Hanja conversion Hangul Post-Hanja 0x3B Post Hanja conversion Hangul Single Candidate 0x3C Single candidate Hangul Multiple Candidate 0x3D Multiple candidate Hangul Previous Candidate 0x3E Previous candidate Hangul Special 0x3F Special symbols I'll map the keysyms as far as possible with this hint.
I searched about "Jamo", "Romaja", "Jeonja", "Banja" and "Junja". According to this topic of wikipedia http://en.wikipedia.org/wiki/Korean_romanization GDK_Romaja should be mapped to "Alphanumeric" rather than "RomanCharacters". However, I don't find the meaning of other words. channy: Could you explain about the meaning of above words? We need to map the keysyms in comment #0 to the keynames which are defined by DOM Level 3 Events (only if proper keyname is defined for a keysym) http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#key-values-list I'm thinking about the mapping is: GDK_Hangul "HangulMode" GDK_Hangul_Start "HangulMode" GDK_Hangul_End "Alphanumeric" GDK_Hangul_Hanja "HanjaMode" GDK_Hangul_Jamo (not sure) GDK_Hangul_Romaja "Alphanumeric" GDK_Hangul_Jeonja (not sure) GDK_Hangul_Banja (not sure) GDK_Hangul_PreHanja "PreviousCandidate" GDK_Hangul_PostHanja "NextCandidate" Note that the left key of space key causes GDK_Hangul. The right key of space key causes GDK_Hangul_Hanja. I've not found the keys which cause other keysyms on the standard Korean keyboard. Other possible DOM Level 3 Events defined keynames are: 'FinalMode: The Final Mode (Final) key used on some Asian keyboards, to enable the final mode for IMEs. 'RomanCharacters': The Roman Characters function key, also known as the 'Youngja' or 'Young' key. 'JunjaMode': The Junja (Korean characters) Mode key.
I changed to get help from Jungshik.
I found this document: http://msdn.microsoft.com/en-us/library/cc194846.aspx Junja mode means "Single-byte Latin letters" mode. Banja mode means "Double byte Latin letters" mode. Then, it seems that GDK_Hangul_End and GDK_Hangul_Romaja should be mapped to "JunjaMode".
channy: We've not gotten the reply from Jungshik, and my question isn't technical question. I just want to know the equivalent between GDK keysyms and D3E key names of Korean IME input modes. Don't you have no advice for me? I'm thinking current mapping should be: GDK_Hangul "HangulMode" GDK_Hangul_Start "HangulMode" GDK_Hangul_End "JunjaMode" GDK_Hangul_Hanja "HanjaMode" GDK_Hangul_Jamo (not sure) GDK_Hangul_Romaja "JunjaMode" GDK_Hangul_Jeonja (not sure) GDK_Hangul_Banja "Unidentified" (We should request to add new key name to W3C) GDK_Hangul_PreHanja "PreviousCandidate" GDK_Hangul_PostHanja "NextCandidate"
Er, perhaps, GDK_Hangul_Jamo should be HangulMode.
10 months ago