My code input method [C language]] design (1)

xiaoxiao2021-03-06  91

This article only describes the principle of the input to the output conversion, if you want to know how the framework is called, please see the free Pinyin input method version 3.1 I originally used this.

If you want to know the interface, Conve13, please refer to the following article, in which the details of the input method work:

http://forum.mywuzhen.com/thread.jsp?forum=7&thread=1835&tstart=0&trange=15

http://www.petrocn.com/cgi-bin/topic.cgi?forum=5&topic=3&replynum=last#bottom

http://wwsys.51.net/wwwwboard/Messages/253.html

I may write some, there is a problem, I have a problem with me, I'm talking to me.

Mail to: renzhongfang@nju.edu.cn

When the input method, it seems that it is difficult to do, but the principle is very simple:

Find out from the input numbers or words or words

For my input method, the longest coding is four digits [see my previous document] (later added digital turns and pinyin, English is not calculated, this is an additional function), and the code can be encoded Generate by the word code, so you only need to have a coded font. You can download one of the people's 130,000, 300,000. After a little modification, it can be imported into it.大 词库

Now Chinese characters have hundreds of thousands, but there are more than 670 Chinese characters, so common characters and difficult words in the input method are separated. Generally, the coded investigation is only common words, and can be switched with a key. Tentative is the '`' button, that is, the Tab button is pressed, called the difficult word button.

At the same time, there are many contents, and if they are put together, they are used to turn more influence efficiency, so they are divided into two categories: commonly used words and randomous lexes (also known well), use The '/' button is switched.

Since the input method only needs to enter a number and page, as long as the keypad can be completed (this feature is extremely advantageous for the input method to the mobile phone)

Keyboard function description:

Numlock: Not used

1-9: Enter coding, selection

/: Common words and rare use words

*: Similar to the space on the space, but is different, it can terminate the encoding input to select the word, such as input 123, this time is not in the selected word status, but also input 4, if you want to select the word, you can use the star key It is in the style of choice.

- : Turn up and up and activate the selection (this later), where - can also be used to delete the words entered in front, that is, retreats a input word, if you enter the word "body", then press -. You can delete these two words, the same words are the same

(DEL): Delete a word, or delete a code in the encoded input state

ENTER: Delete the input encoding, use to correct the input error

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

New Post(0)