China/Japan/Korea Input System (IME)

All development related issues welcome

Moderator: Moderator Team

Post Reply
User avatar
katayama_hirofumi_mz
Posts: 54
Joined: Mon Apr 05, 2010 5:43 am
Location: Japan
Contact:

China/Japan/Korea Input System (IME)

Post by katayama_hirofumi_mz »

What's this on earth?

subsystems/win32/win32k/ntuser/kbdlayout.c (196):

Code: Select all

static PKBL UserLoadDllAndCreateKbl(DWORD LocaleId)
{
   ...

   /* Microsoft Office expects this value to be something specific
    * for Japanese and Korean Windows with an IME the value is 0xe001
    * We should probably check to see if an IME exists and if so then
    * set this word properly.
    */
   langid = PRIMARYLANGID(LANGIDFROMLCID(LocaleId));
   hKl = LocaleId;

   if (langid == LANG_CHINESE || langid == LANG_JAPANESE || langid == LANG_KOREAN)
      hKl |= 0xe001 << 16; /* FIXME */
   else hKl |= hKl << 16;

   ...
Help me and I can help you as a Japanese programmer.
SuperDog
Translation Team
Posts: 124
Joined: Tue Mar 04, 2008 2:52 am

Re: China/Japan/Korea Input System (IME)

Post by SuperDog »

I guess it's a text orientation flag
User avatar
katayama_hirofumi_mz
Posts: 54
Joined: Mon Apr 05, 2010 5:43 am
Location: Japan
Contact:

Re: China/Japan/Korea Input System (IME)

Post by katayama_hirofumi_mz »

How should we extend UserLoadKbdDll and KBLList?
andrewweb
Posts: 263
Joined: Fri Jun 01, 2007 3:59 pm
Location: United Kingdom
Contact:

Re: China/Japan/Korea Input System (IME)

Post by andrewweb »

SuperDog wrote:I guess it's a text orientation flag
Korean, Chinese and Japanese are usually written left-to-right in the OS.
It's probably an "IME" flag.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest