Input Method Editor (IME) Program Design (1)

Source: Internet
Author: User

There will certainly be many mistakes in the first translation.

I want to write the best Input Method in China to free Chinese people from their hands.

Starting from scratch today, it's time to die.

 

Input Method Editor

An Input Method Editor (IME) is a program that allows computer users to enter complex characters and symbols, such as Japan Kanji characters, by using a standard keyboard.

The Input Method Editor (IME) is a program that allows computer users to use a standard keyboard to enter complex characters and symbols, such as Chinese Characters in Japanese! Chinese is the most widely used text in the world. It should be Chinese !) Character.

 

This overview describes the IME and explains how to use the Input Method Manager functions to create and manage IME windows.

  • About Input Method Editor
  • Using Input Method Editor
  • Input Method Editor reference

 

This preview describes IME and explains how to use the Input Method Manager (IMM) function to create and manage IME windows.

○ Input Method Editor

Using the Input Method Editor

○ Input Method Editor reference

 

About Input Method Editor

The Input Method Editor relieves users of the need to remember all possible character values. instead, the ime monitors the user's keystrokes, anticipates the characters the user may want, and presents a list of candidate characters from which to choose.

 

The Input Method Editor reduces the need for users to remember all possible character values. Instead, IME monitors users' keys and predicts characters that may be expected by users, and provides a list of optional characters, you can select the desired characters.

 

By default, the ime provides an IME window through which users enter keystrokes and view and select candidates. applications can use the Input Method Manager (IMM) Functions and messages to create and manage their own IME windows, providing a custom interface while using the conversion capabilities of the ime.

 

By default, IME provides an IME window through which you can enter and view and select the desired characters on the keyboard. Applications can use the Input Method Manager (IMM) Functions and messages to create and manage their own IME windows (for example, five in QQ and Pinyin in Word ), it also provides a custom interface (not quite clear) when using the ime conversion function ).

 

Imm is only enabled on East Asian (Chinese, Japan, Korean) Localized windows. On these systems, callGetsystemmetricsWith sm_dbcsenabled to determine if Imm is enabled. note that Windows 2000 provides full-featured IME support in all localized language versions, however, that Imm is enabled only when an Asian Language Pack is installed. an IME-enabled application can callGetsystemmetricsWith sm_immenabled to determine if Imm is enabled.

 

Imm is only available in Windows localized in East Asia (China, Japan, and Korea. In these systemsGetsystemmetricsFunction to determine whether Imm is available. Note that Windows 2000 provides full-featured IME support in all localized versions, But Imm is available only when the Asian Language Pack is installed. An IME-enabled (IME available) program will be called with sm_immenabledGetsystemmetricsFunction to determine whether Imm is available.

 

Status, composition, and candidates windows

The status, composition, and candidates windows form the user interface for the ime.Status windowIndicates that the IME is open and provides the user the means to set the conversion modes.Composition windowAppears when the user enters text and, depending on the Conversion Mode, either displays the text as entered or displays converted text.Candidates windowAppears in conjunction with the composition window. it contains a list of "candidates" (Alternative characters) for the selected character or characters in the composition window. the user can scroll through the candidates list and select the desired characters, then return to the composition window. the user can compose the desired text in this way until the composition string is finalized and the window is closed. the IME sends the composed characters to the application in the formWm_ime_charOrWm_ime_composition/Gcs_result messages. If the application does not process these messages,DefwindowprocFunction translates them into one or moreWm_charMessages.

 

The status window, letter combination window, and column selection window constitute the ime user interface. The status window indicates that the IME is in the enabled status and provides you with methods to set the conversion mode. The character combination window appears when you enter characters in the form of conversion mode. It also displays the entered letters or converted characters. (Conversion Mode = input method, such as Microsoft Pinyin and five pen fonts ...... In fact, the essence of different input methods is different conversion rules .) The column selection window is next to the letter combination window. It contains a list composed of "Candidate entries", which matches the characters in the selected character or combination window. You can scroll through the selection window and select the expected characters, and then return to the letter combination window (Focus. The user can combine the desired text until the end of the string formed by the character combination, and the window will close. IME will useWm_ime_charOrWm_ime_compositionThe/gcs_result message sends the combined characters to the application in the form. If the application does not process these messages,DefwindowprocThe function translates them into one or moreWm_charMessage.

 

By default, the system automatically creates and manages status, composition, and candidates windows for all windows that require text input. for processing applications, this default processing is sufficient. these applications rely entirely on the system for IME support and are said to beIME-unawareBecause they are unaware of the specified tasks the system carries out to manage the ime windows.

 

By default, the system automatically generates and manages the status window, letter combination window, and column selection window for all windows requiring text input. For many programs, this default processing is enough. These applications that rely entirely on the system to provide IME support are called ime-unaware (IME imperceptible) programs because they have no sense of the many tasks the system has done to manage the IME window.

 

AnIME-awareApplication, on the other hand, participation in the creation and management of IME windows. such applications control the operation, position, and appearance of the default Windows by sending messages to and by intercepting and processing messages intended for these windows. in some cases, applications create their own IME windows and provide complete processing for their custom status, composition and candidates windows.

 

On the contrary, an IME-aware (IME-aware) program participates in the creation and management of the IME window. For example, a program may control the options, positions, and appearances of the default (IME) window by sending or intercepting messages and processing these (IME) window messages purposefully. In some cases, applications create their own IME windows and provide full control over their custom statuses, letter combinations, and column selection windows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.