Wubi method


The Wubizixing input method, often abbreviated to simply Wubi or Wubi Xing, is a Chinese character input method primarily for inputting simplified Chinese and traditional Chinese text on a computer. Wubi should not be confused with the Wubihua method, which is a different input method that shares the categorization into five types of strokes.
The method is also known as Wang Ma, named after the inventor Wang Yongmin. There are four Wubi versions that are considered to be standard: Wubi 86, Wubi 98, Wubi 18030 and Wubi New-century. The latter three can also be used to input traditional Chinese text, albeit in a more limited way. Wubi 86 is the most widely known and used shape-based Input Method for full letter keyboards in Mainland China. If it is frequently needed to input traditional Chinese characters as well, other input methods like CangJie or ZhengMa may be better suited to the task, and it is also much more likely to find them on the computer one needs to use.
The Wubi method is based on the structure of characters rather than their pronunciation, making it possible to input characters even when the user does not know the pronunciation, as well as not being too closely linked to any particular spoken variety of Chinese. It is also extremely efficient: every character can be written with at most 4 keystrokes. In practice, most characters can be written with fewer. There are reports of experienced typists reaching 160 characters per minute with Wubi. What this means in the context of Chinese is not entirely the same as it is for English, but it is true that Wubi is extremely fast when used by an experienced typist. The main reason for this is that, unlike with traditional phonetic input methods, one does not have to spend time selecting the desired character from a list of homophonic possibilities: virtually all characters have a unique representation.
As its name suggests, the keyboard is divided into five regions. The Chinese character , when used in the context of writing Chinese characters, refers to the brush strokes used in Chinese calligraphy. Each region is assigned a certain type of stroke.
A major drawback to learning Wubi is its steeper learning curve, since as a more complex system it takes longer to acquire as a skill. Memorization and practice are key factors for proficient usage.
In this article, the following convention will be used: character will always mean Chinese character, whereas letter, key and keystroke will always refer to the keys on keyboard.

How it works

Essentially, a character is broken down into components, which are usually the same as radicals. These are typed in the order in which they would be written by hand. In order to ensure that extremely complex characters do not require an inordinate number of keystrokes, any character containing more than 4 components is entered by typing the first 3 components written, followed by the last. In this way, each character's data can be entered with no more than 4 keystrokes.
Wubi distributes its characters very evenly and as such the vast majority of characters are uniquely defined by the 4 keystrokes discussed above. One then types a space to move the character from the input buffer onto the screen. In the event that the 4 letter representation of the character is not unique, one would type a digit to select the relevant character. In most implementations, a space can always be typed and simply means 1 in an ambiguous setting. Intelligent software will try to make sure that the character in the default position is the one desired.
Many characters have more than one representation. This sometimes is for ease of use, in case there is more than one obvious way to break down a character. More often though, it is because certain characters have a short representation that is less than 4 letters, as well as a "full" representation.
For characters with fewer than 4 components that do not have a short form representation, one types each component and then "fills up" the representation by manually typing the strokes of the last component, in the order they would be written. If there are too many strokes, one should write as many as possible, but put the last stroke last.
Once the algorithm is understood, one can type almost any character with a little practice, even if one hasn't typed it before. Muscle memory will make sure that frequent typists using this method don't have to think about how the characters are actually constructed, just as the vast majority of English typists don't think very much about the spelling of words when they write.

Implementation specific details

