CN112765942A - Text processing method and device, electronic equipment and readable storage medium - Google Patents

Text processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112765942A
CN112765942A CN202110089515.3A CN202110089515A CN112765942A CN 112765942 A CN112765942 A CN 112765942A CN 202110089515 A CN202110089515 A CN 202110089515A CN 112765942 A CN112765942 A CN 112765942A
Authority
CN
China
Prior art keywords
information
input
text
page
control
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.)
Pending
Application number
CN202110089515.3A
Other languages
Chinese (zh)
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 CN202110089515.3A priority Critical patent/CN112765942A/en
Publication of CN112765942A publication Critical patent/CN112765942A/en
Priority to PCT/CN2022/072504 priority patent/WO2022156669A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses a text processing method and device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The text processing method comprises the following steps: in response to a first input of copying a first text received at a first page, displaying an edit box, wherein the edit box comprises first information determined based on the first text and a first control corresponding to the first information; in response to receiving a second input for a first control corresponding to the first information, paste the first information in a first paste page. The text processing method and device can improve text processing efficiency.

Description

Text processing method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a text processing method and device, an electronic device and a readable storage medium.
Background
In the existing text processing mode, a text selection box is displayed in a text through long-time pressing operation of a user on the text, and the adjustment of the user on the text selection box is received to determine corresponding copied content, so that the copy of the text is realized; through long-time pressing operation of a user on the input box, a prompt box comprising a pasting control is displayed above or below the input box, touch of the user on the pasting control is received, so that copied texts are input into the input box, and accordingly pasting of the texts is achieved. Therefore, through the existing text processing mode, when a user needs to paste a plurality of texts, the user needs to execute input to trigger the electronic equipment to switch back and forth between a copy page and a paste page, so that the efficiency of text processing is low.
Disclosure of Invention
The embodiment of the application provides a text processing method and device, an electronic device and a readable storage medium, and can solve the problem that in the existing text processing mode, the user needs to execute input to trigger the electronic device to switch back and forth between a copy page and a paste page, so that the text processing efficiency is low.
In a first aspect, a text processing method is provided, and the method includes:
in response to a first input of copying a first text received at a first page, displaying an edit box, wherein the edit box comprises first information determined based on the first text and a first control corresponding to the first information;
in response to receiving a second input for a first control corresponding to the first information, paste the first information in a first paste page.
In a second aspect, there is provided a text processing apparatus comprising:
the first display module is used for responding to a first input of copying a first text received on a first page, and displaying an edit box, wherein the edit box comprises first information determined based on the first text and a first control corresponding to the first information;
the first pasting module is used for responding to a received second input aiming at a first control corresponding to the first information and pasting the first information in a first pasting page.
In a third aspect, an electronic device is provided, which comprises a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the method according to the first aspect.
In a fourth aspect, a readable storage medium is provided, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, a chip is provided, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a network-side device program or instruction to implement the method according to the first aspect.
In this embodiment, after detecting that the first text is copied, the electronic device may display an edit box, where the edit box includes first information determined based on the first text and a first control corresponding to the first information, and may paste the first information in a first paste page in response to a received second input for the first control corresponding to the first information. Therefore, a user can trigger the electronic equipment to paste information into the corresponding page through interacting with the first control in the edit box, and input does not need to be executed to trigger the display interface of the electronic equipment to switch back and forth between the copy page and the paste page, so that the user operation can be simplified, and the text processing efficiency can be improved.
Drawings
Fig. 1 is a flowchart of a text processing method provided in an embodiment of the present application;
fig. 2 is a second flowchart of a text processing method according to an embodiment of the present application;
FIG. 3a is a schematic diagram of a copy page provided by an embodiment of the present application;
FIG. 3b is a diagram of an edit box provided by an embodiment of the present application;
fig. 3c is a schematic diagram of a shipping address filling page of the first application program according to an embodiment of the present disclosure;
FIG. 4a is a second schematic diagram of an edit box provided in the embodiment of the present application;
FIG. 4b is a third schematic diagram of an edit box provided in the embodiment of the present application;
fig. 4c is a schematic diagram of an express query page provided in an embodiment of the present application;
FIG. 5 is a block diagram of a document processing apparatus according to an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, 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 terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchangeable under appropriate circumstances such that embodiments of the application can be practiced in sequences other than those illustrated or described herein, and the terms "first" and "second" used herein generally do not denote any order, nor do they denote any order, for example, the first object may be one or more. In addition, "and/or" in the specification and the claims means at least one of connected objects, and a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes a text processing method according to an embodiment of the present application.
The text processing method of the embodiment of the application can be executed by the electronic equipment. In practical applications, the electronic Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer) or a notebook Computer, a Personal Digital Assistant (PDA), a palmtop Computer, a netbook, an ultra-Mobile Personal Computer (UMPC), a Mobile Internet Device (MID), a Wearable Device (Wearable Device) or a vehicle-mounted Device (VUE), an electronic Device side Device such as a pedestrian electronic Device (PUE), and the Wearable Device includes: bracelets, earphones, glasses and the like.
Referring to fig. 1, fig. 1 is a flowchart of a text processing method provided in an embodiment of the present application. As shown in fig. 1, the text processing method may include the steps of:
step 101, responding to a first input of copying a first text received on a first page, and displaying an edit box, wherein the edit box comprises first information determined based on the first text and a first control corresponding to the first information.
In particular implementations, the display edit box can, but is not limited to, appear as any of: a) displaying an edit box on the first page; b) and controlling the display page to be switched from the first page to the edit box. In a), the display page of the electronic device is not switched, the edit box can be displayed on the first page in a floating manner, and the display size of the edit box can be smaller than that of the first page; in b), the display page of the electronic device may be switched, and the display size of the edit box may be matched with the display page of the electronic device to fill up the entire display page.
The first information included in the edit box may be understood as candidate paste information. The first text is used to determine the content of the first information, and optionally, the first information may be, but is not limited to, any one of the following items: the first text; m pieces of sub information are extracted from the first text, wherein M is a positive integer.
The first control included in the edit box may be configured to trigger pasting of information corresponding to the first control, that is, in a case where an input for a certain first control is received, the electronic device may execute, in response to the input, pasting of information corresponding to the first control. In the embodiment of the present application, the control may be represented as a button, but is not limited thereto.
It should be noted that, in the embodiment of the present application, the number of the first controls corresponding to the first information may be related to the expression form of the first information. Optionally, in a case that the first information is the first text, the number of the first controls may be 1; when the first information is the M pieces of sub information, the number of the first controls may be 1 or M.
When the first information is M pieces of sub information and the number of the first controls is 1, the M pieces of sub information correspond to one first control, and therefore, when the electronic device receives an input of the first control, the electronic device can paste the M pieces of sub information in response to the input. In this case, the pasting of the M pieces of sub information is realized based on one input, so that the convenience of processing the first information can be improved.
And when the first information is M pieces of sub information and the number of the first controls is M, the M pieces of sub information correspond to the M first controls one by one, and each first control in the M first controls is used for pasting the sub information corresponding to the trigger. In this case, the pasting of the M pieces of sub information is realized based on the M pieces of input, and is independent from each other, so that the processing flexibility of the first information can be improved.
In addition, in the embodiment of the present application, the content in the edit box may be changed. Such as: when the electronic equipment displays an edit box, the edit box can comprise the first text, and after input is received, the electronic equipment can adjust the first text into M pieces of sub information; or, the user can edit the first information; or, if the user copies the second text before finishing the copying, the edit box may further include second information determined based on the second text, and a first control corresponding to the second information.
Step 102, in response to a received second input for a first control corresponding to the first information, pasting the first information in a first pasting page.
In this embodiment of the application, after the electronic device displays the edit box, if an input for the first control is received, information corresponding to the first control can be pasted to the corresponding page. Therefore, a user can trigger the electronic equipment to paste information into the corresponding page through interacting with the first control in the edit box, and input does not need to be executed to trigger the display interface of the electronic equipment to switch back and forth between the copy page and the paste page, so that the user operation can be simplified, and the text processing efficiency can be improved.
In a specific implementation, when the second input is received, the display page of the electronic device may be the first paste page, and the edit box is displayed in a floating manner on the first paste page, or may not be the first paste page. In different cases, the implementation of pasting the first information in the first pasting page may be different, which is specifically described as follows:
and in the first situation, when the second input is received, the display page of the electronic equipment is the first paste page, and the edit frame is displayed on the first paste page in a floating manner.
In case one, the electronic device may paste the first information directly in the current display page. In addition, after receiving the second input, the electronic device may hide the edit box, so that the user can view a complete first paste page to view a paste effect of the first information; the edit box can also continue to be displayed in a floating manner for subsequent text processing operations.
And in case two, when the second input is received, the display page of the electronic equipment is not the first paste page.
In case two, the electronic device may perform the pasting of the first information in the first pasting page by:
in a first mode, the pasting of the first information to the first pasting page may be performed in a foreground. In this manner, after receiving the second input, the display page of the electronic device may jump to the first paste page and paste the first information in the first paste page. In this process, the edit box may be always displayed in a suspended manner on the display page of the electronic device, or may be hidden when the display page of the electronic device jumps to the first paste page, which may be determined according to actual situations, and this is not limited in this embodiment of the present application.
In the second mode, the operation of pasting the first information in the first pasting page may be performed in the background. In this manner, after receiving the second input, the display page of the electronic device may not be changed, but the first information may be pasted in the first paste page. When the electronic equipment is switched to the first paste page based on other input, a user can view first information pasted in the first paste page.
It should be noted that, when the first information is M pieces of sub information, and the number of the first controls is M, the second input includes M pieces of sub input, an input object of each piece of sub input is one of the M pieces of first controls, and an input object of each piece of sub input is different. In this case, the pasting operation of the M pieces of sub information may be performed according to the input time sequence of the M pieces of sub input from first to last, or may be performed together after the M pieces of sub input are finished, which may be determined according to the actual situation, and is not limited in this embodiment of the application.
According to the text processing method, after the electronic device detects that the first text is copied, an edit box can pop up, the edit box comprises first information determined based on the first text and a first control corresponding to the first information, and the first information can be pasted in a first pasting page in response to a received second input aiming at the first control corresponding to the first information. Therefore, a user can trigger the electronic equipment to paste information into the corresponding page through interacting with the first control in the edit box, and input does not need to be executed to trigger the display interface of the electronic equipment to switch back and forth between the copy page and the paste page, so that the user operation can be simplified, and the text processing efficiency can be improved.
The implementation of step 102 in the examples of the present application is described below:
in this embodiment of the present application, the first control may be, but is not limited to be, represented as a sending control or a pasting control, where the sending control may be used to trigger determination of a pasting page and pasting of information; and the pasting control is used for triggering the pasting of the information. The first paste page may be a display page when the electronic device receives the second input, or may be a target page of a target application selected by the user. The following description is made with reference to specific embodiments:
implementation mode one
Optionally, when the first control is a sending control, in response to a received second input for the first control corresponding to the first information, pasting the first information in a first pasting page, where pasting the first information in the first pasting page includes:
in response to a received second input for a first control corresponding to the first information, displaying identification information of the P applications;
in response to a received third input of identification information for a target application program, pasting the first information in a target page of the target application program;
wherein the target application is an application of the P applications, and P is a positive integer.
In this embodiment, the first control is a sending control, and is used to trigger the determination of the pasting page and the pasting of the information. In a specific implementation, after receiving the second input, the electronic device may display identification information of P applications, so that the user selects a target application for pasting the first information. After determining the target application program selected by the user, the electronic device may directly paste the first information in a target page of the target application program, that is, the first pasted page is the target page of the target application program. Therefore, the user can paste the information in the target application program desired by the user through interacting with the first control of the edit box, and the reliability of pasting can be improved.
In this embodiment, in an implementation manner, the P applications may be applications that are started by the electronic device within a second time period, where an end time of the second time period is an input time of the second input, and a length of the second time period may be determined by a system default or a user. In this implementation, the value of P is determined based on the actual situation.
In another implementation manner, the P applications may be any P applications installed in the electronic device, and further, the P applications may be P applications default to the system or selected by the user. In this implementation, the value of P may be predetermined.
The target page may be a page including an input box, such as: in the shopping application program, the target page can be a receiving address filling page; in the communication application, the target page may be a chat page.
Second embodiment
Optionally, in a case that the first control is a paste control, in response to a received second input for the first control corresponding to the first information, pasting the first information in a first paste page, including:
receiving a second input for a first control corresponding to the first information;
and responding to the second input, and pasting the first information in a second page, wherein the second page is a display page when the second input is received.
In this embodiment, the first control is a paste control for triggering information pasting. In a specific implementation, if the user wants to paste the first information on a certain display page, the user may first execute an input to trigger the electronic device to display the page, and then execute the second input on the page to trigger the electronic device to paste the first information on the page, that is, the first pasted page is a current display page of the electronic device receiving the second input.
The implementation of step 101 in the examples of the present application is described below:
implementation mode one
Optionally, the displaying an edit box in response to the first input of the copied first text received at the first page includes:
in response to a first input for copying a first text received at a first page, recognizing an intent to copy the first text (which may also be referred to as a copy scene) according to at least one of a semantic recognition result of the first text and N applications started within a first time period;
displaying an edit box corresponding to the copy intention;
wherein the edit box further comprises a label corresponding to the copy intention, and the label is used for: positioning the pasting position of the first information, or recording the related information of the first text; the first information corresponds to the tag.
In this alternative embodiment, the corresponding tags in different intent copies may be different. Such as: in the case that the duplication intention is to fill in the receiving address, the label corresponding to the duplication intention can be used for positioning the pasting position of the first information; when the copy intention is to extract the text, the tag corresponding to the copy intention may be used to record the related information of the first text.
The first information corresponds to the tag, and can be understood as: the first information is determined based on the tag. In particular implementations, the tag may be used to determine a representation of the first information. Optionally, the number of sub information included in the first information may be equal to the number of tags included in the edit box.
Further, in the case where the tag is used to locate the pasting position of the first information, the tag may be used for at least one of: determining the first pasting page for pasting the first information; and determining the specific pasting position of the first information on the first pasting page.
Such as: in the case where the intent of replication is to fill in the shipping address, the edit box may include a name tag, a phone number tag, an address tag. In this way, the electronic device may determine that the first pasting page is a receiving address filling page through the tag in the edit box, and the specific pasting position of the information corresponding to the name tag on the receiving address filling page is a name filling column in the receiving address filling page.
In this case, the electronic device may determine the pasting position of the first information based on the label, so that the pasting rate of the first information may be increased.
Further, in the case that the tag is used for recording the related information of the first information, the related information of the first information may include, but is not limited to, at least one of the following: a time of copying the first information, a source of the first information, a purpose of the first information, and the like.
In this case, optionally, the pasting the first information in the first pasted page in response to the received second input for the first control corresponding to the first information includes:
receiving a second input for a first control corresponding to the first information;
and responding to the second input, and pasting the first information and the label corresponding to the first information in a first pasting page.
In this way, since the electronic device can paste the first information and the corresponding tag on the first paste page, when the user views the paste content, the user can know the related information of the first information through the tag corresponding to the first information, so that the reliability of text processing can be improved.
As can be seen, in this optional embodiment, after receiving the first input, the electronic device may recognize the copy intention of the first text, and display an edit box corresponding to the copy intention, so that the information pasting rate may be increased, or the reliability of text processing may be improved.
In addition, in this optional embodiment, after the electronic device displays the edit box, the edit box may include the first information, a first control corresponding to the first information, and a label corresponding to the first information.
For ease of understanding of the implementation of this alternative embodiment, the following is specified:
in this optional embodiment, the electronic device may be preset with U kinds of copy intents and U kinds of edit boxes corresponding to the U-repeat intents, where U is an integer greater than 1. It is understood that the design of the edit box corresponding to each copy intention is used for the electronic device to more conveniently paste information or record related information with the first text. For ease of understanding, examples are illustrated below:
optionally, it is assumed that the U replication intents include: a first intent to fill in the shipping address, a second intent to extract the text, and so on.
Considering that the harvest address filling page generally includes a name filling bar, a phone number filling bar, and an address filling bar, the first edit box corresponding to the first intention, which is pre-stored in the electronic device, may include M tags such as name, phone number, and address, the first information may be M pieces of sub-information extracted from the first text and corresponding to the M tags, and the first control corresponding to the first information may be 1 or M pieces of control. In this way, when the electronic device is used for pasting the first information, the pasting page of the first information can be determined to be a receiving address filling page based on the label corresponding to the first information, the sub-information corresponding to the name label can be filled in the name filling column in the harvesting address filling page, the sub-information corresponding to the telephone number label is filled in the telephone number filling column in the harvesting address filling page, and the sub-information corresponding to the address label is filled in the address filling column in the harvesting address filling page, so that the pasting efficiency of the electronic device can be improved.
Considering that the user desires to record the extraction information of the text, such as extraction source, extraction time, extraction purpose, etc., when extracting the text, the second edit box corresponding to the second intention, which is stored in advance by the electronic device, may include a tag for recording the extraction information of the first text, and the first information may be the first text. Therefore, when the electronic equipment is used for pasting the first information, the label corresponding to the first information can be pasted together, so that a user can conveniently check the extracting information of the first text, and the reliability of text processing is improved.
In a specific implementation manner, in one implementation manner, the electronic device may recognize the duplication intention of the first text according to a semantic recognition result of the first text. Such as: if the voice recognition result of the first text comprises a telephone number and an address, determining that the user's intention of copying the first text is the first intention; if the voice recognition result of the first text does not include the telephone number or the address, the intention of the user to copy the first text can be determined to be the second intention.
In another implementation, the electronic device may recognize the copy intention of the first text according to N applications started within a first duration, where an end time of the first duration is an input time of the first input, and a length of the first duration may be predetermined. Such as: if the N application programs comprise shopping application programs or chat application programs, the intention of the user for copying the first text can be determined to be the first intention; if the N applications include a memo, it may be determined that the user's intention to copy the first text is the aforementioned second intention.
It should be understood that, in practical applications, the two implementations for identifying the duplication intention may be implemented independently or in combination, and may be determined according to practical requirements, and the embodiments of the present application are not limited thereto.
Second embodiment
Optionally, the displaying an edit box in response to the first input of the copied first text received at the first page includes:
in response to a first input for copying a first text received at a first page, displaying an edit box, wherein the edit box comprises the first text, a continuous copying control and an ending copying control;
receiving a fifth input to copy the second text received at the third page if a fourth input to the copy-continue control is received;
adding the second text in the edit box in response to the fifth input;
receiving a sixth input for the end copy control;
and responding to the sixth input, updating the edit box, wherein the updated edit box comprises first information determined based on the first text, a first control corresponding to the first information, second information determined based on the second text, and a first control corresponding to the second information.
In this optional embodiment, when the electronic device displays the edit box, the copied text may be directly displayed in the edit box without being processed. Further, a continue copy control and an end copy control may also be displayed in the edit box.
And the continuous copying control is used for triggering the electronic equipment to continuously copy the text and adding corresponding content in the edit box based on the copied text. Therefore, the user can realize the pasting of a plurality of information by interacting with the edit box, and the information pasting efficiency can be further improved.
And the copy ending control is used for triggering the electronic equipment to end copying and updating the edit box. In specific implementation, after receiving the input for the copy ending control, the electronic device may process the copied text, and determine information displayed in the edit box and a first control corresponding to the information based on the copied text. Therefore, when the user copies a plurality of texts, the electronic equipment can perform parallel processing on the copied texts after finishing the current copying, so that the efficiency of text processing can be improved.
Further, a second control is also included in the edit box, and the method further includes:
in response to receiving a seventh input for the second control, storing all information included in the edit box into a sticky pad.
In this optional implementation, the second control is configured to trigger the electronic device to store all information included in the edit box in the sticky board. In this way, the electronic device may paste all contents in the paste board in the input box after responding to the received eighth input for the input box, so as to realize uniform paste of all information included in the edit box, thereby improving the speed of information paste.
In practical applications, the second control may be represented as a confirmation copy control, but is not limited thereto.
It should be noted that, in the embodiments of the present application, various optional implementations that are described in the embodiments of the present application may be implemented in combination with each other or may be implemented separately without conflicting with each other, and the embodiments of the present application are not limited to this.
For ease of understanding, examples are illustrated below:
in this example, the user can copy edit a plurality of times on the copy side, and can transmit the content into the corresponding input box by way of transmission. The inconvenience that the user can only copy one section of content at a time is improved, and meanwhile, the scene is identified, so that the user can quickly forward the content, and the efficiency is improved.
Example one
As shown in fig. 2, the text processing method may include the steps of:
step 200, intelligently copying a piece of content.
In the embodiment of the application, after detecting that a certain section of text is selected by a user, the electronic device may display a prompt box, where the prompt box may include a first copy control and a second copy control, the first copy control is used to trigger the electronic device to store the selected text in the pasting board, and the second copy control is used to trigger the electronic device to display an edit box. The first copy control may be understood as a prior art copy control; the second copy control may be understood as a newly added copy control in the embodiment of the present application, and may also be referred to as an intelligent copy control.
For ease of understanding, please refer to fig. 3a, in fig. 3a, a user selects a piece of content by long pressing, and selects smart copy.
201. The duplicate scenes of the user are identified by semantic recognition or application in a recent task.
After the user clicks the "smart copy" button, the electronic device may identify the scenario of the user's copy operation according to the semantics of the copied content and the application opened in the current recent task, such as: if the user copies the telephone number and address, and opens the E-commerce application recently, the scene can be identified as filling in the receiving address.
202. And automatically popping up an edit box above the copied content.
When the scene operated by the user is identified, an edit box can be automatically popped up, and the content included in the edit box can be edited by the electronic equipment or edited by the user. The edit box shown in fig. 3b includes: a label, sub-information extracted from the copied text, a send control, a continue copy control, and a confirm copy control.
In the editing process, if a user finds that a plurality of sections of content need to be copied and clicks to continue copying control, the continuously copied content and the previous section of copied content are combined together to appear in an editing frame, if the user confirms that the edited content is correct, the user clicks a copy confirmation control to copy the whole section of content, and further, the whole section of content can be copied with a tag.
The label in the edit box can be used to locate the paste location. The edit boxes shown in fig. 3b include name, phone, and address tags, which correspond to the name edit bar, phone edit bar, and address edit bar, respectively, in the harvest address fill-in page of fig. 3 c. Thus, as shown in fig. 3c, the electronic device may fill information corresponding to the name tag in the edit box of fig. 3a into the name edit field in the harvest address fill page of fig. 3c, information corresponding to the phone tag in the edit box of fig. 3a into the phone edit field in the harvest address fill page of fig. 3c, and information corresponding to the address tag in the edit box of fig. 3a into the address edit field in the harvest address fill page of fig. 3 c.
203. After detecting the touch operation for the send button, the content will be forwarded to other applications.
As shown in fig. 3a, a send button is provided for the user behind each tag, and each piece of information is preceded by a corresponding tag, so that the user can correspond to tags on other application interfaces, such as: the current scene of the user is that a receiving address management interface of a first shopping application program is opened, corresponding name, telephone and address edit bars are arranged in the interface, and a sending button appears behind the interface after the user copies a section of content and automatically marks a label on the memorandum interface. When the user clicks the send button of the name label bar, the name is automatically filled in the name edit bar of the Taobao delivery address through label identification, and if a plurality of shopping applications, such as a first shopping application and a second shopping application, are opened recently, the user is prompted to which application to send when the send button is clicked, as shown in FIG. 3 b.
In this example, the user can not only copy the content for multiple times, but also send the content to the corresponding application through the tag, thereby reducing the tedious repeated operations of the user and providing a more convenient copying method for the user.
Example two:
in this embodiment, a user may select a plurality of pieces of content when pressing copy for a long time, after a first piece of content is selected, an edit box (which may also be referred to as a floating box) may be automatically popped up, a "copy continuation" option may appear in the edit box, and when the user clicks a "copy continuation" button, an operation of selecting a next piece of content may be performed until a "copy end" button is clicked, and all copied content at this time may be sorted.
As shown in fig. 4a and 4 b. The user has copied 3 courier ticket numbers using the "copy continue" function, respectively, and the 3 courier ticket numbers are recorded in the edit box shown in fig. 4 a. When the user clicks the "end copy" button, as shown in fig. 4b, the edit box may pop up 3 paste buttons, and 3 pieces of content are stored in the 3 buttons, respectively. The user selects which button on the express inquiry page and then pastes the content of which button to the express inquiry page, as shown in fig. 4b, the user clicks the button 1 on the express inquiry page, and as shown in fig. 4c, the waybill number is displayed on the express inquiry page: 123456.
in the embodiment, the user copies the data on the copy interface and pastes the data on the paste interface respectively, so that the frequency of the user executing input to trigger the electronic equipment to jump back and forth on a plurality of interfaces is reduced, and more convenient and intelligent copying experience is provided for the user.
It should be noted that, in the text processing method provided in the embodiment of the present application, the execution main body may be a text processing apparatus, or a control module in the text processing apparatus for executing the text processing method. In the embodiment of the present application, a text processing apparatus executes a text processing method as an example, and the text processing apparatus provided in the embodiment of the present application is described.
Referring to fig. 5, fig. 5 is a structural diagram of a text processing apparatus according to an embodiment of the present application.
As shown in fig. 5, the text processing apparatus 500 includes:
a first display module 501, configured to display, in response to a first input for copying a first text received on a first page, an edit box including first information determined based on the first text and a first control corresponding to the first information;
a first pasting module 502, configured to paste the first information in a first pasting page in response to a received second input for a first control corresponding to the first information.
Optionally, in a case that the first control is a sending control, the first pasting module 502 includes:
the first display unit is used for responding to the received second input aiming at the first control corresponding to the first information and displaying the identification information of the P application programs;
a first pasting unit, configured to paste the first information in a target page of a target application program in response to a received third input of identification information for the target application program;
wherein the target application is an application of the P applications, and P is a positive integer.
Optionally, in a case that the first control is a paste control, the first paste module 502 includes:
a first receiving unit, configured to receive a second input for a first control corresponding to the first information;
and the second pasting unit is used for responding to the second input and pasting the first information in a second page, wherein the second page is a display page when the second input is received.
Optionally, the first display module 501 includes:
the recognition unit is used for responding to a first input for copying a first text received on a first page, and recognizing the copying intention of the first text according to at least one of a semantic recognition result of the first text and N application programs started in a first time period;
a second display unit for displaying an edit box corresponding to the duplication intention;
wherein the edit box further comprises a label corresponding to the copy intention, and the label is used for: positioning the pasting position of the first information, or recording the related information of the first text; the first information corresponds to the tag.
Optionally, in a case that the tag is used to record related information of the first information, the first pasting module 502 includes:
a second receiving unit, configured to receive a second input for a first control corresponding to the first information;
and the third pasting unit is used for responding to the second input and pasting the first information and the label corresponding to the first information in the first pasting page.
Optionally, the first display module 501 includes:
the third display unit is used for responding to a first input of copying a first text received on the first page and displaying an edit box, wherein the edit box comprises the first text, a continuous copying control and an ending copying control;
a third receiving unit, configured to receive, in a case where a fourth input for the copy continuation control is received, a fifth input for copying the second text received at a third page;
an adding unit configured to add the second text in the edit box in response to the fifth input;
a fourth receiving unit, configured to receive a sixth input for the end copy control;
and the updating unit is used for responding to the sixth input and updating the editing box, and the updated editing box comprises first information determined based on the first text, a first control corresponding to the first information, second information determined based on the second text and a first control corresponding to the second information.
Optionally, the edit box further includes a second control, and the text processing apparatus 500 further includes:
a receiving module for receiving a seventh input for the second control;
and the storage module is used for responding to the seventh input and storing all information included in the edit box into the pasting board.
The text processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in an electronic device.
The text processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The text processing apparatus 500 provided in the embodiment of the present application can implement each process of the method embodiment, and achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
Optionally, as shown in fig. 6, an embodiment of the present application further provides a communication device 600, which includes a processor 601, a memory 602, and a program or an instruction stored on the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the foregoing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 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.
In the embodiment of the present application, the radio frequency unit 701 receives downlink data from a network side device and then processes the downlink data in the processor 710; in addition, the uplink data is sent to the network side equipment. In general, radio frequency unit 701 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.
The memory 709 may be used to store software programs or instructions as well as various data. The memory 709 may mainly include a storage program or instruction area and a storage data area, wherein the storage program or instruction area may store an operating system, an application program or instruction (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. In addition, the Memory 709 may include a high-speed random access Memory and a nonvolatile Memory, where the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
Processor 710 may include one or more processing units; alternatively, processor 710 may be integrated into an application processor that handles primarily the operating system, user interface, and application programs or instructions, and a modem processor that handles primarily wireless communications, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
Wherein, the processor 710 is configured to:
in response to a first input copying a first text received by the user input unit 707 on the first page, displaying an edit box including first information determined based on the first text and a first control corresponding to the first information through the display panel 7061;
the first information is pasted in the first paste page in response to a second input received by the user input unit 707 with respect to the first control corresponding to the first information.
Optionally, in a case that the first control is a sending control, the processor 710 is configured to:
in response to a second input to the first control corresponding to the first information received by the user input unit 707, displaying identification information of the P applications through the display panel 7061;
pasting the first information in a target page of a target application in response to a third input for identification information of the target application received by the user input unit 707;
wherein the target application is an application of the P applications, and P is a positive integer.
Optionally, in a case that the first control is a paste control, the processor 710 is configured to:
receiving, by the user input unit 707, a second input for a first control corresponding to the first information;
and responding to the second input, and pasting the first information in a second page, wherein the second page is a display page when the second input is received.
Optionally, the processor 710 is configured to:
recognizing, in response to a first input to copy a first text received by the user input unit 707 on a first page, a copy intention of the first text based on at least one of a semantic recognition result of the first text and N applications started for a first duration;
displaying an edit box corresponding to the copy intention through the display panel 7061;
wherein the edit box further comprises a label corresponding to the copy intention, and the label is used for: positioning the pasting position of the first information, or recording the related information of the first text; the first information corresponds to the tag.
Optionally, in a case that the tag is used to record related information of the first information, the processor 710 is configured to:
receiving, by the user input unit 707, a second input for a first control corresponding to the first information;
and responding to the second input, and pasting the first information and the label corresponding to the first information in a first pasting page.
Optionally, the processor 710 is configured to:
in response to a first input to copy a first text received at the first page by the user input unit 707, displaying an edit box including the first text, a continue copy control, and an end copy control;
receiving, through the user input unit 707, a fifth input to copy the second text received at the third page in a case where a fourth input to the copy-continue control is received through the user input unit 707;
adding the second text in the edit box in response to the fifth input;
receiving a sixth input for the end copy control through the user input unit 707;
and responding to the sixth input, updating the edit box, wherein the updated edit box comprises first information determined based on the first text, a first control corresponding to the first information, second information determined based on the second text, and a first control corresponding to the second information.
Optionally, the edit box further includes a second control, and the processor 710 is configured to:
receiving a seventh input for the second control through the user input unit 707;
in response to the seventh input, storing all information included in the edit box into a sticker sheet.
It should be noted that, in the embodiment, the electronic device 700 may implement each process in the method embodiment of the present application and achieve the same beneficial effects, and for avoiding repetition, the details are not described here again.
The embodiment of the present application 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 the processes of the text processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a network-side device program or an instruction, so as to implement each process of the method embodiment, achieve the same technical effect, and avoid repetition, which is not described herein again.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip or a system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application has been described with reference to the embodiments shown in the drawings, the present application is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that many more modifications and variations can be made without departing from the spirit of the application and the scope of the appended claims.

Claims (10)

1. A method of text processing, the method comprising:
in response to a first input of copying a first text received at a first page, displaying an edit box, wherein the edit box comprises first information determined based on the first text and a first control corresponding to the first information;
in response to receiving a second input for a first control corresponding to the first information, paste the first information in a first paste page.
2. The method of claim 1, wherein in a case that the first control is a send control, the pasting the first information in a first paste page in response to receiving a second input for the first control corresponding to the first information comprises:
in response to a received second input for a first control corresponding to the first information, displaying identification information of the P applications;
in response to a received third input of identification information for a target application program, pasting the first information in a target page of the target application program;
wherein the target application is an application of the P applications, and P is a positive integer.
3. The method of claim 1, wherein in a case that the first control is a paste control, the pasting the first information in a first paste page in response to receiving a second input for the first control corresponding to the first information comprises:
receiving a second input for a first control corresponding to the first information;
and responding to the second input, and pasting the first information in a second page, wherein the second page is a display page when the second input is received.
4. The method of claim 1, wherein displaying an edit box in response to receiving a first input on the first page that copies the first text comprises:
in response to a first input for copying a first text received at a first page, recognizing an intent to copy the first text according to at least one of a semantic recognition result of the first text and N applications started in a first time period;
displaying an edit box corresponding to the copy intention;
wherein the edit box further comprises a label corresponding to the copy intention, and the label is used for: positioning the pasting position of the first information, or recording the related information of the first text; the first information corresponds to the tag.
5. The method of claim 4, wherein, in a case where the tag is used to record information related to the first information, the pasting the first information in a first pasted page in response to receiving a second input for a first control corresponding to the first information comprises:
receiving a second input for a first control corresponding to the first information;
and responding to the second input, and pasting the first information and the label corresponding to the first information in a first pasting page.
6. The method of claim 1, wherein displaying an edit box in response to receiving a first input on the first page that copies the first text comprises:
in response to a first input for copying a first text received at a first page, displaying an edit box, wherein the edit box comprises the first text, a continuous copying control and an ending copying control;
receiving a fifth input to copy the second text received at the third page if a fourth input to the copy-continue control is received;
adding the second text in the edit box in response to the fifth input;
receiving a sixth input for the end copy control;
and responding to the sixth input, updating the edit box, wherein the updated edit box comprises first information determined based on the first text, a first control corresponding to the first information, second information determined based on the second text, and a first control corresponding to the second information.
7. The method of claim 6, further comprising a second control in the edit box, the method further comprising:
receiving a seventh input for the second control;
in response to the seventh input, storing all information included in the edit box into a sticker sheet.
8. A text processing apparatus, characterized in that the text processing apparatus comprises:
the first display module is used for responding to a first input of copying a first text received on a first page, and displaying an edit box, wherein the edit box comprises first information determined based on the first text and a first control corresponding to the first information;
the first pasting module is used for responding to a received second input aiming at a first control corresponding to the first information and pasting the first information in a first pasting page.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the text processing method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the text processing method according to any one of claims 1 to 7.
CN202110089515.3A 2021-01-22 2021-01-22 Text processing method and device, electronic equipment and readable storage medium Pending CN112765942A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110089515.3A CN112765942A (en) 2021-01-22 2021-01-22 Text processing method and device, electronic equipment and readable storage medium
PCT/CN2022/072504 WO2022156669A1 (en) 2021-01-22 2022-01-18 Text processing method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110089515.3A CN112765942A (en) 2021-01-22 2021-01-22 Text processing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112765942A true CN112765942A (en) 2021-05-07

Family

ID=75706664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110089515.3A Pending CN112765942A (en) 2021-01-22 2021-01-22 Text processing method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN112765942A (en)
WO (1) WO2022156669A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805709A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Information input method and device
WO2022156669A1 (en) * 2021-01-22 2022-07-28 维沃移动通信有限公司 Text processing method and apparatus, electronic device, and readable storage medium
WO2022237795A1 (en) * 2021-05-11 2022-11-17 维沃移动通信有限公司 Information display method and electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100122160A1 (en) * 2008-11-10 2010-05-13 International Business Machines Corporation Non-contiguous content duplication
CN105512260A (en) * 2015-12-03 2016-04-20 北京奇虎科技有限公司 E-book multi-segment excerpt sharing method and device
CN107967093B (en) * 2017-12-21 2020-01-31 维沃移动通信有限公司 multi-segment text copying method and mobile terminal
CN108228058A (en) * 2018-03-19 2018-06-29 网易(杭州)网络有限公司 Information stickup method and device, electronic equipment, storage medium
CN110909524B (en) * 2019-11-27 2023-12-26 维沃移动通信有限公司 Editing method and electronic equipment
CN111638838A (en) * 2020-05-19 2020-09-08 维沃移动通信有限公司 Text editing method and device and electronic equipment
CN112765942A (en) * 2021-01-22 2021-05-07 维沃移动通信有限公司 Text processing method and device, electronic equipment and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156669A1 (en) * 2021-01-22 2022-07-28 维沃移动通信有限公司 Text processing method and apparatus, electronic device, and readable storage medium
WO2022237795A1 (en) * 2021-05-11 2022-11-17 维沃移动通信有限公司 Information display method and electronic device
CN113805709A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Information input method and device

Also Published As

Publication number Publication date
WO2022156669A1 (en) 2022-07-28

Similar Documents

Publication Publication Date Title
CN112765942A (en) Text processing method and device, electronic equipment and readable storage medium
CN110196675A (en) A kind of method and electronic equipment of addition annotation
CN108156407A (en) A kind of video clipping method and terminal
CN109948102B (en) Page content editing method and terminal
CN108351880A (en) Image processing method, device, electronic equipment and graphic user interface
US9424364B2 (en) Integrated context-driven information search and interaction
CN112783592B (en) Information issuing method, device, equipment and storage medium
CN112817676B (en) Information processing method and electronic device
CN112954046B (en) Information transmission method, information transmission device and electronic equipment
WO2023061414A1 (en) File generation method and apparatus, and electronic device
CN113311968A (en) Application program correlation method and device
CN112181253A (en) Information display method and device and electronic equipment
CN114205447B (en) Shortcut setting method and device of electronic equipment, storage medium and electronic equipment
CN106060220A (en) Contact information creation method and mobile terminal
CN111641551A (en) Voice playing method, voice playing device and electronic equipment
CN111954079A (en) Image processing method, image processing apparatus, electronic device, and medium
CN111638839A (en) Screen capturing method and device and electronic equipment
CN113905125B (en) Video display method and device, electronic equipment and storage medium
CN113325986B (en) Program control method, program control device, electronic device and readable storage medium
CN114221923B (en) Message processing method and device and electronic equipment
CN112328141A (en) Copying method and device
CN113436297A (en) Picture processing method and electronic equipment
CN112612400B (en) Text content processing method and electronic equipment
CN108460128B (en) Document management method and device, electronic device and readable storage medium
CN112416203A (en) Message reply method, device 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