1. 程式人生 > >Input Method Manager (IMM):輸入法管理器

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和應用之間的通訊。IMM提供一套程式設計介面,使應用建立和管理其IME窗體,並且為使用IME轉換功能提供自定義的介面。


In This Section
此部分主要說明以下幾點:
Input Method Manager (IMM) OS Design Development 
IMM OS設計開發
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. 
提供當設計和開發CE OS時,IMM相關的幫助資訊。包括依賴資訊、實現IMM所需的元件和IMM實現的條件。
Input Method Manager (IMM) Application Development 
IMM應用開發
Provides an overview of the input method system and describes how to use the IMM application programming interface (API).
提供輸入法系統的概述,描述如何使用IMM API。 
Input Method Manager (IMM) Samples 
IMM示例
Describes sample code that is available in the %_WINCEROOT%\Public\Common\Sdk\Samples directory. 
詳細的示例程式碼位於%_WINCEROOT%\Public\Common\Sdk\Samples目錄中。
Input Method Manager (IMM) Reference 
IMM參考
Provides reference material for IMM programming elements. 
IMM程式設計元素的詳細參考。
Related Sections
相關部分
International Application Development 
Describes how to program and design a global application. 
多國應用開發
如何開發與設計多國應用的描述。


----------
Input Method Manager (IMM) OS Design Development
IMM OS設計開發
Windows CE Features > International > Input Method Manager (IMM)


Windows CE enables you to include Input Method Manager (IMM) in your OS design. 
在進行OS設計時,可以包含IMM到CE系統中。
OS Design Information
OS設計資訊
The following table shows operating system design information for Input Method Manager (IMM).
下表顯示IMM 相關的OS設計資訊
Concept(概念)                           Description(描述)
Dependencies(依賴關係)                  None 
Hardware considerations(硬體條件)       None 


Modules and Components
元件
The following table shows the components and modules that implement Input Method Manager (IMM).
下表顯示實現IMM需要的元件
Item                    Module      Component 
Input Method Manager    coredll     coreimm, coreimmstub 
IMM Thunking            gwes        immthunk 


Input Method Manager (IMM) Implementation Considerations
IMM實現條件
The following table shows the Sysgen variables for Input Method Manager (IMM).
下表顯示與IMM相關的SysGen變數
Sysgen variable     Description 
SYSGEN_IMM          When this variable is set, Input Method Manager (IMM) is
                    included in the run-time image. 
                    當設計此變數時,IMM被包含到執行時映像中。


----------
Input Method Manager (IMM) Application Development
IMM應用開發
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負責IME和應用之間的通訊,IMM提供一套程式設計介面使用應用可以建立和管理其IME窗體,並且當使用IME的轉換功能時提供自定義的介面。
In This Section
此部分包含以下內容:
Working with the Input Method Editor
從事IME工作
 Method Manager (IMM) Reference
IMM參考
Related Sections
相關部分
Locale Specific Support
區域設定(本地)細節支援
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是必須的。這些語言通常是由數千的不同的字元構成,在一個小鍵盤上顯示所有字元是不可能的。為了便於寫作(輸入),IME轉換按鍵到使用者型別的(被翻譯的)語言。依靠於IME,字元進一步的轉換。例如,CE中的IME可以處理日文,轉換使用者輸入的羅馬字元到片假名和平假名。然後,額外的轉換轉換這些字元到日本漢字。
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在輸入含糊不清的情況下,可以提供一系列的選擇,稱為候選列表。基於CE的應用使用者使用IMM與IME通訊。


See Also
相關內容
Overview of the Input Method System | Overview of the IME User Interface
輸入法系統概述 | IME使用者介面概述


Overview of the Input Method System
輸入法系統概述


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: 
輸入法系統的主要部分如下:
The IME kernel contains the knowledge of the specific language that a user is inputting. 
IME核心包含使用者輸入的特定語言的知識。
The IME user interface (UI) consists of a Status window, a default Composition window, a Candidate window, and a Guideline window. 
IME UI包含狀態窗體、輸入窗體、候選窗體和準則窗體。
佈局窗體(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協調作業系統,應用和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. 
輸入法上下文維護IME使用者介面的當前狀態,尤其是它維護使用者正在輸入的候選字串。
An IME Control window routes unhandled IME messages to the IME. 
IME控制窗體傳遞未處理的IME訊息給IME。
The basic operation is as follows.
基礎的操作如下:
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將此按鍵當成命令或當成輸入字串產生字元。當IME執行它的操作後,傳送通知資訊到當前焦點窗體。如果此窗體不處理此資訊,訊息被髮送到IME控制窗體,控制窗體然後回傳資訊到IME進行預設處理。不處理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包含狀態、輸入、候選和佈局窗體。預設情況,IME建立並管理所有請求文字輸入的窗體。對於絕大多數程式,預設的處理是足夠的。UI完全依賴於IME的應用被認為是不知道IME的,因為當系統中有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的應用分享IME的操作。例如應用可以控制操作、位置和IME的外觀,或者甚至提供屬於自己的輸入字串和候選列表的檢視(窗體)