Input Method Manager (IMM):輸入法管理器
Windows CE Features > International
Microsoft? Windows? CE includes the Input Method Manager (IMM) Catalog item. IMM manages the communication between an Input Method Editor (IME) and an application. IMM exposes a set of programming elements that enables applications to create and manage their
own IME windows, and to provide a custom interface while using the conversion capabilities of the IME.?
CE包含IMM組件,IMM管理IME和應(yīng)用之間的通訊。IMM提供一套編程接口,使應(yīng)用創(chuàng)建和管理其IME窗體,并且為使用IME轉(zhuǎn)換功能提供自定義的接口。
In This Section
此部分主要說明以下幾點(diǎn):
Input Method Manager (IMM) OS Design Development?
IMM OS設(shè)計(jì)開發(fā)
Provides information about Input Method Manager (IMM) that is helpful when designing and developing a Windows CE OS. This includes dependency information, the modules and components that implement IMM, and IMM implementation considerations.?
提供當(dāng)設(shè)計(jì)和開發(fā)CE OS時,IMM相關(guān)的幫助信息。包括依賴信息、實(shí)現(xiàn)IMM所需的組件和IMM實(shí)現(xiàn)的條件。
Input Method Manager (IMM) Application Development?
IMM應(yīng)用開發(fā)
Provides an overview of the input method system and describes how to use the IMM application programming interface (API).
提供輸入法系統(tǒng)的概述,描述如何使用IMM API。?
Input Method Manager (IMM) Samples?
IMM示例
Describes sample code that is available in the %_WINCEROOT%PublicCommonSdkSamples directory.?
詳細(xì)的示例代碼位于%_WINCEROOT%PublicCommonSdkSamples目錄中。
Input Method Manager (IMM) Reference?
IMM參考
Provides reference material for IMM programming elements.?
IMM編程元素的詳細(xì)參考。
Related Sections
相關(guān)部分
International Application Development?
Describes how to program and design a global application.?
多國應(yīng)用開發(fā)
如何開發(fā)與設(shè)計(jì)多國應(yīng)用的描述。
----------
Input Method Manager (IMM) OS Design Development
IMM OS設(shè)計(jì)開發(fā)
Windows CE Features > International > Input Method Manager (IMM)
Windows CE enables you to include Input Method Manager (IMM) in your OS design.?
在進(jìn)行OS設(shè)計(jì)時,可以包含IMM到CE系統(tǒng)中。
OS Design Information
OS設(shè)計(jì)信息
The following table shows operating system design information for Input Method Manager (IMM).
下表顯示IMM 相關(guān)的OS設(shè)計(jì)信息
Concept(概念) ? ? ? ? ? ? ? ? ? ? ? ? ? Description(描述)
Dependencies(依賴關(guān)系) ? ? ? ? ? ? ? ? ?None?
Hardware considerations(硬件條件) ? ? ? None?
Modules and Components
組件
The following table shows the components and modules that implement Input Method Manager (IMM).
下表顯示實(shí)現(xiàn)IMM需要的組件
Item ? ? ? ? ? ? ? ? ? ?Module ? ? ?Component?
Input Method Manager ? ?coredll ? ? coreimm, coreimmstub?
IMM Thunking ? ? ? ? ? ?gwes ? ? ? ?immthunk?
Input Method Manager (IMM) Implementation Considerations
IMM實(shí)現(xiàn)條件
The following table shows the Sysgen variables for Input Method Manager (IMM).
下表顯示與IMM相關(guān)的SysGen變量
Sysgen variable ? ? Description?
SYSGEN_IMM ? ? ? ? ?When this variable is set, Input Method Manager (IMM) is
? ? ? ? ? ? ? ? ? ? included in the run-time image.?
? ? ? ? ? ? ? ? ? ? 當(dāng)設(shè)計(jì)此變量時,IMM被包含到運(yùn)行時映像中。
----------
Input Method Manager (IMM) Application Development
IMM應(yīng)用開發(fā)
Windows CE Features > International > Input Method Manager (IMM)
Input Method Manager (IMM) manages the communication between an Input Method Editor (IME) and an application. IMM exposes a set of programming elements that enable applications to create and manage their own IME windows, and to provide a custom interface while
using the conversion capabilities of the IME.?
IMM負(fù)責(zé)IME和應(yīng)用之間的通訊,IMM提供一套編程接口使用應(yīng)用可以創(chuàng)建和管理其IME窗體,并且當(dāng)使用IME的轉(zhuǎn)換功能時提供自定義的接口。
In This Section
此部分包含以下內(nèi)容:
Working with the Input Method Editor
從事IME工作
?Method Manager (IMM) Reference
IMM參考
Related Sections
相關(guān)部分
Locale Specific Support
區(qū)域設(shè)置(本地)細(xì)節(jié)支持
International
多國化
Working with the Input Method Editor
從事IME工作
Windows CE Features > International > Input Method Manager (IMM) > Input Method Manager (IMM) Application Development
The Input Method Editor (IME) in Microsoft? Windows? CE simplifies the process of providing input for users. In particular, IMEs are required for many Asian languages in order to input characters from the keyboard. These languages are often made up of thousands
of distinct characters, which make it impossible to show all of the characters on a single keyboard. To facilitate composition, the IME converts the keystrokes into the characters of the target language as a user types. Depending on the IME, these characters
may be further converted. The IME in Windows CE that is localized for Japanese, for example, converts Roman keystrokes entered by a user to Katakana or Hiragana. Then, an additional conversion changes characters to Kanji.?
CE的IME簡化了提供給用戶的輸入過程,特別是為了使用鍵盤輸入亞洲語言時,IME是必須的。這些語言通常是由數(shù)千的不同的字符構(gòu)成,在一個小鍵盤上顯示所有字符是不可能的。為了便于寫作(輸入),IME轉(zhuǎn)換按鍵到用戶類型的(被翻譯的)語言。依靠于IME,字符進(jìn)一步的轉(zhuǎn)換。例如,CE中的IME可以處理日文,轉(zhuǎn)換用戶輸入的羅馬字符到片假名和平假名。然后,額外的轉(zhuǎn)換轉(zhuǎn)換這些字符到日本漢字。
The IME can also present a list of alternatives, called the candidate list, in situations in which the composition is ambiguous. A Windows CE–based application uses the Input Method Manager (IMM) to communicate with the IME.
IME在輸入含糊不清的情況下,可以提供一系列的選擇,稱為候選列表?;贑E的應(yīng)用用戶使用IMM與IME通訊。
See Also
相關(guān)內(nèi)容
Overview of the Input Method System | Overview of the IME User Interface
輸入法系統(tǒng)概述 | IME用戶接口概述
Overview of the Input Method System
輸入法系統(tǒng)概述
Windows CE Features > International > Input Method Manager (IMM) > Input Method Manager (IMM) Application Development > Working with the Input Method Editor
The main parts of the Input Method system are the following:?
輸入法系統(tǒng)的主要部分如下:
The IME kernel contains the knowledge of the specific language that a user is inputting.?
IME內(nèi)核包含用戶輸入的特定語言的知識。
The IME user interface (UI) consists of a Status window, a default Composition window, a Candidate window, and a Guideline window.?
IME UI包含狀態(tài)窗體、輸入窗體、候選窗體和準(zhǔn)則窗體。
布局窗體(Guideline window):The width of the guideline window is calculated by adding together the width of the close button, the width of the composition string area, the left and right margins of the window, and the width of the borders if the borders are specified
by the CImeCUIDefCompWindow::GetWndStyle or the CImeCUIDefCompWindow::GetWndStyleEx method.---摘自MSND:http://msdn.microsoft.com/en-us/library/aa912208.aspx
The Input Method Manager (IMM) coordinates the interaction among the window system, the application, and the IME.?
IMM協(xié)調(diào)操作系統(tǒng),應(yīng)用和IME之間的合作。
An input context maintains the current state of user interaction with the IME. In particular, it maintains the composition string, which consists of the characters that a user is in the process of inputting.?
輸入法上下文維護(hù)IME用戶接口的當(dāng)前狀態(tài),尤其是它維護(hù)用戶正在輸入的候選字符串。
An IME Control window routes unhandled IME messages to the IME.?
IME控制窗體傳遞未處理的IME消息給IME。
The basic operation is as follows.
基礎(chǔ)的操作如下:
A user presses keys on a keyboard. These keystrokes are routed to the IME by the IMM. The IME uses the keys either as commands or to generate characters in the composition string. As the IME carries out its operations, it sends notification messages to the
window that currently has the focus. If this window does not process the messages, the messages are sent to the IME Control window, which then routes them back to the IME for default processing. Windows that do not process IME messages are called IME-unaware
windows. The IME provides the entire user interface, and the window is completely unaware that an IME is operational. Windows that intercept and process IME messages are called IME-aware windows. By intercepting IME messages, these windows may provide their
own UI. By using IMM functions, these windows communicate with the IME.
用戶按鍵,此按鍵通過IMM傳遞到IME。IME將此按鍵當(dāng)成命令或當(dāng)成輸入字符串產(chǎn)生字符。當(dāng)IME執(zhí)行它的操作后,發(fā)送通知信息到當(dāng)前焦點(diǎn)窗體。如果此窗體不處理此信息,消息被發(fā)送到IME控制窗體,控制窗體然后回傳信息到IME進(jìn)行缺省處理。不處理IME消息的窗體被稱做不知道IME的窗體。IME提供完整的用戶接口,并且這些窗體是完全未察覺IME操作。攔截并處理IME消息窗體,稱為知道IME的窗體。通過攔截IME消息,這些窗體可以提供它們自己的UI。通過使用IMM功能,這些窗體與IME通訊。
Overview of the IME User Interface
IME用戶接口概述
Windows CE Features > International > Input Method Manager (IMM) > Input Method Manager (IMM) Application Development > Working with the Input Method Editor
The IME-provided UI consists of the Status, Composition, Candidate, and Guideline windows. By default, the IME creates and manages these windows for all windows that require text input. For most applications, this default processing is sufficient. An application
that relies entirely on the IME for its UI is considered IME-unaware because it is unaware that an IME is functioning in the system.
IME提供的UI包含狀態(tài)、輸入、候選和布局窗體。默認(rèn)情況,IME創(chuàng)建并管理所有請求文字輸入的窗體。對于絕大多數(shù)程序,默認(rèn)的處理是足夠的。UI完全依賴于IME的應(yīng)用被認(rèn)為是不知道IME的,因?yàn)楫?dāng)系統(tǒng)中有IME功能時它不知道IME的存在。
In contrast, an IME-aware application participates in the operation of the IME. Such an application can control the operation, position, and appearance of the IME, or can even provide its own view of the composition string and candidate list.
相反,知道IME的應(yīng)用分享IME的操作。例如應(yīng)用可以控制操作、位置和IME的外觀,或者甚至提供屬于自己的輸入字符串和候選列表的視圖(窗體)