CN111026315B - Text selection method and electronic equipment - Google Patents

Text selection method and electronic equipment Download PDF

Info

Publication number
CN111026315B
CN111026315B CN201911139851.3A CN201911139851A CN111026315B CN 111026315 B CN111026315 B CN 111026315B CN 201911139851 A CN201911139851 A CN 201911139851A CN 111026315 B CN111026315 B CN 111026315B
Authority
CN
China
Prior art keywords
text
page
input
target
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911139851.3A
Other languages
Chinese (zh)
Other versions
CN111026315A (en
Inventor
郭彦潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911139851.3A priority Critical patent/CN111026315B/en
Publication of CN111026315A publication Critical patent/CN111026315A/en
Application granted granted Critical
Publication of CN111026315B publication Critical patent/CN111026315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a text selection method and electronic equipment, relates to the technical field of communication, and aims to solve the problem that the efficiency of processing texts across applications is low in the prior art. The method comprises the following steps: receiving a first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text.

Description

Text selection method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a text selection method and electronic equipment.
Background
With the continuous development of terminal technology, electronic devices are more and more widely applied. For example, a user reads documents such as office files, electronic books, and the like through an electronic device.
Currently, in a process of reading a document, a user often needs to perform processes such as copying, annotating, collecting, or sharing some texts (hereinafter, referred to as target texts) in the document. Before the processing, a user needs to select a target text first, however, when the target text is on different pages of a document, the user cannot select all the contents of the target text at the same time, so that the user needs to select parts of the target text in different pages respectively and further process the parts respectively.
As such, the prior art is inefficient in processing text across pages.
Disclosure of Invention
The embodiment of the invention provides a text selection method and electronic equipment, and aims to solve the problem that in the prior art, the efficiency of processing texts across pages is low.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present invention provides a text selection method, which is applied to an electronic device, and the method includes: receiving a first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text.
In a second aspect, an embodiment of the present invention provides an electronic device, including: the device comprises a receiving module, an updating module and a selecting module; the receiving module is used for receiving first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; the updating module is used for responding to the first input received by the receiving module, updating the first page to a second page according to a target input parameter corresponding to the first input, and updating the selection identifier to a second position in the second page; the selection module is used for selecting a first text between a first position and a second position, and the second position is determined according to the first text.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the text selection method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the text selection method in the first aspect.
In the embodiment of the invention, the electronic device can receive a first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text (is not a preset position, and is a position having a preset relation with the first text). According to the scheme, the electronic equipment can simultaneously select the contents of the multiple pages according to the first input of the user, and the user can continue to input the selection identifier in the second page to trigger the electronic equipment to select more texts, so that the electronic equipment can simultaneously process the texts in the multiple pages without respectively processing the texts of each page, and therefore, the efficiency of processing the texts across pages can be improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart of a text selection method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a text selection method according to an embodiment of the present invention;
fig. 4 is a third flowchart of a text selection method according to an embodiment of the present invention;
FIG. 5 is a fourth flowchart of a text selection method according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an interface of a text selection method according to an embodiment of the present invention;
FIG. 7 is a fifth flowchart of a text selection method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first," "second," "third," and "fourth," etc. in the description and in the claims of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input, the second input, the third input, the fourth input, etc. are used to distinguish between different inputs, rather than to describe a particular order of inputs.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units; plural elements means two or more elements, and the like.
People often use electronic devices for reading characters, mobile work, and the like. In the process, since the user needs to perform processing operations such as copying, annotating, searching, sharing and the like on the target text (text that the user needs and is interested in), the user needs to select the target text before processing. However, in many cases, the text content of the target text may be relatively long and distributed among different pages of the document, e-book, etc. (e.g., a portion of the text is at the lower end of a previous page and another portion of the text is at the upper end of a next page). At present, there are two schemes for selecting texts distributed on two pages as follows. The first scheme is as follows: after a user selects a text of a required previous page by dragging a cursor (selection identifier) position through a finger, the user is defaulted to finish the selection operation, and the user executes corresponding processing operation on the selected text of the previous page through processing input; after the processing is finished, the user drags the position of a cursor (selection identification) through fingers to select the text of a required next page, and then the corresponding processing operation is executed on the selected text of the next page through processing input. The second scheme is as follows: after a user drags a cursor (selection identifier) position by a finger to select a required text of a previous page (according to a reading habit from left to right, generally, after the finger stops moving, the position where the finger stays at the right lower part of the screen at the moment), the finger of the user does not leave the screen but continues to press the position where the finger stays, the electronic device automatically jumps to the next page, meanwhile, the cursor position stays at the end of the content of the next page, and the electronic device selects the text content of the next page and the whole page. Therefore, with the first scheme, the text processing efficiency is greatly lowered; for the second scheme, the electronic device selects too many text contents, and the user needs to cancel the selection of the redundant contents by inputting, thereby reducing the text processing efficiency.
In summary, the scheme of selecting a text across pages in the prior art leads to low text processing efficiency, and cannot provide good use experience for a user, thereby reducing the working efficiency or reading experience of the user.
The embodiment of the invention provides a text selection method.A piece of electronic equipment can receive first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text (is not a preset position, and is a position having a preset relation with the first text). According to the scheme, the electronic equipment can simultaneously select the contents of the multiple pages according to the first input of the user, and the user can continue to input the selection identifier in the second page to trigger the electronic equipment to select more texts, so that the electronic equipment can simultaneously process the texts in the multiple pages without respectively processing the texts of each page, and therefore, the efficiency of processing the texts across pages can be improved.
The following describes a software environment to which the text selection method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the text selection method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the text selection method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the text selection method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
An execution main body of the text selection method provided in the embodiment of the present invention may be the electronic device (including a mobile electronic device and a non-mobile electronic device), or may also be a functional module and/or a functional entity capable of implementing the method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe a text selection method provided by the embodiment of the present invention.
Referring to fig. 2, an embodiment of the present invention provides a text selection method applied to an electronic device, and the method may include steps 201 to 204 described below.
Step 201, the electronic device receives a first input of a selection identifier at a first position in a first page by a user.
The selection identifier is used for selecting the text.
Optionally, the first input may be a drag input of the user for selecting the identifier, and the first input may also be other feasibility inputs, which is not limited in the embodiment of the present invention.
For example, the drag input may be a drag input in an arbitrary direction, for example, an upward drag input, a downward drag input, a leftward drag input, or a rightward drag input.
In the embodiment of the invention, the selection identifier can be a selection cursor, and the text is the text content.
Step 202, the electronic device responds to the first input, and updates the first page to the second page according to the target input parameter corresponding to the first input.
Step 203, the electronic device updates the selection identifier to a second position in the second page.
Step 204, the electronic device selects a first text between the first position and the second position.
The second location is determined based on the first text.
Optionally, the first page and the second page are continuous pages, or at least one page is included between the first page and the second page.
The electronic equipment determines the number of pages spaced between the second page and the first page according to the target input parameters, then updates the first page to the second page, determines a second position in the second page by combining texts from the first page to the second page (for example, according to semantics of the texts or punctuation marks and the like), updates the selection identification to the second position, and selects the first text from the first position to the second position.
It should be noted that, in the embodiment of the present invention, an execution sequence between the above steps 202 to 204 is not limited, for example, the electronic device may execute the above steps 202 to 204 in any sequence, or may simultaneously execute at least two steps of the above steps 202 to 204, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
The embodiment of the invention provides a text selection method, wherein electronic equipment can receive first input of a selection identifier on a first position in a first page by a user, and the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text (is not a preset position, and is a position having a preset relation with the first text). According to the scheme, the electronic equipment can simultaneously select the contents of the multiple pages according to the first input of the user, and the user can continue to input the selection identifier in the second page to trigger the electronic equipment to select more texts, so that the electronic equipment can simultaneously process the texts in the multiple pages without respectively processing the texts of each page, and therefore, the efficiency of processing the texts across pages can be improved.
Optionally, in the case that the target input parameter satisfies the target condition, the electronic device performs the above-mentioned steps 202 to 204.
Illustratively, in conjunction with fig. 2, as shown in fig. 3, the step 202 may be specifically implemented by the following step 202 a.
Step 202a, in response to the first input, the electronic device updates the first page to the second page if the target input parameter meets the target condition.
The target condition includes at least one of: the input touch area is in a target area range, the input touch strength value is in a target strength threshold range, the input touch duration is in a target duration range, and the input capacitance variation of the corresponding touch area is in a target capacitance variation threshold range.
It is to be understood that the target condition is one or more of the above, and the target condition may also include other feasibility conditions, and the embodiments of the present invention are not limited thereto. The target area range, the target strength threshold range, the target duration range, the target capacitance variation threshold range, and the like can be set according to actual use requirements, and the embodiment of the invention is not limited.
It is to be understood that, if the target input parameter includes the input touch area, the electronic device may determine a different second page when the input touch area is in a different area range. If the target input parameter includes the input touch force value, the electronic device may determine a different second page when the input touch force value is within a different force threshold range. If the target input parameter includes the input touch duration, the electronic device may determine different second pages when the input touch duration is within different duration ranges. If the target input parameter includes a capacitance variation input into the corresponding touch area, the electronic device may determine a different second page when the capacitance variation input into the corresponding touch area is within a different capacitance variation threshold range.
Alternatively, the target input parameter may be an input parameter at the end position of the first input, for example, an input parameter at the end position of the drag input.
Illustratively, the target input parameter is a touch duration at the end position of the first input. The first input is that after a user finger drags and selects an identifier to a text ending position of a first page, the user finger stays at the text ending position of the first page for a first time length, if the first time length is within a first time length range, a second page is next to the first page, if the first time length is within a second time length range, the second page is spaced from the first page by one page, if the first time length is within a third time length range, the second page is spaced from the first page by two pages, and the rest is omitted. And intersection does not exist among the first duration range, the second duration range, the third duration range and the like, and any duration in the first duration range is greater than any duration in the second duration range and is greater than any duration in the third duration range.
In the embodiment of the invention, the electronic equipment can display and determine different second pages and update the first page to different second pages when the target input parameters meet different conditions, so that a user can trigger the electronic equipment to determine different second pages through different first inputs according to actual use requirements and update the first page to different second pages.
Optionally, before step 203, the electronic device needs to determine the second position. The electronic device may determine the second location based on the first text, or may determine the second location based on text in the first text that precedes the second page.
Illustratively, the first text includes the second text in a third page, the third page being a page adjacent to the second page; referring to fig. 3, as shown in fig. 4, before step 203, the text selection method provided in the embodiment of the present invention may further include step 205 described below.
And step 205, the electronic device determines a second position according to the second text.
Optionally, the electronic device may determine the second position according to the punctuation mark at the end position of the second text, may also determine the second position according to the semantics of the second text, and may also determine the second position according to other information of the second text, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the electronic equipment can determine the second position according to the second text, so that a user can conveniently and quickly select the text to be processed, and the processing efficiency of the text is improved.
Illustratively, in conjunction with fig. 4, as shown in fig. 5, the step 205 may be specifically implemented by the following steps 205a to 205 c.
Step 205a, the electronic device determines whether the end position of the second text is a punctuation mark.
It is understood that the punctuation mark may be comma, pause, semicolon, quotation mark or period, etc., and the embodiments of the present invention are not limited thereto.
If the electronic device determines that the ending position of the second text is the punctuation mark, the following step 205b is executed, and if the ending position of the second text is not the punctuation mark, the following step 205c is executed.
Step 205b, the electronic device determines the starting position of the second page as the second position.
And under the condition that the electronic equipment determines that the end position of the second text is the punctuation mark, determining the starting position of the second page as the second position. And the electronic equipment displays the selection identification at the initial position of the second page.
Step 205c, the electronic device determines the position of the first punctuation mark in the second text from the starting position as the second position.
And under the condition that the end position of the second text is determined not to be the punctuation mark, the electronic equipment determines the position of the first punctuation mark in the second text from the starting position as the second position. And the electronic equipment displays a selection mark at the position of the first punctuation mark from the starting position in the second text.
In the embodiment of the invention, the electronic equipment can determine the second position according to whether the ending position of the second text is the punctuation mark or not, so that the user operation is reduced, the user can conveniently and quickly select the text to be processed, the text processing efficiency is improved, and the user experience is improved.
Optionally, the punctuation mark is a period. The period may be used to determine whether the second text ends in a complete sentence to ensure continuity of the content of the selected text.
It is to be appreciated that the electronic device determines whether the end position of the second text is a period. If the ending position of the second text is a period, determining the starting position of the second page as a second position; and if the ending position of the second text is not a period, determining the position of the first period from the starting position in the second text as the second position.
In the embodiment of the invention, the electronic equipment can determine the second position according to whether the ending position of the second text is a period, so that the continuity and the integrity of the first text can be ensured, the user operation is reduced, the user can conveniently and quickly select the text to be processed, the processing efficiency of the text is accelerated, and the use experience of the user is improved.
Illustratively, when the preset duration is within 2s-5s, turning to the next page, and determining the second position according to whether the end position of the first page is a period. As shown in fig. 6 (a), the user selects the text in the page 5 by dragging the selection identifier, the finger stays at the end position after the selection, the staying time is 3s, and the electronic device determines that 3s is within 2s-5s, so that the page 5 is determined to be updated to the page 6. Referring to fig. 6 (b), the electronic device determines the position of the first period starting from the start position in the page 6 as the second position according to the fact that the end position of the page 5 is not a period, and the mark "1" indicates the selection flag. Wherein the text within the dashed box in fig. 6 (a) and fig. 6 (b) is the text selected by the electronic device in response to the first input.
Illustratively, in conjunction with fig. 4, as shown in fig. 7, the step 205 may be specifically implemented by the following steps 205d to 205 f.
Step 205d, the electronic device determines whether a semantic association relationship exists between the second text and the third text.
If the electronic device determines that the semantic association exists between the second text and the third text, step 205e is executed, otherwise step 205f is executed.
Step 205e, the electronic device determines the end position of the third text as the second position.
And under the condition that the electronic equipment determines that the semantic association relationship exists between the second text and the third text, determining the end position of the third text as the second position.
Step 205f, the electronic device determines the starting position of the third text as the second position.
And under the condition that the electronic equipment determines that the semantic association relation does not exist between the second text and the third text, determining the starting position of the third text as the second position.
And the starting position of the third text is the starting position of the second page.
The electronic device may analyze semantics of the second text by a semantic analysis method. If the ending position of the second text expresses a complete semantic meaning, and at this time, the second text does not have a semantic association with the third text of the second page, the electronic device may determine the starting position of the second page (i.e., the starting position of the third text) as the second position. If the ending position of the second text cannot express a complete semantic meaning, and the second text and the third text can express a complete semantic meaning after analysis, the electronic device may determine the ending position of the third text in the second page as the second position.
In the embodiment of the present invention, the electronic device may perform semantic analysis and recognition on the text content by a Neuro-Linguistic Programming (NLP) method, or may perform semantic analysis and recognition on the text content by a semantic analysis model (which may be obtained by training a machine learning algorithm model through a large number of text samples), and the like, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the second position is determined by judging whether the semantic association relationship exists between the second text and the third text, so that the completeness and the continuity of the selected content can be better ensured, the user operation is reduced, the user can conveniently and quickly select the text to be processed, the processing efficiency of the text is accelerated, and the use experience of the user is improved.
Optionally, after the step 204, in a case that the user needs to select more texts, the user may trigger the electronic device to select more texts through the input of the selection identifier of the second location.
Illustratively, after the step 204, the text selecting method provided by the embodiment of the present invention may further include the following steps 206 to 207.
Step 206, the electronic device receives a second input of the selection identifier from the user.
The second input may be a dragging input for the selection identifier, and reference may be specifically made to the description of the first input in step 201, which is not described herein again.
And step 207, the electronic equipment responds to the second input and selects the text corresponding to the second input.
In the embodiment of the invention, the user can select more text contents through second input according to the self use requirement, so that the use experience of the user can be improved.
Optionally, after step 204 or step 207, the electronic device may process the selected text by inputting.
For example, after step 204 or step 207, the text selection method provided in the embodiment of the present invention may further include steps 208 to 209 described below.
And step 208, the electronic device receives a third input of the user.
Optionally, the third input may be a click input, a sliding input, and the like of the user on the selected text (or a target processing option of the displayed multiple processing options), and the embodiment of the present invention is not limited.
Illustratively, the click input may be any number of click inputs or multi-finger click inputs, such as a single click input, a double click input, a three click input, a double-finger click input, or a three-finger click input; the slide input may be a slide input in an arbitrary direction or a multi-finger slide input, for example, an upward slide input, a downward slide input, a leftward slide input, a rightward slide input, a two-finger slide input, or a three-finger slide input.
And step 209, the electronic equipment responds to the third input, and executes a target operation corresponding to the third input on the target text.
The target text is the currently selected text, for example, if the above steps 208 to 209 are performed after the above step 204, the target text is the first text; if the above steps 208 to 209 are performed after the above step 207, the target text is the first text and the text corresponding to the second input.
Optionally, the target operation may be any one of the following: the method includes a copy operation, a collection operation, a sharing operation, an annotation adding operation (for example, adding a user's view of a target text, etc.), a marking operation (for example, marking yellow, thickening, etc.), a search operation, and a deletion operation, and the target operation may also be other feasible operations, which may be determined specifically according to actual use requirements, and embodiments of the present invention are not limited.
In the embodiment of the invention, the user can correspondingly process the target text through the third input.
The drawings in the embodiments of the present invention are all exemplified by the drawings in the independent embodiments, and when the embodiments of the present invention are specifically implemented, each of the drawings can also be implemented by combining any other drawings which can be combined, and the embodiments of the present invention are not limited. For example, referring to fig. 2, before step 203, the text selection method provided in the embodiment of the present invention may further include step 205 described above.
As shown in fig. 8, an embodiment of the present invention provides an electronic device 120, where the electronic device 120 includes: a receiving module 121, an updating module 122 and a selecting module 123; the receiving module 121 is configured to receive a first input of a selection identifier on a first position in a first page, where the selection identifier is used to select a text; the updating module 122, configured to respond to the first input received by the receiving module 121, update the first page to a second page according to a target input parameter corresponding to the first input, and update the selection identifier to a second location in the second page; the selecting module 123 is configured to select a first text between a first position and a second position, where the second position is determined according to the first text.
Optionally, the updating module 122 is specifically configured to update the first page to the second page when the target input parameter meets a target condition, where the target condition includes at least one of: the input touch area is in a target area range, the input touch strength value is in a target strength threshold range, the input touch duration is in a target duration range, and the input capacitance variation of the corresponding touch area is in a target capacitance variation threshold range.
Optionally, the first text includes a second text in a third page, and the third page is a page adjacent to the second page; the electronic device 120 further includes: a determination module 124; the determining module 124 is configured to determine the second location according to the second text before the updating module 122 updates the selection identifier to the second location in the second page.
Optionally, the determining module 124 is specifically configured to determine, when it is determined that the end position of the second text is the punctuation mark, the start position of the second page as the second position; and under the condition that the ending position of the second text is determined not to be the punctuation mark, determining the position of the first punctuation mark in the second text from the starting position as the second position.
Optionally, the punctuation mark is a period.
Optionally, the determining module 124 is specifically configured to determine, when it is determined that a semantic association relationship exists between the second text and the third text, an end position of the third text as the second position; under the condition that the semantic association relation does not exist between the second text and the third text, determining the starting position of the third text as the second position; wherein the starting position of the third text is the starting position of the second page.
It should be noted that, as shown in fig. 8, modules that are necessarily included in the electronic device 120 are illustrated by solid line boxes, such as a receiving module 121, an updating module 122, and a selecting module 123; modules that may or may not be included in the electronic device 120 are illustrated with dashed boxes, such as determination module 124.
The electronic device provided in the embodiment of the present invention is capable of implementing each process shown in any one of fig. 2 to 7 in the above method embodiments, and details are not described here again to avoid repetition.
The embodiment of the invention provides electronic equipment, which can receive first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text (is not a preset position, and is a position having a preset relation with the first text). According to the scheme, the electronic equipment can simultaneously select the contents of the multiple pages according to the first input of the user, and the user can continue to input the selection identifier in the second page to trigger the electronic equipment to select more texts, so that the electronic equipment can simultaneously process the texts in the multiple pages without respectively processing the texts of each page, and therefore, the efficiency of processing the texts across pages can be improved.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application. As shown in fig. 9, the electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The user input unit 107 receives a first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; the processor 110 is configured to respond to the first input, update the first page to a second page according to a target input parameter corresponding to the first input, update the selection identifier to a second position in the second page, and select a first text between the first position and the second position, where the second position is determined according to the first text.
According to the electronic device provided by the embodiment of the invention, the electronic device can receive first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text; and responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identifier to a second position in the second page, and selecting a first text between the first position and the second position, wherein the second position is determined according to the first text (is not a preset position, and is a position having a preset relation with the first text). According to the scheme, the electronic equipment can simultaneously select the contents of the multiple pages according to the first input of the user, and the user can continue to input the selection identifier in the second page to trigger the electronic equipment to select more texts, so that the electronic equipment can simultaneously process the texts in the multiple pages without respectively processing the texts of each page, and therefore, the efficiency of processing the texts across pages can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which may include the processor 110 shown in fig. 9, the memory 109, and a computer program stored on the memory 109 and capable of being executed on the processor 110, where the computer program, when executed by the processor 110, implements each process of the text selection method shown in any one of fig. 2 to fig. 7 in the foregoing method embodiments, and may achieve the same technical effect, and details are not described here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the text selection method shown in any one of fig. 2 to 7 in the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A text selection method is applied to electronic equipment, and is characterized by comprising the following steps:
receiving a first input of a user to a selection identifier on a first position in a first page, wherein the selection identifier is used for selecting a text;
responding to the first input, updating the first page to a second page according to a target input parameter corresponding to the first input, updating the selection identification to a second position in the second page, and selecting a first text between the first position and the second position;
the first text comprises a second text in a third page, and the third page is a page adjacent to the second page;
before the updating the selection identifier to the second position in the second page, the method further includes:
determining the second position according to the second text;
the determining the second location according to the second text comprises:
determining the second position according to the punctuation mark at the end position of the second text; or determining the second position according to the semantic meaning of the second text.
2. The method of claim 1, wherein updating the first page to a second page according to a target input parameter corresponding to the first input comprises:
updating the first page to the second page if the target input parameter satisfies a target condition, the target condition including at least one of: the input touch area is in a target area range, the input touch strength value is in a target strength threshold range, the input touch duration is in a target duration range, and the input capacitance variation of the corresponding touch area is in a target capacitance variation threshold range.
3. The method of claim 1, wherein said determining the second position from punctuation marks at the end of the second text position comprises:
under the condition that the ending position of the second text is determined to be the punctuation mark, determining the starting position of the second page to be the second position;
and under the condition that the ending position of the second text is determined not to be the punctuation mark, determining the position of the first punctuation mark from the starting position in the second page as the second position.
4. The method of claim 1, wherein determining the second location according to the semantics of the second text comprises:
under the condition that the ending position of the second text expresses a complete semantic meaning, determining the starting position of a second page as the second position;
and under the condition that the ending position of the second text can not express a complete semantic meaning, determining the ending position of a third text as the second position, wherein the starting position of the third text is the starting position of the second page, and the second text is combined with the third text to express a complete semantic meaning.
5. An electronic device, characterized in that the electronic device comprises: the device comprises a receiving module, an updating module and a selecting module;
the receiving module is used for receiving first input of a selection identifier on a first position in a first page by a user, wherein the selection identifier is used for selecting a text;
the updating module is used for responding to the first input received by the receiving module, updating the first page to a second page according to a target input parameter corresponding to the first input, and updating the selection identifier to a second position in the second page;
the selection module is used for selecting a first text between the first position and the second position;
the first text comprises a second text in a third page, and the third page is a page adjacent to the second page; the electronic device further includes: a determination module;
the determining module is configured to determine a second position in the second page according to the second text before the updating module updates the selection identifier to the second position;
the determining module is specifically configured to determine the second position according to the punctuation mark at the end position of the second text; or determining the second position according to the semantic meaning of the second text.
6. The electronic device according to claim 5, wherein the updating module is specifically configured to update the first page to the second page if the target input parameter satisfies a target condition, where the target condition includes at least one of: the input touch area is in a target area range, the input touch strength value is in a target strength threshold range, the input touch duration is in a target duration range, and the input capacitance variation of the corresponding touch area is in a target capacitance variation threshold range.
7. The electronic device according to claim 5, wherein the determining module is specifically configured to determine the start position of the second page as the second position when it is determined that the end position of the second text is a punctuation mark; and under the condition that the ending position of the second text is determined not to be the punctuation mark, determining the position of the first punctuation mark from the starting position in the second page as the second position.
8. The electronic device according to claim 5, wherein the determining module is specifically configured to determine a start position of a second page as the second position when the end position of the second text expresses a complete semantic meaning; and under the condition that the ending position of the second text can not express a complete semantic meaning, determining the ending position of a third text as the second position, wherein the starting position of the third text is the starting position of the second page, and the second text is combined with the third text to express a complete semantic meaning.
CN201911139851.3A 2019-11-20 2019-11-20 Text selection method and electronic equipment Active CN111026315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911139851.3A CN111026315B (en) 2019-11-20 2019-11-20 Text selection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911139851.3A CN111026315B (en) 2019-11-20 2019-11-20 Text selection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111026315A CN111026315A (en) 2020-04-17
CN111026315B true CN111026315B (en) 2021-04-23

Family

ID=70201653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911139851.3A Active CN111026315B (en) 2019-11-20 2019-11-20 Text selection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111026315B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558811A (en) * 2020-12-15 2021-03-26 维沃移动通信有限公司 Content processing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096598A1 (en) * 2013-12-23 2015-07-02 北京金山办公软件有限公司 Page content selection method and system
CN105302464A (en) * 2015-10-28 2016-02-03 北京京东尚科信息技术有限公司 Flow document scribing system and method
CN105426526A (en) * 2015-12-10 2016-03-23 魅族科技(中国)有限公司 Page information selection method and device
CN106775399A (en) * 2016-12-12 2017-05-31 掌阅科技股份有限公司 Electronic book data processing method, device and mobile terminal
CN108628528A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 The mthods, systems and devices of the cross-page text mark of application are read in optimization
WO2019056388A1 (en) * 2017-09-25 2019-03-28 深圳市云中飞网络科技有限公司 Content selection method, electronic device, storage medium and computer program product
CN110321046A (en) * 2019-07-09 2019-10-11 维沃移动通信有限公司 A kind of content selecting method and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096598A1 (en) * 2013-12-23 2015-07-02 北京金山办公软件有限公司 Page content selection method and system
CN105302464A (en) * 2015-10-28 2016-02-03 北京京东尚科信息技术有限公司 Flow document scribing system and method
CN105426526A (en) * 2015-12-10 2016-03-23 魅族科技(中国)有限公司 Page information selection method and device
CN106775399A (en) * 2016-12-12 2017-05-31 掌阅科技股份有限公司 Electronic book data processing method, device and mobile terminal
CN108628528A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 The mthods, systems and devices of the cross-page text mark of application are read in optimization
WO2019056388A1 (en) * 2017-09-25 2019-03-28 深圳市云中飞网络科技有限公司 Content selection method, electronic device, storage medium and computer program product
CN110321046A (en) * 2019-07-09 2019-10-11 维沃移动通信有限公司 A kind of content selecting method and terminal

Also Published As

Publication number Publication date
CN111026315A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN111061574B (en) Object sharing method and electronic device
CN108415652B (en) Text processing method and mobile terminal
WO2020258929A1 (en) Folder interface switching method and terminal device
CN111338530B (en) Control method of application program icon and electronic equipment
CN109471692B (en) Display control method and terminal equipment
CN111124245B (en) Control method and electronic equipment
CN107943390B (en) Character copying method and mobile terminal
CN109933252B (en) Icon moving method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN110874147A (en) Display method and electronic equipment
CN110703972B (en) File control method and electronic equipment
CN111142747A (en) Group management method and electronic equipment
CN110502164B (en) Interface display method and electronic equipment
CN111125307A (en) Chat record query method and electronic equipment
CN111090489A (en) Information control method and electronic equipment
CN111459361B (en) Application icon display method and device and electronic equipment
CN110262713B (en) Icon display method and terminal equipment
CN109471841B (en) File classification method and device
CN111124709A (en) Text processing method and electronic equipment
CN111061446A (en) Display method and electronic equipment
CN111273827B (en) Text processing method and electronic equipment
CN111144065B (en) Display control method and electronic equipment
CN111026302B (en) Display method and electronic equipment
CN111026315B (en) Text selection method and electronic equipment
CN110175063B (en) Operation assisting method, device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant