CN112416143A - Text information editing method and device and electronic equipment - Google Patents
Text information editing method and device and electronic equipment Download PDFInfo
- Publication number
- CN112416143A CN112416143A CN202011335987.4A CN202011335987A CN112416143A CN 112416143 A CN112416143 A CN 112416143A CN 202011335987 A CN202011335987 A CN 202011335987A CN 112416143 A CN112416143 A CN 112416143A
- Authority
- CN
- China
- Prior art keywords
- information
- target
- text
- contact
- identity information
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a text information editing method and device and electronic equipment, and belongs to the technical field of data processing. The method comprises the following steps: acquiring text content to be replaced according to text information in an edit box of the communication application; identifying target identity information according to the text content to be replaced; searching for a contact matched with the target identity information; acquiring title information corresponding to the target contact person from communication information corresponding to the contact person matched with the target identity information; and replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person. And replacing the text content in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person, so that the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
Description
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a text information editing method and device and electronic equipment.
Background
In communication applications, in the process of editing text information, it is usually necessary to replace part of the content of the same text information to obtain text information for different contacts.
In the prior art, users usually first copy the text information and then manually edit the parts needing to be replaced.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: in the communication application, the user operation is complicated in the process of replacing part of the content of the same text message.
Content of application
The embodiment of the application aims to provide a text message editing method, a text message editing device and electronic equipment, and the problem that in communication application, in the process of replacing partial content of the same text message, user operation is complex can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a text information editing method, where the method includes:
acquiring text content to be replaced according to text information in an edit box of the communication application;
identifying target identity information according to the text content to be replaced;
searching for a contact matched with the target identity information;
acquiring title information corresponding to the target contact person from communication information corresponding to the contact person matched with the target identity information;
and replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
In a second aspect, an embodiment of the present application provides an apparatus for editing text information, including:
the text content acquisition module is used for acquiring text content to be replaced according to text information in an edit box of the communication application;
the target identity information identification module is used for identifying target identity information according to the text content to be replaced;
the searching module is used for searching the contact matched with the target identity information;
the title information acquisition module is used for acquiring title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information;
and the replacing module is used for replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, 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, an embodiment of the present application provides a chip, 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 program or instructions to implement the method according to the first aspect.
In the embodiment of the application, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. And identifying target identity information according to the text content to be replaced, searching for a contact matched with the target identity information, wherein the contact matched with the target identity information is a contact which is applicable to the text information except for title information. And acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information, and replacing the text content in the text information by using the title information corresponding to the target contact person, so that the replaced text information is applicable to the target contact person, and further the text information corresponding to the target contact person is obtained. In the process of obtaining the text information corresponding to the target contact person, the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
Drawings
Fig. 1 is a flowchart of a first text information editing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a display of a text message according to an embodiment of the present application;
fig. 3 is a schematic display diagram of a contact matched with the target identity information according to an embodiment of the present application;
fig. 4 is a flowchart of a second text information editing method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a first apparatus for editing text information according to an embodiment of the present application;
fig. 6 is a schematic diagram of an apparatus for editing a second text message according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing 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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a text information editing method and apparatus provided in the embodiments of the present application with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a first text information editing method provided in an embodiment of the present application, where the text information editing method is applied to an electronic device or a component of the electronic device, and the electronic device may include: mobile phones, notebooks, tablet computers, servers, etc. In the embodiments of the present application, this is not particularly limited. The text message editing method may specifically include the following steps:
The communication application may be a communication application capable of text message editing. The communication application can be an instant communication application or a general communication application. Such as a short message application, an instant chat application, etc. This is not particularly limited in the embodiments of the present application.
The actual content of the text information is not particularly limited. For example, the text message may be a holiday blessing or the like. For example, the text message may be "a teacher who wishes you to save happy for the teacher".
The text message can be edited in an edit box of the communication application. The text content to be replaced is obtained according to the text information in the edit box of the communication application, the text content to be replaced can be selected from the text information by a user, and the text content to be replaced can also be automatically obtained by the electronic equipment.
Optionally, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. The title information generally consists of name information and identity information, or the title information consists of only identity information. The name information may be surname information, or the name information may be surname information as well as first name information. The surname information and the first name information together constitute the full name of the person. For example, the name information may be "three sheets", or the name information may be "three sheets". The identity information is used for representing careers, titles, social relationships with the user himself and the like. For example, the identity information may be "teacher", the identity information may be "professor", the identity information may be "relative", and so on.
The electronic device may automatically acquire the text content to be replaced, and the specific process may be as follows: the electronic equipment can firstly identify the identity information from the text information, then judge whether name information exists next to the identity information, and if so, determine the name information and the identity information together as the text content to be replaced.
For example, for the text information, if the identity information "teacher" recognized by the electronic device exists in the last name information "next to the identity information," teacher "may be determined as the text content to be replaced in the text information.
After the text content to be replaced is acquired from the text information, the text content to be replaced can be highlighted to remind the user. The manner of highlighting is not particularly limited. For example, referring to fig. 2, fig. 2 is a schematic diagram illustrating display of text information according to an embodiment of the present application. In fig. 2, the text content to be replaced is "teacher".
And 102, identifying target identity information according to the text content to be replaced.
In the embodiment of the application, the electronic device may store the identity information in a preset manner, and then may recognize the target identity information according to the text content to be replaced by means of the preset identity information. The target identity information is the identity information in the text content to be replaced.
Optionally, the target identity information may be identified by acquiring grouping information, remark information, tag information, and the like of the contact in the communication application according to the text content to be replaced. Specifically, the communication application may be the same communication application as the communication application in step 101, or the communication application may be all communication applications in the electronic device. After the grouping information, the remark information, the label information and the like of the contact in the communication application are obtained, the grouping information, the remark information, the label information and the like are compared with the text content to be replaced, and the part of the text content to be replaced, which is the same as or similar to the grouping information, the remark information, the label information and the like, is determined as the target identity information in the text content to be replaced.
And 103, searching for the contact matched with the target identity information.
Communication information of all or part of communication applications of the electronic device usually stores a plurality of contacts, and the stored contacts usually store identity information of the contacts. And searching the identity information of each contact in the communication information of all communication applications or part of communication applications of the electronic equipment to find the contact matched with the target identity information. The account number and the chat record of the contact person, or the group information, the remark information or the label information of the contact person usually contain identity information, and the contact person matched with the target identity information is searched in the communication information of all or part of the communication applications of the electronic equipment by means of the account number and the chat record of the contact person, or the group information, the remark information or the label information of the contact person.
For example, for the above example, the contact with the identity information of "teacher" may be searched from account numbers, chat records, or group information, remark information, or tag information of the contacts of all communication applications of the electronic device. Searching the contact person matched with the target identity information teacher from the communication information of the communication application: plum teacher, Liu teacher, Wang Wu teacher, etc.
The contact matched with the target identity information is the contact to which the text information is applicable except the title information. For example, for the above example, the contact li teacher who is found to match the target identity information "teacher" may also be applied to the above "teacher, who congratulates your teacher, in addition to the title information" teacher ".
After finding the contact matched with the target identity information in the text content to be replaced, the matched contact can be displayed to remind the user. The display mode, position, and the like are not particularly limited. For example, referring to fig. 3, fig. 3 is a schematic diagram illustrating a display of a contact matched with the target identity information according to an embodiment of the present application. In fig. 3, the head portrait information of the contact matched with the target identity information is displayed above the edit box of the communication application. For the above example, the head portrait information of the contact matched with the target identity information "teacher" in fig. 3 may be head portrait information of a plum teacher, head portrait information of a liu teacher, and head portrait information of a wang-wu teacher.
It should be noted that, in step 103, specifically, in the communication information of all the communication applications of the electronic device, the contact matched with the target identity information is found, or in the identity information of each contact in the communication information of part of the communication applications of the electronic device, the contact matched with the target identity information is found, which is not limited specifically. For example, if the electronic device is installed with 4 communication applications, namely, communication application a, communication application B, communication application C, and communication application D, in this step, a contact matched with the target identity information may be searched in the communication information of communication application a, the communication information of communication application B, the communication information of communication application C, and the communication information of communication application D. Or, in this step, only the contact matched with the target identity information may be searched in the communication information of the communication application a and the communication information of the communication application B.
And 104, acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information.
The target contact may be a contact, from among all contacts matched with the target identity information, for which the user wants to send the replaced text information. Alternatively, the target contact may be a contact from all contacts matching the target identity information, for which the user wants to send the text information that is not replaced and the text information that is replaced. The target contact may be all contacts matching the target identity information, or the target contact may be a portion of contacts matching the target identity information. In the embodiment of the present invention, this is not particularly limited.
The communication information of the communication application usually stores the title information of the contact, and the title information is also composed of name information and target identity information, or the title information is only composed of the target identity information. Generally, the account number of the contact person is the corresponding title information, or the chat record, the grouping information, the remark information or the tag information of the contact person usually includes the title information. The name information corresponding to the target contact person can be obtained from the contact person account number in the communication information corresponding to the contact person matched with the target identity information, or from the chat record, the grouping information, the remark information or the label information of the contact person.
And 105, replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
For the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. The contact matched with the target identity information is the contact to which the text information is applicable except the title information. And replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person, wherein the obtained text information is suitable for the target contact person, and the text information corresponding to the target contact person is obtained.
For example, for the above example, the text content "teachers" to be replaced in the text information is replaced by "li teacher", and the "li teacher, who congratulates your teacher, is obtained, that is, the text information corresponding to the li teacher. And replacing the text content to be replaced in the text information by the Liu teacher to obtain the Liu teacher and congratulate on the festival of the teacher, namely the text information corresponding to the Liu teacher. In the process of obtaining the text information corresponding to the target contact person, users do not need to manually edit the text content to be replaced in the text information one by one, and the user operation is simple.
Optionally, after the text information corresponding to the target contact is obtained, the text information corresponding to the target contact may be displayed in an edit box of the communication application to remind the user. Specifically, the text information corresponding to each target contact is displayed in the edit box of the communication application at the same time. Or, the text information corresponding to each target contact person may be displayed in an edit box corresponding to each target contact person in the communication application. This is not particularly limited in the embodiments of the present application.
In the embodiment of the application, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. And identifying target identity information according to the text content to be replaced, searching for a contact matched with the target identity information, wherein the contact matched with the target identity information is a contact which is applicable to the text information except for title information. And acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information, and replacing the text content in the text information by using the title information corresponding to the target contact person, so that the replaced text information is applicable to the target contact person, and further the text information corresponding to the target contact person is obtained. In the process of obtaining the text information corresponding to the target contact person, the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
Referring to fig. 4, fig. 4 is a flowchart of a second text information editing method provided in an embodiment of the present application, and the text information editing method is also applied to the electronic device or the components of the electronic device. The text message editing method may specifically include the following steps:
And 202, identifying target identity information according to the text content to be replaced.
The steps 201 and 202 may refer to the related descriptions of the steps 101 and 102, respectively, and are not described herein again to avoid repetition.
The difference between step 203 and step 103 is that only the communication information of the communication application in step 201 is searched for the contact matched with the target identity information, and the contact matched with the target identity information does not need to be searched for in the communication information of the other communication applications of the electronic device, so that the replacement accuracy can be improved.
For example, the electronic device is installed with 4 communication applications, namely, a communication application a, a communication application B, a communication application C, and a communication application D. If the text content to be replaced is obtained according to the text information in the edit box of the communication application a in step 201, then a contact matched with the target identity information may be searched in the communication information of the communication application a in step 203. And a contact matched with the target identity information does not need to be searched in the communication information of the communication application B, the communication information of the communication application C and the communication information of the communication application D.
Optionally, before step 203, the method may further include the steps of: and acquiring the identity information corresponding to all the contacts from the communication information of the communication application. This step 203 may include: and searching for the contact with the identity information matched with the target identity information from all the contacts.
Specifically, a plurality of contacts are usually stored in the communication information of the communication application. A stored contact typically stores identity information corresponding to the contact.
For example, the contact account includes corresponding identity information, or the chat record, grouping information, remark information or tag information of the contact usually includes corresponding identity information. The identity information corresponding to all the contacts in the communication information of the same communication application as in step 201 may be obtained from the contact account in the communication information, or from the chat record, the grouping information, the remark information or the tag information of the contact.
And comparing all the identity information corresponding to all the contacts with the target identity information respectively, and searching the contact with the identity information matched with the target information from all the contacts of the communication application.
Optionally, before the step of searching for a contact whose identity information matches the target identity information from all the contacts, the method may further include the following steps: and determining the similar meaning words of the target identity information. The step of searching for a contact whose identity information matches the target identity information from all contacts may include: and searching for the contact with the identity information identical to the target identity information and/or the similar meaning word from all the contacts.
Specifically, the synonym of the target identity information is identity information similar or similar to the target identity information. The number of synonyms of the target identity information is not particularly limited. For example, for the above example, the synonym of the target identity information being "teacher" may be "instructor", "counsel", "large tutor", "professor", and so on. And searching for the contact with the identity information same as the target identity information from all the contacts. And/or searching for the contact with the identity information identical to the synonym of the target identity information from all the contacts, and further, the user can find more contacts matched with the target identity information at one time without modifying the identity information, so that the user operation is simple.
For example, for the above example, the contact with the identity information of "teacher" may be found from the account number of the contact, or the chat record, the group information, the remark information or the tag information of the contact, and/or the contact with the identity information of "instructor", "counseling", "large guide" or "professor" may also be found from the account number of the contact, or the chat record, the group information, the remark information or the tag information of the contact.
For example, for the above example, from all the contacts of the communication information of the communication application a, the contact whose identity information is the same as the target identity information "teacher" is found: plum teacher, Liu teacher and Wang Wu teacher. Finding out the contact person with the identity information identical to the synonym of the target identity information from all the contact persons of the communication information of the communication application A: zhao professor, Wu Bo dao and Sun dao. Then, all the li teacher, the liu teacher, the wang wu teacher, the zhao professor, the wu boy leader and the grand teacher are the contacts whose identity information is matched with the target identity information, which are searched from all the contacts of the communication application.
And step 204, displaying the contact person identification matched with the target identity information.
The contact identification matched with the target identity information may be an account or avatar information of the contact matched with the target identity information, and may display accounts of all contacts matched with the target information, or display avatar information of all contacts matched with the target information. This is not particularly limited in the embodiments of the present application.
For example, in the display page where the edit box is located, the head portrait information list of all the contacts matching the target information is displayed.
The first input may be a slide operation, a click operation, or the like, and the form of the first input is not particularly limited. The first input is used for selecting a target contact person to be sent in the replaced text information from all contact person identifications matched with the target information. Or the first input is used for selecting the un-replaced text information and the target contact to be sent of the replaced text information from all contact identifications matched with the target information.
For example, in the displayed head portrait information lists of all the contacts matched with the target information, clicking operation is performed to select the target contact from the head portrait information lists, so that a plurality of target contacts can be selected quickly. Or dragging the text information in the edit box by using a finger and moving the text information to the target contact in the head portrait information list to select the target contact, which is suitable for the case of few target contacts.
And step 206, in response to the first input, determining the contact corresponding to the target contact identification as the target contact.
And the electronic equipment responds to the first input, and determines a contact corresponding to the target contact identification as a target contact from all contacts matched with the target identity information. And determining the target contact person, namely determining the target contact person according to the user intention.
And step 207, acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information.
And 208, replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
The text information corresponding to the target contact person is the text information suitable for the target contact person, the text information suitable for the target contact person is sent to the target contact person, a user does not need to copy the text information for each target contact person one by one, the user does not need to click a sending button for each target contact person one by one, and user operation is reduced.
For example, for the above example, if the determined target contact is: li teacher, Liu teacher, Wang Wu teacher, Wu Bo dao and Sun dao teacher. Replacing the text content to be replaced in the text information by using the title information corresponding to each target contact person to obtain the text information corresponding to the plum teacher as follows: "the plum teacher, congratulate your teacher with happy festival". And sending the text information corresponding to the plum teacher. The text information corresponding to the Liu teacher is obtained as follows: "Liu teacher, congratulate your teacher with happy festival". And sending the text information corresponding to the Liu teacher. The obtained text information corresponding to the king five teachers is as follows: "five teachers in king congratulate your teacher's happy festival". And sending the text information corresponding to the king five teacher. The obtained text information corresponding to the Wu Bo guide is as follows: wu Bo dao, congratulate your teacher for happy festival. And sending the text information corresponding to the Wu Bo director. The text information corresponding to the grandson instructor is obtained as follows: "Sun tutor, congratulate your teacher for happy festival". And sending the text information corresponding to the grandchild instructor. In the process, the user does not need to manually edit the text content to be replaced one by one, copy the replaced text content to the editing window of the corresponding target contact one by one, and click the sending button one by one, so that the user operation is simple, and the user time is saved.
In the embodiment of the application, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. And identifying target identity information according to the text content to be replaced, searching for a contact matched with the target identity information, wherein the contact matched with the target identity information is a contact which is applicable to the text information except for title information. And acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information, and replacing the text content in the text information by using the title information corresponding to the target contact person, so that the replaced text information is applicable to the target contact person, and further the text information corresponding to the target contact person is obtained. In the process of obtaining the text information corresponding to the target contact person, the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
It should be noted that, in the text message editing method provided in the embodiment of the present application, the execution main body may be a device for editing a text message, or a control module in the device for editing a text message, for executing the method for loading a text message. In the embodiment of the present application, a method for editing a loaded text message executed by a text message editing apparatus is taken as an example, and the text message editing method provided in the embodiment of the present application is described.
Fig. 5 is a schematic diagram of an apparatus for editing text information according to an embodiment of the present application. Referring to fig. 5, an apparatus 500 for editing text information provided by an embodiment of the present application includes,
a text content obtaining module 501, configured to obtain text content to be replaced according to text information in an edit box of a communication application;
a target identity information identification module 502, configured to identify target identity information according to the text content to be replaced;
the searching module 503 is configured to search for a contact matched with the target identity information;
a title information obtaining module 504, configured to obtain title information corresponding to the target contact from communication information corresponding to a contact matched with the target identity information;
and a replacing module 505, configured to replace the text content to be replaced in the text information with the title information corresponding to the target contact, so as to obtain text information corresponding to the target contact.
Optionally, on the basis of fig. 5, referring to fig. 6, fig. 6 is a schematic diagram of a second text information editing apparatus provided in the embodiment of the present application. The apparatus 500 for text message editing may further include:
a sending module 506, configured to send the text information corresponding to the target contact.
Optionally, as shown in fig. 6, the apparatus 500 for editing text information may further include:
a display module 507, configured to display a contact identifier matched with the target identity information;
a first input receiving module 508, configured to receive a first input of a target contact identifier in the contact identifiers by a user;
a response module 509, configured to, in response to the first input, determine a contact corresponding to the target contact identifier as a target contact.
Optionally, as shown in fig. 6, the lookup module 503 may include:
a searching unit 5031, configured to search, in the communication information of the communication application, a contact matched with the target identity information.
Optionally, as shown in fig. 6, the apparatus 500 for editing text information may further include:
an identity information obtaining module 510, configured to obtain, from the communication information of the communication application, identity information corresponding to all contacts respectively;
the finding unit 5031 includes:
a searching sub-unit 50311, configured to search, from all the contacts, a contact whose identity information matches the target identity information.
Optionally, the apparatus 500 for editing text information may further include:
a near meaning word determining module, configured to determine a near meaning word of the target identity information;
the sub-unit 50311 is specifically configured to search, from all the contacts, a contact whose identity information is the same as the target identity information and/or the synonym.
The device for editing text information in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The text message editing 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 device for editing text information provided in the embodiment of the present application can implement each process implemented by the device for editing text information in the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
In the embodiment of the application, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. And identifying target identity information according to the text content to be replaced, searching for a contact matched with the target identity information, wherein the contact matched with the target identity information is a contact which is applicable to the text information except for title information. And acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information, and replacing the text content in the text information by using the title information corresponding to the target contact person, so that the replaced text information is applicable to the target contact person, and further the text information corresponding to the target contact person is obtained. In the process of obtaining the text information corresponding to the target contact person, the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
Optionally, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 710, a memory 709, and a program or an instruction stored in the memory 709 and capable of running on the processor 710, where the program or the instruction is executed by the processor 710 to implement each process of the text information editing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
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.
The processor 710 is configured to obtain text content to be replaced according to text information in an edit box of the communication application;
identifying target identity information according to the text content to be replaced;
searching for a contact matched with the target identity information;
acquiring title information corresponding to the target contact person from communication information corresponding to the contact person matched with the target identity information;
and replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
In the embodiment of the application, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. And identifying target identity information according to the text content to be replaced, searching for a contact matched with the target identity information, wherein the contact matched with the target identity information is a contact which is applicable to the text information except for title information. And acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information, and replacing the text content in the text information by using the title information corresponding to the target contact person, so that the replaced text information is applicable to the target contact person, and further the text information corresponding to the target contact person is obtained. In the process of obtaining the text information corresponding to the target contact person, the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
Optionally, the radio frequency unit 701 or the network module 702 is configured to send the text information corresponding to the target contact.
Optionally, the display unit 706 is configured to display a contact identifier matched with the target identity information;
an input unit 704, configured to receive a first input of a target contact identifier in the contact identifiers by a user;
the processor 710 is further configured to determine, as the target contact, the contact corresponding to the target contact identification in response to the first input.
Optionally, the processor 710 is further configured to search, in the communication information of the communication application, for a contact matched with the target identity information.
Optionally, the processor 710 is further configured to obtain, from the communication information of the communication application, identity information corresponding to all contacts respectively;
and searching for the contact with the identity information matched with the target identity information from all the contacts.
Optionally, the processor 710 is further configured to determine a synonym of the target identity information;
and searching for the contact with the identity information identical to the target identity information and/or the similar meaning word from all the contacts.
In the embodiment of the application, for the same text information, to obtain text information for different contacts, the text content to be replaced is usually corresponding title information. And identifying target identity information according to the text content to be replaced, searching for a contact matched with the target identity information, wherein the contact matched with the target identity information is a contact which is applicable to the text information except for title information. And acquiring the title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information, and replacing the text content in the text information by using the title information corresponding to the target contact person, so that the replaced text information is applicable to the target contact person, and further the text information corresponding to the target contact person is obtained. In the process of obtaining the text information corresponding to the target contact person, the user does not need to manually edit the text content to be replaced one by one, and the user operation is simple.
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 program or the instruction implements each process of the text information editing method embodiment, and can achieve the same technical effect, 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 program or an instruction to implement each process of the text information editing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or 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 a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method for editing text information, the method comprising:
acquiring text content to be replaced according to text information in an edit box of the communication application;
identifying target identity information according to the text content to be replaced;
searching for a contact matched with the target identity information;
acquiring title information corresponding to the target contact person from communication information corresponding to the contact person matched with the target identity information;
and replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
2. The method for editing text information according to claim 1, further comprising, after obtaining the text information corresponding to the target contact:
and sending the text information corresponding to the target contact person.
3. The method for editing text messages according to claim 1 or 2, wherein before obtaining the title information corresponding to the target contact from the communication information corresponding to the contact matched with the target identity information, the method further comprises:
displaying the contact person identification matched with the target identity information;
receiving a first input of a user to a target contact person identifier in the contact person identifiers;
and responding to the first input, and determining the contact corresponding to the target contact identification as the target contact.
4. The method for editing text messages according to claim 1 or 2, wherein the searching for the contact matched with the target identity information includes:
and searching for the contact matched with the target identity information in the communication information of the communication application.
5. The method for editing text messages according to claim 4, wherein before searching for the contact matched with the target identity information in the communication messages of the communication application, the method further comprises:
acquiring identity information corresponding to all contacts from the communication information of the communication application;
the searching for the contact matched with the target identity information in the communication information of the communication application comprises the following steps:
and searching for the contact with the identity information matched with the target identity information from all the contacts.
6. The method for editing text messages according to claim 5, wherein before searching for a contact whose identity information matches the target identity information from among all contacts, the method further comprises:
determining a similar meaning word of the target identity information;
the searching for the contact with the identity information matched with the target identity information from all the contacts comprises:
and searching for the contact with the identity information identical to the target identity information and/or the similar meaning word from all the contacts.
7. An apparatus for editing text information, comprising:
the text content acquisition module is used for acquiring text content to be replaced according to text information in an edit box of the communication application;
the target identity information identification module is used for identifying target identity information according to the text content to be replaced;
the searching module is used for searching the contact matched with the target identity information in the communication information of the communication application;
the title information acquisition module is used for acquiring title information corresponding to the target contact person from the communication information corresponding to the contact person matched with the target identity information;
and the replacing module is used for replacing the text content to be replaced in the text information by using the title information corresponding to the target contact person to obtain the text information corresponding to the target contact person.
8. The apparatus for editing text information according to claim 7, further comprising:
and the sending module is used for sending the text information corresponding to the target contact person.
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 information editing method according to any one of claims 1-6.
10. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the text information editing method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011335987.4A CN112416143B (en) | 2020-11-24 | 2020-11-24 | Text information editing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011335987.4A CN112416143B (en) | 2020-11-24 | 2020-11-24 | Text information editing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112416143A true CN112416143A (en) | 2021-02-26 |
CN112416143B CN112416143B (en) | 2022-12-27 |
Family
ID=74843077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011335987.4A Active CN112416143B (en) | 2020-11-24 | 2020-11-24 | Text information editing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112416143B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113676394A (en) * | 2021-08-19 | 2021-11-19 | 维沃移动通信(杭州)有限公司 | Information processing method and information processing apparatus |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702740A (en) * | 2009-11-11 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | Contact person searching method, contact person searching system and mobile communication terminal |
CN102938807A (en) * | 2012-11-14 | 2013-02-20 | 北京小米科技有限责任公司 | Method and device for recommending contact person and message |
US8726165B1 (en) * | 2007-11-01 | 2014-05-13 | Google Inc. | Methods for auto-completing contact entry on mobile devices |
US20160048298A1 (en) * | 2014-08-18 | 2016-02-18 | Samsung Electronics Co., Ltd. | Method of processing content and electronic device thereof |
CN105554296A (en) * | 2015-12-28 | 2016-05-04 | 魅族科技(中国)有限公司 | Information sending method and terminal |
CN106789575A (en) * | 2016-12-22 | 2017-05-31 | 努比亚技术有限公司 | A kind of information transmitting apparatus, method |
CN108809809A (en) * | 2018-06-08 | 2018-11-13 | 腾讯科技(武汉)有限公司 | Message method, computer equipment and storage medium |
US10127212B1 (en) * | 2015-10-14 | 2018-11-13 | Google Llc | Correcting errors in copied text |
CN110083687A (en) * | 2019-04-28 | 2019-08-02 | 上海盛付通电子支付服务有限公司 | A kind of information conversion method, equipment and storage medium |
-
2020
- 2020-11-24 CN CN202011335987.4A patent/CN112416143B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8726165B1 (en) * | 2007-11-01 | 2014-05-13 | Google Inc. | Methods for auto-completing contact entry on mobile devices |
CN101702740A (en) * | 2009-11-11 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | Contact person searching method, contact person searching system and mobile communication terminal |
CN102938807A (en) * | 2012-11-14 | 2013-02-20 | 北京小米科技有限责任公司 | Method and device for recommending contact person and message |
US20160048298A1 (en) * | 2014-08-18 | 2016-02-18 | Samsung Electronics Co., Ltd. | Method of processing content and electronic device thereof |
US10127212B1 (en) * | 2015-10-14 | 2018-11-13 | Google Llc | Correcting errors in copied text |
CN105554296A (en) * | 2015-12-28 | 2016-05-04 | 魅族科技(中国)有限公司 | Information sending method and terminal |
CN106789575A (en) * | 2016-12-22 | 2017-05-31 | 努比亚技术有限公司 | A kind of information transmitting apparatus, method |
CN108809809A (en) * | 2018-06-08 | 2018-11-13 | 腾讯科技(武汉)有限公司 | Message method, computer equipment and storage medium |
CN110083687A (en) * | 2019-04-28 | 2019-08-02 | 上海盛付通电子支付服务有限公司 | A kind of information conversion method, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113676394A (en) * | 2021-08-19 | 2021-11-19 | 维沃移动通信(杭州)有限公司 | Information processing method and information processing apparatus |
CN113676394B (en) * | 2021-08-19 | 2023-04-07 | 维沃移动通信(杭州)有限公司 | Information processing method and information processing apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN112416143B (en) | 2022-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112333082B (en) | Message display method and device | |
CN112748842A (en) | Text selection method and device | |
CN112882623B (en) | Text processing method and device, electronic equipment and storage medium | |
CN112765104B (en) | File storage method, device, equipment and storage medium | |
CN112783592B (en) | Information issuing method, device, equipment and storage medium | |
CN111859119A (en) | Information processing method and device | |
CN113014476A (en) | Group creation method and device | |
CN111954079B (en) | Image processing method, device, electronic equipment and medium | |
CN112631437A (en) | Information recommendation method and device and electronic equipment | |
CN111665936A (en) | Music collection method and device, electronic equipment and medium | |
CN112181253A (en) | Information display method and device and electronic equipment | |
CN113220393A (en) | Display method and device and electronic equipment | |
CN110489032B (en) | Dictionary query method for electronic book and electronic equipment | |
CN112416143B (en) | Text information editing method and device and electronic equipment | |
CN112035026B (en) | Information display method and device, electronic equipment and storage medium | |
CN113485600A (en) | Singing list sharing method and device and electronic equipment | |
CN114995691A (en) | Document processing method, device, equipment and medium | |
CN112988663A (en) | File storage method and electronic equipment | |
CN113138677A (en) | Method and device for determining candidate words of input method, electronic equipment and storage medium | |
CN112269476A (en) | Formula display method and device and electronic equipment | |
CN111857466A (en) | Message display method and device | |
US20120158773A1 (en) | Method, system and computer program product for activating information of object computer system | |
CN114398127A (en) | Message display method and device | |
CN112328149A (en) | Picture format setting method and device and electronic equipment | |
CN113253904A (en) | Display method, display device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |