Legal claims defining the scope of protection, as filed with the USPTO.
1. A method for parsing a content of a document, adapted to a handheld electronic apparatus, the method comprising: activating a browser to download the document from a webpage for displaying the content of the document, wherein the browser supports a text parsing function; disabling the text parsing function and parsing the content of the document according to a markup language rule to generate an object parsed result; enabling the text parsing function and removing the object parsed result when a touch event is detected; parsing the content to find out text groups according to a preset pattern database and re-parsing the content of the document according to the markup language rule to generate a full parsed result when the touch event is detected and after removing the object parsed result, wherein the preset pattern database comprises a plurality of specific patterns, and a format of each of the text groups conforms to one of the specific patterns; determining whether a touch coordinates matches a corresponding position of a specific text group of the text groups; and performing a corresponding action related to the specific text group when the touch coordinates matches the corresponding position of the specific text group.
2. The method as claimed in claim 1 , wherein the step of parsing the content of the document according to the markup language rule to generate the object parsed result comprises: transforming the content of the webpage into an object model; parsing the object model according to the markup language rule; and generating the object parsed result.
3. The method as claimed in claim 2 , wherein after the step of transforming the content of the webpage into the object model, further comprises: removing the object parsed result if the object parsed result has existed.
4. The method as claimed in claim 1 , wherein after the step of determining whether the touch coordinates matches the corresponding position of the specific text group of the text groups, further comprises: removing the full parsed result when the touch coordinates does not match the corresponding position of the specific text group.
5. The method as claimed in claim 1 , wherein after the step of performing the corresponding action related to the specific text group, further comprises: removing the full parsed result.
6. The method as claimed in claim 1 , wherein after the step of parsing the content to find out the text groups, further comprises: detecting a touch up event; and extracting the touch coordinates of the touch up event.
7. The method as claimed in claim 1 , further comprising: activating a client application for displaying the content of the document.
8. The method as claimed in claim 7 , wherein when the touch event is detected, further comprises: copying the content by the client application to a storage unit; and enabling a text parsing function for parsing the copied content to find out the text groups according to the preset pattern database.
9. The method as claimed in claim 7 , wherein when the touch event is detected, further comprises: extracting the touch coordinates of the touch event.
10. The method as claimed in claim 1 , wherein the specific patterns comprise e-mail address pattern, telephone number pattern, webpage address pattern and geographic location pattern.
11. A handheld electronic apparatus, comprising: a touch display; a storage unit, configured to store a plurality of program instructions; a parsing unit, configured to parse a content of a document; and a processing unit, coupled to the touch display, the storage unit and the parsing unit, and configured to execute the program instructions to execute a parsing procedure, comprising: activating a browser to download the document from a webpage for displaying the content of the document, wherein the browser supports a text parsing function; disabling the text parsing function and parsing the content of the document according to a markup language rule to generate an object parsed result; enabling the text parsing function and removing the object parsed result when a touch event is detected; parsing the content to find out text groups according to a preset pattern database and re-parsing the content of the document according to the markup language rule to generate a full parsed result when the touch event is detected and after removing the object parsed result, wherein the preset pattern database comprises a plurality of specific patterns, and a format of each of the text groups conform to one of the specific patterns; determining whether a touch coordinates matches a corresponding position of a specific text group of the text groups; and performing a corresponding action related to the specific text group when the touch coordinates matches the corresponding position of the specific text group.
12. The handheld electronic apparatus as claimed in claim 11 , wherein the step of parsing the content of the document according to the markup language rule to generate the object parsed result comprises: transforming the content of the webpage into an object model; parsing the object model according to the markup language rule; and generating the object parsed result.
13. The handheld electronic apparatus as claimed in claim 11 , wherein the parsing procedure further comprises: removing the full parsed result when the touch coordinates does not match the corresponding position of the specific text group.
14. The handheld electronic apparatus as claimed in claim 11 , wherein the parsing procedure further comprises: detecting a touch up event after parsing the content to find out the text groups; and extracting the touch coordinates of the touch up event.
15. The handheld electronic apparatus as claimed in claim 11 , wherein the parsing procedure further comprises: activating a client application for displaying the content of the document; copying the content by the client application to the storage unit; and enabling a text parsing function for parsing the copied content to find out the text groups according to the preset pattern database.
16. The handheld electronic apparatus as claimed in claim 15 , wherein the parsing procedure further comprises: extracting the touch coordinates of the touch event when the touch event is detected.
17. A non-transitory computer-readable medium storing a plurality of program instructions for loading into a handheld electronic device to execute the following steps: activating a browser to download the document from a webpage for displaying the content of the document, wherein the browser supports a text parsing function; disabling the text parsing function and parsing the content of the document according to a markup language rule to generate an object parsed result; enabling the text parsing function and removing the object parsed result when a touch event is detected; parsing the content to find out text groups according to a preset pattern database and re-parsing the content of the document according to the markup language rule to generate a full parsed result when the touch event is detected and after removing the object parsed result, wherein the preset pattern database comprises a plurality of specific patterns, and a format of each of the text groups conforms to one of the specific patterns; determining whether a touch coordinates matches a corresponding position of a specific text group of the text groups; and performing a corresponding action related to the specific text group when the touch coordinates matches the corresponding position of the specific text group.
Unknown
December 22, 2015
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.