Method and apparatus for text selection
First Claim
1. A method for text selection for use in a terminal having a touch screen, comprising:
- determining, in text for selection, a first display position of a start selection point and a first display position of an end selection point, wherein text between the start selection point and the end selection point is target text including at least one character;
partitioning the text for selection into a plurality of text blocks based on semantic meaning;
receiving a dragging operation on the touch screen corresponding to the start selection point or the end selection point;
changing, according to the dragging operation, the first display position of the start selection point or the first display position of the end selection point to a corresponding second display position in unit of a text block; and
adjusting, when at least one of the first display position of the start selection point and the first display position of the end selection point is located within a text block, the first display position of the start selection point and the first display position of the end selection point according to the text block, such that each of the first display position of the start selection point and the first display position of the end selection point is located at a nearest delimiter position, wherein the delimiter position is a position between two text blocks.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for text selection includes: determining, in text for selection, a first display position of a start selection point and a first display position of an end selection point, wherein text between the start selection point and the end selection point is target text including at least one character; partitioning the text for selection into a plurality of text blocks based on semantic meaning; receiving a dragging operation corresponding to the start selection point or the end selection point; and changing, according to the dragging operation, the first display position of the start selection point or the first display position of the end selection point to a corresponding second display position in unit of a text block.
-
Citations
13 Claims
-
1. A method for text selection for use in a terminal having a touch screen, comprising:
-
determining, in text for selection, a first display position of a start selection point and a first display position of an end selection point, wherein text between the start selection point and the end selection point is target text including at least one character; partitioning the text for selection into a plurality of text blocks based on semantic meaning; receiving a dragging operation on the touch screen corresponding to the start selection point or the end selection point; changing, according to the dragging operation, the first display position of the start selection point or the first display position of the end selection point to a corresponding second display position in unit of a text block; and adjusting, when at least one of the first display position of the start selection point and the first display position of the end selection point is located within a text block, the first display position of the start selection point and the first display position of the end selection point according to the text block, such that each of the first display position of the start selection point and the first display position of the end selection point is located at a nearest delimiter position, wherein the delimiter position is a position between two text blocks. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for text selection, comprising:
-
a touch screen; a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to; determine, in text for selection, a first display position of a start selection point and a first display position of an end selection point, wherein text between the start selection point and the end selection point is target text including at least one character; partition the text for selection into a plurality of text blocks based on semantic meaning; receive a dragging operation on the touch screen corresponding to the start selection point or the end selection point; change, according to the dragging operation, the first display position of the start selection point or the first display position of the end selection point to a corresponding second display position in unit of a text block; and adjust, when at least one of the first display position of the start selection point and the first display position of the end selection point is located within a text block, the first display position of the start selection point and the first display position of the end selection point according to the text block, such that each of the first display position of the start selection point and the first display position of the end selection point is located at a nearest delimiter position, wherein the nearest delimiter position is a position between two text blocks. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium having stored thereon, instructions that, when executed by a processor of a terminal having a touch screen, cause the terminal to perform a method for text selection comprising:
-
determining, in text for selection, a first display position of a start selection point and a first display position of an end selection point, wherein text between the start selection point and the end selection point is target text including at least one character; partitioning the text for selection into a plurality of text blocks based on semantic meaning; receiving a dragging operation on the touch screen corresponding to the start selection point or the end selection point; changing, according to the dragging operation, the first display position of the start selection point or the first display position of the end selection point to a corresponding second display position in unit of a text block; and adjusting, when at least one of the first display position of the start selection point and the first display position of the end selection point is located within a text block, the first display position of the start selection point and the first display position of the end selection point according to the text block, such that each of the first display position of the start selection point and the first display position of the end selection point is located at a nearest delimiter position, wherein the delimiter position is a position between two text blocks.
-
Specification