Many implementations employ further, multiple-word optimizations. Usually, a commonly used digraph in which both characters have short form two-keystroke representations can be combined into a single, four keystroke representation which generates two characters rather than one. There are also a few 3-character shortcuts, and even one rather longer, politically motivated one. Some examples of these are provided in the examples section below.
Another common feature is the use of the 'z' key as a wildcard. The Wubi method was actually designed with this feature in mind; this is why no components are assigned to the z key. Basically, one can type a z when unsure what the component should be, and the input method will help complete it. If one knew, for example, that the character ought to start with "kt", but was unsure what the next component should be, typing "ktz" would produce a list of all characters starting with "kt". In practice though, many input method engines use a tabular lookup method for all table based input systems, including for Wubi. This means that they simply have a large table in memory, associating different characters to their respective representations. The input method then simply becomes a table lookup. In such an implementation, the z key breaks the paradigm and as such is not found in much generalized software. For this same reason, the multiple character optimization described in the previous paragraph is also relatively rare.
Some input methods, such as xcin, provide a generic wildcard functionality which can be used in all the table based input systems, including pinyin and virtually anything else. Xcin uses '*' for auto-complete and '?' for just one letter, following the conventions pioneered in UNIX file globbing. Other implementations probably have their own conventions.

Subdivision of the keyboard

The Wubi keyboard assumes a QWERTY-like layout, so users of keyboards implementing a nationalized or alternative layout will probably have to do some remapping to make the system sane. Wubi does not position its components arbitrarily: there are far too many of them, and it is only with the introduction of a logical methodology that the system becomes easy to learn.
Basically, the keyboard is divided into 5 zones, each representing a stroke. Those five strokes are falling left, falling right, horizontal, vertical, and hook, and the zones that represent them are QWERT, YUIOP, ASDFG, HJKLM, and
XCVBN, respectively. These zones are all laid out horizontally, with the exception of M, which is not in line with the rest of the letters in its zone.
In a general way, the keyboard can be thought of as divided down the center, between T and Y, G and H, and N and M. The keys in each zone are numbered moving away from this dividing line: so we should actually say that in zone QWERT, T is the first letter, R is the second, and E the third; in zone YUIOP, Y is the first, U is the second, I the third, etc. For XCVBN, N is the first, and so on. In HJKLM, consider M to be the last in the series, even though it does not lie on the line.
This is important because components in the first position will have one repetition of the stroke in question, those in the second, two, those in the third, three. Those components which are not easily classifiable using this paradigm will be placed on the last letter.
Therefore, one would expect 一 to be located on G, and 二 on F, and 三 on D, and indeed, this is the case. Similarly, one would expect 丨 to be located on H, 刂 to be on J, and 川 to be on K. This pattern holds for all the zones. Furthermore, it extends to most radicals that look as though they are made up of three such strokes, even if in fact they might not be at all. An example of this is 中 on K: while it does not have three downward strokes, it appears to have three. Furthermore, it is written by hand by first writing a mouth radical, 口, and then bisecting it with a vertical downward stroke. The mouth radical lies on 'K', so this makes the assignment doubly logical. And the pinyin romanization of 口, kou3, begins with k, another memory aid encoded into the Wubi keyboard.
Furthermore, each letter of each zone has one component associated with it, its "main component". These are usually a complete character in their own right. One can always type this main component by typing the letter it is situated on four times. So, for example, the main component of H is 目, and so one would type it by typing "hhhh".
Each letter also has a shortcut character associated with it. In some cases, this character is the same as the component associated with the key in question, and sometimes not. This shortcut character is the character produced when one types just the letter and nothing else; these are all extremely common characters used when typing Chinese.
It is entirely possible that there are a number of components not listed below, either because of oversight, because they are rarely used, or because no simple Unicode representation for the component exists.

QWERT zone (falling left)

