WO2012092845A1 - 一种汉字信息的处理方法及汉字信息的处理装置 - Google Patents

一种汉字信息的处理方法及汉字信息的处理装置 Download PDF

Info

Publication number
WO2012092845A1
WO2012092845A1 PCT/CN2012/000003 CN2012000003W WO2012092845A1 WO 2012092845 A1 WO2012092845 A1 WO 2012092845A1 CN 2012000003 W CN2012000003 W CN 2012000003W WO 2012092845 A1 WO2012092845 A1 WO 2012092845A1
Authority
WO
WIPO (PCT)
Prior art keywords
chinese character
user
pronunciation
character information
determining
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.)
Ceased
Application number
PCT/CN2012/000003
Other languages
English (en)
French (fr)
Other versions
WO2012092845A8 (zh
Inventor
乐祖晖
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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Corp
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 China Mobile Communications Corp filed Critical China Mobile Communications Corp
Priority to KR1020137018463A priority Critical patent/KR20140018859A/ko
Priority to US13/993,116 priority patent/US20130289974A1/en
Publication of WO2012092845A1 publication Critical patent/WO2012092845A1/zh
Publication of WO2012092845A8 publication Critical patent/WO2012092845A8/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • G06F40/129Handling non-Latin characters, e.g. kana-to-kanji conversion
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities

Definitions

  • the present invention relates to the field of information processing technologies, and in particular, to a method for processing Chinese character information and a device for processing Chinese character information. Background technique
  • Chinese characters are a kind of non-pinyin text that is widely used at present.
  • each Chinese character has a certain binary code, which is called the internal code of Chinese characters.
  • the internal code of the Chinese character corresponds to the Chinese character, which is used to store, display, and transmit the Chinese character information as the identifier of the Chinese character.
  • the more common Chinese character internal code is to add 1 to the first digit of each byte of the national standard code.
  • the computer processes the code if the first digit of the code is "1", the code is considered to be the Chinese character. code.
  • Chinese characters are widely used in various fields. People usually use Chinese characters to represent information that needs to be expressed or to record events. For example, information stored in Word, Excel, txt and other applications and expressed by Chinese characters, and saved in mobile terminals.
  • Step 101 Receive a Chinese character input by a user through an application.
  • the user can input Chinese characters in various ways, for example, Pinyin input method, natural code input method, table shape code input method, and Wubi input method.
  • the received Chinese characters entered by the user are usually represented by the foreign code (or input code) of the Chinese character.
  • the foreign code of the Chinese character is a set of keyboard symbols used to input Chinese characters into the computer.
  • Step 102 Determine a corresponding internal code of the Chinese character in the operating system.
  • Step 103 Save the determined internal code.
  • an embodiment of the present invention provides a method for processing Chinese character information and a device for processing Chinese character information.
  • the Chinese character information is saved in an application program, the multi-phonetic word in the Chinese character can be distinguished, and the application process is improved. The accuracy of recognition of Chinese characters in the process.
  • a method of processing Chinese character information includes:
  • the application determines the internal code of the Chinese character input by the user
  • the Chinese character information determines that the pronunciation of the Chinese character is plural, and determines the current pronunciation of the Chinese character input by the user from the plurality of pronunciations;
  • the internal code of the Chinese character and the included pronunciation are the Chinese character information of the determined current pronunciation.
  • a processing apparatus for Chinese character information includes:
  • An internal code determining unit configured to determine an internal code of a Chinese character input by a user
  • a Chinese character information determining unit configured to: according to the saved internal code and the Chinese character information corresponding to the Chinese character, the Chinese character information includes a pronunciation of the Chinese character;
  • a current pronunciation determining unit configured to determine a Chinese character according to the Chinese character information determining unit Determining, from the plurality of pronunciations, a current pronunciation of the Chinese character input by the user; and the included pronunciation is a current pronunciation determined by the current pronunciation determining unit, when the information is determined to be a plurality of pronunciations of the Chinese characters input by the user Chinese character information.
  • the application determines the internal code of the Chinese character input by the user, and determines the input of the user according to the correspondence between the saved internal code and the Chinese character information corresponding to the internal code of the internal code.
  • the internal code and the included pronunciation are the Chinese character information of the determined current pronunciation. According to this aspect of the invention, it is possible to further store the Chinese character information including the current pronunciation of the Chinese character based on the internal code of the Chinese character, thereby realizing the purpose of distinguishing the multi-tone words by the stored Chinese character information.
  • FIG. 1 is a flow chart of storing Chinese characters input by a user according to the prior art
  • FIG. 2 is a flowchart of storing Chinese characters according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of displaying stored Chinese characters according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram of an information storage device according to Embodiment 2 of the present invention. detailed description
  • the embodiment of the present invention provides a method for processing Chinese character information and a processing device for Chinese character information, and the preferred embodiments of the present invention are described below with reference to the accompanying drawings.
  • the preferred embodiments are merely illustrative of the invention and are not intended to limit the invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
  • Embodiment 1 of the present invention provides a method for processing Chinese character information, which can be executed inside an application, for example, in an application such as Outlook, a mobile phone contact address book, Word, Excel, or txt.
  • the Chinese character storage method provided by the embodiment is used to store Chinese characters input by the user through the application program, and the multi-tone words can be distinguished in the storage process.
  • the method for processing Chinese character information according to the first embodiment of the present invention mainly includes the following steps:
  • Step 201 The application determines an internal code of the Chinese character input by the user.
  • Step 202 Determine, according to the correspondence between the internal code saved by the operating system and the Chinese character information corresponding to the internal code of the internal code, the Chinese character information input by the user, wherein the Chinese character information includes the pronunciation of the Chinese character.
  • Step 203 Determine, according to the Chinese character information of the Chinese character input by the user, whether the pronunciation of the Chinese character is multiple, and if yes, perform step 204 to step 205; if no, execute step 206.
  • Step 204 Determine, from the plurality of pronunciations, a current pronunciation of the Chinese character input by the user.
  • Step 205 The internal code of the Chinese character and the included pronunciation are the Chinese character information of the determined current pronunciation. At this point, the process of saving the Chinese character currently input by the user ends.
  • Step 206 Save the internal code of the Chinese character and the determined Chinese character information of the Chinese character. At this point, the process of saving the Chinese character currently input by the user ends.
  • the Chinese character information including at least the pronunciation of the Chinese character is simultaneously saved, so that the purpose of distinguishing the multi-tone word can be achieved.
  • the Chinese character information of the Chinese character is further saved, and the Chinese character information includes at least the pronunciation of the Chinese character.
  • the Chinese character information includes at least the pronunciation of the Chinese character.
  • the tone or / and the number of strokes corresponding to the pronunciation of the Chinese character can be further saved.
  • the number of tones and strokes can be selectively saved.
  • the first embodiment of the present invention further provides a preferred implementation manner of the foregoing step 204, that is, a preferred implementation manner of determining a current pronunciation of a Chinese character input by a user from the plurality of pronunciations.
  • the user input may be determined by the following manners 1 or 2.
  • the plurality of pronunciations are displayed to the user, and the pronunciation selected by the user from the plurality of displayed tones is determined as the current pronunciation.
  • the user who inputs the Chinese character selects the current pronunciation of the Chinese character.
  • the pronunciation of the Chinese character in the context is determined from the plurality of pronunciations as the current pronunciation based on the context of the Chinese character input by the user.
  • the pronunciation of multi-tone words in different contexts can be pre-stored, for example, the polyphonic word “le”, the pronunciation in “happiness” is “le”, and the pronunciation in "music” is “yue”,
  • the saved such information can determine the current pronunciation of the Chinese character according to the context of the Chinese character input by the user.
  • the Chinese character information of the Chinese character saved by the flow described in FIG. 2 may only include the pronunciation of the Chinese character. If the Chinese character is a polyphonic word, the pronunciation of the Chinese character included in the Chinese character information is the determined current. Pronunciation, for example, the operating system saves 2 pronunciations for the word "le”, as shown in the following table:
  • the Chinese character information saved in the operating system further includes the tone of the ⁇ word or / and the number of strokes of the Chinese character
  • the Chinese character information of the Chinese character saved by the flow described in FIG. 2 may further include the The tone of the Chinese character or/and the number of strokes of the Chinese character, for example, when the tone of the "music" and the number of strokes are saved in the operating system, the flow described in FIG.
  • the saved information is as follows (where the current pronunciation is determined to be “yue”):
  • the Chinese character information including the pronunciation of the Chinese character is simultaneously saved when the application saves the Chinese character input by the user, the Chinese character information can be supported for display during the display.
  • the following steps are further performed:
  • the manner of determining whether to display the Chinese character information of the Chinese character when displaying the Chinese character is as follows: prompting the user to select whether to display the Chinese character information of the Chinese character, and receiving the selection result of the user.
  • the information for the Chinese character input by the user such as "Le” is as shown in the following table (where the current pronunciation is "yue"):
  • the Chinese character information can be "yes” or “no", or the Chinese character information to be displayed.
  • the information indicating whether the Chinese character is displayed can be “displayed”. "Reading”, if the user wishes to display the pronunciation and tone, the information indicating whether or not to display the Chinese character can be "display pronunciation and tone”.
  • Step 301 Obtain the storage information of the Chinese character.
  • the stored information of the Chinese character obtained includes the internal code of the Chinese character, the Chinese character information, and the determination information of whether or not the Chinese character information is displayed.
  • Step 302 Determine, according to the obtained storage information, whether to display the Chinese character information of the Chinese character. If yes, go to step 303. If no, go to step 304.
  • Step 303 Display the Chinese character information of the Chinese character when the Chinese character is displayed, and the process ends.
  • Step 304 Display the Chinese character directly, and the process ends.
  • the saved "Le” may have the display mode as described in the following table:
  • the Chinese characters may be sorted according to the saved Chinese character information.
  • the internal code of the Chinese character and the Chinese character information may be saved by using the following methods:
  • the arrangement order of the Chinese character of the Chinese character in the internal code of the saved Chinese character is determined, and the internal code and the Chinese character information of the Chinese character are saved according to the determined arrangement order.
  • the order of the Chinese character information of the Chinese character in the Chinese character information of the saved Chinese character is determined, and may be according to various sorting rules, for example, according to the pronunciation in the Chinese character information of the Chinese character. Sort the sequence table, or sort according to the tone included in the Chinese character information of the Chinese character, or according to the number of strokes included in the Chinese character information of the Chinese character, according to the number of strokes, according to the number of strokes, or from less to more, the specific ordering rules Can be based on reality Need to be flexible, no longer here - enumeration.
  • the second embodiment of the present invention provides a processing device for kanji information, and the storage of Chinese characters by the storage device can achieve the purpose of distinguishing multi-tone words.
  • the information storage device mainly includes: an internal code determining unit 401, a Chinese character information determining unit 402, a current pronunciation determining unit 403, and a Chinese character storage unit 404;
  • the internal code determining unit 401 is configured to determine an internal code of a Chinese character input by the user;
  • the Chinese character information determining unit 402 is configured to determine the Chinese character information of the Chinese character corresponding to the internal code determined by the internal code determining unit 401 according to the correspondence between the internal code saved by the operating system and the Chinese character information corresponding to the internal code of the internal code.
  • Chinese character information includes the pronunciation of Chinese characters;
  • the current pronunciation determining unit 403 is configured to determine, according to the Chinese character information determined by the Chinese character information determining unit 402, that the pronunciation of the Chinese character input by the user is plural, and determine the current pronunciation of the Chinese character input by the user from the plurality of pronunciations;
  • the Chinese character storage unit 404 is configured to store the internal code of the Chinese character determined by the internal code determining unit 401 and the Chinese character letter included in the second reading of the present invention.
  • the device shown in FIG. 4 includes a current pronunciation determining unit 403, specifically for:
  • the pronunciation of the Chinese character in the context is the current pronunciation.
  • the device shown in FIG. 4 includes a Chinese character information determining unit 402, which is specifically configured to:
  • the word information includes the pronunciation of the Chinese character, and also includes the tone of the Chinese character or/and the number of strokes of the Chinese character.
  • the device shown in FIG. 4 includes a Chinese character storage unit 404, which is further configured to:
  • the device shown in FIG. 4 includes a Chinese character storage unit 404, which is specifically configured to:
  • the unit included in the processing apparatus of the above Chinese character information is only logical division according to the function realized by the apparatus. In actual application, superposition or splitting of the above units may be performed.
  • the function implemented by the processing device for the Chinese character information provided in the second embodiment corresponds to the flow of the processing method for the Chinese character information provided in the first embodiment, and the more detailed processing flow implemented by the device is in the above embodiment. One has been described in detail, and will not be described in detail here.
  • the application determines the internal code of the Chinese character input by the user, and determines the user according to the correspondence between the internal code saved by the operating system and the Chinese character information corresponding to the internal code of the internal code.
  • the internal code of the Chinese character and the included pronunciation are the Chinese character information of the determined current pronunciation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Description

一种汉字信息的处理方法及汉字信息的处理装置 本申请要求于 2011 年 1 月 4 曰提交中国专利局、 申请号为 201110000513.9、 发明名称为"一种汉字信息的处理方法及汉字信息的处理 装置"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及信息处理技术领域,尤其涉及一种汉字信息的处理方法及汉 字信息的处理装置。 背景技术
汉字是目前使用非常广泛的一种非拼音文字, 根据国标码的规定, 每 一个汉字都有了确定的二进制代码, 该二进制代码称为汉字的机内码。 汉 字的机内码与汉字——对应, 用于作为汉字的标识完成汉字信息的存储、 显示以及传输等处理。 目前, 应用比较普遍的汉字机内码是将国标码的每 一个字节的首位上加 1 , 计算机在处理代码时, 若该代码的首位是 " 1 ", 则认为该代码是汉字的机内码。
汉字在各个领域都有广泛的使用, 人们通常使用汉字来表征需要表达 的信息或记录事件, 例如, 存储在 Word、 Excel, txt等应用程序中并通过 汉字表示的信息、 移动终端中保存的通过汉字记录的联系人姓名信息等, 目前在各应用程序中保存汉字信息的通用流程, 如图 1 所示, 主要包括如 下步骤:
步骤 101、 接收用户通过应用程序输入的汉字。
用户输入汉字可以通过多种方式, 例如, 拼音输入法, 自然码输入法, 表形码输入法, 五笔字形输入法等。 接收到的用户输入的汉字通常通过该 汉字的外码 (或称为输入码) 表示。 具体地, 汉字的外码是用来将汉字输 入到计算机中的一组键盘符号。
步骤 102、 确定该汉字在操作系统中对应的机内码。
该步骤中, 通过将汉字的输入码转换为机内码的方式确定该汉字在操 作系统中对应的机内码。 步骤 103、 保存确定的该机内码。
通过上述流程, 能够实现对通过应用程序输入的汉字的存储。 可见, 现有技术中, 应用程序中保存的通过汉字表示的各种信息, 实质上通过保 存该汉字的机内码实现。 而实际应用中, 存在大量的多音字汉字, 例如, 多音字汉字 "乐" 具有多种读音, 其对应的读音分别为: le (四声)、 yue (四声), 可见, 基于现有技术提供的汉字在应用程序中的存储方式, 无法 区分汉字中的多音字, 例如, 无法区分当前保存的多音字对应的具体读音。 发明内容
有鉴于此, 本发明实施例提供一种汉字信息的处理方法及汉字信息的 处理装置, 采用该技术方案在应用程序中保存汉字信息时, 能够区分汉字 中的多音字, 提高了应用程序处理汉字过程中对汉字读音的识别准确率。
本发明实施例通过如下技术方案实现:
根据本发明实施例的一个方面, 提供了一种汉字信息的处理方法。 根据本发明实施例提供的汉字信息的处理方法, 包括:
应用程序确定用户输入的汉字的机内码;
根据保存的机内码与该机内码对应汉字的汉字信息的对应关系, 确定 所述用户输入的汉字的汉字信息, 所述汉字信息包括所述汉字的读音; 在根据所述用户输入的汉字的汉字信息确定所述汉字的读音为多个 时, 从该多个读音中确定所述用户输入的汉字当前的读音;
保存所述汉字的机内码以及包括的读音为确定出的当前的读音的汉字 信息。
根据本发明实施例的另一个方面,还提供了一种汉字信息的处理装置。 根据本发明实施例提供的汉字信息的处理装置, 包括:
机内码确定单元, 用于确定用户输入的汉字的机内码;
汉字信息确定单元, 用于根据保存的机内码与该机内码对应汉字的汉 汉字信息, 所述汉字信息包括所述汉字的读音;
当前读音确定单元, 用于在根据所述汉字信息确定单元确定出的汉字 信息确定所述用户输入的汉字的读音为多个时, 从该多个读音中确定所述 用户输入的汉字当前的读音; 及包括的读音为所述当前读音确定单元确定出的当前的读音的汉字信息。
通过本发明实施例提供的上述至少一个技术方案, 应用程序确定用户 输入的汉字的机内码, 以及根据保存的机内码与该机内码对应汉字的汉字 信息的对应关系, 确定用户输入的汉字的汉字信息, 该汉字信息包括该汉 字的读音, 并在根据该汉字信息确定该汉字的读音为多个时, 从该多个读 音中确定该用户输入的汉字当前的读音, 并保存该汉字的机内码以及包括 的读音为确定出的当前的读音的汉字信息。 根据该技术方案, 能够在保存 汉字的机内码的基础上, 进一步保存包括该汉字当前读音的汉字信息, 从 而通过保存的汉字信息实现了对多音字进行区分的目的。
本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从 说明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其 他优点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结 构来实现和获得。 附图说明
附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与 本发明实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 图 1为现有技术提供的存储用户输入的汉字的流程图;
图 2为本发明实施例一提供的存储汉字的流程图;
图 3为本发明实施例一提供的显示存储的汉字的流程图;
图 4为本发明实施例二提供的信息存储装置示意图。 具体实施方式
为了给出在应用程序中保存汉字信息时区分多音字的实现方案, 本发 明实施例提供了一种汉字信息的处理方法及汉字信息的处理装置, 以下结 合说明书附图对本发明的优选实施例进行说明, 应当理解, 此处所描述的 优选实施例仅用于说明和解释本发明, 并不用于限定本发明。 并且在不冲 突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。
实施例一
本发明实施例一提供了一种汉字信息的处理方法, 该方法可以在应用 程序内部执行, 例如, 在 Outlook、 手机联系人通讯录、 Word、 Excel或 txt 等应用程序中执行。 采用该实施例提供的汉字存储方法对用户通过应用程 序输入的汉字进行存储, 在存储过程中能够区分多音字。
如图 2所示, 根据本发明实施例一提供的汉字信息的处理方法, 主要 包括如下步骤:
步骤 201、 应用程序确定用户输入的汉字的机内码。
步骤 202、 根据操作系统保存的机内码与该机内码对应汉字的汉字信 息的对应关系, 确定用户输入的汉字的汉字信息, 其中, 汉字信息包括该 汉字的读音。
步骤 203、 根据用户输入的汉字的汉字信息确定该汉字的读音是否为 多个, 若是, 执行步骤 204至步骤 205; 若否, 执行步骤 206。
步骤 204、 从该多个读音中确定用户输入的汉字当前的读音。
步骤 205、 保存该汉字的机内码以及包括的读音为确定出的当前的读 音的汉字信息, 至此, 保存用户当前输入的汉字的流程结束。
步骤 206、 保存该汉字的机内码以及确定出的该汉字的汉字信息, 至 此, 保存用户当前输入的汉字的流程结束。
通过图 2所述流程的执行, 在保存汉字的机内码时, 同时保存该汉字 的至少包括读音的汉字信息, 从而能够达到区分多音字的目的。
本发明实施例一中, 为了能够针对不同应用程序保存用户输入的汉字 信息, 在操作系统中除了保存汉字的机内码, 还进一步保存汉字的汉字信 息, 该汉字信息至少包括汉字的读音, 若为多音字, 则保存多个读音。 在 此基础上, 还可以进一步保存该汉字的读音对应的声调、 或 /和笔画数目等 信息。 在操作系统中保存汉字的一个示例如下:
汉字 机内码 读音 声调 笔画数目 乐 0xC0D6 yue 4 5
Figure imgf000007_0001
上表中, 声调和笔画数目可以选择性地保存。
本发明实施例一还提供了上述步骤 204的优选实施方式, 即从该多个 读音中确定用户输入的汉字当前的读音的优选实施方式, 具体地, 可以通 过如下方式一或方式二确定用户输入的汉字当前的读音:
方式一
将该多个读音显示给用户, 并将用户从显示的多个读音中选择的读音 确定为当前的读音。 该方式一由输入汉字的用户选择该汉字当前的读音。
方式二
根据用户输入的汉字的上下文, 从该多个读音中确定汉字在该上下文 中的读音为当前的读音。 为了支持该方式, 可以预先保存多音字在不同上 下文中的读音, 例如, 多音字 "乐", 在 "快乐" 中的读音为 "le" , 在 "音 乐" 中的读音为 "yue" , 通过保存的此类信息, 能够根据用户输入的汉字 的上下文确定出该汉字当前的读音。
本发明实施例一中, 通过图 2所述的流程保存的汉字的汉字信息可以 只包括该汉字的读音, 若该汉字为多音字, 则该汉字信息中包括的汉字的 读音为确定出的当前读音, 例如, 操作系统中针对 "乐" 字保存了 2个读 音, 如下表:
Figure imgf000007_0002
通过通过图 2所述的流程确定出用户输入的 "乐"当前的读音为 "yue" , 则通过本发明实施例一通过的图 2所述的流程针对用户输入的 "乐" 保存 的信息如下表:
汉字 机内码 k 曰 乐 0xC0D6 yue 在此基础上, 若操作系统中保存的汉字信息还包括该^字的声调或 /和 该汉字的笔画数目信息, 则通过图 2所述的流程保存的汉字的汉字信息, 也可以进一步包括该汉字的声调或 /和该汉字的笔画数目信息, 例如, 在操 作系统中保存了 "乐" 的声调以及笔画数目信息时, 根据本发明实施例一 提供的图 2所述流程, 针对 "乐" 保存的信息如下表(其中, 确定出的当 前读音为 "yue" ):
Figure imgf000008_0001
根据本发明实施例一通过的上述技术方案, 由于在应用程序保存用户 输入的汉字时, 同时保存了包括该汉字的读音等信息的汉字信息, 因此, 为了在显示时, 能够支持汉字信息助读, 具体地, 在执行上述步骤 205或 步骤 206之前, 即在保存该汉字的机内码以及汉字信息之前, 还进一步执 行如下步骤:
确定在显示该汉字时是否显示该汉字的汉字信息, 并在保存该汉字的 机内码以及汉字信息时, 还保存是否显示该汉字的汉字信息的确定信息。
具体地,确定在显示该汉字时是否显示该汉字的汉字信息的方式如下: 提示用户选择是否显示该汉字的汉字信息, 并接收用户的选择结果。 根据上述优选实施方式, 针对用户输入的汉字, 如 "乐" 保存的信息 如下表所示 (其中, 当前读音为 "yue" ):
Figure imgf000008_0002
上表中, 是否显示汉字信息可以为 "是" 或 "否" 的确定信息, 也可 以选择要显示的汉字信息, 例如, 若用户只希望显示读音, 则该是否显示 汉字的信息可以为 "显示读音", 若用户希望显示读音和声调, 则该是否显 示汉字的信息可以为 "显示读音以及声调"。
根据上述保存了是否显示汉字信息的优选实施方式,在显示该汉字时, 如图 3所示, 主要包括如下步骤:
步骤 301、 获取该汉字的存储信息。
该步骤 301 中, 获取的汉字的存储信息包括该汉字的机内码、 汉字信 息以及是否显示汉字信息的确定信息。
步骤 302、 根据获取的存储信息确定是否显示该汉字的汉字信息, 若 是, 则执行步骤 303, 若否, 则执行步骤 304。
步骤 303、 在显示该汉字时显示该汉字的汉字信息, 至此, 流程结束。 步骤 304、 直接显示该汉字, 至此, 流程结束。
根据图 3所述的流程, 若用户选择显示汉字的汉字信息, 则针对保存 的 "乐" 可以有如下表所述的显示方式:
Figure imgf000009_0001
本发明实施例提供的优选实施方式中, 还可以根据保存的汉字信息对 汉字进行排序, 具体地, 保存汉字的机内码以及汉字信息, 可以通过如下 方式:
根据该汉字的汉字信息, 确定汉字的汉字信息在已保存的汉字的汉字 信息中的排列顺序, 并根据确定的该排列顺序, 保存该汉字的机内码以及 汉字信息;
根据该汉字的机内码, 确定该汉字的机内码在已保存的汉字的机内码 中的排列顺序, 并根据确定的该排列顺序, 保存该汉字的机内码以及汉字 信息。
上述优选实施方式中, 根据该汉字的汉字信息, 确定汉字的汉字信息 在已保存的汉字的汉字信息中的排列顺序, 可以根据各种排序规则, 例如, 根据汉字的汉字信息中的读音, 按照音序表排序, 或者根据汉字的汉字信 息中包括的声调, 按照声调进行排序, 或者根据汉字的汉字信息中包括的 笔画数, 根据笔画数由多到少或由少到多排序, 具体排序规则可以根据实 际需要灵活确定, 此处不再——列举。
实施例二
本发明实施例二提供了一种汉字信息的处理装置, 通过该存储装置对 汉字进行存储, 能够实现区分多音字的目的。
如图 4所示, 本发明实施例二提供的信息存储装置, 主要包括: 机内码确定单元 401、 汉字信息确定单元 402、 当前读音确定单元 403 以及汉字存储单元 404;
其中:
机内码确定单元 401, 用于确定用户输入的汉字的机内码;
汉字信息确定单元 402, 用于根据操作系统保存的机内码与该机内码 对应汉字的汉字信息的对应关系, 确定机内码确定单元 401确定的机内码 对应的汉字的汉字信息, 该汉字信息包括汉字的读音;
当前读音确定单元 403 , 用于在才 据汉字信息确定单元 402确定出的 汉字信息确定用户输入的汉字的读音为多个时, 从该多个读音中确定该用 户输入的汉字当前的读音;
汉字存储单元 404, 用于保存机内码确定单元 401 确定的汉字的机内 码以及包括的读音为当前读音确定单元 403确定出的当前的读音的汉字信 本发明实施例二提供的优选实施方式中, 图 4所示的装置包括的当前 读音确定单元 403, 具体用于:
将汉字的多个读音显示给用户, 并将用户从显示的多个读音中选择的 读音确定为当前的读音; .
根据用户输入的该汉字的上下文, 从该汉字的多个读音中确定该汉字 在上下文中的读音为当前的读音。
本发明实施例二提供的优选实施方式中, 图 4所示的装置包括的汉字 信息确定单元 402 , 具体用于:
根据操作系统保存的机内码与该机内码对应汉字的汉字信息的对应关 系, 确定机内码确定单元 401确定的机内码对应的汉字的汉字信息, 该汉 字信息包括该汉字的读音、 且还包括该汉字的声调或 /和该汉字的笔画数 目。
本发明实施例二提供的优选实施方式中, 图 4所示的装置包括的汉字 存储单元 404, 还用于:
确定在显示汉字时是否显示该汉字的汉字信息, 并在保存该汉字的机 内码以及包括的读音为确定出的当前的读音的汉字信息时, 还保存是否显 示汉字的汉字信, 的确定信息。
本发明实施例二提供的优选实施方式中, 图 4所示的装置包括的汉字 存储单元 404, 具体用于:
根据该汉字信息确定单元 402确定的汉字信息, 确定该汉字的汉字信 息在已保存的汉字的汉字信息中的排列顺序, 并根据确定的排列顺序, 保 存该汉字的机内码以及包括的读音为确定出的当前的读音的汉字信息; 或 才艮据机内码确定单元 401确定的汉字的机内码, 确定该汉字的机内码 在已保存的汉字的机内码中的排列顺序, 并根据确定的排列顺序, 保存该 汉字的机内码以及包括的读音为确定出的当前的读音的汉字信息。
应当理解, 以上汉字信息的处理装置包括的单元仅为根据该装置实现 的功能进行的逻辑划分, 实际应用中, 可以进行上述单元的叠加或拆分。 并且该实施例二提供的汉字信息的处理装置所实现的功能与上述实施例一 提供的汉字信息的处理方法流程——对应, 对于该装置所实现的更为详细 的处理流程, 在上述实施例一中已 4故详细描述, 此处不再详细描述。
通过本发明实施例提供的上述至少一个技术方案, 应用程序确定用户 输入的汉字的机内码, 以及根据操作系统保存的机内码与该机内码对应汉 字的汉字信息的对应关系, 确定用户输入的汉字的汉字信息, 该汉字信息 包括该汉字的读音, 并在根据该汉字信息确定该汉字的读音为多个时, 从 该多个读音中确定该用户输入的汉字当前的读音, 并保存该汉字的机内码 以及包括的读音为确定出的当前的读音的汉字信息。 根据该技术方案, 能 够在保存汉字的机内码的基础上, 进一步保存包括该汉字当前读音的汉字 信息, 从而通过保存的汉字信息实现了对多音字进行区分的目的。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。

Claims

权 利 要 求
1、 一种汉字信息的处理方法, 其特征在于, 包括:
确定用户输入的汉字的机内码;
根据预先保存的机内码与汉字信, 的对应关系, 确定所述用户输入的 汉字的汉字信息, 所述汉字信息包括所述汉字的读音;
在根据所述确定的汉字信息确定所述用户输入的汉字的读音为多个 时, 从该多个读音中确定所述用户输入的汉字当前的读音;
2、 如权利要求 1所述的方法, 其特征在于, 从该多个读音中确定所述 用户输入的汉字当前的读音, 包括:
将该多个读音显示给所述用户, 并将所述用户从显示的所述多个读音 中选择的读音确定为当前的读音; 或
根据所述用户输入的汉字的上下文, 从该多个读音中确定所述用户输 入的汉字在所述上下文中的读音为当前的读音。
3、 如权利要求 1所述的方法, 其特征在于, 所述汉字信息, 还包括所 述汉字的声调或 /和所述汉字的笔画数目。
4、 如权利要求 1或 3所述的方法, 其特征在于, 保存所述用户输入的 汉字的机内码以及包括所述当前的读音的汉字信息之前, 还包括:
确定在显示所述用户输入的汉字时是否显示所述用户输入的汉字的包 括所述当前的读音的汉字信息, 并在保存所述用户输入的汉字的机内码以 及包括所述当前的读音的汉字信息时, 还保存是否显示所述用户输入的汉 字的包括所述当前的读音的汉字信息的确定信息。
5、 如权利要求 1或 3所述的方法, 其特征在于, 保存所述用户输入的 汉字的机内码以及包括所述当前的读音的汉字信息, 包括: 根据所述汉字的汉字信息, 确定所述用户输入的汉字的汉字信息在已 保存的汉字的汉字信息中的排列顺序, 并根据确定的所述排列顺序, 保存 所述用户输入的汉字的机内码以及包括所述当前的读音的汉字信息; 或 根据所述用户输入的汉字的机内码, 确定所述用户输入的汉字的机内 码在已保存的汉字的机内码中的排列顺序, 并根据确定的所述排列顺序,
6、 一种汉字信息的处理装置, 其特征在于, 包括:
机内码确定单元, 用于确定用户输入的汉字的机内码;
汉字信息确定单元, 用于根据预先保存的机内码与汉字信息的对应关 信息, 所述汉字信息包括所述汉字的读音; 信息确定所述用户输入的汉字的读音为多个时, 从该多个读音中确定所述 用户输入的汉字当前的读骨;
汉字存储单元,
及包括所述当前读音确定单元确定出的当前的读音的汉字信息。
7、 如权利要求 6所述的装置, 其特征在于, 所述当前读音确定单元, 具体用于:
将所述汉字的多个读音显示给所述用户, 并将所述用户从显示的所述 多个读音中选择的读音确定为当前的读音;
根据所述用户输入的汉字的上下文, 从所述汉字的多个读音中确定所 述用户输入的汉字在所述上下文中的读音为当前的读音。
8、 如权利要求 6所述的装置, 其特征在于, 所述汉字信息确定单元, 具体用于: 根据预先保存的机内码与汉字信, ¾的对应关系, 确定所述机内码确定 字的汉字信息包括所述汉字的读音, 以及所述汉字的声调或 /和所述汉字的 笔画数目。
9、 如权利要求 6或 8所述的装置, 其特征在于, 所述汉字存储单元, 还用于: 括所述当前的读音的汉字信息, 并在保存所述用户输入的汉字的机内码以 及包括所述当前的读音的汉字信息时, 还保存是否显示所述用户输入的汉 字的包括所述当前的读音的汉字信息的确定信息。
10、 如权利要求 6或 8所述的装置, 其特征在于, 所述汉字存储单元, 具体用于:
根据所述汉字信息确定单元确定的汉字信息, 确定所述用户输入的汉
的汉字信息; 或
^^据所述机内码确定单元确定的用户输入的汉字的机内码, 确定所述 确定的所述排列顺序 , 保存所述汉字的机内码以及包括的读音为确定出的 当前的读音的汉字信息。
PCT/CN2012/000003 2011-01-04 2012-01-04 一种汉字信息的处理方法及汉字信息的处理装置 Ceased WO2012092845A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020137018463A KR20140018859A (ko) 2011-01-04 2012-01-04 한자 정보 처리 방법 및 한자 정보 처리 장치
US13/993,116 US20130289974A1 (en) 2011-01-04 2012-01-04 Chinese character information processing method and chinese character information processing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110000513.9 2011-01-04
CN201110000513.9A CN102567296B (zh) 2011-01-04 2011-01-04 一种汉字信息的处理方法及汉字信息的处理装置

Publications (2)

Publication Number Publication Date
WO2012092845A1 true WO2012092845A1 (zh) 2012-07-12
WO2012092845A8 WO2012092845A8 (zh) 2012-09-07

Family

ID=46412741

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/000003 Ceased WO2012092845A1 (zh) 2011-01-04 2012-01-04 一种汉字信息的处理方法及汉字信息的处理装置

Country Status (4)

Country Link
US (1) US20130289974A1 (zh)
KR (1) KR20140018859A (zh)
CN (1) CN102567296B (zh)
WO (1) WO2012092845A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853779A (zh) * 2012-12-04 2014-06-11 联想(北京)有限公司 一种信息处理方法及电子设备
CN104142909B (zh) * 2014-05-07 2016-04-27 腾讯科技(深圳)有限公司 一种汉字注音方法及装置
CN104317505A (zh) * 2014-10-12 2015-01-28 渤海大学 一种汉语拼音的输出系统及方法
WO2017078202A1 (ko) * 2015-11-06 2017-05-11 문기성 색성조 표시 시스템 및 그 방법

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1182234A (zh) * 1996-10-04 1998-05-20 吴胜远 文字信息处理方法和装置
CN1196535A (zh) * 1997-04-15 1998-10-21 英业达股份有限公司 读音符号自动标注的方法
CN1421803A (zh) * 2001-11-30 2003-06-04 英业达股份有限公司 可处理多音字的拼音/注音转换系统及方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1040278A (zh) * 1988-08-09 1990-03-07 于永源 汉字多语种术语数据库系统实现方法
CN1150275A (zh) * 1995-11-12 1997-05-21 林光荣 计算机文字-读音一体内码技术
CN1105979C (zh) * 1997-08-15 2003-04-16 英业达股份有限公司 汉语多音字的自动分析及处理的方法
CA2496872C (en) * 2004-03-17 2010-06-08 America Online, Inc. Phonetic and stroke input methods of chinese characters and phrases
CN100371987C (zh) * 2004-05-13 2008-02-27 深圳市移动核软件有限公司 使汉字自动发音的方法及使手机朗读短消息的方法
US20100235163A1 (en) * 2009-03-16 2010-09-16 Cheng-Tung Hsu Method and system for encoding chinese words
CN101930474A (zh) * 2010-09-14 2010-12-29 闫卫 汉字简易笔划检索方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1182234A (zh) * 1996-10-04 1998-05-20 吴胜远 文字信息处理方法和装置
CN1196535A (zh) * 1997-04-15 1998-10-21 英业达股份有限公司 读音符号自动标注的方法
CN1421803A (zh) * 2001-11-30 2003-06-04 英业达股份有限公司 可处理多音字的拼音/注音转换系统及方法

Also Published As

Publication number Publication date
WO2012092845A8 (zh) 2012-09-07
KR20140018859A (ko) 2014-02-13
US20130289974A1 (en) 2013-10-31
CN102567296A (zh) 2012-07-11
CN102567296B (zh) 2016-03-30

Similar Documents

Publication Publication Date Title
CN103064530B (zh) 输入处理方法和装置
US10152225B2 (en) Identification of candidate characters for text input
JP5496947B2 (ja) 機能提示システム、端末装置及びプログラム
US20080313182A1 (en) Methods, devices, and computer program products for predictive text entry in mobile terminals using multiple databases
WO2008037216A1 (fr) Méthode et dispositif de positionnement d'informations
CN107885826B (zh) 多媒体文件播放方法、装置、存储介质及电子设备
WO2014116262A1 (en) Communication using handwritten input
TW200910124A (en) Generalized language independent index storage system and searching method
WO2012092845A1 (zh) 一种汉字信息的处理方法及汉字信息的处理装置
CN1129837C (zh) 通用汉语拼音键盘设置装置
CN101287026A (zh) 利用手写识别功能执行快捷拨号的系统和方法
JP2013149273A (ja) 入力順非依存式文字入力機構を提供するための方法、装置、およびコンピュータプログラム
WO2014161292A1 (zh) 一种启动应用程序的方法、装置及终端
WO2015188437A1 (zh) 一种拼音输入方法及装置
CN102981607A (zh) 以预定义顺序排列文本项的计算机实现的方法
EP1698997A2 (en) Communication terminal and method of inserting symbols thereof
WO2010124510A1 (zh) 一种人机界面交互系统和方法
CN105573596A (zh) 一种播放列表的播放顺序调整方法及用户终端
TW200947241A (en) Database indexing algorithm and method and system for database searching using the same
CN111857362A (zh) 文字输入方法及文字输入装置
TW200820722A (en) Mobile phone capable of creating a quick launch item according a search result and related method
CN1371042A (zh) 字符输入方法及字符输入装置
JP5952642B2 (ja) 情報処理プログラム、情報処理装置、情報処理システム、及び情報処理方法
TWI269986B (en) Method and apparatus for data search with error tolerance
CN1190100C (zh) 字符输入方法及字符输入装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12732399

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13993116

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20137018463

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 12732399

Country of ref document: EP

Kind code of ref document: A1