GB2359398A - Encoding Chinese characters - Google Patents

Encoding Chinese characters Download PDF

Info

Publication number
GB2359398A
GB2359398A GB0004069A GB0004069A GB2359398A GB 2359398 A GB2359398 A GB 2359398A GB 0004069 A GB0004069 A GB 0004069A GB 0004069 A GB0004069 A GB 0004069A GB 2359398 A GB2359398 A GB 2359398A
Authority
GB
United Kingdom
Prior art keywords
pinyin
string
encoded
strings
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB0004069A
Other versions
GB0004069D0 (en
GB2359398B (en
Inventor
Shide Wang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kenwood KK
Original Assignee
Kenwood KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kenwood KK filed Critical Kenwood KK
Priority to GB0004069A priority Critical patent/GB2359398B/en
Priority to TW89103263A priority patent/TW535365B/en
Publication of GB0004069D0 publication Critical patent/GB0004069D0/en
Priority to CNB001356984A priority patent/CN100388827C/en
Publication of GB2359398A publication Critical patent/GB2359398A/en
Priority to HK01107251A priority patent/HK1036547A1/en
Application granted granted Critical
Publication of GB2359398B publication Critical patent/GB2359398B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/018Input/output arrangements for oriental characters

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

In a method of encoding a Pinyin string, each of the letters of the Pinyin string is represented by five bits. The final tone digit, which can be in the range of 1 to 5, is also represented by five bits, unless the Pinyin string contains six letters. In Pinyin strings containing the maximum of six letters, the tone digit '5' is never used, so that in this case the final tone digit is represented by only two bits. Therefore, any valid Pinyin string can be represented by a 32-bit word, which can be efficiently stored and compared with other Pinyin strings. The method is particularly suitable for compact, low power text storage and/or messaging devices.

Description

2359398 1 ENCODING METHOD
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method of encoding characters, particularly Pinyin representations of Chinese characters, and particularly in embedded systems such as mobile telephone handsets.
BACKGROUND
Pinyin is a Romanized phonetic system used to represent Chinese character pronunciations. Normally, Pinyin strings are input to electronic devices letter by letter and ASCII strings are used by the devices for internal processing. The maximum length of a Pinyin string necessary to represent one Chinese character is 7 bytes (6 letters plus a digit), so that 8 bytes of memory space is required to represent each Pinyin string internally, in the electronic device. The final tone digit allows distinction between different pronunciations of the same Chinese character.
There are nearly 7000 Chinese characters per Chinese language and some characters may have up to 5 different pronunciations. Therefore, Pinyin databases can be very large and string comparison very slow. These drawbacks are of little consequence in software for general purpose computers, but can be critical in embedded systems, such as mobile handsets, where processor speed and storage are limited by the power and size.
constraints of the system.
DISCLOSURE OF THE INVENTION
According to the present invention, there is provided a method of encoding a Pinyin string. in which the string is compressed into a single 32-bit word. This allows compact and rapid storage and handling of the Pinyin strings, particularly in systems with a 32-bit architecture.
Preferably, each of the letters of the Pinyin string is represented by five bits. Preferably. the final digit is also represented by five bits, unless the Pinyin string contains six letters, in which case the final tone digit is represented by two bits. At first sight, two bits appear insufficient to store a digit in the range one to five. However, in Pinyin strings containing the maximum six letters, the tone digit '5' is never used. Therefore, any valid Pinyin string can be represented by a 32- bit word.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1 is a front view of a mobile telephone handset; Figure 2 is a diagram of the internal electronic components of the handset; and Figure 3 is a flowchart of an encoding algorithm in an embodiment of the present invention.
MODES FOR CARRYING OUT THE INVENTION Ficure 1 shows a mobile telephone handset H having a keypad K comprising numeric keys 0 to 9, star () and hash (#) keys, and function keys such as 'YES', 'NO', back/up (.(-), forward/down (--), clear (M) and other function (f). A display D is able to display Arabic numerals, Roman letters and Chinese characters, and may be an LC1) with sufficient resolution to display at least one line of numerals, letters and characters. A microphone M and speaker S are also present, to allow voice calls.
Figure 2 is a schematic diagram of the electronic components of the handset H. These components need not be discrete, and may be integrated. For example, the components may be integrated onto a microcontroller chip and an RF stage chip. A processor P is connected via a bus B to a volatile memory (V), a non-volatile memory (NV), an I/0 interface (I/0) and an RF modem (RF). The I/0 interface decodes input from the keypad K and microphone M and drives the display D and speaker S. The RF modem is connected to an antenna A so as to receive and transmit RF signals. The components are powered by a battery (not shown) or a mains electricity connection (not shown) via a transformer.
The non-volatile memory (NV) stores software which is executed by the processor P in order to carry out the functions of the handset. Optionally, the non--%,-olatile memory may be reprogrammable to upgrade the software.
The algorithm described below as an embodiment of the present invention may be installed as an upgrade to the software of an existing mobile telephone. The upgrade may be received as a wireless message. via the RF modem (RF).
The handset H implements protocols which allow text messages to be sent and received. For example, the handset may be GSM-compatible and support the GSM SMS (short message service) protocols. As is generally known, alphanumeric characters are entered on the keypad K by a predetermined sequence of key presses. For example, as shown in Figure 1, more than one Roman letter is assigned to each numeric key and the appropriate letter is selected by multiple short presses of the same key until the desired character is displayed. Characters not displayed on the numeric keys, such as punctuation, may be selected by further rapid key presses.
Alternative character selection methods are also known, such as predictive input in which the user need normally only press each key once for each letter and the software running on the handset guesses which combination of letters is intended by comparing possible combinations of letters with valid words stored in memory, for the language selected by the user.
In an embodiment of the present invention, the user can enter Pinyin strings for transmission as text messages via the mobile radio network with which the handset H operates, by selecting a Pinyin entry mode. The user spells out the Pinyin string using the keys of the keypad K, using any of the 4 is known techniques for entering Roman letters and Arabic numerals on a numeric keypad. Entry of Pinyin letters is not case sensitive. While the individual letters of the Pinyin string are being entered, they are displayed on the displayed and stored in the volatile memory (V). For example, the user may enter the Pinyin string 'chuangj"'.
Software running on the handset H identifies when a complete Pinyin string has been entered. For example, when a numeral is entered, it can be assumed that this is the last character of a Pinyin string. Alternatively, there may be stored in the non-volatile memory a database of all valid Pinyin strings and the software may display the equivalent Chinese character when the characters of the Pinyin string entered by the user are sufficient to identify one character uniquely. or display all possible Chinese characters when all the possible characters can be displayed. The user may be required to press another key to confirm that the string entered is correct, or to select the intended Chinese character if there is more than one possibility.
The software encodes each completed Pinyin string as a 32-bit word and this encoded form is preferably used for storage of Chinese text prior to transmission, and for the storage of any databases of Pinyin strings on the handset, for example in the non-volatile memory. Such databases may be used for predictive input or for validation of entered Pinyin strings, as described above.
The format of the 32-bit word is shown below in Table 1:
Table 1
Bit nos. Field
31-27 CO 26-22 cl 21-17 C2 16-12 C3 11-7 C4 6-2 C5 1-0 C6 The following rules are applied for compressing each Pinvin string:
1) Left alignment: the first Pinyin letter is in Field CO, the second in
Cl and so on.
2) Any unused fields are set to all zero bits.
3) If the length of the Pinyin string is less than or equal to six characters (five letters and one digit), then the letters are encoded in each of the fields CO to C5 as in Table 2 below:
Table 2
Pinyin Character Binary code 1 00001 2 00010 3 00011 4 00100 00101 a 00110 z 6 4) If the length of the Pinyin string is seven characters (six letters and C one digit), then the fields CO to C5 are encoded as in Rule 3 and Table 2 above. However, field C6 is encoded as shown below in Table 3:
Table 3
Pinyin Tone Digit Binary code 1 00 2 01 4 11 The tone digit 5 does not need to be encoded, because there are no sixletter Pinyin strings having tone digit 5. Therefore, no information is lost in the compression algorithm given above.
As an example, the Pinyin string 'chuang3' is encoded as the binary 32bit word:
101000/0 1101/11010/00110/10011/01100/101 where the slash character demarcates the fields CO to C6, but does not represent any additional bits.
The encoding algorithm for each Pinyin string can be represented as a flowchart as shown in Figure 3. At step S 10, the field number is set to CO. At step- S20, a character is entered. As part of this step, the character may be checked to ensure it is an acceptable Pinyin string character and the step may continue until a valid character is entered. At step S30, it is determined whether the entered character is a numeral. If not, at step S40 the code value of the entered character, according to Table 2 above, is entered in the current field. At step S50, the current field number is incremented. At step S60, it is determined whether the current field number exceeds C6. If so, the maximum
Pinyin string length has already been reached without a numeral being 7 entered, so it is indicated at step S70 that the string is invalid. If not. the flow returns to step S20.
If at step S-30 it is determined that the entered character is a numeral, it is then determined at step S80 whether the current field number is C6. If not, at step S90 the code value of the entered numeral, according to Table 2 above, is entered in the current field, and the end of the string is indicated at step
S 100. If the current field is C6, the code value of the entered numeral, according to Table 3) above, is entered in that field at step S 110, and the end of the string is indicated at step S 100.
Alternatively, the encoding steps may take place only after a complete Pinyin string has been input. Moreover, the Pinyin string may be checked against a database of valid Pinyin strings and the user prompted to edit the string if it is not valid, or the closest matches may be displayed to the user for selection. Preferably, the entered Pinyin string is encoded as a 32-bit word and compared with a database of valid Pinyin strings also encoded as 32-bit words. The processor P is typically able to handle 3)2-bit words as integers which can be fetched from memory in a single operation, and may have an instruction set which includes a single instruction to compare 32-bit integers.
Hence, the comparison of the entered Pinyin string with a database of Pinyin strings may be performed much more quickly than by performing a string comparison between uncompressed strings. The encoded Pinyin strings may be stored much more compactly than the equivalent ASCII strings. Hence the compression algorithm is particularly suitable for implementing search and storage of Pinyin strings on a compact, low-power device.
The above description relates to a mobile telephone but it will readily be understood that the compression algorithm is equally suitable for textonly transceivers or PDA's (personal digital assistants).
8

