Document Parsing for Touch-Activated Content Actions
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Users face inconvenience when trying to perform operations on specific structures like telephone numbers, e-mail addresses, and webpage addresses in computer documents, as they need to manually copy these contents, which is not an efficient way to operate an electronic device.
Innovation Solution
A method for parsing document content in handheld electronic apparatuses that detects touch events, uses a preset pattern database to identify specific text groups, and performs corresponding actions when the touch coordinates match these groups, including activating browsers or client applications to execute relevant actions automatically.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If manual copying is used to perform operations on specific structures, then operation flexibility is maintained, but operation efficiency and convenience deteriorate
Solution Approach 1:
The system automatically detects and identifies specific structures (telephone numbers, email addresses, webpage addresses) in documents without requiring user intervention. The parsing function autonomously analyzes document content and performs operations based on detected patterns, making the system serve itself rather than requiring manual user actions for each operation.
Solution Approach 2:
The preset pattern database is pre-configured with various structures (telephone numbers, email addresses, webpage addresses) before the user needs them. When a document is displayed, the system proactively parses and identifies these structures in advance, so that when the user touches the screen, the operation is already prepared and can be executed immediately without manual copying or searching.
2Ease of operation
If automatic parsing is implemented to improve operation convenience, then system complexity increases
Solution Approach 1:
The parsing function is segmented into distinct components: a preset pattern database that stores various structure patterns, a parsing engine that detects these patterns in document content, and an action execution module that performs operations based on detected structures. This segmentation allows each component to be independently managed and optimized, reducing overall system complexity while maintaining automatic parsing functionality.
Solution Approach 2:
The preset pattern database acts as an intermediary between the document content and the parsing logic. Instead of implementing complex pattern recognition algorithms directly in the parsing engine, the system uses a pre-configured database of patterns as a mediator, simplifying the parsing process and reducing the computational complexity of the main system while still enabling automatic detection of various structures.
3Measurement precision
If text parsing function is always enabled to ensure accurate detection, then processing time and energy consumption increase
Solution Approach 1:
The text parsing function operates periodically rather than continuously - it is enabled only when specific conditions are met (when a document is displayed or when a touch event occurs). This periodic activation ensures accurate detection when needed while minimizing processing time and energy consumption during normal operation, resolving the contradiction between detection accuracy and processing efficiency.
Data Source
AI summary
A method for parsing a content of a document, a handheld electronic apparatus and a computer-readable medium thereof are provided. The method comprises the following steps: displaying the content of the document; parsing the content to find out text groups according to a preset pattern database when a touch event is detected, 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; performing a corresponding action related to the specific text group when the touch coordinates matches the corresponding position of the specific text group.


