WO2022156669A1 - 文本处理方法、装置、电子设备及可读存储介质 - Google Patents

文本处理方法、装置、电子设备及可读存储介质 Download PDF

Info

Publication number
WO2022156669A1
WO2022156669A1 PCT/CN2022/072504 CN2022072504W WO2022156669A1 WO 2022156669 A1 WO2022156669 A1 WO 2022156669A1 CN 2022072504 W CN2022072504 W CN 2022072504W WO 2022156669 A1 WO2022156669 A1 WO 2022156669A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
input
text
page
control
Prior art date
Application number
PCT/CN2022/072504
Other languages
English (en)
French (fr)
Inventor
严乐萌
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022156669A1 publication Critical patent/WO2022156669A1/zh

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

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a text processing method, an apparatus, an electronic device and a readable storage medium.
  • a text selection box is displayed in the text through the user's long-press operation on the text, and the user's adjustment to the text selection box is received to determine the corresponding copy content, so as to realize the copying of the text;
  • the long-press operation on the box displays a prompt box including the paste control above or below the input box, and receives the user's touch on the paste control to input the copied text into the input box, thereby realizing the pasting of the text.
  • the embodiments of the present application provide a text processing method, apparatus, electronic device, and readable storage medium, which can solve the problem that in the existing text processing method, the user needs to perform input to trigger the electronic device to switch back and forth between copying pages and pasting pages, causing text deal with less efficient problems.
  • a text processing method comprising:
  • an edit box is displayed, the edit box including the first information determined based on the first text, and the first information corresponding to the first information.
  • the first information is pasted in the first paste page.
  • a text processing apparatus comprising:
  • a first display module configured to display an edit box in response to a first input of copying the first text received on the first page, the edit box including the first information determined based on the first text, and the first control corresponding to the first information;
  • the first paste module is configured to paste the first information into the first paste page in response to the received second input for the first control corresponding to the first information.
  • an electronic device comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor When executed, the steps of the method as described in the first aspect are implemented.
  • a readable storage medium is provided, and a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented.
  • a chip in a fifth aspect, includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the method according to the first aspect .
  • an embodiment of the present application provides a computer program product, where the computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the method according to the first aspect.
  • an embodiment of the present application provides a communication device configured to execute the method described in the first aspect.
  • the electronic device may display an edit box, where the edit box includes the first information determined based on the first text and corresponds to the first information
  • the first control and in response to the received second input for the first control corresponding to the first information, the first information can be pasted in the first paste page.
  • the user can trigger the electronic device to paste the information into the corresponding page by interacting with the first control in the edit box, without performing input to trigger the display interface of the electronic device to switch back and forth between the copy page and the paste page, thereby simplifying the user experience operation to improve the efficiency of text processing.
  • Fig. 1 is one of the flow charts of the text processing method provided by the embodiment of the present application.
  • FIG. 2 is the second flow chart of the text processing method provided by the embodiment of the present application.
  • 3a is a schematic diagram of a duplicated page provided by an embodiment of the present application.
  • Fig. 3b is one of the schematic diagrams of the editing frame provided by the embodiment of the present application.
  • 3c is a schematic diagram of a page for filling in a delivery address of a first application provided by an embodiment of the present application
  • Fig. 4a is the second schematic diagram of the editing frame provided by the embodiment of the present application.
  • Fig. 4b is the third schematic diagram of the editing frame provided by the embodiment of the present application.
  • 4c is a schematic diagram of an express query page provided by an embodiment of the present application.
  • FIG. 5 is a structural diagram of a text processing apparatus provided by an embodiment of the present application.
  • FIG. 6 is one of the structural diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a second structural diagram of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and "first”, “second” distinguishes Usually it is a class, and the number of objects is not limited.
  • the first object may be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the text processing method of the embodiment of the present application may be executed by an electronic device.
  • the electronic device can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, a super computer Mobile personal computer (ultra-mobile personal computer, UMPC), mobile Internet device (Mobile Internet Device, MID), wearable device (Wearable Device) or vehicle equipment (VUE), pedestrian electronic equipment (PUE) and other electronic equipment side equipment , Wearable devices include: bracelets, earphones, glasses, etc.
  • FIG. 1 is one of the flowcharts of the text processing method provided by the embodiment of the present application. As shown in Figure 1, the text processing method may include the following steps:
  • Step 101 In response to the first input of copying the first text received on the first page, display an edit box, the edit box includes the first information determined based on the first text, and the first information and the first information. The corresponding first control.
  • the display edit box can be, but not limited to, any of the following: a) display the edit box on the first page; b) control the display page to switch from the first page to the edit box.
  • the display page of the electronic device will not be switched, the edit box can be suspended and displayed on the first page, and the display size of the edit box can be smaller than the first page; in b), The display page of the electronic device will switch, and the display size of the edit box may match the display page of the electronic device, filling the entire display page.
  • the first information included in the edit box can be understood as candidate paste information.
  • the first text is used to determine the content of the first information.
  • the first information can be, but is not limited to, any of the following: the first text; extracted from the first text M pieces of sub-information output, where M is a positive integer.
  • the first control included in the edit box can be used to trigger pasting of its corresponding information, that is, in the case of receiving an input for a certain first control, the electronic device can respond to the input and execute the corresponding information. Paste the information corresponding to the first control.
  • the control may be expressed as a button, but is not limited to this.
  • the number of first controls corresponding to the first information may be related to the representation form of the first information.
  • the number of the first controls may be 1; in the case that the first information is the M sub-information, the first control The number of a control can be 1 or M.
  • the M pieces of sub-information correspond to one first control. Therefore, when the electronic device receives the input of the first control , the M pieces of sub-information can be pasted in response to the input. In this case, the pasting of the M pieces of sub-information is implemented based on one input, so that the processing convenience of the first information can be improved.
  • the M sub-information corresponds to the M first widgets one-to-one, and the M first widgets are in one-to-one correspondence.
  • Each first control is used to paste the sub-information corresponding to the trigger.
  • the pasting of the M pieces of sub-information is implemented based on the M pieces of input, which are independent of each other, so that the flexibility of processing the first information can be improved.
  • the content in the editing box can be changed.
  • the edit box may include the first text, and after receiving the input, the electronic device may adjust the first text to M pieces of sub-information; or, the user may or, if the user also copies the second text before ending the copying, the edit box may further include second information determined based on the second text, and a first text corresponding to the second information. a control.
  • Step 102 In response to the received second input for the first control corresponding to the first information, paste the first information into the first paste page.
  • the electronic device displays the editing box, if it receives an input for the first control, it can paste the information corresponding to the first control into a corresponding page. It can be seen that the user can trigger the electronic device to paste the information on the corresponding page by interacting with the first control in the edit box, without performing input to trigger the display interface of the electronic device to switch back and forth between the copy page and the paste page, which can simplify the user operation to improve the efficiency of text processing.
  • the display page of the electronic device when the second input is received, the display page of the electronic device may be the first paste page, and the edit box is suspended and displayed on the first paste page, or it may not be the first paste page page.
  • the implementation of pasting the first information into the first pasting page may be different, and the specific description is as follows:
  • Case 1 When the second input is received, the display page of the electronic device is the first paste page, and the edit box is suspended and displayed on the first paste page.
  • the electronic device may directly paste the first information on the currently displayed page.
  • the electronic device can hide the edit box so that the user can view the complete first paste page to watch the paste effect of the first information; it can also continue to display the edit box in a floating manner. box for subsequent text processing operations.
  • the electronic device may perform the operation of pasting the first information into the first pasting page in the following manner:
  • the operation of pasting the first information on the first pasting page may be performed in the foreground.
  • the display page of the electronic device can jump to the first paste page, and paste the first information into the first paste page.
  • the edit box can always be suspended and displayed on the display page of the electronic device, or it can be hidden when the display page of the electronic device jumps to the first paste page, which can be determined according to the actual situation. The embodiment does not limit this.
  • the operation of pasting the first information on the first pasting page may be performed in the background.
  • the display page of the electronic device may not change, but the first information will be pasted in the first pasting page.
  • the electronic device switches to the first paste page based on other inputs, the user can view the first information pasted in the first paste page.
  • the second input includes M sub-inputs, and the input objects of each sub-input are the M sub-inputs One of the first controls, and the input objects of each sub-input are different.
  • 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-inputs from first to last, or may be performed together after the M pieces of sub-inputs are completed, which may be determined according to the actual situation. This embodiment of the present application does not limit this.
  • the electronic device may pop up an edit box, where the edit box includes the first information determined based on the first text, and the first The first control corresponding to the information, and the first information can be pasted in the first paste page in response to the received second input for the first control corresponding to the first information.
  • the user can trigger the electronic device to paste the information into the corresponding page by interacting with the first control in the edit box, without performing input to trigger the display interface of the electronic device to switch back and forth between the copy page and the paste page, thereby simplifying the user experience operation to improve the efficiency of text processing.
  • step 102 in the embodiment of the present application:
  • the first control may be, but is not limited to, a send control or a paste control, wherein the send control may be used to trigger the determination of the paste page and the paste of information; the paste control is used to trigger pasting of information.
  • the first paste page may be the display page when the electronic device receives the second input, or may be the target page of the target application program selected by the user. Described below in conjunction with specific embodiments:
  • a paste page including:
  • the target application is an application among the P applications, and P is a positive integer.
  • the first control is a sending control, which is used to trigger the determination of the paste page and the paste of the information.
  • the electronic device may display identification information of P applications, so that the user can select a target application for pasting the first information.
  • the electronic device may directly paste the first information into the target page of the target application program, that is, the first paste page is the target page of the target application program. In this way, the user can paste the information into the target application program desired by the user by interacting with the first control of the edit box, thereby improving the reliability of pasting.
  • the P application programs may be application programs started by the electronic device within a second duration, wherein the end time of the second duration is the input of the second input At the moment, the length of the second duration may be defaulted by the system or determined by the user. In this implementation manner, the value of P is determined based on the actual situation.
  • the P application programs may be any P application programs installed on the electronic device, and further, the P application programs may be the system default or user-selected P application programs. In this implementation manner, the value of P can be predetermined.
  • the target page can be a page including an input box, for example, in a shopping application, the target page can be a delivery address filling page; in a communication application, the target page can be a chat page.
  • a paste page including:
  • the first information is pasted in a second page, the second page being a display page when the second input is received.
  • the first control is a paste control, which is used to trigger the paste of information.
  • the user wants to paste the first information on a certain display page, he can first perform 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 display the page.
  • the first information is pasted on the page, that is, the first pasted page is the page currently displayed when the electronic device receives the second input.
  • step 101 in the embodiment of the present application:
  • the displaying an edit box in response to the first input of copying the first text received on the first page includes:
  • a copy intent of the text also known as a copy scene
  • the edit box further includes a label corresponding to the copy intention, and the label is used for: locating the pasting position of the first information, or recording relevant information of the first text; the first Information corresponds to the label.
  • the corresponding labels in different copy intentions may be different.
  • the label corresponding to the copy intention can be used to locate the pasting position of the first information;
  • the corresponding label of the copy intention can be for recording relevant information of the first text.
  • the first information corresponds to the tag, which can be understood as: the first information is determined based on the tag.
  • the tag may be used to determine the representation form of the first information.
  • the number of sub-information included in the first information may be equal to the number of tags included in the editing box.
  • the label when used to locate the pasting position of the first information, the label may be used for at least one of the following: determining the first pasting page on which the first information is pasted; The first information is at the specific pasting position of the first pasting page.
  • the edit box can include a name label, a phone number label, and an address label.
  • the electronic device can use the label in the edit box to determine that the first pasting page is the delivery address filling page, and the specific pasting position of the name label on the delivery address filling page is the name on the delivery address filling page. column.
  • the electronic device can determine the pasting position of the first information based on the label, so that the pasting rate of the first information can be improved.
  • the related information of the first information may include, but is not limited to, at least one of the following: the copy time of the first information, the The source of the first information, the purpose of the first information, etc.
  • pasting the first information into the first paste page includes:
  • the first information and the label corresponding to the first information are pasted in the first pasting page.
  • the electronic device can paste the first information and its corresponding label on the first pasting page together, the user can know the first information through the label corresponding to the first information when viewing the pasted content. information related to the information, which can improve the reliability of text processing.
  • the electronic device can recognize the copy intention of the first text, and display an edit box corresponding to the copy intention, thereby improving the speed of information pasting , or, to improve the reliability of text processing.
  • the edit box may include the first information, the first control corresponding to the first information, and the label corresponding to the first information.
  • the electronic device may be preset with U kinds of copy intentions and U kinds of edit boxes corresponding to the U kinds of copy intentions, where U is an integer greater than 1. It can be understood that the design of the edit box corresponding to each copy intention is used for the electronic device to paste information more conveniently, or to record the relevant information related to the first text. For ease of understanding, an example is described below:
  • the U copying intentions include: the first intention of filling in the delivery address, the second intention of excerpting the text, and the like.
  • the first edit box corresponding to the first intention stored in advance by the electronic device may include M labels such as name, phone number, and address.
  • the first information may be M sub-information corresponding to the M tags extracted from the first text
  • the first controls corresponding to the first information may be one or M controls.
  • the electronic device when pasting the first information, can determine, based on the label corresponding to the first information, that the pasting page of the first information is the page for filling in the delivery address, and can add the sub-information corresponding to the name label Fill in the name field in the harvest address filling page, fill in the sub-information corresponding to the phone number label in the phone number field in the harvest address filling page, and fill in the sub-information corresponding to the address tag in the address in the harvest address filling page. column, so that the pasting efficiency of electronic equipment can be improved.
  • the second edit box corresponding to the second intention stored in advance by the electronic device may include a second edit box for recording the first text.
  • a label of excerpt information of a text, and the first information may be the first text.
  • the electronic device can also paste the label corresponding to the first information, so that it is convenient for the user to view the excerpt information of the first text, thereby improving the reliability of text processing.
  • the electronic device may identify the copying intention of the first text according to the semantic recognition result of the first text. For example: if the phone number and address are included in the speech recognition result of the first text, it can be determined that the user's intention to copy the first text is the aforementioned first intention; if the speech recognition result of the first text does not include phone number or address, it can be determined that the user's intention to copy the first text is the aforementioned second intention.
  • the electronic device may identify the copying intention of the first text according to N applications started within a first duration, where the end time of the first duration is the first inputted time The time is input, and the length of the first duration can be predetermined. For example, if the N applications include a shopping application or a chat application, it can be determined that the user's intention to copy the first text is the aforementioned first intention; if the N applications include a memo, it can be determined It is determined that the user's intention to copy the first text is the aforementioned second intention.
  • the displaying an edit box in response to the first input of copying the first text received on the first page includes:
  • the edit box is updated, and the updated edit box includes first information determined based on the first text, a first control corresponding to the first information, and a first control based on the second The second information determined by the text, and the first control corresponding to the second information.
  • the copied text when the electronic device displays the edit box, the copied text may not be processed, and the copied text may be directly displayed in the edit box. Further, a continue copy control and an end copy control can also be displayed in the edit box.
  • the continuous copy control is used to trigger the electronic device to continue copying the text, and add corresponding content in the edit box based on the copied text. In this way, the user can realize the pasting of multiple pieces of information by interacting with the editing box, which can further improve the efficiency of information pasting.
  • the end copy control is used to trigger the electronic device to end the copy and update the edit box.
  • the electronic device can process the copied text, and determine the information displayed in the edit box and the first control corresponding to the information based on the copied text. In this way, when the user copies multiple texts, the electronic device can perform parallel processing on the copied multiple texts after the current copying is completed, thereby improving the efficiency of text processing.
  • the editing box further includes a second control
  • the method further includes:
  • the second control is used to trigger the electronic device to store all the information included in the edit box into the pasteboard.
  • the electronic device can paste all the content in the pasteboard into the input box, so as to realize the unification of all the information included in the edit box pasting, thereby increasing the rate at which information is pasted.
  • the second control may be represented as a confirmation copy control, but is not limited to this.
  • the user can copy and edit multiple times on the copy side, and can send the content to the corresponding input box by sending. It improves the inconvenience that users can only copy one piece of content at a time, and at the same time recognizes the scene to allow users to quickly forward the content to improve efficiency.
  • the text processing method may include the following steps:
  • Step 200 intelligently copy a piece of content.
  • the electronic device may display a prompt box, and the prompt box may include a first copy control and a second copy control, and the first copy control uses For triggering the electronic device to store the selected text in the pasteboard, the second copy control is used for triggering the electronic device to display an edit box.
  • the first copy control may be understood as a copy control in the prior art; the second copy control may be understood as a new copy control in the embodiment of the present application, and may also be referred to as an intelligent copy control.
  • Fig. 3a in Fig. 3a, the user selects a piece of content by long pressing, and selects smart copy.
  • the electronic device After the user clicks the "smart copy” button, the electronic device will identify the scene of the user's copy operation based on the semantics of the copied content and the applications opened in the current recent task, for example, if the content copied by the user is a phone number and address , and then according to the user's recent opening of the e-commerce application, this scenario can be identified as filling in the delivery address.
  • An edit box automatically pops up above the copied content.
  • an edit box When the scene operated by the user is recognized, an edit box will pop up automatically, and the content included in the edit box can be edited by the electronic device or by the user.
  • the edit box shown in Figure 3b includes: label, sub-information extracted from the copied text, send control, continue copy control and confirm copy control.
  • the label in the edit box can be used to locate the paste location.
  • the edit box shown in Fig. 3b includes name, phone and address labels, which correspond to the name edit column, telephone edit column and address edit column in the harvest address filling page in Fig. 3c respectively.
  • the electronic device can fill in the information corresponding to the name label in the edit box of Fig. 3a into the name edit column in the harvest address filling page of Fig. 3c, and the corresponding information of the phone label in the edit box of Fig. 3a
  • the information is filled in the telephone editing column in the harvesting address filling page in Fig. 3c, and the information corresponding to the address label in the editing box in Fig. 3a is filled in the address editing column in the harvesting address filling page in Fig. 3c.
  • a send button will be provided to the user after each label. Because each message has a corresponding label in front of it, it can correspond to labels on other application interfaces. For example, the current scene of the user is to open the first A delivery address management interface of a shopping application. There are corresponding name, phone, and address edit fields in the interface. After the user has copied a piece of content in the memo interface and automatically tagged it, a send button will appear later. When the user clicks the send button in the name label column, the name will be automatically filled in the name editing column of the Taobao delivery address through label recognition. If multiple shopping applications have been opened recently, for example, the first shopping application has been opened. , the second shopping application, as shown in Figure 3b, when clicking the send button, the user will be prompted to which application to send to.
  • the user can not only copy the content multiple times, but also send the content to the corresponding application through the tag, which reduces the user's tedious repeated operations and provides the user with a more convenient copying method.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the user can select multiple pieces of content when long-pressing to copy, and after selecting the first piece of content, an edit box (also called a floating box) will automatically pop up, and “Continue to copy” will appear in the edit box Option, when the user clicks the "Continue to copy” button, the next content can be selected until the "End Copy” button is clicked, and all the copied content this time will be sorted out.
  • an edit box also called a floating box
  • the execution body may be a text processing apparatus, or a control module in the text processing apparatus for executing the text processing method.
  • the text processing device provided by the embodiments of the present application is described by taking a text processing device executing a text processing method as an example.
  • FIG. 5 is a structural diagram of a text processing apparatus provided by an embodiment of the present application.
  • the text processing apparatus 500 includes:
  • the first display module 501 is configured to display an edit box in response to the first input of copying the first text received on the first page, the edit box includes the first information determined based on the first text, and the a first control corresponding to the first information;
  • the first paste module 502 is configured to paste the first information into the first paste page in response to the received second input for the first control corresponding to the first information.
  • the first paste module 502 includes:
  • a first display unit configured to display identification information of P applications in response to the received second input for the first control corresponding to the first information
  • a first pasting unit configured to paste the first information into a target page of the target application in response to the received third input of the identification information of the target application
  • the target application is an application among the P applications, and P is a positive integer.
  • the first paste module 502 includes:
  • a first receiving unit configured to receive a second input for the first control corresponding to the first information
  • a second pasting unit configured to paste the first information into a second page in response to the second input, where the second page is a display page when the second input is received.
  • the first display module 501 includes:
  • a recognition unit configured to respond to the first input of copying the first text received on the first page, according to the semantic recognition result of the first text and at least one of the N applications started within the first duration , identifying the copy intention of the first text;
  • a second display unit configured to display an edit box corresponding to the copy intention
  • the edit box further includes a label corresponding to the copy intention, and the label is used for: locating the pasting position of the first information, or recording relevant information of the first text; the first Information corresponds to the label.
  • the first pasting module 502 includes:
  • a second receiving unit configured to receive a second input for the first control corresponding to the first information
  • a third sticking unit configured to stick the first information and the label corresponding to the first information on the first sticking page in response to the second input.
  • the first display module 501 includes:
  • a third display unit configured to display an edit box in response to the first input of copying the first text received on the first page, the edit box including the first text, a continue copy control and an end copy control;
  • a third receiving unit configured to receive the fifth input of copying the second text received on the third page under the condition of receiving the fourth input for the continued copying control
  • An adding unit for adding 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
  • an update unit configured to update the edit box in response to the sixth input, where the updated edit box includes 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.
  • the editing box further includes a second control
  • the text processing apparatus 500 further includes:
  • a receiving module configured to receive a seventh input for the second control
  • a storage module configured to store all the information included in the edit box into the pasteboard in response to the seventh input.
  • the text processing apparatus in this embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in an electronic device.
  • the text processing apparatus in this 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, which are not specifically limited in the embodiments of the present application.
  • the text processing apparatus 500 provided in this embodiment of the present application can implement each process of the method embodiment, and achieve the same technical effect. To avoid repetition, details are not described here.
  • an embodiment of the present application further provides a communication device 600, including a processor 601, a memory 602, a program or instruction stored in the memory 602 and executable on the processor 601,
  • a communication device 600 including a processor 601, a memory 602, a program or instruction stored in the memory 602 and executable on the processor 601,
  • the program or instruction is executed by the processor 601
  • each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • 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, etc. part.
  • the electronic device 700 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 706 may include a display panel 7061, which 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 called a touch screen.
  • the touch panel 7071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the radio frequency unit 701 receives the downlink data from the network side device, and then processes it to the processor 710; in addition, sends the uplink data to the network side device.
  • the 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.
  • 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 required for at least one function (such as a sound playback function, an image playback function, etc.) and the like.
  • the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, wherein the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM) , PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • PROM erasable programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory for example at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the processor 710 may include one or more processing units; optionally, the processor 710 may be integrated into an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, application programs or instructions, etc. , the modem processor mainly deals with wireless communication, such as the baseband processor. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 710.
  • the processor 710 is used for:
  • an edit box is displayed through the display panel 7061, the edit box including the first information determined based on the first text, and the a first control corresponding to the first information;
  • the first information is pasted in the first paste page in response to the second input for the first control corresponding to the first information received by the user input unit 707 .
  • the processor 710 is configured to:
  • the identification information of the P applications is displayed through the display panel 7061;
  • the first information is pasted into the target page of the target application program
  • the target application is an application among the P applications, and P is a positive integer.
  • the processor 710 is configured to:
  • the first information is pasted in a second page, the second page being a display page when the second input is received.
  • the processor 710 is configured to:
  • the edit box further includes a label corresponding to the copy intention, and the label is used to: locate the pasting position of the first information, or record the relevant information of the first text; the first Information corresponds to the label.
  • the processor 710 is configured to:
  • the first information and the label corresponding to the first information are pasted in the first pasting page.
  • the processor 710 is configured to:
  • an edit box is displayed, and the edit box includes the first text, a continue copy control, and an end copy control;
  • the edit box is updated, and the updated edit box includes first information determined based on the first text, a first control corresponding to the first information, and a first control based on the second The second information determined by the text, and the first control corresponding to the second information.
  • the editing box further includes a second control, the processor 710, for:
  • the electronic device 700 in this embodiment can implement each process in the method embodiment of the present application, and achieve the same beneficial effect, and to avoid repetition, details are not described here.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above text processing method embodiments can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiments of the present application further provide a readable storage medium, the readable storage medium may be non-volatile or volatile, and a program or an instruction is stored on the readable storage medium, and the program or instruction is stored in the readable storage medium.
  • the processor executes, each process of the embodiment of the text processing method is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An 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 program or an instruction to implement the above text processing method embodiments
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above text processing method embodiments
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-chip, or a system-on-a-chip, or the like.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

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

