(Translated by https://www.hiragana.jp/)
Cangjie input method - Wikipedia Jump to content

Cangjie input method

From Wikipedia, the free encyclopedia
(Redirected from Cangjie method)
Cangjie input method
Coding of "くら輸入ゆにゅうほう" (i.e. Cangjie method) in traditional Chinese characters
Traditional Chineseくら輸入ゆにゅうほう
Simplified Chinese仓颉输入ほう
Transcriptions
Standard Mandarin
Hanyu PinyinCāngjié Shūrùfǎ
Gwoyeu RomatzyhTsang Jye Shuruhfaa
Wade–GilesTs'ang1-chieh2 Shu1-ju4-fa3
IPA[tsʰáŋtɕjě ʂúɻûfà]
Yue: Cantonese
Yale RomanizationChōngkit Syūyahpfaat
JyutpingCong1kit3 Syu1jap6faat3
Southern Min
Hokkien POJChhong-kiat Su-ji̍p-hoat
Eastern Min
Fuzhou BUCChŏng-kĭk Sṳ̆-ĭk-huák

The Cangjie input method (Tsang-chieh input method, sometimes called Changjie, Cang Jie, Changjei[1] or Chongkit) is a system for entering Chinese characters into a computer using a standard computer keyboard. In filenames and elsewhere, the name Cangjie is sometimes abbreviated as cj.

The input method was invented in 1976 by Chu Bong-Foo, and named after Cangjie (Tsang-chieh), the mythological inventor of the Chinese writing system, at the suggestion of Chiang Wei-kuo, the former Defense Minister of Taiwan. Chu Bong-Foo released the patent for Cangjie in 1982, as he thought that the method should belong to Chinese cultural heritage.[2] Therefore, Cangjie has become open-source software and is on every computer system that supports traditional Chinese characters, and it has been extended so that Cangjie is compatible with the simplified Chinese character set.

A Chinese keyboard in Shek Tong Tsui Municipal Services Building, Hong Kong with Cangjie hints printed on the lower-left corners of the keys. (Printed on the lower-right and upper-right corners are Dayi hints and Zhuyin symbols respectively.)

Cangjie is the first Chinese input method to use the QWERTY keyboard. Chu saw that the QWERTY keyboard had become an international standard, and therefore believed that Chinese-language input had to be based on it.[3] Other, earlier methods use large keyboards with 40 to 2400 keys, except the Four-Corner Method, which uses only number keys.

Unlike the Pinyin input method, Cangjie is based on the graphological aspect of the characters: each graphical unit, called a "radical" (not to be confused with Kangxi radicals), is re-parented by a basic character component, 24 in total, each mapped to a particular letter key on a standard QWERTY keyboard. An additional "difficult character" function is mapped to the X key. Keys are categorized into four groups, to facilitate learning and memorization. Assigning codes to Chinese characters is done by separating the constituent "radicals" of the characters.

Overview

[edit]

Keys and "radicals"

[edit]

The basic character components in Cangjie are called "radicals" () or "letters" (字母じぼ). There are 24 radicals but 26 keys; the 24 radicals (the basic shapes 基本きほん字形じけい) are associated with roughly 76 auxiliary shapes (輔助字形じけい), which in many cases are either rotated or transposed versions of components of the basic shapes. For instance, the letter A () can represent either itself, the slightly wider , or a 90° rotation of itself. (For a more complete account of the 76-odd transpositions and rotations than the ones listed below, see the article on Cangjie entry in Chinese Wikibooks.)

The 24 keys are placed in four groups:

  • Philosophical Group — corresponds to the letters 'A' to 'G' and represents the sun, the moon, and the five elements
  • Strokes Group — corresponds to the letters 'H' to 'N' and represents the brief and subtle strokes
  • Body-Related Group — corresponds to the letters 'O' to 'R' and represents various parts of the human anatomy
  • Shapes Group — corresponds to the letters 'S' to 'Y' and represents complex and enclosed character forms
Group Key Name Primary meaning
Philosophical group A sun , , 90° rotated (as in ともえ)
B つき moon the top four strokes of ; ; ; ; the top and top-left part of あぶ, しか, and まつり; the top-left four strokes of ひょう and ; and the top four strokes of ほね
C きむ gold itself, , はち, and the penultimate two strokes of よん and ひき
D wood itself, the first two strokes of すん and ざい, the first two strokes of and かわ
E みず water , , また
F fire the shape しょう, and
G earth itself, or for soldier
Stroke group H たけ bamboo

(はす apostrophe)

The slant and short slant, the Kangxi radical たけ, namely the upper parts in and ふし
I ほこ dagger axe (てん dot) The dot, the first three strokes in ゆか and くら, and the shape
J じゅう ten ( cruciform) The cross shape and the shape
K だい big (また cross) The X shape, including , 𠂇 , as well as
L なか centre ( vertical) The vertical stroke, as well as and
M いち one (よこ horizontal) The horizontal stroke, as well as the final stroke of and , the shape , and the shape こう
N ゆみ bow (かぎ hook) The crossbow and the hook
Body parts group O ひと person The dismemberment; the Kangxi radical ひと; the first two strokes of おか and ; the first two strokes of , おさむ, and ; as in the second stroke of はち; and the final two strokes of ちょう
P しん heart The Kangxi radical ; the second stroke in しん; ; the shape ; the shape なな; the penultimate two strokes in だい; and the shape
Q hand The Kangxi radical
R くち mouth The Kangxi radical くち
Character shapes group S しかばね corpse , the first two strokes of おのれ, 𠃌, the third stroke of なり and いのこ, the first four strokes of なが and
T 廿にじゅう twenty Two vertical strokes connected by a horizontal stroke; the Kangxi radical そうこう when written as (whether the horizontal stroke is connected or broken)
U やま mountain Three-sided enclosure with an opening on the top
V おんな woman A hook to the right; a V shape; the last three strokes in うしとら, ころも, and なが
W field Itself, as well as any four-sided enclosure with something inside it, including the first two strokes in はは and
Y ぼく fortune telling The ぼく shape and rotated forms, the shape and
Collision/Difficult key* X おも/なん collision/difficult (1) disambiguation of Cangjie code decomposition collisions, (2) code for a "difficult-to-decompose" part
Special character key* Z (See note) Auxiliary code used for entering special characters (no meaning on its own). In most cases, this key combined with other keys will produce Chinese punctuations (such as 。,、,「 」,『 』).

Note: Some variants use Z as a collision key instead of X. In those systems, Z has the name "collision" (おも) and X has the name "difficult" (なん); but the use of Z as a collision key is neither in the original Cangjie nor used in the current mainstream implementations. In other variants, Z may have the name "user-defined" (みやつこ) or some other name.

Wildcard Shift + 8 (*) Wildcard It can replace any key from 2nd to 5th place, and return a list that matches the combination. It is very useful for unknown guesses when you are sure about the first and last input. (e.g. Input たけ*たけ will include the following in the list: , もの, びょう, だい )

The auxiliary shapes of each Cangjie radical have changed slightly across different versions of the Cangjie method. Thus, this is one reason that different versions of the Cangjie method are not completely compatible.

Chu Bong-Foo has provided alternate names for some letters according to their characteristics. For example, H (たけ) is also called はす, which means slant. The names form a rhyme to help learners memorize the letters, each group being in a line (the sounds of final characters are given in parentheses):

つき きむ みず ;
はす てん また たて よこ かぎ; gōu
ひと しん くち; kǒu
がわ なみ おおせ ひも ほう ぼく;

Keyboard layout

[edit]
A typical keyboard layout for Cangjie method, based on United States keyboard layout. Note the non-standard use of Z as the collision key.

Basic rules

[edit]

The typist must be familiar with several decomposition rules (拆字規則きそく) that define how to analyze a character to arrive at a Cangjie code.

  • Direction of decomposition: left to right, top to bottom, and outside to inside
  • Geometrically connected forms: take four Cangjie codes, namely the first, second, third, and last codes
  • Geometrically unconnected forms that can be broken into two subforms (e.g., ): identify the two geometrically connected subforms according to the direction of decomposition rules (i.e., ひと and ), then take the first and last codes of the first subform and the first, second, and last code of the second subform.
  • Geometrically unconnected forms that can be broken into multiple subforms (e.g., しゃ): identify the first geometrically connected subform according to the direction of decomposition rules (i.e., げん) and take the first and last codes of that form. Next, break the remainder (i.e., ) into subforms (i.e., and すん) and take the first and last codes of the first subform and the last code of the last subform.

The rules are subject to various principles:

  • Conciseness (せい) – if multiple ways of decomposition are possible, the shorter decomposition is considered to be correct.
  • Completeness (かんせい) – if multiple ways of decomposition with the same length of code are possible, the one that identifies a more complex form first is the correct decomposition.
  • Reflection of the form of the radical (がた特徵とくちょう) – the decomposition should reflect the shape of the radical, meaning (a) using the same code twice or more should be avoided if possible, and (b) the shape of the character should not be "cut" at a corner in the form.
  • Omission of codes (省略しょうりゃく)
    • Partial omission (部分ぶぶん省略しょうりゃく) – when the number of codes in a complete decomposition exceeds the permitted number of codes, the extra codes are ignored.
    • Omission in enclosed forms (包含ほうがん省略しょうりゃく) – when part of the character to be decomposed and the form is an enclosed form, only the shape of the enclosure is decomposed; the enclosed forms are omitted.

Examples

[edit]
Typing Chinese with Cangjie input method version 5
Typing Chinese with Cangjie input method on an Android device
  • くるま; chē; 'vehicle'
    • This character is geometrically connected, consisting of a single vertical structure, so we take the first, second, and last Cangjie codes from top to bottom.
    • The Cangjie code is thus じゅう じゅう (JWJ), corresponding to the basic shapes of the codes in this example.
  • しゃ; xiè; 'to thank', ' to wither'
    • This character consists of geometrically unconnected parts arranged horizontally. For the initial decomposition, we treat it as two parts, げん and .
    • The first part, げん, is geometrically unconnected from top to bottom; we take the first (, auxiliary shape of ぼく Y) and last parts (くち, basic shape of くち R) and arrive at ぼく くち (YR).
    • The second part is again geometrically unconnected, arranged horizontally. The two parts are and すん.
      • For the first part of this second part, , we take the first and last codes. Both are slants and therefore H; the first and last codes are thus たけ たけ (HH).
      • For the second part of the original second part, すん, we take only the last part. Because this is geometrically unconnected and consists of two parts, the first part is the outer form while the second part is the dot in the middle. The dot is I, and therefore the last code is ほこ (I).
    • The Cangjie code is thus ぼく くち (YR) たけ たけ (HH) ほこ (I), or ぼく くち たけ たけ ほこ (YRHHI).
  • (simplified version of しゃ)
    • This example is identical to the example just above, except that the first part is ; the first and last codes are ほこ (I) and おんな (V).
    • Repeating the same steps as in the above example, we get ほこ おんな (IV) たけ たけ (HH) ほこ (I), or ほこ おんな たけ たけ ほこ (IVHHI).

Exceptions

[edit]

Some forms are always decomposed in the same way, whether the rules say they should be decomposed this way or not. The number of such exceptions is small:

Form Fixed decomposition
Version 2 Version 3 Version 5
もん (door) ゆみ (AN)
(eye) つき やま (BU)
おに (ghost) たけ ほこ (HI) たけ ほこ (HI) or HUI
(small table) たけ やま (HU) たけ ゆみ (HN)
(win) ぼく くち つき つき ゆみ (YRBBN) ぼく ゆみ つき やま きむ (YNBUC)
(tiger [radical]) ぼく しん (YP)
ほろび on top of くち () ぼく くち (YR) ぼく おんな くち (YVR)
ふるとり (fowl) ひと (OG)
(air [radical]) ひと やま (OU) ひと ゆみ (ON) ひと いち ゆみ (OMN)
minus the おんな ほこ (VI)
(compete) なか ゆみ (LN)
(mound or city radical) ゆみ なか (NL)

Some forms cannot be decomposed. They are represented by an X, which is the なん key on a Cangjie keyboard.[4]

Form Fixed decomposition (v5)
うす HX
あずか HXYC
きょう HXBC
たらい HXBT
VLXH
ひとし YX
けん TXC
鹿しか IXP
HXH
まんじ NX
RXU
かめ NXU
IXF
けい IXE
ふち ELXL
LX

Early development

[edit]

Initially, the Cangjie input method was not intended to produce a character in any character set. Instead, it was part of an integrated system consisting of the Cangjie input rules and a Cangjie controller board. This controller board contains character generator firmware, which dynamically generates Chinese characters from Cangjie codes when characters are output, using the hi-res graphics mode of the Apple II. In the preface of the Cangjie user's manual, Chu Bong-Foo wrote in 1982:

[in translation]
In terms of output: The output and input, in fact, [form] an integrated whole; there is no reason that [they should be] dogmatically separated into two different facilities.… This is in fact necessary.…

In this early system, when the user types "yk", for example, to get the Chinese character ぶん, the Cangjie codes do not get converted to any character encoding and the actual string "yk" is stored. The Cangjie code for each character (a string of 1 to 5 lowercase letters plus a space) was the encoding of that particular character.

Demonstration of character generator Mingzhu's capability to generate characters according to the codes. The first character is 𮨻 (⿰飠它), which denotes a kind of soup in Xuzhou cuisine.

A particular "feature" of this early system is that, if one sends random lowercase words to it, the character generator will attempt to construct Chinese characters according to the Cangjie decomposition rules, sometimes causing strange, unknown characters to appear. This unintended feature, "automatic generation of characters", is described in the manual and is responsible for producing more than 10,000 of the 15,000 characters that the system can handle. The name Cangjie, evocative of the creation of new characters, was indeed apt for this early version of Cangjie.

The presence of the integrated character generator also explains the historical necessity for the existence of the "X" key, which is used for the disambiguation of decomposition collisions: because characters are "chosen" when the codes are "output", every character that can be displayed must in fact have a unique Cangjie decomposition. It would not make sense—nor would it be practical—for the system to provide a choice of candidate characters when a random text file is displayed, as the user would not know which of the candidates is correct.

Issues

[edit]

Cangjie was designed to be an easy-to-use system to help promote the use of Chinese computing. However, many users find Cangjie is difficult to learn and use, with many difficulties caused by poor instruction.[citation needed]

Perceived difficulties

[edit]
  • In order to input using Cangjie, knowledge of both the names of the radicals as well as their auxiliary shapes is required. It is common to find tables of the Cangjie radicals with their auxiliary shapes taped onto the monitors of computer users.
  • One must also be familiar with the decomposition rules, lack of knowledge of which results in increased difficulty in typing the intended characters.
  • The user cannot type a character that they have forgotten how to write (a problem with all non-phonetic based input methods).

With enough practice, users can overcome the above problems. Typical touch-typists can type Chinese at 25 characters per minute (cpm), or better, using Cangjie, despite having difficulty remembering the list of auxiliary shapes or the decomposition rules. Experienced Cangjie typists can reportedly attain a typing speed from 60 cpm to over 200 cpm.[citation needed]

According to Chen Minzheng, his teaching experience at Longtian Elementary School in Taitung in 1990, the average typing speed of children was 90 words per minute, and some children even reached more than 130 words per minute.[5][better source needed]

Limitations in implementation

[edit]

The decomposition of a character depends on a predefined set of "standard shapes" (標準ひょうじゅん字形じけい). However, as many variations of Cangjie exist in different countries, the standard shape of a certain character in Cangjie is not always the one the user has learnt before. Learning Cangjie then entails learning not only Cangjie itself but also unfamiliar standard shapes for some characters. The Cangjie input method editor (IME) does not handle mistakes in decomposition except by informing the user (usually by beeping) that there is a mistake. However, Cangjie is originally designed to assign different codes to different variants of a character. For example, in the Cangjie provided on Windows, the code for さん is YHHQM, which corresponds not to the shape of this character but to another variant, さん. This is a problem resulting from the implementation of Cangjie on Windows. In the original Cangjie, さん should be YKMHM (the first part is ぶん) while さん is YHHQM (the first part is ).

Punctuation marks are not geometrically decomposed, but rather given predefined codes that begin with ZX followed by a string of three letters related to the ordering of the characters in the Big5 code. (This set of codes was added to Cangjie on the traditional Chinese version of Windows 95. On Windows 3.1, Cangjie did not have a set of codes for punctuation marks.) Typing punctuation marks in Cangjie thus becomes a frustrating exercise involving either memorization or pick-and-peck. However, this is solved on modern systems through accessing a virtual keyboard on screen (On Windows, this is activated by pressing Ctrl + Alt + comma key).

Commonly-made errors include not considered as alternative codes. For example, if one does not decompose ほう from top to bottom into YHS, but instead type YSH according to stroke order, Cangjie does not return the character ほう as a choice.

Since Cangjie requires all 26 keys of the QWERTY keyboard, it cannot be used to input Chinese characters on feature phones, which have only a 12-key keypad. Alternative input methods, such as Zhuyin, 5-stroke (or 9-stroke by Motorola), and the Q9 input method, are used instead.

Versions

[edit]

The Cangjie input method is commonly said to have gone through five generations (commonly referred to as "versions" in English), each of which is slightly incompatible with the others. Currently, version 3 (だいさんだいくら) is the most common and supported natively by Microsoft Windows. Version 5 (だいだいくら), supported by the Free Cangjie IME and previously the only Cangjie supported by SCIM, represents a significant minority method and is supported by iOS.

The early Cangjie system supported by the Zero One card on the Apple II was Version 2; Version 1 was never released.

The Cangjie input method supported on the classic Mac OS resembles both Version 3 and Version 5.

Version 5, like the original Cangjie input method, was created directly by Chu. He had hoped that the release of Version 5, originally slated to be Version 6, would bring an end to the "more than ten versions of Cangjie input method" (slightly incompatible versions created by different vendors).

Version 6 has not yet been released to the public, but is being used to create a database which can accurately store every historical Chinese text.

Variants

[edit]

Most modern implementations of Cangjie input method editors (IME) provide various convenient features:

  • Some IMEs list all characters beginning with the code you have typed. For example, if you type A, the system gives you all characters whose Cangjie code begins with A, so that you can select the correct character if it is on the screen; if you type another A, the list is shortened to give all characters whose code begins with AA. Examples of such implementations include the IME in Mac OS X, and the Smart Common Input Method (SCIM).
  • Some IMEs provide one or more wildcard keys, usually but not always * and/or ?, that allow the user to omit part(s) of the Cangjie code; the system will display a list of matching characters for the user to choose. Examples include the X window Chinese INput XIM server (xcin), the Smart Common Input Method (SCIM), and the IME of the Founder Group (University of Peking) typesetting systems. Microsoft Windows's standard "Changjie" IME allows * to substitute for in-between characters (effectively reducing it to Simplified Cangjie entries), while the "New Changjie" IME allows * as a wildcard anywhere except for the first character.
  • Some IMEs provide an "abbreviation" feature, where impossible Cangjie codes are interpreted as abbreviations for the Cangjie codes of more than one character. This allows more characters to be input with fewer keys. An example is the Smart Common Input Method (SCIM).
  • Some IMEs provide an "association" (聯想れんそう lianxiang) feature, where the system anticipates what you are going to type next, and provides you with a list of characters or even phrases associated with what the user has typed. An example is the Microsoft "Changjie" IME.
  • Some IMEs present the list of candidate characters differently, depending on the frequency of character use (how often that character has been typed by the user). An example is the Cangjie IME in the NJStar Chinese word processor.

Besides the wildcard key, many of these features are convenient for casual users but unsuitable for touch-typists because they make the Cangjie IME unpredictable.

There have also been various attempts to "simplify" Cangjie one way or another:

  • Simplified Cangjie, also known as quick, 簡易かんい; jiǎnyì or 速成そくせい; sùchéng, has the same radicals, auxiliary shapes, decomposition rules, and short list of exceptions as Cangjie, but only the first and last codes are used if more than two codes are required in Cangjie.

Applications

[edit]

Many researchers have discussed ways to decompose Chinese characters into their major components, and tried to build applications based on the decomposition system. The idea can be referred to as the study of the Genes of Chinese Characters [zh]. Cangjie codes offer a basis for such an endeavour. Academia Sinica in Taiwan[6] and Jiaotong University in Shanghai[7] have similar projects as well.

One direct application of the use of decomposed characters is the possibility of computing the similarities between different Chinese characters.[8] The Cangjie input method offers a good starting point for this kind of application. By relaxing the limit of five codes for each Chinese character and adopting more detailed Cangjie codes, visually similar characters can be found by computation. Integrating this with pronunciation information enables computer-assisted learning of Chinese characters.[9]

See also

[edit]

Notes

[edit]
  • Taipei: Chwa! Taiwan Inc. (ぜんはな科技かぎ圖書としょ公司こうし). くら頡中ぶん訊碼 : くら頡字はは部首ぶしゅちゅうおとさんよう檢字けんじ對照たいしょう [The Cangjie Chinese information code : with indexes keyed by Cangjie radicals, Kangxi radicals, and zhuyin]. Publication number 023479. — This is the user manual of an early Cangjie system with a Cangjie controller card.
    • The second-to-last paragraph on the first page in the section entitled "The Cangjie radical-based Chinese input method" (くら頡字ははちゅうぶん輸入ゆにゅうほう) states that

      [Translation]
      This is no problem; there are also auxiliary forms to complement the deficiencies of the radicals. The auxiliary forms are variations of the shape of the radicals, [and therefore] easy to remember.

    • The last paragraph on the fifth page in the same section states

      [Translation]
      The dictionary appended [to this book] is based on the 4800 standard, commonly used characters as proclaimed by the Ministry of Education. Adding to this the characters that are automatically generated, the number of characters is about 15,000 (using the Kangxi dictionary as a basis).

  • Part of the information from this article comes from the equivalent Chinese-language Wikipedia article
  • The decomposition rules come from the "Friend of Cangjie — Malaysia" web site at http://www.chinesecj.com/ The site also gives the typing speed of experienced typists and provides software for version 5 of the Cangjie method for Microsoft Windows.
  • It might be difficult to find specific references to the "not error-forgiving" property of Cangjie. The table at https://web.archive.org/web/20050206223713/http://www.array.com.tw/keytool/compete.htm is one external reference that states this fact.
  • Input.foruto.com has a brief history of the Cangjie input method as seen by that article's author. Versions 1 and 2 are clearly identified in the article.
  • Cbflabs.com contains a number of articles written by Chu Bong-Foo, with references not only to the Cangjie input method, but also Chinese language computing in general. Versions 5 and 6 (now referred to as 5) of the Cangjie input method are clearly identified.

References

[edit]
  1. ^ A spelling used as filename on ETen Chinese System.
  2. ^ Chu, Chyi-Hwa (しゅ麒華) (1 February 2012). "教育きょういく科技かぎてきせんあずか普及ふきゅう". National Academy for Educational Research e-Newsletter (in Chinese). Archived from the original on 25 August 2022. Retrieved 14 December 2022.
  3. ^ Chu Bong-foo (しゅくにふく). "智慧ちえたび". 開放かいほう文學ぶんがく (in Traditional Chinese). Archived from the original on 19 October 2017. Retrieved 8 June 2017.
  4. ^ "くら頡取碼規則きそく及方ほう" [Cangjie code retrieval rules and methods]. Friends of Cangjie (in Chinese). 1997–2002. Archived from the original on 1 January 2019. Retrieved 2 October 2020.
  5. ^ https://www.chinesecj.com/forum/forum.php?mod=attachment&aid=MTIwNnw1MjMxNmQwMXwxNjg2OTYyNTE4fDB8MTUwMjQ%3D page 58
  6. ^ "漢字かんじ構形資料しりょう" [Chinese Character Configuration Database]. Chinese Document Processing Lab (in Chinese). 2013. Archived from the original on 27 July 2020. Retrieved 2 October 2020.
  7. ^ 上海しゃんはい交通こうつう大學だいがく漢字かんじへん碼組,上海しゃんはい漢語かんご拼音文字もじ研究けんきゅうぐみ編著へんちょ漢字かんじしんいき字典じてん北京ぺきん科學かがく出版しゅっぱんしゃ,1988。
  8. ^ そうやわらはやしみんかずら漢字かんじ字形じけい計算けいさん及其在校ざいこうたい系統けいとうちゅうてき應用おうよう小型こがたほろかた計算けいさん系統けいとうだい29かんだい10だい1964いたり1968ぺーじ,2008。
  9. ^ Liu, Chao-Lin; Lai, Min-Hua; Tien, Kan-Wen; Chuang, Yi-Hsuan; Wu, Shih-Hung; Lee, Chia-Ying (2011). "Visually and phonologically similar characters in incorrect Chinese words: Analyses, identification, and applications". ACM Transactions on Asian Language Information Processing. 10 (2): 1–39. doi:10.1145/1967293.1967297. S2CID 7288710.
[edit]