Claims (11)

1. A method of encoding a Pinyin string comprising a plurality of Roman letters and one numeral to generate an encoded Pinyin string, including: encoding each said Roman letter using a constant number of bits, and, if there are six of said Roman letters in the Pinyin string, encoding said numeral in two bits.
2. A method as claimed in claim 1, wherein, if there are less than six said Roman letters in the Pinyin string, the numeral is encoded using said constant number of bits.
3. A method as claimed in claim 1 or claim 2, wherein said constant number is five.
4. A method as claimed in any preceding claim, wherein the encoded Pinyin string has a length of 32 bits.
5. A method of searching a database of Pinyin strings, each encoded by the method of any preceding claim, including:
encoding a search string including one or more Pinyin strings, by means of a method according to any preceding claim; comparing said encoded search string with some or all of said database of Pinyin strings; and indicating, on the basis of said comparison, whether the encoded search string matches any of said database of Pinyin strings.
6. A method of storing a plurality of Pinyin strings, comprising:
1 9 encoding each of said plurality of Pinyin strings by means of a method as claimed in any one of claims 1 to 4, and storing the encoded Pinyin strings in a memon'.
7. claim.
Apparatus arranged to perform a method as claimed in any preceding
8. A portable electronic device including apparatus as claimed in claim 7.
9. Software arranged to perform a method as claimed in any one off claims 1 to 6.
10. A signal containing one or more encoded Pinyin strings encoded by a method as claimed in any one of claims 1 to 6.
11. A method substantially as herein described with reference to Figure 3 of the accompanying drawings.
GB0004069A 2000-02-21 2000-02-21 Encoding method Expired - Lifetime GB2359398B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
GB0004069A GB2359398B (en) 2000-02-21 2000-02-21 Encoding method
TW89103263A TW535365B (en) 2000-02-21 2000-02-24 Encoding method
CNB001356984A CN100388827C (en) 2000-02-21 2000-12-20 Coding method
HK01107251A HK1036547A1 (en) 2000-02-21 2001-10-17 Encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB0004069A GB2359398B (en) 2000-02-21 2000-02-21 Encoding method