本申请公开了一种文本处理方法、装置、电子设备及可读存储介质,属于通信技术领域。文本处理方法包括:响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,编辑框中包括基于第一文本确定的第一信息,以及与第一信息对应的第一控件(101);响应于接收到的针对与第一信息对应的第一控件的第二输入,将第一信息粘贴于第一粘贴页面中(102)。

Description

文本处理方法、装置、电子设备及可读存储介质
相关申请的交叉引用
本申请主张在2021年1月22日在中国提交的中国专利申请No.202110089515.3的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种文本处理方法、装置、电子设备及可读存储介质。
背景技术
现有的文本处理方式,通过用户在文本上的长按操作,在文本中显示文本选择框,接收用户对文本选择框的调节以确定相应的复制内容,从而实现文本的复制;通过用户在输入框上的长按操作,在输入框的上方或下方显示包括粘贴控件的提示框,接收用户对粘贴控件的触控以将被复制的文本输入至输入框,从而实现文本的粘贴。可见,通过现有的文本处理方式,用户在需要粘贴多个文本时,需要执行输入触发电子设备在复制页面和粘贴页面之间来回切换,导致文本处理的效率较低。
发明内容
本申请实施例提供一种文本处理方法、装置、电子设备及可读存储介质,能够解决现有文本处理方式中因用户需要执行输入触发电子设备在复制页面和粘贴页面之间来回切换,导致文本处理的效率较低的问题。
第一方面,提供了一种文本处理方法,所述方法包括:
响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件;
响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
第二方面,提供了一种文本处理装置,所述文本处理装置包括:
第一显示模块,用于响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件;
第一粘贴模块,用于响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
第三方面,提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品被存储在存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。
第七方面,本申请实施例提供一种通信设备,被配置为执行以实现如第一方面所述的方法。
在本申请实施例中,电子设备在检测到第一文本被复制后,可以显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件,并可以响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。这样,用户可以通过与编辑框中的第一控件交互,触发电子设备将信息粘贴于相应页面中,无需执行输入以触发电子设备的显示界面在复制页面和粘贴页面中来回切换,从而可以简化用户操作,提高文本处理的效率。
附图说明
图1是本申请实施例提供的文本处理方法的流程图之一;
图2是本申请实施例提供的文本处理方法的流程图之二;
图3a是本申请实施例提供的复制页面的示意图;
图3b是本申请实施例提供的编辑框的示意图之一;
图3c是本申请实施例提供的第一应用程序的收货地址填写页面的示意图;
图4a是本申请实施例提供的编辑框的示意图之二;
图4b是本申请实施例提供的编辑框的示意图之三;
图4c是本申请实施例提供的快递查询页面的示意图;
图5是本申请实施例提供的文本处理装置的结构图;
图6是本申请实施例提供的电子设备的结构图之一;
图7是本申请实施例提供的电子设备的结构图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。
以下对本申请实施例的文本处理方法进行说明。
本申请实施例的文本处理方法可以由电子设备执行。在实际应用中,电子设备可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、可穿戴式设备 (Wearable Device)或车载设备(VUE)、行人电子设备(PUE)等电子设备侧设备,可穿戴式设备包括:手环、耳机、眼镜等。
参见图1,图1是本申请实施例提供的文本处理方法的流程图之一。如图1所示,文本处理方法可以包括以下步骤:
步骤101、响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件。
具体实现时,所述显示编辑框可以但不仅限于表现为以下任一项:a)在所述第一页面显示编辑框;b)控制显示页面从所述第一页面切换至编辑框。在a)中,电子设备的显示页面不会发生切换,所述编辑框可以悬浮显示于所述第一页面上,所述编辑框的显示大小可以小于所述第一页面;在b)中,电子设备的显示页面会发生切换,所述编辑框的显示大小可以与电子设备的显示页面匹配,填满整个显示页面。
所述编辑框中包括的第一信息可以理解为候选粘贴信息。所述第一文本用于确定所述第一信息的内容,可选地,所述第一信息可以但不仅限于表现为以下任一项:所述第一文本;从所述第一文本中提取出的M个子信息,M为正整数。
所述编辑框中包括的第一控件可以用于触发其对应的信息的粘贴,也就是说,在接收到针对某第一控件的输入的情况下,电子设备可以响应于该输入,执行该所述第一控件对应的信息的粘贴。在本申请实施例中,控件可以表现为按钮,但不仅限于此。
需要说明的是,在本申请实施例中,与所述第一信息对应的第一控件的数量可以与所述第一信息的表现形式相关。可选地,在所述第一信息为所述第一文本的情况下,所述第一控件的数量可以为1;在所述第一信息为所述M个子信息的情况下,所述第一控件的数量可以为1或M。
在所述第一信息为M个子信息,所述第一控件的数量为1的情况下,所述M个子信息与一个第一控件对应,因此,电子设备在接收到该第一控件的输入时,可以响应于该输入,粘贴所述M个子信息。在此情况下,所述M个子信息的粘贴基于一个输入实现,从而可提高第一信息的处理便捷性。
在所述第一信息为M个子信息,所述第一控件的数量为M的情况下,所述M个子信息与所述M个第一控件一一对应,所述M个第一控件中的每个第一控件用于触发器对应的子信息的粘贴。在此情况下,所述M个子信息的粘贴基于M个输入实现,是相互独立的,从而可提高第一信息的处理灵活度。
另外,在本申请实施例中,所述编辑框中的内容可以改变。如:电子设备显示编辑框时,编辑框中可以包括所述第一文本,在接收到输入后,电子设备可以将所述第一文本调整为M个子信息;或,用户可以对所述第一信息进行编辑;或,若用户在结束复制之前还复制了第二文本,所述编辑框中还可以进一步包括基于所述第二文本确定的第二信息,以及与所述第二信息对应的第一控件。
步骤102、响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
在本申请实施例中,电子设备在显示所述编辑框后,若接收到针对第一控件的输入,即可将该第一控件对应的信息粘贴于相应页面中。可见,用户可以通过与编辑框中的第一控件交互,触发电子设备将信息粘贴于相应页面中,无需执行输入以触发电子设备的显示界面在复制页面和粘贴页面中来回切换,从而可以简化用户操作,提高文本处理的效率。
具体实现时,接收所述第二输入时,电子设备的显示页面可能是所述第一粘贴页面,且所述编辑框悬浮显示于所述第一粘贴页面上,也可能不是所述第一粘贴页面。不同情况下,所述将所述第一信息粘贴于第一粘贴页面中的实现可能不同,具体说明如下:
情况一、接收所述第二输入时,电子设备的显示页面是所述第一粘贴页面,且所述编辑框悬浮显示于所述第一粘贴页面上。
在情况一中,电子设备可以直接将所述第一信息粘贴于当前显示页面中。另外,在接收到所述第二输入后,电子设备可以隐藏所述编辑框,以供用户查看到完整的第一粘贴页面,以观看第一信息的粘贴效果;也可以继续悬浮显示所述编辑框,以供后续文本处理操作。
情况二、接收所述第二输入时,电子设备的显示页面不是所述第一粘贴 页面。
在情况二中,电子设备可以通过以下方式执行所述将所述第一信息粘贴于第一粘贴页面中的操作:
方式一中,所述将所述第一信息粘贴于第一粘贴页面中的操作可以在前台执行。在此方式中,在接收到所述第二输入之后,电子设备的显示页面可以跳转至所述第一粘贴页面,并将所述第一信息粘贴于所述第一粘贴页面中。在此过程中,所述编辑框可以始终悬浮显示于电子设备的显示页面上,也可以在电子设备的显示页面跳转至所述第一粘贴页面时隐藏,具体可根据实际情况决定,本申请实施例对此不做限定。
方式二中,所述将所述第一信息粘贴于第一粘贴页面中的操作可以在后台执行。在此方式中,在接收到所述第二输入之后,电子设备的显示页面可以不发生变化,但所述第一信息会粘贴于第一粘贴页面中。电子设备在基于其他输入切换至所述第一粘贴页面中时,用户可以查看到粘贴于所述第一粘贴页面中的第一信息。
需要说明的是,在所述第一信息为M个子信息,所述第一控件的数量为M的情况下,所述第二输入包括M个子输入,每个子输入的输入对象为所述M个第一控件中的一个第一控件,且每个子输入的输入对象不同。在此情况下,所述M个子信息的粘贴操作可以按照所述M个子输入从先到后的输入时间顺序执行,也可以在所述M个子输入结束后一起执行,具体可根据实际情况决定,本申请实施例对此不做限定。
本申请实施例的文本处理方法,电子设备在检测到第一文本被复制后,可以弹出编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件,并可以响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。这样,用户可以通过与编辑框中的第一控件交互,触发电子设备将信息粘贴于相应页面中,无需执行输入以触发电子设备的显示界面在复制页面和粘贴页面中来回切换,从而可以简化用户操作,提高文本处理的效率。
以下对本申请实施例中的步骤102的实施进行说明:
在本申请实施例中,所述第一控件可以但不仅限于表现为发送控件或粘 贴控件,其中,所述发送控件可以用于触发粘贴页面的确定以及信息的粘贴;所述粘贴控件用于触发信息的粘贴。所述第一粘贴页面可以为电子设备接收所述第二输入时的显示页面,也可以是用户选择的目标应用程序的目标页面。以下结合具体实施方式进行说明:
实施方式一
可选地,在所述第一控件为发送控件的情况下,所述响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中,包括:
响应于接收到的针对与所述第一信息对应的第一控件的第二输入,显示P个应用程序的标识信息;
响应于接收到的针对目标应用程序的标识信息的第三输入,将所述第一信息粘贴于所述目标应用程序的目标页面中;
其中,所述目标应用程序为所述P个应用程序中的应用程序,P为正整数。
在本实施方式中,所述第一控件为发送控件,用于触发粘贴页面的确定以及信息的粘贴。具体实现时,电子设备在接收到所述第二输入之后,可以显示P个应用程序的标识信息,以使用户选择用于粘贴所述第一信息的目标应用程序。电子设备在确定用户选择的目标应用程序之后,可以直接将所述第一信息粘贴于目标应用程序的目标页面中,即所述第一粘贴页面为所述目标应用程序的目标页面。这样,可以使得用户通过与编辑框的第一控件交互,将信息粘贴于用户期望的目标应用程序中,从而可以提高粘贴的可靠性。
在本实施方式中,一种实现方式中,所述P个应用程序可以为电子设备在第二时长内启动的应用程序,其中,所述第二时长的结束时刻为所述第二输入的输入时刻,所述第二时长的长度可以有系统默认或用户确定。在此实现方式中,P的取值基于实际情况决定。
另一种实现方式中,所述P个应用程序可以为电子设备安装的任意P个应用程序,进一步地,所述P个应用程序可以为系统默认或用户选择的P个应用程序。在此实现方式中,P的取值可以预先确定。
所述目标页面可以为包括输入框的页面,如:在购物应用程序中,所述 目标页面可以为收货地址填写页面;在通信应用程序中,所述目标页面可以为聊天页面。
实施方式二
可选地,在所述第一控件为粘贴控件的情况下,所述响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中,包括:
接收针对与所述第一信息对应的第一控件的第二输入;
响应于所述第二输入,将所述第一信息粘贴于第二页面中,所述第二页面为接收到所述第二输入时的显示页面。
在本实施实施方式中,所述第一控件为粘贴控件,用于触发信息的粘贴。具体实现时,若用户想将所述第一信息粘贴于某个显示页面中,可以先执行输入触发电子设备显示该页面,之后,在该页面执行所述第二输入,触发电子设备将所述第一信息粘贴于该页面中,即所述第一粘贴页面为电子设备接收到所述第二输入时的当前显示页面。
以下对本申请实施例中的步骤101的实施进行说明:
实施方式一
可选地,所述响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,包括:
响应于在第一页面接收到的复制第一文本的第一输入,根据所述第一文本的语义识别结果和在第一时长内启动的N个应用程序中的至少一项,识别所述第一文本的复制意图(也可以称为复制场景);
显示与所述复制意图对应的编辑框;
其中,所述编辑框中还包括与所述复制意图对应的标签,所述标签用于:定位所述第一信息的粘贴位置,或,记录所述第一文本的相关信息;所述第一信息与所述标签对应。
在本可选实施方式中,不同复制意图中对应的标签可以不同。如:在复制意图为填写收货地址的情况下,该复制意图对应的标签可以用于定位所述第一信息的粘贴位置;在复制意图为摘抄文本的情况下,该复制意图对应的标签可以用于记录所述第一文本的相关信息。
所述第一信息与所述标签对应,可以理解为:所述第一信息基于所述标签确定。具体实现时,所述标签可以用于确定所述第一信息的表现形式。可选地,所述第一信息包括的子信息个数可以与所述编辑框包括的标签个数相等。
进一步地,在所述标签用于定位所述第一信息的粘贴位置的情况下,所述标签可以用于以下至少一项:确定粘贴所述第一信息的所述第一粘贴页面;确定所述第一信息在所述第一粘贴页面的具体粘贴位置。
如:在复制意图为填写收货地址的情况下,编辑框可以包括姓名标签、电话号码标签、地址标签。这样,电子设备可以通过编辑框中的标签确定所述第一粘贴页面为收货地址填写页面,姓名标签对应的信息在收货地址填写页面的具体粘贴位置为收货地址填写页面中的姓名填写栏。
可见,在此情况下,电子设备可以基于所述标签,确定所述第一信息的粘贴位置,从而可以提高所述第一信息的粘贴速率。
进一步地,在所述标签用于记录所述第一信息的相关信息的情况下,所述第一信息的相关信息可以但不仅限于包括以下至少一项:所述第一信息的复制时间、所述第一信息的来源、所述第一信息的用途等。
在此情况下,可选地,所述响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中,包括:
接收针对与所述第一信息对应的第一控件的第二输入;
响应于所述第二输入,将所述第一信息和所述第一信息对应的标签粘贴于第一粘贴页面中。
这样,由于电子设备可以将所述第一信息及其对应的标签一同粘贴于所述第一粘贴页面中,用户在查看粘贴内容时,可以通过所述第一信息对应的标签了解所述第一信息的相关信息,从而可以提高文本处理的可靠性。
可见,在本可选实施方式中,电子设备在接收到所述第一输入后,可识别所述第一文本的复制意图,显示与该复制意图对应的编辑框,从而可以提高信息粘贴的速率,或,提高文本处理的可靠性。
另外,需要说明的是,在本可选实施方式中,电子设备在显示编辑框后,所述编辑框即可包括所述第一信息、与所述第一信息对应的第一控件以及与 所述第一信息对应的标签。
为方便理解本可选实施方式的实施,具体说明如下:
在本可选实施方式中,电子设备可以预先设置有U种复制意图,以及与所述U重复制意图对应的U种编辑框,U为大于1的整数。可以理解的是,每种复制意图对应的编辑框的设计,用于电子设备更方便的进行信息的粘贴,或,记录与所述第一文本的相关信息。为方便理解,示例说明如下:
可选地,假设所述U个复制意图包括:填写收货地址的第一意图、摘抄文本的第二意图等。
考虑到收获地址填写页面一般包括姓名填写栏、电话号码填写栏、地址填写栏,电子设备预先存储的与所述第一意图对应的第一编辑框可以包括姓名、电话号码、地址等M个标签,所述第一信息可以为从第一文本中提取出的与所述M个标签对应的M个子信息,与所述第一信息对应的第一控件可以为1个或M个控件。这样,电子设备在粘贴所述第一信息时,可以基于所述第一信息对应的标签,确定将所述第一信息的粘贴页面为收货地址填写页面,并可以将姓名标签对应的子信息填写至收获地址填写页面中的姓名填写栏,将电话号码标签对应的子信息填写至收获地址填写页面中的电话号码填写栏,将地址标签对应的子信息填写至收获地址填写页面中的地址填写栏,从而可以提高电子设备的粘贴效率。
考虑到用户在摘抄文本时,期望记录文本的摘抄来源、摘抄时间、摘抄用途等摘抄信息,电子设备预先存储的与所述第二意图对应的第二编辑框,可以包括用于记录所述第一文本的摘抄信息的标签,所述第一信息可以为所述第一文本。这样,电子设备在粘贴所述第一信息时,可以一并粘贴所述第一信息对应的标签,从而可以方便用户查看所述第一文本的摘抄信息,进而提高文本处理的可靠性。
具体实现时,一种实现方式中,电子设备可以根据所述第一文本的语义识别结果,识别所述第一文本的复制意图。如:若所述第一文本的语音识别结果中包括电话号码和地址,则可以确定用户复制所述第一文本的意图为前述第一意图;若所述第一文本的语音识别结果中未包括电话号码或地址,则可以确定用户复制所述第一文本的意图为前述第二意图。
另一种实现方式中,电子设备可以根据在第一时长内启动的N个应用程序,识别所述第一文本的复制意图,其中,所述第一时长的结束时刻为所述第一输入的输入时刻,所述第一时长的长度可以预先确定。如:若所述N个应用程序中包括购物应用程序或聊天应用程序,则可以确定用户复制所述第一文本的意图为前述第一意图;若所述N个应用程序中包括备忘录,则可以确定用户复制所述第一文本的意图为前述第二意图。
可以理解地是,在实际应用中,上述两种识别复制意图的实现方式可以独立实施,也可以结合实施,具体可根据实际需求决定,本申请实施例对此不做限定。
实施方式二
可选地,所述响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,包括:
响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括所述第一文本、继续复制控件以及结束复制控件;
在接收到针对所述继续复制控件的第四输入的情况下,接收在第三页面接收到的复制第二文本的第五输入;
响应于所述第五输入,在所述编辑框中添加所述第二文本;
接收针对所述结束复制控件的第六输入;
响应于所述第六输入,更新所述编辑框,更新后的编辑框中包括基于所述第一文本确定的第一信息、与所述第一信息对应的第一控件、基于所述第二文本确定的第二信息,以及与所述第二信息对应的第一控件。
在本可选实施方式中,电子设备在显示编辑框时,可以不对复制得到的文本进行处理,直接在编辑框中显示复制得到的文本。进一步地,还可以在编辑框中显示继续复制控件以及结束复制控件。
所述继续复制控件用于触发电子设备继续复制文本,并基于复制得到的文本在编辑框中添加相应内容。这样,用户可以通过与所述编辑框交互,实现多个信息的粘贴,进一步可以提高信息粘贴的效率。
所述结束复制控件用于触发电子设备结束复制,并更新编辑框。具体实现时,在接收到针对所述结束复制控件的输入后,电子设备可以对复制得到 的文本进行处理,基于复制的文本确定编辑框中显示的信息及信息对应的第一控件。这样,在用户复制多个文本时,电子设备可以在结束本次的复制后,对复制的多个文本进行并行处理,从而可以提高文本处理的效率。
进一步地,所述编辑框中还包括第二控件,所述方法还包括:
响应于接收到的针对所述第二控件的第七输入,将所述编辑框中包括的全部信息存储至粘贴板中。
在本可选实施方式中,所述第二控件用于触发电子设备将所述编辑框中包括的全部信息存储至粘贴板中。这样,电子设备可以响应于接收到的针对输入框的第八输入后,可以将所述粘贴板中的全部内容粘贴于所述输入框中,以实现所述编辑框中包括的全部信息的统一粘贴,从而可以提高信息粘贴的速率。
在实际应用中,所述第二控件可以表现为确认复制控件,但不仅限于此。
需要说明的是,本申请实施例中介绍的多种可选地实施方式,在彼此不冲突的情况下可以相互结合实现,也可以单独实现,对此本申请实施例不作限定。
为方便理解,示例说明如下:
在本示例中,用户可以在复制侧多次复制编辑,并且可以通过发送的方式将内容发送到对应的输入框中。改进了用户一次只能复制一段内容的不便,同时识别场景让用户将内容快速转发,提高效率。
实施例一
如图2所示,文本处理方法可以包括以下步骤:
步骤200、智能复制一段内容。
在本申请实施例中,电子设备在检测到用户选定了某段文字后,可以显示一提示框,该提示框中可以包括第一复制控件和第二复制控件,所述第一复制控件用于触发电子设备将选定的文本存储至粘贴板中,所述第二复制控件用于触发电子设备显示编辑框。所述第一复制控件可以理解为现有技术中的复制控件;所述第二复制控件可以理解为本申请实施例新增的复制控件,也可以称为智能复制控件。
为方便理解,请参阅图3a,在图3a中,用户通过长按选择一段内容,并 且选择了智能复制。
201、通过语义识别或者近期任务中的应用来识别出用户的复制场景。
用户在点击了“智能复制”按钮后,电子设备会根据复制内容的语义,以及当前近期任务中打开的应用来识别用户此次复制操作的场景,比如:如果用户复制的内容是电话号码以及地址,再根据用户近期打开了电商应用,可以将此场景识别为填写收货地址。
202、复制内容上方自动弹出编辑框。
当识别到用户操作的场景后,会自动弹出编辑框,编辑框包括的内容可以由电子设备编辑或用户编辑得到。如图3b所示的编辑框,包括:标签、从复制的文本中提取出的子信息、发送控件、继续复制控件和确认复制控件。
在编辑过程中,用户如果发现有多段内容需要复制点击继续复制控制即可,继续复制的内容会和前一段复制的内容合成在一起出现在编辑框中,如果确认编辑内容无误的话点击确认复制控件即可将整段内容复制下来,进一步地,可以将整段内容带标签复制下来。
编辑框中的标签可以用于定位粘贴位置。如图3b所示的编辑框中包括姓名、电话和地址标签,与图3c中收获地址填写页面中的姓名编辑栏、电话编辑栏和地址编辑栏分别对应。这样,如图3c所示,电子设备可以将图3a的编辑框中姓名标签对应的信息填写至图3c的收获地址填写页面中的姓名编辑栏中,将图3a的编辑框中电话标签对应的信息填写至图3c的收获地址填写页面中的电话编辑栏中,将图3a的编辑框中地址标签对应的信息填写至图3c的收获地址填写页面中的地址编辑栏中。
203、在检测到针对发送按钮的触控操作后,将将内容转发至其他应用。
如图3a所示,在每一个标签后面会提供给用户一个发送按钮,因为每条信息前面都有对应的标签,所以可以对应到其他应用界面上面的标签,例如:用户当前场景是打开了第一购物应用程序的收货地址管理界面,界面中有对应的姓名、电话、地址编辑栏,用户在备忘录界面复制了一段内容并自动打过标签之后,后面会出现发送按钮。当用户点击姓名标签栏的发送按钮时,会通过标签识别将名字自动填充到淘宝收货地址的姓名编辑栏中,如果近期打开过了多个购物应用程序,比如打开过了第一购物应用程序、第二购物应 用程序,则如图3b所示,在点击发送按钮时会提示用户发送到哪个应用程序中。
在本示例中,用户不仅可以多次复制内容,并且可以将内容通过标签发送至对应应用,减少用户繁琐的重复操作,给用户提供了更加方便的复制方法。
实施例二:
在本实施例中,用户在长按复制时可以选择多条内容,在选中完第一段内容后,会自动弹出编辑框(也可以称为悬浮框),编辑框中会出现“继续复制”选项,当用户点击“继续复制”按钮,可以进行下一段内容的选中操作,直到点击“结束复制”按钮,会将这一次所有的复制内容整理起来。
如图4a和图4b所示。用户分别使用“继续复制”功能复制了3个快递单号,3个快递单号记录在图4a所示的编辑框中。当用户点击“结束复制”按钮后,如图4b所示,编辑框可以弹出3个粘贴按钮,3段内容分别保存在3个按钮中。用户在快递查询页面选择哪个按钮就粘贴哪个按钮的内容到快递查询页面中,如图4b所示,在快递查询页面用户点击按钮1,则如图4c所示,在快递查询页面显示运单号:123456。
在本实施例中,用户通过在复制界面分别复制,在粘贴界面分别粘贴的方式,减少了用户执行输入触发电子设备在多个界面来回跳转的次数,提供给用户更加方便智能的复制体验。
需要说明的是,本申请实施例提供的文本处理方法,执行主体可以为文本处理装置,或者,该文本处理装置中的用于执行文本处理方法的控制模块。本申请实施例中以文本处理装置执行文本处理方法为例,说明本申请实施例提供的文本处理装置。
参见图5,图5是本申请实施例提供的文本处理装置的结构图。
如图5所示,文本处理装置500包括:
第一显示模块501,用于响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件;
第一粘贴模块502,用于响应于接收到的针对与所述第一信息对应的第 一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
可选地,在所述第一控件为发送控件的情况下,所述第一粘贴模块502,包括:
第一显示单元,用于响应于接收到的针对与所述第一信息对应的第一控件的第二输入,显示P个应用程序的标识信息;
第一粘贴单元,用于响应于接收到的针对目标应用程序的标识信息的第三输入,将所述第一信息粘贴于所述目标应用程序的目标页面中;
其中,所述目标应用程序为所述P个应用程序中的应用程序,P为正整数。
可选地,在所述第一控件为粘贴控件的情况下,所述第一粘贴模块502,包括:
第一接收单元,用于接收针对与所述第一信息对应的第一控件的第二输入;
第二粘贴单元,用于响应于所述第二输入,将所述第一信息粘贴于第二页面中,所述第二页面为接收到所述第二输入时的显示页面。
可选地,所述第一显示模块501,包括:
识别单元,用于响应于在第一页面接收到的复制第一文本的第一输入,根据所述第一文本的语义识别结果和在第一时长内启动的N个应用程序中的至少一项,识别所述第一文本的复制意图;
第二显示单元,用于显示与所述复制意图对应的编辑框;
其中,所述编辑框中还包括与所述复制意图对应的标签,所述标签用于:定位所述第一信息的粘贴位置,或,记录所述第一文本的相关信息;所述第一信息与所述标签对应。
可选地,在所述标签用于记录所述第一信息的相关信息的情况下,所述第一粘贴模块502,包括:
第二接收单元,用于接收针对与所述第一信息对应的第一控件的第二输入;
第三粘贴单元,用于响应于所述第二输入,将所述第一信息和所述第一信息对应的标签粘贴于第一粘贴页面中。
可选地,所述第一显示模块501,包括:
第三显示单元,用于响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括所述第一文本、继续复制控件以及结束复制控件;
第三接收单元,用于在接收到针对所述继续复制控件的第四输入的情况下,接收在第三页面接收到的复制第二文本的第五输入;
添加单元,用于响应于所述第五输入,在所述编辑框中添加所述第二文本;
第四接收单元,用于接收针对所述结束复制控件的第六输入;
更新单元,用于响应于所述第六输入,更新所述编辑框,更新后的编辑框中包括基于所述第一文本确定的第一信息、与所述第一信息对应的第一控件、基于所述第二文本确定的第二信息,以及与所述第二信息对应的第一控件。
可选地,所述编辑框中还包括第二控件,所述文本处理装置500还包括:
接收模块,用于接收针对所述第二控件的第七输入;
存储模块,用于响应于所述第七输入,将所述编辑框中包括的全部信息存储至粘贴板中。
本申请实施例中的文本处理装置可以是装置,也可以是电子设备中的部件、集合成电路、或芯片。
本申请实施例中的文本处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的文本处理装置500能够实现方法实施例的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
可选地,如图6所示,本申请实施例还提供一种通信设备600,包括处理器601,存储器602,存储在存储器602上并可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
图7为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器710等部件。
本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
应理解的是,本申请实施例中,输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
本申请实施例中,射频单元701将来自网络侧设备的下行数据接收后,给处理器710处理;另外,将上行的数据发送给网络侧设备。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。
存储器709可用于存储软件程序或指令以及各种数据。存储器709可主要包括存储程序或指令区和存储数据区,其中,存储程序或指令区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。例如至少一个磁盘存储器件、闪存 器件、或其他非易失性固态存储器件。
处理器710可包括一个或多个处理单元;可选地,处理器710可集合成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序或指令等,调制解调处理器主要处理无线通信,如基带处理器。可以理解的是,上述调制解调处理器也可以不集合成到处理器710中。
其中,处理器710,用于:
响应于用户输入单元707在第一页面接收到的复制第一文本的第一输入,通过显示面板7061显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件;
响应于用户输入单元707接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
可选地,在所述第一控件为发送控件的情况下,处理器710,用于:
响应于用户输入单元707接收到的针对与所述第一信息对应的第一控件的第二输入,通过显示面板7061显示P个应用程序的标识信息;
响应于用户输入单元707接收到的针对目标应用程序的标识信息的第三输入,将所述第一信息粘贴于所述目标应用程序的目标页面中;
其中,所述目标应用程序为所述P个应用程序中的应用程序,P为正整数。
可选地,在所述第一控件为粘贴控件的情况下,处理器710,用于:
通过用户输入单元707接收针对与所述第一信息对应的第一控件的第二输入;
响应于所述第二输入,将所述第一信息粘贴于第二页面中,所述第二页面为接收到所述第二输入时的显示页面。
可选地,处理器710,用于:
响应于用户输入单元707在第一页面接收到的复制第一文本的第一输入,根据所述第一文本的语义识别结果和在第一时长内启动的N个应用程序中的至少一项,识别所述第一文本的复制意图;
通过显示面板7061显示与所述复制意图对应的编辑框;
其中,所述编辑框中还包括与所述复制意图对应的标签,所述标签用于: 定位所述第一信息的粘贴位置,或,记录所述第一文本的相关信息;所述第一信息与所述标签对应。
可选地,在所述标签用于记录所述第一信息的相关信息的情况下,处理器710,用于:
通过用户输入单元707接收针对与所述第一信息对应的第一控件的第二输入;
响应于所述第二输入,将所述第一信息和所述第一信息对应的标签粘贴于第一粘贴页面中。
可选地,处理器710,用于:
响应于用户输入单元707在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括所述第一文本、继续复制控件以及结束复制控件;
在通过用户输入单元707接收到针对所述继续复制控件的第四输入的情况下,通过用户输入单元707接收在第三页面接收到的复制第二文本的第五输入;
响应于所述第五输入,在所述编辑框中添加所述第二文本;
通过用户输入单元707接收针对所述结束复制控件的第六输入;
响应于所述第六输入,更新所述编辑框,更新后的编辑框中包括基于所述第一文本确定的第一信息、与所述第一信息对应的第一控件、基于所述第二文本确定的第二信息,以及与所述第二信息对应的第一控件。
可选地,所述编辑框中还包括第二控件,处理器710,用于:
通过用户输入单元707接收针对所述第二控件的第七输入;
响应于所述第七输入,将所述编辑框中包括的全部信息存储至粘贴板中。
需要说明的是,本实施例中上述电子设备700可实现本申请方法实施例中的各个过程,及达到相同的有益效果,为避免重复,此处不再赘述。
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文本处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、 随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例还提供一种可读存储介质,所述可读存储介质可以是非易失的,也可以是易失的,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现文本处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文本处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的 技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面集合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (13)

  1. 一种文本处理方法,所述方法包括:
    响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件;
    响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
  2. 根据权利要求1所述的方法,其中,在所述第一控件为发送控件的情况下,所述响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中,包括:
    响应于接收到的针对与所述第一信息对应的第一控件的第二输入,显示P个应用程序的标识信息;
    响应于接收到的针对目标应用程序的标识信息的第三输入,将所述第一信息粘贴于所述目标应用程序的目标页面中;
    其中,所述目标应用程序为所述P个应用程序中的应用程序,P为正整数。
  3. 根据权利要求1所述的方法,其中,在所述第一控件为粘贴控件的情况下,所述响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中,包括:
    接收针对与所述第一信息对应的第一控件的第二输入;
    响应于所述第二输入,将所述第一信息粘贴于第二页面中,所述第二页面为接收到所述第二输入时的显示页面。
  4. 根据权利要求1所述的方法,其中,所述响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,包括:
    响应于在第一页面接收到的复制第一文本的第一输入,根据所述第一文本的语义识别结果和在第一时长内启动的N个应用程序中的至少一项,识别所述第一文本的复制意图;
    显示与所述复制意图对应的编辑框;
    其中,所述编辑框中还包括与所述复制意图对应的标签,所述标签用于:定位所述第一信息的粘贴位置,或,记录所述第一文本的相关信息;所述第一信息与所述标签对应。
  5. 根据权利要求4所述的方法,其中,在所述标签用于记录所述第一信息的相关信息的情况下,所述响应于接收到的针对与所述第一信息对应的第一控件的第二输入,将所述第一信息粘贴于第一粘贴页面中,包括:
    接收针对与所述第一信息对应的第一控件的第二输入;
    响应于所述第二输入,将所述第一信息和所述第一信息对应的标签粘贴于第一粘贴页面中。
  6. 根据权利要求1所述的方法,其中,所述响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,包括:
    响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括所述第一文本、继续复制控件以及结束复制控件;
    在接收到针对所述继续复制控件的第四输入的情况下,接收在第三页面接收到的复制第二文本的第五输入;
    响应于所述第五输入,在所述编辑框中添加所述第二文本;
    接收针对所述结束复制控件的第六输入;
    响应于所述第六输入,更新所述编辑框,更新后的编辑框中包括基于所述第一文本确定的第一信息、与所述第一信息对应的第一控件、基于所述第二文本确定的第二信息,以及与所述第二信息对应的第一控件。
  7. 根据权利要求6所述的方法,其中,所述编辑框中还包括第二控件,所述方法还包括:
    接收针对所述第二控件的第七输入;
    响应于所述第七输入,将所述编辑框中包括的全部信息存储至粘贴板中。
  8. 一种文本处理装置,所述文本处理装置包括:
    第一显示模块,用于响应于在第一页面接收到的复制第一文本的第一输入,显示编辑框,所述编辑框中包括基于所述第一文本确定的第一信息,以及与所述第一信息对应的第一控件;
    第一粘贴模块,用于响应于接收到的针对与所述第一信息对应的第一控 件的第二输入,将所述第一信息粘贴于第一粘贴页面中。
  9. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行时实现如权利要求1至7中任一项所述的文本处理方法的步骤。
  10. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1至7中任一项所述的文本处理方法的步骤。
  11. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至7中任一项所述的文本处理方法的步骤。
  12. 一种计算机程序产品,其中,所述计算机程序产品被存储在可读存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至7中任一项所述的文本处理方法的步骤。
  13. 一种通信设备,被配置为执行如权利要求1至7中任一项所述的文本处理方法的步骤。
