1. Technical Field
The present disclosure relates to electronic devices, and particularly, to an electronic device capable of searching and displaying selected text, and a method employed by the electronic device.
2. Description of the Related Art
Electronic devices, such as electronic book readers, with electronic documents (e.g., digital images, digital texts) reading functions are capable of searching a target content in an electronic document which is read by users, and marking the searched target content to be displayed in different state, such as different colors, relative to the other content of the electronic document. Due to the target content being distributed in different pages of the electronic device, in order to know the location or the context of the target content, users should flip through the pages of the electronic document to find the target content with different status, thus the current reading progress of user is interrupted.
The components in the drawing are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The storage unit 13 stores a variety of text documents. The text documents may include, but are not limited to, audio files, videos files, digital images, texts. The central processing unit 12 includes a touch determining module 120, a control module 121, a searching module 122, and a split-screen control module 123.
The touch display unit 11 includes a touch detecting module 110 generating touch signals in response to a touch by a user on the touch display unit 11. The touch determining module 120 determines touch positions according to the touch signals generated by the touch detecting module 110. The control module 121 generates a first window on the touch display unit 11 to display a text document when a text document is opened, determine a selected text of the displayed text document by a user according to the touch positions determined by the touch determining module 120, and marks the target content in different state, such as in darker color.
The searching module 122 searches occurrences of the selected text in the displayed text document in the storage unit 13 according to the selected text determined by the control module 121. The control module 121 further stores the searched text in the storage unit 13 in a temporary document. In the embodiment, the occurrences of the selected text are stored in a searching sequence.
Referring to
The spit-screen control module 123 displays a second window on the first window with a size thereof is smaller than that of the first window when the searched text of the selected text is stored in the storage unit 13. The control module 121 obtains the searched text of the selected text from the storage unit 13 and displays each occurrence of the selected text on the second window. In the embodiment, the first window covers the screen area of the touch display unit 11. The second window is displayed on the first window, and the part of the content of the first window under the second window is covered by the second window.
Referring to
In step S500, the control module 121 generates the first window on the touch display unit 11 to display the text document when the text document is opened.
In step S501, the touch detecting unit 110 generates touch signals in response to the touch by a user on the first window displayed on the touch display unit 11.
In step S502, the touch determining module 120 determines the touch positions according to the touch signals generated by the touch detecting module 110, and the control module 121 determines the selected text of the displayed text document according to the touch positions determined by the touch determining module 120.
The control module 121 further marks the target content in different state, such as in darker color.
In step S503, the control module 121 generates the prompt message to prompt a user to determine whether to search the selected text. For example, the control module 121 may display a dialog box to show the prompt message on the touch display unit 11. If yes, the process goes to step S504, otherwise, the process returns to step S501.
In step S504, the control module 121 controls the searching module 122 to search the occurrences of the selected text in the text document, and stores the searched text in the storage unit 13.
In step S505, the spit-screen control module 123 displays the second window on the first window with a size thereof smaller than that of the first window.
In step S506, the control module 121 obtains the searched text from the data storage 13, and displays each occurrence of the searched selected text on the second window. In the embodiment, the first window covers the screen of the touch display unit 11. The second window is displayed on the first window, and the part of the content of the first window under the second window is covered by the second window.
In step S507, when the touch display unit 11 is touched again, the touch determining module 120 determines the touch position based on the touch signals generated by the touch detecting module 110.
In step S508, the control module 121 determines whether the touch is on the first window or the second window according to the touch positions. If yes, the process goes to step S509, otherwise, the process goes to step S510.
In step S509, the control module 121 updates the content displayed on the first window in response to the touch.
In step S510, the control module 121 displays next occurrence of the selected text on the second window in response to the touch.
It is understood that the present disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
2011 1 0305748 | Oct 2011 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20130085843 | Dyor et al. | Apr 2013 | A1 |
20130085855 | Dyor et al. | Apr 2013 | A1 |
20130103712 | Li et al. | Apr 2013 | A1 |
20130104090 | Yu et al. | Apr 2013 | A1 |
Number | Date | Country |
---|---|---|
102096721 | Jun 2011 | CN |
200701016 | Jan 2007 | TW |
Entry |
---|
Office 2010, Search or move around in a document using the navigation pane, published by office.microsoft.com in Jun. 26, 2010, pp. 1-3. |
Number | Date | Country | |
---|---|---|---|
20130091474 A1 | Apr 2013 | US |