Input Method Editor (IME) programming (4)

zhaozj2021-02-16  39

Candidate Lists

A candidate list is a CANDIDATELIST structure consisting of an array of strings that specifies the characters or character strings that the user may choose from. You can retrieve the candidate lists by using the ImmGetCandidateListCount and ImmGetCandidateList functions.

The alternative list is a CandidateList structure that consists of a list of strings that list users (such as Chinese characters) or strings (such as words). You can use the ImmgetCandIdateListCount and ImmgetCandIdateList function to retrieve the alternative list.

Hot keys

Hot keys give the user a way to quickly change the input mode of the IME or to switch to another IME. Although applications can not add hot keys to the system, they can initiate the same action as a hot key by using the ImmSimulateHotKey function.

The Hextounicode IME Also Permits Conversion Between Hexadecimal and Unicode Characters. For an expedition, See Hextounicode IME.

Shortcuts (hot keys) provide users with a quick change IME input state (eg, medium / text switch) or select other IME (eg, from pin up to five). Although the application cannot add a shortcut button to the system, it can initiate the same operational task by using the ImmsimulateHotKey function to imitate the shortcut key.

The HEXTOUNICODE IME also allows conversion between hexadecimal characters to Unicode characters. See HEXTOUNICODE IME for explanation.

HEXTOUNICODE IME

Rich Edit 3.0 Supports the Hextounicode IME, Which Allows a User To Convert Between Hexadecimal and Unicode Characters by Use of Two Ways.

In the first method, the user types the character code in hexadecimal and then types ALT X. The IME replaces the hexadecimal digits preceding the insertion point with the Unicode character. If the current font does not support the character code, an appropriate font is chosen that does support it. to convert from Unicode to hexadecimal, type SHIFT ALT X. This replaces the Unicode character that precedes the insertion point with the hexadecimal digits. In particular, this allows you to determine the character that is indicated by a "missing glyph" indicator. If the hexadecimal character code immediately follows some legitimate (noncharacter) hexadecimal characters, select the specific digits that you want to convert before typing ALT X. A problem with this first method is that ALT X is sometimes used As a key combination for the exit command (for "for example, in Microsoft Office, this Only Happens as an option of the file menu.the second method involves the number pad. here the user types ALT NumPad numbers (with values ​​greater than 255) to enter Unicode characters using decimal values. This method is not as useful as the first method because you can not see what hexadecimal digits you typed. Also, you can not correct them except by Reentering the all again.

Rich Edit 3.0 supports Hextounicode IME, which allows users to use shortcuts to convert between hexadecimal characters and Unicode characters through one or two ways.

In the first method, the user enters the character in the hex mode and then enters the Alt X key. IME will replace hexadecimal coding before the insertion point with Unicode characters. If the current font does not support the encoding of this character, a suitable font that supports it can be used. To convert Unicode characters into hexadecimal characters, enter the SHIFT Alt X key. This action will replace the Unicode character before the insertion point

Code for hexadecimal coding. In special cases, this operation allows you to determine the characters indicated by the Lateless Glyphic indicator. If the hexadecimal code is followed by some hexadecimal code, you should choose a special character you want to convert before entering Alt X. The problem with the first method is that Alt X is often used as a combination of exit programs (that is, exit). For example, in Microsoft Office, it will perform the same features as the options (exit options) in the File menu. The second method involves numeric keypads. The user can enter the Unicode character with a decimal value by the ALT digital keyboard number (number must be greater than 255). Because you can't see the hexadecimal code you entered, this method is slightly inferior to the first method. Moreover, for a correction, don't choose to re-enter you.

转载请注明原文地址:https://www.9cbs.com/read-22061.html

New Post(0)