Background of the Invention
This invention relates to a method for encoding Chinese characters and phrases, and a keyboard designed on the basis of the method. Using the present invention, Chinese characters and phrases can be quickly inputted entirely according to the form of the character, and the input is therefore suitable for the entry into any large, medium, small or mini-sized computer, as well as for Chinese information processing and communication systems.
In a Chinese information processing system, the quick input of individual characters and phrases is a major problem that calls for an urgent solution due to the extended use of computers in the countries and areas using Chinese characters. The prior art systems for encoding Chinese characters include encoding by stroke-form, encoding by whole characters at a large keyboard, and encoding by phonemes and morphemes combined. Some such systems involved encoding Chinese characters only on the basis of single stroke forms; others used their combinations or roots that often needed large numbers of roots without considering their inner links. The systems have disadvantages such as requiring large numbers of keys, special input devices, many rules to be remembered by the operator, complicated operations, too many identical codes and low input speed. In general, any user of the systems needs long special training in order to memorize their rules.
Summary of the Invention
The present invention, for the purpose of creating a direct and easy-to-learn method, adopts a system of breaking down Chinese characters into roots and encoding them by spelling out the component roots. Hence the method to encode Chinese characters and phrases is compatible with high input speed systems. The roots are selected optimally and are arranged on keys of a standard keyboard; several tens of thousands of characters and phrases can be stored into a computer; the operator can key in texts at a speed of about 120-150 characters per minute without looking at the keyboard, and the efficiency of inputting characters and phrases can be raised enormously.
According to the invention, Chinese characters are regarded as a form of spelling made up of geometrical elements, and can be broken down into three levels, namely, stroke forms, roots and whole characters. Strokes are combined to form roots and roots to form characters. Each character includes at least one root. Each root includes at least one stroke and has an order within its respective character. Each stroke has a form and an order within its respective root. The orders of roots and strokes are determined by a traditional sequence of handwriting. This method does not consider pronunciation, nor does it break every character down into single strokes, but forms characters and phrases by roots or their codes which can be inputted on the keys of a keyboard in the sequence of writing characters by hand.
For the realization of the method of the invention tens of thousands of Chinese characters have been broken down into these roots and statistics have been compiled; the roots have been sorted according to the frequency distribution in constituting characters and in texts taken from different kinds of newspapers, books and magazines. After the consideration of large numbers of roots, optimally selected roots are sorted and their frequency distributions form an important foundation to the present encoding method.
Brief Description of the Drawings
FIG. 1 shows numerical codes for five types of strokes of Chinese characters;
FIG. 2 shows four topological patterns of Chinese characters and gives examples;
FIG. 3 is a chart of blocks, in which roots are sorted in accordance with the numerical codes of the first stroke and the number of strokes forming the roots as well as the frequencies with which they are used;
FIG. 4 is a chart of all the selected roots;
FIG. 5 is a chart in which numerical codes for sections and blocks are shown;
FIG. 6 is a diagram of a keyboard in which the roots and their numerical codes are compatible.
FIG. 7 shows a cross-code of the last stroke and the character's pattern, sufficient to identify the character.
Detailed Description of the Preferred Embodiment
The basic strokes constituting roots can be characterized as horizontal, vertical, left-falling, right-falling, and turning. Each type of stroke includes those similar in form grouped according to the direction in which they are written by hand. The five types of strokes are then allotted the Arabic numerals 1, 2, 3, 4, and 5 as their respective codes in accordance with their probability of use as shown in FIG. 1. For example, the turning type includes several different turning strokes such as , , , , , , .
In addition, character forms can be classified into four topological patterns, namely, left-right, up-down, embracing, and singular. These four patterns are distinguished by their visual effects and the positions of roots in characters and are allotted the Arabic numerals 1, 2, 3, and 4, as their respective codes in accordance with their frequencies of usage as shown in FIG. 2. For example, the topological patterns of , , , are , , , , respectively, all called a "left-right" pattern and are allotted the code 1.
The roots were selected optimally, i.e. according to their frequency distribution both in constituting characters and in practical usage, and were then divided into five sections in accordance with the types of the first stroke of each root. The five sections are allotted the respective numerical codes 1, 2, 3, 4, and 5 according to their frequencies of usage. Each of the five sections is further divided into five blocks in accordance with the types of the second stroke of the roots or the number of basic strokes which form the roots. The five blocks in each section are allotted the respective numerical codes 1, 2, 3, 4, and 5 according to their frequencies of usage. Thus, there are altogether twenty-five blocks with each having a numerical code of two digits that represents its location as shown in FIG. 3. In the the two-digit code, the first digit is the section code, and the second digit is the block code. A chart of all the roots is shown in FIG. 4. The main roots in the chart of FIG. 4 which are in themselves characters are then arranged onto twenty-five keys (from letter A to Y) so as to form a diagram with twenty five blocks of roots. In each block, a most frequently used root is chosen to represent the name of the key, as shown in FIG. 4 and FIG. 6.
The above selected twenty five blocks of roots are arranged on twenty five keys of a standard keyboard in accordance with their probabilities of usage and a habitual fingering in order to form a keyboard for Chinese, as shown in FIG. 6.
According to the invention, one can encode or key in a character in units of roots in the sequence of writing the character by hand, and each character has at most four codes. For a character which has four roots, all the roots are keyed in in the sequence of writing by hand; and for a character whose roots exceed four, one need only key in the first three roots and the last root of the character. For example:
The character can be broken down into , , , .
The character can be broken down into , , , .
As for a character with less than four roots, a cross-code of the last stroke and the character's pattern, sufficient to identify the characters, should be keyed in after the codes of the roots. This cross-code is a combination of the code of the last stroke and that of the pattern of the character, as shown in FIG. 7. The same numerical code corresponding to the cross-code can be found on the keyboard. For example:
The character can be broken down into , . Its code is (43, 45) plus its cross-code (41), in which the first digit of (41) refers to the code of the last stroke and the digit 1 to that of the pattern of the character.
The character can be broken down into , . Its code is (45,52), plus its cross-code (12).
The character can be broken down into , . Its code is (14,11), plus its cross-code (14).
As for a character used as the name of a key, the code is to operate its key four times in succession. For example:
The character is used as the name of the key F (12), so its code is FFFF (12, 12, 12, 12).
The character is used as the name of the key Y. (41), so its code is YYYY (41, 41, 41, 41).
As for those roots on the keys, which are in themselves Chinese characters but are not used as the names of the keys, the process of encoding is to operate the key, and key in the codes of the first stroke, the second stroke and the last stroke of the character. For example:
The character is on the key of letter Y (41), and so the first stroke is (Y, 41), the second stroke (G, 11), the last (T, 51); and therefore its input code is YYGT (41, 41, 11, 51).
All single pattern characters other than those on the keyboard are broken down into roots available on the keyboard and then fed in. For example:
The character can be broken down into three roots, i.e. , , . Its code is GMCO (11, 25, 34, 44)
The character can be broken down into three roots, i.e. , , . Its code is GQCO (11, 55, 34, 44)
In the present invention, 650 characters have abridged codes, which means one needs feed in only the codes of the first two roots of such a character plus a space key. There are altogether several thousands of characters which can be encoded by keying in the codes of the first three roots of the characters plus an operation of space key. At the same time the method of inputting the whole code of a character can be adopted alternatively.
To solve the problem of low input speed, this invention adopts a method of encoding Chinese phrases that follows. Thousands of Chinese phrases composed of two or more characters are stored to meet the needs of different fields. The two types of codes, namely the codes of characters and the codes of Chinese phrases are compatible in the method. In the case of inputting any phrase, four keys are needed. In the process of inputting characters and phrases alternately, there is no need to shift or add a special operation. As for the encoding of a phrase comprising two characters, one need input only the codes of the first two roots of each character. Take the phrase for example, only the four roots , , , are needed and the code of the phrase is OEOP (44, 53, 44, 45). For a phrase of three characters, the encoding comprises the code of the first root of each of the first two characters and the codes of the first two roots of the third character. Take the phrase for example, only the roots , , , are needed and the code of the phrase is BCKM (32, 34, 23, 25). To encode a phrase of four characters, only the code of the first root of each of the four characters are needed. Take the phrase for example, the four roots , , , are needed and the code of the phrase is IPQD (43, 45, 55, 13). For a phrase of five characters or more, its endoding consists of the codes of the first root of each of the first three characters and the code of the first root of the last characters. Take the phrase for example, only the four roots , , , are needed and its code is KCCL (23, 34, 34, 24).
There are very few identical codes in this method for encoding characters. In case of identical codes, a more frequently used character will first appear at the right position of the line on the screen of a keyboard. If this character is what the operater needs, he can just go on to the following text and the character will remain automatically at the position. If not, he need only touch the space key to exchange that character for another one with the same code.
There are two kinds of alarm signals, a long pip and a short pip. The short one shows that there is no character corresponding to the input code, i.e. an empty code; and at the same time, the cursor stops moving. The long one shows that there is an identical code and the operator can handle it with the method just described.
When keying a character, the operator can use the reserved key Z instead of inputting a root for which he is at a loss for a moment, and then he can choose the right character from a line of characters with respective numerical codes shown on the screen.
One can alternatively input any character or phrases by using the five numerical keys of 1, 2, 3, 4 and 5 on the keyboard, that is, input the numerical codes corresponding to the roots of a character or a phrase.
In this system, the operator does not need to care about the order of inputting the roots of a character if he is uncertain about which root should be fed in first, and the result is the same. For example, the character can be keyed in the sequence of , , , or that of , , , and both ways give the same character.