现在的位置: 首页 > 综合 > 正文

Input Method Manager (IMM):输入法管理器

2013年10月06日 ⁄ 综合 ⁄ 共 7327字 ⁄ 字号 评论关闭

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的外观,或者甚至提供属于自己的输入字符串和候选列表的视图(窗体)

抱歉!评论已关闭.