Loading...
Please wait, while we are loading the content...
Method and Apparatus for Text Selection
| Content Provider | The Lens |
|---|---|
| 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. |
| Related Links | https://www.lens.org/lens/patent/009-627-489-234-183/frontpage |
| Language | English |
| Publisher Date | 2019-05-21 |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Patent |
| Jurisdiction | United States of America |
| Date Applied | 2017-06-16 |
| Agent | Finnegan, Henderson, Farabow, Garrett & Dunner Llp |
| Applicant | Beijing Xiaomi Mobile Software Co Ltd |
| Application No. | 201715625158 |
| Claim | 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. The method of claim 1 , wherein partitioning the text for selection into a plurality of text blocks based on the semantic meaning comprises: determining a semantic granularity to be one of a word, a sentence, or a paragraph; and partitioning the text for selection into the plurality of text blocks conforming to the semantic granularity based on the semantic meaning. The method of claim 2 , wherein 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 the corresponding second display position comprises one or more the following: moving forward the first display position of the start selection point by a first number of text blocks to obtain the corresponding second display position, when the dragging operation is to drag forward the start selection point; moving backward the first display position of the start selection point by a second number of text blocks to obtain the corresponding second display position, when the dragging operation is to drag backward the start selection point; moving forward the first display position of the end selection point by a third number of text blocks to obtain the corresponding second display position, when the dragging operation is to drag forward the end selection point; and moving backward the first display position of the end selection point by a fourth number of text blocks to obtain the corresponding second display position, when the dragging operation is to drag backward the end selection point; wherein the dragging forward is at least one of dragging leftward horizontally and dragging upward vertically, and the dragging backward is at least one of dragging rightward horizontally and dragging downward vertically. The method of claim 2 , wherein 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 into the corresponding second display position comprises: obtaining an ending position of the dragging operation; search for a delimiter position nearest to the ending position, wherein the delimiter position is a position between two text blocks; and determining the delimiter position as the corresponding second display position of the start selection point or the second display position of the end selection point. The method of claim 1 , wherein 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 the corresponding second display position comprises performing at least one of: moving forward the first display position of the start selection point by a first number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging forward the start selection point; moving backward the first display position of the start selection point by a second number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging backward the start selection point; moving forward the first display position of the end selection point by a third number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging forward the end selection point; and moving backward the first display position of the end selection point by a fourth number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging backward the end selection point; wherein the dragging forward is at least one of dragging leftward horizontally and dragging upward vertically, and the dragging backward is at least one of dragging rightward horizontally and dragging downward vertically. The method of claim 1 , wherein 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 into the corresponding second display position comprises: obtaining an ending position of the dragging operation; searching for a delimiter position nearest to the ending position, wherein the delimiter position is a position between two text blocks; and determining the delimiter position as the corresponding second display position of the start selection point or the second display position of the end selection point. 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. The apparatus of claim 7 , wherein the processor is further configured to: determine a semantic granularity to be one of a word, a sentence, or a paragraph; and partition the text for selection into the plurality of text blocks conforming to the semantic granularity based on the semantic meaning. The apparatus of claim 8 , wherein the processor is further configured to perform at least one of: moving forward the first display position of the start selection point by a first number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging forward the start selection point; moving backward the first display position of the start selection point by a second number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging backward the start selection point backward; moving forward the first display position of the end selection point by a third number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging forward the end selection point; moving backward the first display position of the end selection point by a fourth number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging backward the end selection point backward; wherein the dragging forward is at least one of dragging leftward horizontally and dragging upward vertically, and the dragging backward is at least one of dragging rightward horizontally and dragging downward vertically. The apparatus of claim 8 , wherein the processor is further configured to: obtain an ending position of the dragging operation; search for a delimiter position nearest to the ending position, wherein the delimiter position is a position between two text blocks; and determine the delimiter position as the corresponding second display position of the start selection point or the second display position of the end selection point. The apparatus of claim 7 , wherein the processor is further configured to perform at least one of: moving forward the first display position of the start selection point by a first number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging forward the start selection point; moving backward the first display position of the start selection point by a second number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging backward the start selection point backward; moving forward the first display position of the end selection point by a third number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging forward the end selection point; and moving backward the first display position of the end selection point by a fourth number of text blocks to obtain the corresponding second display position, when the dragging operation is dragging backward the end selection point backward; wherein the dragging forward is at least one of dragging leftward horizontally and dragging upward vertically, and the dragging backward is at least one of dragging rightward horizontally and dragging downward vertically. The apparatus of claim 7 , wherein the processor is further configured to: obtain an ending position of the dragging operation; search for a delimiter position nearest to the ending position, wherein the delimiter position is a position between two text blocks; and determine the delimiter position as the corresponding second display position of the start selection point or the second display position of the end selection point. 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. |
| CPC Classification | ELECTRIC DIGITAL DATA PROCESSING |
| Examiner | William D Titcomb |
| Extended Family | 019-538-647-495-070 030-515-813-757-432 100-047-438-697-548 009-627-489-234-183 145-278-552-818-148 057-153-637-594-121 146-789-072-141-837 |
| Patent ID | 10296201 |
| Inventor/Author | Wang Xi Xu Shengqiang Xie Ran Yi Haiyang |
| IPC | G06F3/0486 G06F3/0481 G06F3/0484 G06F3/0488 G06F17/24 G06F17/27 |
| Status | Active |
| Owner | Beijing Xiaomi Mobile Software Co. Ltd |
| Simple Family | 019-538-647-495-070 030-515-813-757-432 100-047-438-697-548 009-627-489-234-183 145-278-552-818-148 057-153-637-594-121 146-789-072-141-837 |
| CPC (with Group) | G06F3/0483 G06F3/04842 G06F3/04847 G06F3/0486 G06F3/0488 G06F3/04883 G06F3/04812 G06F40/284 G06F40/166 G06F3/0484 G06F40/20 |
| Issuing Authority | United States Patent and Trademark Office (USPTO) |
| Kind | Patent/New European patent specification (amended specification after opposition procedure) |