Publications (3)

Publication Number Publication Date
GB0004069D0 GB0004069D0 (en) 2000-04-12
GB2359398A true GB2359398A (en) 2001-08-22
GB2359398B GB2359398B (en) 2004-05-05

Family

ID=9886114

Family Applications (1)

Application Number Title Priority Date Filing Date
GB0004069A Expired - Lifetime GB2359398B (en) 2000-02-21 2000-02-21 Encoding method

Country Status (4)

Country Link
CN (1) CN100388827C (en)
GB (1) GB2359398B (en)
HK (1) HK1036547A1 (en)
TW (1) TW535365B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378293A (en) * 2001-07-31 2003-02-05 Sendo Int Ltd Processing and storing characters of a non-alphabetical language
US7395203B2 (en) 2003-07-30 2008-07-01 Tegic Communications, Inc. System and method for disambiguating phonetic input

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5175803A (en) * 1985-06-14 1992-12-29 Yeh Victor C Method and apparatus for data processing and word processing in Chinese using a phonetic Chinese language
CN1063370A (en) * 1992-01-27 1992-08-05 彭鹏 A kind of Roman character spelling of Chinese characters and suitable input equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378293A (en) * 2001-07-31 2003-02-05 Sendo Int Ltd Processing and storing characters of a non-alphabetical language
GB2378293B (en) * 2001-07-31 2005-04-27 Sendo Int Ltd Processing and storing characters of a non-alphabetical language
US7395203B2 (en) 2003-07-30 2008-07-01 Tegic Communications, Inc. System and method for disambiguating phonetic input