The Q key's main component is 金 and its shortcut character is 我. It is associated with the following components: 金, 钅, 勹, 儿, 夕, as well as the hook at the top of 饣 and 角, the radical 犭 without the lower left-falling stroke, the criss-cross, the top of 鱼, and the three "feet" in the bottom right corner of 流.
The W key's main component and shortcut character are both 人. It is associated with the following components: 人, 亻, 八, and the top of 癸. While 人 means man, it is often used by Wubi to construct a roof radical, such as in 会, "wfc". 入 is not governed by W, despite looking similar, and while 餐 has a top that looks vaguely like the top of 癸, the two are not the same.
The E key's main component is 月, and its shortcut character is 有. It is associated with the following components: 月, 用, 彡, 乃, the bottom of 衣, the top of 孚, the bottom of 良, and the bottom of 舟. In this case, E's shortcut character does not even begin with a left-falling stroke, but merely prominently figures a component belonging to E. 彡 is featured on this character, as it is the third character in the zone. A particular distortion that comes up often is the use of E in 且 and in characters containing it: Wubi thinks of this component as 月 + 一.
The R key's main component is 白, and its shortcut character is 的. It is associated with the following components: 白, 手, 扌, 斤, 牛, and of course the two left-falling strokes that one would expect from the second key in the zone. Watch out for varieties of 手 where the central downward hook is replaced by a left-falling stroke, such as in
看.
The T key's main component is 禾, and its shortcut character is 和. It is associated with the following components: 禾, 竹, 夂, 攵, 彳, and the top of 乞. 竹 may also be found in its smaller form. 丿 is also found on this key, because T is the first key in the zone. This means that if one is typing a component or character stroke by stroke, they would use T to represent a left-falling stroke. See the section on disambiguation strokes for more information on exceptions to this rule.

YUIOP zone (falling right)

This zone might also be called the dot zone, because its pattern of Y: 讠 U: 冫 I: 氵 and O: 灬 is not actually necessarily built up of right falling strokes. In fact, one could argue that the first stroke in 灬 actually falls left. It is called the falling right zone because the keys in this zone, when used to construct a character by stroke, all represent right falling strokes for some character configuration.
The Y key's main component is 言, and its shortcut character is 主. It is associated with the following components: 言, 讠, 亠, 亠 with a 口 beneath it, 广, 文, 方, and 丶. These components all start with a right-falling stroke. Generally, dots in Chinese characters are actually left falling strokes, and so most of the time, the use of T is more appropriate than Y. Of course, if one can write Chinese characters by hand, they should be able to tell which to choose by recalling how it is written.
The U key's main component is 立, and its shortcut character is 产. It is associated with the following components: 立, 六, 辛, 门, 疒, 丬, 冫, the "antennae" on the top of 单, and the antennae plus a horizontal stroke, as found on the top of 兹. Most of these all feature two short diagonal strokes. This is consistent with R's place as the second letter in the zone.
The I key's main component is 水, and its shortcut character is 不. It is associated with the following components: 水, 氵, 小, the three strokes on the top of 学, and the three strokes on the top of 当. Additionally, a component which might be described as two 冫, back to back, is associated with this character.
The O key's main component is 火, and its shortcut character is 为. It is associated with the following components: 火, 米, 灬, and 业 without the bottom horizontal stroke — this allows construction of characters such as 严. This is the 4th key in the falling right zone: hence the inclusion of 灬.
The P key's main component is 之, and its shortcut character is 这. It is associated with the following components: 之, 辶, 廴, 冖, 宀, and 礻. As Wubi components are typed in the order that they would need to be written were one writing by hand, the 辶 and 廴 components are typically typed last.

ASDFG zone (horizontal)

Strokes of keyboard is divided into 5 zones
ZonesLetter
1GFDSA
2HJKLM
3TREWQ
4YUIOP
5NBVCX

ZonesStrokeShape
1Left-Right
2Top-Bottom
3丿Falling left
4Falling right
5Hook

NumberLetterFirst strokeSecond strokeExamples
11G
12F
13D丿
14S
15A
21H
22J
23K丿
24L
25M
31T丿
32R丿
33E丿丿
34W丿
35Q丿
41Y
42U
43I丿
44O
45P
51N
52B
53V丿
54C
55X

Examples

Characters with 4 components or fewer (but no need for strokes)

Example 1: 请
Consists of three components: y, g, e -> 请

Characters with more than 4 components

Example 2: 遗
Consists of five components: k, h, g, m, p -> khgp ->遗

Characters with fewer than 4 components (needing strokes)

