Welcome to Chinese Character Processing!
Have you ever wondered how a computer, which only understands numbers, can display the thousands of beautiful and complex characters used in Chinese? Unlike the English alphabet, which has only 26 letters, the Chinese language has tens of thousands of characters! In this chapter, we will explore how computers bridge this gap using input methods, internal codes, and customization.
1. Chinese Input Methods (中文輸入法)
Since a standard keyboard doesn't have thousands of keys, we need a special way to tell the computer which character we want to type. This is called an Input Method.
Types of Input Methods
There are three main ways we "talk" to the computer in Chinese:
A. Shape-based Methods (辨形)
These methods break a character down into its visual parts or "roots."
Example: Cangjie (倉頡) and Quick (速成). To type the word "明", you think of the shapes "日" and "月".
Pros: Very fast once you practice; no need to know the pronunciation.
Cons: Harder to learn because you must memorize the "roots" and rules.
B. Sound-based Methods (辨音)
These methods use the pronunciation of the character (Phonetic).
Example: Pinyin (拼音) or Jyutping (粵拼).
Pros: Very easy to learn if you know how to speak the language.
Cons: Many characters share the same sound (homophones), so you often have to pick the right one from a list, which can slow you down.
C. Digital/Alternative Methods
These use modern technology like Handwriting Recognition or Voice Recognition (often powered by AI!).
Pros: Great for mobile phones or people who don't know keyboard coding.
Cons: Can sometimes misread your handwriting or mishear your voice.
Key Takeaway: Different input methods suit different needs. Professionals might use Cangjie for speed, while students might prefer Pinyin for ease of use!
2. Internal Codes for Chinese (中文內碼)
Once you "input" a character, the computer cannot store the "shape." It must convert it into Binary Code (sequences of \(0\)s and \(1\)s). An Internal Code is like a secret ID number assigned to every character.
Common Coding Standards
In the past, different regions used different "ID books" (coding standards):
1. Big5: Mainly used for Traditional Chinese characters (common in Hong Kong and Taiwan).
2. GB (Guobiao): Mainly used for Simplified Chinese characters.
3. Unicode: The "Universal Language." It is a modern standard that includes characters from almost every language in the world (Chinese, English, Emoji, etc.) in one giant list!
Did you know? If you open a file and see strange symbols like "§ï¿½", it usually means the computer is using the wrong "ID book" (Internal Code) to read the file!
Quick Review: The computer uses an Internal Code to represent a character internally as Binary Code so it can be processed and stored.
3. The Need for Customised Chinese Characters (中文字造字)
Even though Unicode has thousands of characters, sometimes we still find "missing" characters. This is why we need Customised Chinese Characters.
Why do we need to "create" characters?
A. Rare Names: Some people have names with very old or rare characters that aren't in the standard computer list.
B. Specific Dialects: Certain Cantonese words used in Hong Kong might not be found in standard coding systems.
C. New Words: Occasionally, new scientific terms or slang require new symbols.
When a character is missing, we use "Character Editor" software to draw the shape and assign it a private code. However, there is a catch: if you send a "custom" character to a friend, they might not be able to see it unless their computer also has that same custom character installed!
4. How it All Fits Together: The Data Flow
Let's look at the step-by-step process of how a character is processed:
Step 1 (Input): You use an Input Method (like Quick) to select a character.
Step 2 (Processing): The computer converts your selection into its Internal Code.
Step 3 (Storage): The internal code is stored in the memory as Binary Code \( (0, 1) \).
Step 4 (Output): The computer looks up the "font" for that code and displays the character on your screen.
Memory Aid: Think of the Input Method as the Translator, the Internal Code as the Identity Card, and the Binary Code as the Computer's heartbeat.
Summary Checklist
• Input Methods: Cangjie/Quick (Shape), Pinyin (Sound), Handwriting (Digital).
• Internal Codes: Big5 (Traditional), GB (Simplified), Unicode (Universal).
• Customisation: Needed for rare names or dialect characters not in standard lists.
• Binary: The final form of all Chinese characters inside the computer hardware.
Don't worry if the coding part seems tricky! Just remember that the computer needs a "number" (Internal Code) to represent every "picture" (Chinese character) you see.