Also Published As

Publication number Publication date
GB0004069D0 (en) 2000-04-12
TW535365B (en) 2003-06-01
GB2359398B (en) 2004-05-05
HK1036547A1 (en) 2002-01-04
CN1310562A (en) 2001-08-29
CN100388827C (en) 2008-05-14

Similar Documents

Publication Publication Date Title
US20060142997A1 (en) Predictive text entry and data compression method for a mobile communication terminal
EP1579662B1 (en) Communications device device with a dictionary which can be updated with words contained in the text message
US6526292B1 (en) System and method for creating a digit string for use by a portable phone
US6542170B1 (en) Communication terminal having a predictive editor application
EP1296216B1 (en) A mobile phone having a predictive editor application
US7149550B2 (en) Communication terminal having a text editor application with a word completion feature
CA2466652C (en) Method for compressing dictionary data
US6839877B2 (en) E-mail terminal automatically converting character string of reception e-mail, and e-mail system
JP2006510989A5 (en)
EP1558010B1 (en) Communications terminal apparatus with key identifier transmission and program therefor
EP1262931A1 (en) Improvements in text messaging
GB2359398A (en) Encoding Chinese characters
US7539483B2 (en) System and method for entering alphanumeric characters in a wireless communication device
JPH1118127A (en) Display controller for communications equipment and its method
KR100716610B1 (en) Predictive text entry and data compression method for a mobile communication terminal
JP4472761B2 (en) Predictive text input and data compression method for mobile communication terminal
KR100437323B1 (en) A Korean charater entry method for mobile communication device
KR20060100851A (en) Mobile terminal and method for inputting letters by using reduction function
KR20080080971A (en) Method for connecting communication
KR101058322B1 (en) Message input method of mobile communication terminal
JP2004133775A (en) Dictionary data search device, dictionary data search method, dictionary data search program, and storage medium with dictionary data search program stored
KR20000044446A (en) Editing method by using voice recognition in mobile terminal

Legal Events

Date Code Title Description
732E Amendments to the register in respect of changes of name or changes affecting rights (sect. 32/1977)

Free format text: REGISTERED BETWEEN 20130516 AND 20130522

732E Amendments to the register in respect of changes of name or changes affecting rights (sect. 32/1977)

Free format text: REGISTERED BETWEEN 20131017 AND 20131023

PE20 Patent expired after termination of 20 years

Expiry date: 20200220