Example 3a: 文: First you type the key with the symbol on it, which happens to be 'Y'. Then you type the first component, which is also 'Y' for the 点 stroke, then a 'G' for the 横 stroke,and since you now already have three strokes, you type the last stroke, which also happens to be a 捺, arriving at the keycode 'YYGY' for the complete character.
Example 3b: 一:The code for this character is 'GGLL'. As before, you type the key for the character first, which is 'G', then the first stroke of that character, which is also a 'G'. Because this is all necessary information, the L is used as a filler until you reach 4 letters. Note that the '一' is also the shortcut character for 'G'.
Example 3c: 广: The code for this character is 'YYGT'. At first, you type the key where this character is located, which is a 'Y'. Then, you type a 点 stroke, which is also on 'Y'. The next will be the 横 stroke on 'G', and the last will be the 捺, on 'T'.

Characters requiring disambiguation strokes

Example 4: 等
Consists of three components: t, f, f,
Disambiguation strokes: The last stroke is 丶 and the character is with top-bottom structure -> 等

Poem

A poem was made as a mnemonic for the Wubi keyboard, associating few characters with each key. The first character is the corresponding key main component, while the next ones are components or associated characters.

1986 version

G11王旁青头戋五一
F12土士二干十寸雨
D13大犬三羊古石厂
S14木丁西
A15工戈草头右框七
H21目具上止卜虎皮
J22日早两竖与虫依
K23口与川,字根稀
L24田甲方框四车力
M25山由贝,下框几
T31禾竹一撇双人立,反文条头共三一
R32白手看头三二斤
E33月彡(衫)乃用家衣底
W34人和八,登祭头
Q35金勺缺点无尾鱼,犬旁留义儿一点夕,氏无七
Y41言文方广在四一,高头一捺谁人去
U42立辛两点六门疒(病)
I43水旁兴头小倒立
O44火业头,四点米
P45之宝盖,摘示衣
N51已半巳满不出己,左框折尸心和羽
B52子耳了也框向上
V53女刀九臼山朝西
C54又巴马,丢矢矣
X55慈母无心弓和匕,幼无力

1998 version

G11 王旁青头五夫一
F12 土干十寸未甘雨,不要忘了革字底
D13 大犬戊其古石厂
S14 木丁西甫一四里
A15 工戈草头右框七
H21 目上卜止虎具头
J22 日早两竖与虫依
K23 口流川,码元稀
L24 田甲方框四车里
M25 山由贝骨下框集 
T31 禾竹反文双人立
R32 白斤气丘叉手提
E33 月用力豸毛衣臼
W34 人八登头单人几
Q35 金夕鸟儿犭边鱼
Y41 言文方点谁人去
U42 立辛六羊病门里
I43 水族三点鳖头小
O44 火业广鹿四点米
P45 之字宝盖补示衣
N51 已类左框心尸羽
B52 子耳了也乃框皮
V53 女刀九良山西倒
C54 又巴牛入马失蹄
X55 幺母贯头弓和匕

New-century(3rd-generation) version

G11 王旁青头五一提 
F12 土士二干十寸雨
D13 大三肆头古石厂 
S14 木丁西边要无女 
A15 工戈草头右框七
H21 目止具头卜虎皮 
J22 日曰两竖与虫依 
K23 口中两川三个竖
L24 田框四车甲单底 
M25 山由贝骨下框里
T31 禾竹牛旁卧人立 
R32 白斤气头叉手提 
E33 月舟衣力豕豸臼 
W34 人八登祭风头几 
Q35 金夕犭儿包头鱼
Y41 言文方点在四一 
U42 立带两点病门里 
I43 水边一族三点小 
O44 火变三态广二米 
P45 之字宝盖补示衣
N51 已类左框心尸羽 
B52 子耳了也乃齿底 
V53 女刀九巡录无水 
C54 又巴甬矣马失蹄 
X55 幺母绞丝弓三匕