PCT/CN2022/072504 2021-01-22 2022-01-18 文本处理方法、装置、电子设备及可读存储介质 WO2022156669A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110089515.3A CN112765942A (zh) 2021-01-22 2021-01-22 文本处理方法、装置、电子设备及可读存储介质
CN202110089515.3 2021-01-22

Publications (1)

Publication Number Publication Date
WO2022156669A1 true WO2022156669A1 (zh) 2022-07-28

Family

ID=75706664

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072504 WO2022156669A1 (zh) 2021-01-22 2022-01-18 文本处理方法、装置、电子设备及可读存储介质

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118132701A (zh) * 2024-01-30 2024-06-04 北京百川智能科技有限公司 用户输入信息的优化方法及装置、电子设备和存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765942A (zh) * 2021-01-22 2021-05-07 维沃移动通信有限公司 文本处理方法、装置、电子设备及可读存储介质
CN113407073A (zh) * 2021-05-11 2021-09-17 维沃移动通信有限公司 信息显示方法和电子设备

Citations (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 (zh) * 2015-12-03 2016-04-20 北京奇虎科技有限公司 电子书多段节选分享方法及装置
CN107967093A (zh) * 2017-12-21 2018-04-27 维沃移动通信有限公司 一种多段文本复制方法及移动终端
WO2019179284A1 (zh) * 2018-03-19 2019-09-26 网易(杭州)网络有限公司 信息粘贴方法及装置、电子设备、存储介质
CN110909524A (zh) * 2019-11-27 2020-03-24 维沃移动通信有限公司 一种编辑方法及电子设备
CN111638838A (zh) * 2020-05-19 2020-09-08 维沃移动通信有限公司 文本编辑方法、装置及电子设备
CN112765942A (zh) * 2021-01-22 2021-05-07 维沃移动通信有限公司 文本处理方法、装置、电子设备及可读存储介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014059655A1 (zh) * 2012-10-19 2014-04-24 东莞宇龙通信科技有限公司 终端和粘贴方法
CN108021298B (zh) * 2016-10-28 2020-04-24 腾讯科技(深圳)有限公司 利用剪切板粘贴信息的方法及装置
CN106959901B (zh) * 2017-03-17 2018-06-26 维沃移动通信有限公司 一种多路径复制粘贴方法及移动终端
CN108334371B (zh) * 2017-09-07 2021-03-09 北京小米移动软件有限公司 编辑对象的方法和装置
CN108415652B (zh) * 2018-03-12 2020-06-30 维沃移动通信有限公司 一种文本处理方法及移动终端
CN110928611A (zh) * 2018-09-19 2020-03-27 西安中兴新软件有限责任公司 文本处理方法、终端以及计算机可读存储介质
CN111949350A (zh) * 2020-05-15 2020-11-17 华为技术有限公司 一种界面显示方法和设备
CN111913629A (zh) * 2020-06-29 2020-11-10 维沃移动通信有限公司 信息发送方法、装置和电子设备

Patent Citations (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 (zh) * 2015-12-03 2016-04-20 北京奇虎科技有限公司 电子书多段节选分享方法及装置
CN107967093A (zh) * 2017-12-21 2018-04-27 维沃移动通信有限公司 一种多段文本复制方法及移动终端
WO2019179284A1 (zh) * 2018-03-19 2019-09-26 网易(杭州)网络有限公司 信息粘贴方法及装置、电子设备、存储介质
CN110909524A (zh) * 2019-11-27 2020-03-24 维沃移动通信有限公司 一种编辑方法及电子设备
CN111638838A (zh) * 2020-05-19 2020-09-08 维沃移动通信有限公司 文本编辑方法、装置及电子设备
CN112765942A (zh) * 2021-01-22 2021-05-07 维沃移动通信有限公司 文本处理方法、装置、电子设备及可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Continuous copy and paste ", 4 March 2019 (2019-03-04), XP055953086, Retrieved from the Internet <URL:https://getquicker.net/Sharedaction?code=6712f788-4576-47a8-f61b-08d69feb7712> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118132701A (zh) * 2024-01-30 2024-06-04 北京百川智能科技有限公司 用户输入信息的优化方法及装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN112765942A (zh) 2021-05-07

Similar Documents

Publication Publication Date Title
WO2022156669A1 (zh) 文本处理方法、装置、电子设备及可读存储介质
US10825456B2 (en) Method and apparatus for performing preset operation mode using voice recognition
WO2020238815A1 (zh) 显示控制方法及装置、电子设备和存储介质
CN104050153B (zh) 数据复制和粘贴的方法和装置
WO2022017525A1 (zh) 页面显示方法、装置和电子设备
US20210352059A1 (en) Message Display Method, Apparatus, and Device
EP2618250A2 (en) Apparatus and method for providing a clipboard function in a mobile terminal
CN108156407A (zh) 一种视频剪辑方法及终端
WO2022156668A1 (zh) 信息处理方法和电子设备
EP2544437A1 (en) Apparatus and method for transmitting message in mobile terminal
WO2022063123A1 (zh) 界面显示方法、装置及电子设备
US10739992B2 (en) Electronic device and operation method thereof
WO2023040896A1 (zh) 内容分享方法、装置和电子设备
WO2022213944A1 (zh) 信息引用方法、装置和电子设备
WO2022156709A1 (zh) 音频信号处理方法、装置、电子设备和可读存储介质
WO2022228377A1 (zh) 录音方法、装置、电子设备和可读存储介质
WO2022121877A1 (zh) 消息处理方法、装置和电子设备
WO2022022566A1 (zh) 图形码识别方法、装置和电子设备
WO2023061414A1 (zh) 一种文件生成方法、装置及电子设备
WO2022233276A1 (zh) 显示方法、装置和电子设备
WO2022262721A1 (zh) 信息交互方法、装置和电子设备
CN113127773A (zh) 页面处理方法、装置、存储介质及终端设备
WO2023109525A1 (zh) 电子设备的快捷设置方法、装置、存储介质及电子设备
CN113055529A (zh) 录音控制方法和录音控制装置
WO2022143660A1 (zh) 图标显示方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22742148

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22742148

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 180124)

122 Ep: pct application non-entry in european phase

Ref document number: 22742148

Country of ref document: EP

Kind code of ref document: A1