201042501 六、發明說明: 【發明所屬之技術領域】 ' 本發明涉及一種輸入系統及方法,尤其涉及一種應用 於電子裝置中的單詞預測輸入系統及方法。 【先前技術】 隨著信息技術的飛速發展,手機已經是現代社會中必 不可少的通訊工具,廣大用戶可利用手機進行通話、發送 短信等操作。當前,國内的多數手機都具有文字預測輸入 〇 的功能,當用戶輸入一個文字的時候,手機會將以該輸入 文字爲開頭的組詞、成語等提供給用戶進行快捷的選擇。 目前,操作便捷的觸摸屏手機也受到越來越多人的青 睞,同樣,大多數觸摸屏手機和一般手機一樣,也都具有 文字預測輸入的功能,然而,在輸入單詞時,很多觸摸屏 手機沒有提供相應於用戶已輸入的字母爲開頭的預測單 詞,導致用戶必須費時費力地尋找鍵盤或虛擬按鍵上所對 Q 應的字母才能逐個選擇幷輸入下一個字母,幷且,用戶往 往在拼寫單詞時會因爲對單詞的不太熟悉而有猜測性的 輸入,從而導致輸入錯誤、反復輸入的問題,這樣不僅浪 費時間,並且輸入效率低下。 【發明内容】 鑒於以上内容,有必要提供一種單詞預測輸入系統及 方法,其可根據用戶已輸入的字母預測下一個可輸入的字 母,幷以不同的按鍵顯示方式提示用戶該下一個可輸入的 字母。 4 201042501 一種單詞預測輸入系統,運行於電子裝置上,所述的 * 電子裝置包括儲存裝置及觸摸屏,所述的儲存裝置中包括 ' 英文單詞資料庫,該系統包括:構建模組,用於構建於所 述觸摸屏上顯示的虛擬按鍵圖;輸入模組,用於當所述電 子裝置進入編輯狀態後於所述觸摸屏上顯示所構建的虛 擬按鍵圖,幷接收用戶所輸入的字母;檢索模組,用於根 據已輸入的字母檢索所述英文單詞資料庫,幷判斷所述英 文單詞資料庫是否包括以該已輸入字母開頭的單詞;確認 ® 模組,用於在所述英文單詞資料庫檢索出包括以該已輸入 字母開頭的單詞時,確認該檢索出的單詞中位於該已輸入 字母後的下一個字母從而確認預測字母,幷確認該預測字 母所在的虛擬按鍵;顯示模組,用於令所確認的預測字母 所在的虛擬按鍵與其它虛擬按鍵以不同的方式顯示。 一種單詞預測輸入方法,該方法應用於包括儲存有英 文單詞資料庫的儲存裝置及觸摸屏的電子裝置上,該方法 〇 包括如下步驟:構建於所述觸摸屏上顯示的虛擬按鍵圖; 當所述電子裝置進入編輯狀態後於所述觸摸屏上顯示所 構建的虛擬按鍵圖;接收用戶所輸入的字母;根據已輸入 的字母,檢索所述儲存裝置中的英文單詞資料庫,幷判斷 所述英文單詞資料庫是否包括以該已輸入字母開頭的單 詞;若從所述英文單詞資料庫檢索出包括以該已輸入字母 開頭的單詞時,確認該檢索出的單詞中位於該已輸入字母 後的下一個字母,從而確認預測字母;確認所述預測字母 所在的虛擬按鍵;令所確認的預測字母所在的虛擬按鍵與 5 201042501 其它虛擬按鍵以不同的方式顯示。 ' 相較於習知技術,所述單詞預測輸入的系統及方法, •可以根據用戶已輸入的字母預測下一個可輸入的字母,幷 以不同的按鍵顯系方式权示用戶該下一個可輸入的字 母,提高了用戶在電子裝置中輪入單詞的效率及準確性。 【實施方式】 如圖1所示,是本發明單詞預測輸入系統的較佳實施 例的應用環境架構圖。所述的單詞預測輸入系統10(下文 〇 簡稱“預測輸入系統10”)運行於電子裝置1上,該電子裝 置1包括儲存裝置12及觸摸屏14。 所述的儲存裝Ϊ 12 ’可以是所述電子裝置1的内存, 還可以是可外接於該電子裝置1的儲存卡,如SM卡(Smart Media Card ’ 智能媒體卡)、SD 卡(secure Digital Card, 安全數字卡)等。所述的儲存裝置12用於儲存各類數據’ 例如,英文單詞資料庫120。201042501 VI. Description of the Invention: [Technical Field of the Invention] The present invention relates to an input system and method, and more particularly to a word prediction input system and method applied to an electronic device. [Prior Art] With the rapid development of information technology, mobile phones have become an indispensable communication tool in modern society. Users can use mobile phones to make calls and send text messages. At present, most mobile phones in China have the function of text prediction input ,. When the user inputs a text, the mobile phone will provide the user with a quick choice by using the group words and idioms beginning with the input text. At present, the touch screen mobile phone with convenient operation is also favored by more and more people. Similarly, most touch screen mobile phones have the function of predicting text input as well as general mobile phones. However, when inputting words, many touch screen mobile phones do not provide corresponding The predicted word that begins with the letter that the user has entered causes the user to find the letter of the Q on the keyboard or virtual button to input the next letter one by one. Moreover, the user often spells the word because Unfamiliar with words and speculative input, resulting in input errors, repeated input problems, which not only wastes time, but also inefficient input. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a word prediction input system and method, which can predict the next inputtable letter according to the letter that the user has input, and prompt the user to input the next input in different key display manners. letter. 4 201042501 A word predictive input system, running on an electronic device, the * electronic device includes a storage device and a touch screen, the storage device includes an 'English word database, the system includes: a building module for constructing a virtual button map displayed on the touch screen; the input module is configured to display the constructed virtual button map on the touch screen after the electronic device enters an edit state, and receive a letter input by the user; Searching for the English word database based on the entered letters, determining whether the English word database includes words beginning with the entered letter; and confirming the module for searching in the English word database When the word including the input letter is included, the next letter after the input letter is confirmed in the retrieved word to confirm the predicted letter, and the virtual button where the predicted letter is located is confirmed; the display module is used for The virtual button where the predicted letter is confirmed is displayed in a different manner from the other virtual buttons. A word prediction input method is applied to an electronic device including a storage device storing an English word database and a touch screen, the method comprising the steps of: constructing a virtual button map displayed on the touch screen; After the device enters the editing state, displaying the constructed virtual button map on the touch screen; receiving the letters input by the user; searching the English word database in the storage device according to the entered letters, and determining the English word data Whether the library includes a word beginning with the entered letter; if a word including the entered letter is retrieved from the English word database, confirming the next letter of the retrieved word after the entered letter To confirm the predicted letter; to confirm the virtual button where the predicted letter is located; to make the virtual button of the confirmed predicted letter appear differently from the other virtual keys of 201042501. Compared with the prior art, the system and method for predicting the input of the word, • predicting the next inputtable letter according to the letter that the user has input, and displaying the next inputable by the user in different key display manners. The letters improve the efficiency and accuracy of the user's rotation of words in the electronic device. [Embodiment] As shown in Fig. 1, it is an application environment architecture diagram of a preferred embodiment of the word prediction input system of the present invention. The word prediction input system 10 (hereinafter referred to as "predictive input system 10") runs on the electronic device 1, and the electronic device 1 includes a storage device 12 and a touch screen 14. The storage device 12' may be a memory of the electronic device 1, or may be a memory card externally connected to the electronic device 1, such as a SIM card (Smart Media Card), an SD card (secure Digital) Card, secure digital card), etc. The storage device 12 is configured to store various types of data 'for example, the English word database 120.
所述的預測輸入系統10包括構建模組1〇〇、輸入模組 1〇2、檢索模組104 ’確認模組1〇6及顯示模組ι〇8。 所述的構建模組100 ’用於構建一個於所述觸摸屏 上顯示的虛擬按_。如_ 2所示,該虛擬按_中的按 鍵分布及排列與計算機鍵盤上的字母按鍵㈣❹相 似’實際應时料局限,2卿的虛擬按鍵圖。 所述的輸入模組102, 輯狀態後於所述觸摸屏14 幷接收用戶所輸入的字母。 用於當所述電子裝置1進入編 上顯示所構建的虛擬按鍵圖, 用戶可透過點擊所述虛擬按鍵 6 201042501 圖上的按鍵進行字母輸入,也可利用觸控筆或者手指直接 在所述觸摸屏14上書寫字母。 • 所述的檢索模組104,用於根據已輸入的字母檢索所 述儲存裝置12中的英文單詞資料庫120,幷判斷所述英文 單詞資料庫120是否包括以該已輸入字母開頭的單詞。 所述的檢索模組104,還用於在所述英文單詞資料庫 120不包括以該已輸入字母開頭的單詞時返回一個提示信 息給用戶,以提醒用戶是否輸入錯誤。例如,可在輸入界 ® 面中顯示該提示信息“無法檢索到相應的單詞”,用戶可繼 續輸入或者對已輸入字母進行修改。 所述的確認模組106,用於在所述英文單詞資料庫120 檢索出包括以該已輸入字母開頭的單詞時,確認在該檢索 出的單詞中位於該已輸入字母後的下一個字母。在本較佳 實施方式中,該確認的下一個字母簡稱爲“預測字母”。 所述的確認模組106,還用於確認該預測字母所在的 Q 虛擬按鍵(於下文詳細舉例說明)。預測字母可以是多個 不同的字母,因此,所確認的虛擬按鍵也可以是多個。 所述的顯示模組108,用於令所確認的預測字母所在 的虛擬按鍵與其它虛擬按鍵以不同的方式顯示,從而使用 戶可輕易發現所述預測字母所在的虛擬按鍵幷從中選擇 所需輸入的字母。例如,可以將所確認的虛擬按鍵上的字 母進行亮度加深、浮凸於所述虛擬按鍵圖、或以不同顏色 顯示等方式使所確認的虛擬按鍵區別於其它虛擬按鍵。 例如,參照圖2所示,所構建虛擬按鍵圖中每個虛擬 7 201042501 按鍵上只顯示單個字母,若已輸入的字母是Teac,所述的 檢索模組104從所述英文單詞資料庫120檢索出如下以 Teac 開頭的單詞:teacake、teach、teacher、teacup,所述 的確認模組106確認Teac後的預測字母爲:a、h、u,幷 確認上述預測字母分別所在的虛擬按鍵“a”、“h”、“u”,然 後所述的顯示模組108以黑色顯示該所確認的虛擬按鍵 “a”、“h”、“u”,以此來提示用戶可從中選擇待輸入的下一 個字母。 此外,所述的預測系統還可包括判斷模組109,用於 判斷當前單詞是否輸入完畢。若已經輸入完畢,例如,用 戶輸入標點符號、按下空格鍵或者退出編輯狀態,則確認 爲當前單詞已經輸入完畢;否則,視爲未輸入完畢。 如圖3所示,是本發明單詞預測輸入的方法較佳實施 例的流程圖。首先,步驟S110,所述的構建模組100構建 一個於所述觸摸屏14上顯示的虛擬按鍵圖。 步驟S111,當所述電子裝置1進入編輯狀態後,所述 的構建模組100於所述觸摸屏14上顯示所構建的虛擬按 鍵圖,幷接收用戶所輸入的字母。 步驟S112,所述的檢索模組104根據已輸入的字母檢 索所述儲存裝置12中的英文單詞資料庫120,幷判斷所述 英文單詞資料庫120是否包括以該已輸入字母開頭的單 詞。若從所述儲存裝置12中的英文單詞資料庫120中檢 索出包括以該已輸入字母開頭的單詞,則執行步驟S113, 若無法從所述儲存裝置12中的英文單詞資料庫120中檢 201042501 索出以該已輸入字母開頭的單詞,則執行步驟S114。 — 步驟S113,所述的確認模組106確認該檢索出的單詞 ’ 中位於該已輸入字母後的下一個字母,即“預測字母”。 步驟S114,所述的檢索模組104返回一個提示信息給 用戶,以提醒用戶是否輸入錯誤,例如,可在輸入界面中 顯示該提示信息“無法檢索到相應的單詞”,然後,流程轉 至步驟S117。 步驟S115,所述的確認模組106確認所述預測字母所 ® 在的虛擬按鍵。 步驟S116,所述的顯示模組108令所確認的預測字母 所在的虛擬按鍵與其它虛擬按鍵以不同的方式顯不,從而 使用戶可輕易發現所述預測字母所在的虛擬按鍵幷從中 選擇所需輸入的字母。 步驟S117,所述的判斷模組109判斷當前單詞是否輸 入完畢。若已經輸入完畢,例如,用戶輸入標點符號、按 Q 下空格鍵或者退出編輯狀態,則結束本流程;否則,若未 輸入完畢,則流程返回步驟S111,繼續接收用戶所輸入的 字母。 綜上所述,本發明符合發明專利要件,爰依法提出專 利申請。惟,以上所述者僅爲本發明之較佳實施方式,本 發明之範圍幷不以上述實施方式爲限,舉凡熟悉本案技藝 之人士援依本發明之精神所作之等效修飾或變化,皆應涵 蓋於以下申請專利範圍内。 【圖式簡單說明】 201042501 圖1是本發明單詞預測輸入系統的較佳實施例的應用 ί哀境架構圖。 圖2是本發明單詞預測輸入系統的較佳實施例的虛擬 按鍵示意圖。 圖3是本發明單詞預測輸入方法的較佳實施例的流程 圖。 【主要元件符號說明】The predictive input system 10 includes a build module 1 , an input module 1 2 , a search module 104 ‘ confirmation module 1 〇 6 , and a display module ι 8 . The building module 100' is configured to construct a virtual button _ displayed on the touch screen. As shown in _ 2, the distribution and arrangement of the buttons in the virtual button is similar to the letter button (4) on the computer keyboard. Actually, the virtual button map of 2 Qing. The input module 102 receives the letters input by the user on the touch screen 14 after the state. For the virtual button map constructed by the electronic device 1 to enter the display, the user can input the letter by clicking the button on the virtual button 6 201042501, or directly on the touch screen by using a stylus or a finger. Write letters on the 14th. The search module 104 is configured to search the English word database 120 in the storage device 12 based on the entered letters, and determine whether the English word database 120 includes words beginning with the input letter. The search module 104 is further configured to return a prompt message to the user when the English word database 120 does not include a word beginning with the input letter to remind the user whether to input an error. For example, the prompt “Cannot retrieve the corresponding word” can be displayed in the input field ®, and the user can continue to input or modify the entered letters. The confirmation module 106 is configured to, when the English word database 120 searches for a word including the input letter, confirm the next letter after the input letter in the searched word. In the preferred embodiment, the next letter of the confirmation is simply referred to as "predicted letter." The confirmation module 106 is further configured to confirm the Q virtual button where the predicted letter is located (illustrated in detail below). The predicted letter can be a plurality of different letters, so the number of virtual keys that are confirmed can also be multiple. The display module 108 is configured to display the virtual button where the confirmed predicted letter is located in a different manner from other virtual buttons, so that the user can easily find the virtual button where the predicted letter is located, and select the desired input from the virtual button. Letters. For example, the confirmed virtual keys may be distinguished from other virtual keys by brightening the letters on the confirmed virtual keys, embossing the virtual key maps, or displaying them in different colors. For example, referring to FIG. 2, only one single letter is displayed on each virtual 7 201042501 button in the constructed virtual button map. If the entered letter is Teac, the search module 104 retrieves from the English word database 120. The following words starting with Teac: teacake, teach, teacher, teacup, the confirmation module 106 confirms that the predicted letters after Teac are: a, h, u, and confirm the virtual button "a" where the predicted letters are respectively located. "h", "u", and then the display module 108 displays the confirmed virtual keys "a", "h", "u" in black, thereby prompting the user to select the next to be input. one letter. In addition, the prediction system may further include a determining module 109 for determining whether the current word is input. If the input has been completed, for example, if the user enters punctuation, presses the space bar, or exits the edit state, it is confirmed that the current word has been input; otherwise, it is considered as not input. As shown in Fig. 3, it is a flow chart of a preferred embodiment of the method for predictive input of words according to the present invention. First, in step S110, the building module 100 constructs a virtual button map displayed on the touch screen 14. In step S111, after the electronic device 1 enters the editing state, the building module 100 displays the constructed virtual button map on the touch screen 14 and receives the letters input by the user. In step S112, the search module 104 retrieves the English word database 120 in the storage device 12 based on the entered letters, and determines whether the English word database 120 includes a word beginning with the input letter. If the word including the input letter is retrieved from the English word database 120 in the storage device 12, step S113 is performed, if the English word database 120 in the storage device 12 cannot be checked 201042501 When the word starting with the input letter is extracted, step S114 is performed. - In step S113, the confirmation module 106 confirms the next letter of the retrieved word 'before the input letter, that is, "predicted letter". In step S114, the retrieval module 104 returns a prompt information to the user to remind the user whether to input an error. For example, the prompt information “cannot retrieve the corresponding word” can be displayed in the input interface, and then the flow proceeds to the step. S117. In step S115, the confirmation module 106 confirms the virtual button of the predicted letter. In step S116, the display module 108 causes the virtual button where the confirmed predicted letter is located to be displayed in a different manner from other virtual buttons, so that the user can easily find the virtual button where the predicted letter is located. Enter the letter. In step S117, the determining module 109 determines whether the current word is input. If the input has been completed, for example, the user inputs a punctuation mark, presses the Q space bar, or exits the edit state, the flow ends; otherwise, if the input is not completed, the flow returns to step S111 to continue receiving the letter input by the user. In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or changes made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing an application of a preferred embodiment of the word predictive input system of the present invention. Figure 2 is a schematic illustration of a virtual key of a preferred embodiment of the word predictive input system of the present invention. Fig. 3 is a flow chart showing a preferred embodiment of the word predictive input method of the present invention. [Main component symbol description]
電子裝置 1 預測輸入系統 10 構建模組 100 輸入模組 102 檢索模組 104 確認模組 106 顯示模組 108 判斷模組 109 儲存裝置 12 英文單詞資料庫 120 觸摸屏 14 構建虛擬按鍵圖 S110 接收輸入的字母 S111 判斷英文單詞資料庫是否包括以該已輸入字母開頭 的單詞 S112 確認預測字母 S113 返回提示信息 S114 201042501 確認所述預測字母所在的虚擬按鍵 以不同的方式顯示所確認的虛擬按鍵 當前單詞是否輸入完畢 S115 5116 5117Electronic device 1 Predictive input system 10 Construction module 100 Input module 102 Search module 104 Confirmation module 106 Display module 108 Judgment module 109 Storage device 12 English word database 120 Touch screen 14 Build virtual button map S110 Receive input letters S111: determining whether the English word database includes the word S112 starting with the input letter, confirming the predicted letter S113, returning the prompt information S114 201042501, confirming that the virtual button where the predicted letter is located displays the confirmed virtual key current word input in a different manner. S115 5116 5117
1111