CN112416143B - Text information editing method and device and electronic equipment - Google Patents

Text information editing method and device and electronic equipment Download PDF

Info

Publication number
CN112416143B
CN112416143B CN202011335987.4A CN202011335987A CN112416143B CN 112416143 B CN112416143 B CN 112416143B CN 202011335987 A CN202011335987 A CN 202011335987A CN 112416143 B CN112416143 B CN 112416143B
Authority
CN
China
Prior art keywords
information
target
text
identity information
contact
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011335987.4A
Other languages
Chinese (zh)
Other versions
CN112416143A (en
Inventor
张孝东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011335987.4A priority Critical patent/CN112416143B/en
Publication of CN112416143A publication Critical patent/CN112416143A/en
Application granted granted Critical
Publication of CN112416143B publication Critical patent/CN112416143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution

Abstract

The application discloses a text message editing method, a text message editing 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 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

Text information editing method and device and electronic equipment
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 inventors found 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 can solve the problem that in a communication application, in a process of replacing partial content of the same text message, user operation is complex.
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 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 according to 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, of the embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be implemented 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, and the like. In the embodiments of the present application, this is not particularly limited. The text message editing method may specifically include the following steps:
step 101, acquiring text content to be replaced according to text information in an edit box of the communication application.
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 "Zhang teacher, congratulate your teacher for happy festival".
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 is located next to the identity information, the surname 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, finding a contact person who matches the target identity information "teacher" may also apply 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 manner and position of display 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, the step may be to search for a contact matching the target identity information 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. This is not particularly limited in the embodiment of the present invention.
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 a contact to which the text information may be applied except for 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 an edit box of the communication application at the same time. Or, the text information corresponding to each target contact may be displayed in an edit box corresponding to each target contact 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, and searching for a contact person matched with the target identity information, wherein the contact person matched with the target identity information is a contact person which is possibly suitable for 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:
step 201, obtaining the text content to be replaced according to the text information in the edit box of the communication application.
And 202, identifying target identity information according to the text content to be replaced.
The steps 201 and 202 can refer to the related descriptions of the steps 101 and 102, respectively, and are not described herein again to avoid repetition.
Step 203, searching for a contact matched with the target identity information in the communication information of the communication application.
The difference between this step 203 and the foregoing step 103 is that the contact matched with the target identity information is only searched in the communication information of the communication application in step 201, and the contact matched with the target identity information does not need to be searched in the communication information of the other communication applications of the electronic device, so that the accuracy of replacement 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 in step 201, the text content to be replaced is obtained according to the text information in the edit box of the communication application a, then in step 203, a contact matched with the target identity information may be searched in the communication information of the communication application a. The 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 person with the identity information matched with the target identity information from all the contact persons.
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 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 same as the target identity information and/or the synonym 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 person with the identity information same as the synonym of the target identity information from all the contact persons, and further, the user can find out more contact persons 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 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", "guiding", or "teaching" may also be found from the account 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 with the identity information same as the target identity information "teacher" is found: plum teacher, liu teacher and Wang Wu teacher. Searching the contact persons 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 the like, and may display accounts of all contacts matched with the target information, or display avatar information of all contacts matched with the target information, and the like. 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.
Step 205, receiving a first input of a user to a target contact identifier in the contact identifiers.
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.
Steps 207 and 208 may refer to the related descriptions of steps 104 and 105, respectively, and are not described herein again to avoid repetition.
Step 209, sending 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 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 teacher is obtained as follows: "Sunshang instructor, 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 an apparatus for editing text information according to an 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 from 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 further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 710 via a power management system, so as to implement functions of managing charging, discharging, and power consumption 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 matching the target identity information;
an input unit 704, configured to receive a first input of a user on a target contact identifier in the contact identifiers;
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 for a contact matched with the target identity information in the communication information of the communication application.
Optionally, the processor 710 is further configured to obtain, from the communication information of the communication application, identity information corresponding to each of all contacts;
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 same as the target identity information and/or the synonym 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, and searching for a contact person matched with the target identity information, wherein the contact person matched with the target identity information is a contact person which is possibly suitable for 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 execute a program or an instruction to implement each process of the text information editing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
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 phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element 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. Additionally, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art 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 (which may be 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 (7)

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;
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;
wherein, in the case that name information exists next to the target identity information, the text content to be replaced comprises the name information and the target identity information;
simultaneously displaying text information corresponding to each target contact in an edit box of the communication application;
the acquiring the text content to be replaced according to the text information in the edit box of the communication application comprises the following steps:
identifying the target identity information from the text content, judging whether name information exists in the vicinity of the target identity information or not, and if the name information exists, determining the name information and the target identity information as the text content to be replaced;
the searching for the contact matched with the target identity information comprises the following steps:
searching a contact matched with the target identity information in the communication information of the communication application;
before searching for the contact matched with the target identity information in the communication information of the communication application, the method further includes:
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:
searching a contact person of which the identity information is matched with the target identity information from all contact persons;
before searching for a contact person whose identity information matches the target identity information from all the contact persons, the method further includes:
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 the similar words from all the contacts.
2. The method for editing text messages according to claim 1, further comprising, after obtaining the text message 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. 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 communication information corresponding to the contact person matched with the target identity information;
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;
wherein, in the case that name information exists next to the target identity information, the text content to be replaced comprises the name information and the target identity information;
simultaneously displaying text information corresponding to each target contact in an edit box of the communication application;
the text content obtaining module is further configured to: identifying the target identity information from the text content, judging whether name information exists in the vicinity of the target identity information or not, and if the name information exists, determining the name information and the target identity information as the text content to be replaced;
the searching module comprises:
the searching unit is used for searching the contact matched with the target identity information in the communication information of the communication application;
the apparatus for editing text information further comprises:
the identity information acquisition module is used for acquiring identity information corresponding to all contacts from the communication information of the communication application;
the search unit further comprises:
the searching subunit is used for searching the contact persons with the identity information matched with the target identity information from all the contact persons;
the apparatus for editing text information further comprises:
the near meaning word determining module is used for determining the near meaning words of the target identity information;
and the searching subunit is configured to search, from all the contacts, a contact whose identity information is the same as the target identity information and the synonym.
5. The apparatus for editing text information according to claim 4, further comprising:
and the sending module is used for sending the text information corresponding to the target contact person.
6. 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-3.
7. 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-3.
CN202011335987.4A 2020-11-24 2020-11-24 Text information editing method and device and electronic equipment Active CN112416143B (en)

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 CN112416143A (en) 2021-02-26
CN112416143B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676394B (en) * 2021-08-19 2023-04-07 维沃移动通信(杭州)有限公司 Information processing method and information processing apparatus

Citations (2)

* Cited by examiner, † Cited by third party
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
CN110083687A (en) * 2019-04-28 2019-08-02 上海盛付通电子支付服务有限公司 A kind of information conversion method, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702740B (en) * 2009-11-11 2012-07-18 宇龙计算机通信科技(深圳)有限公司 Contact person searching method, contact person searching system and mobile communication terminal
CN102938807B (en) * 2012-11-14 2016-03-23 小米科技有限责任公司 A kind of method of recommending contact persons and message and device
KR102314274B1 (en) * 2014-08-18 2021-10-20 삼성전자주식회사 Method for processing contents and electronics 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
CN106789575B (en) * 2016-12-22 2020-08-28 太和县科维生产力促进中心有限公司 Information sending device and method
CN108809809B (en) * 2018-06-08 2022-07-29 腾讯科技(武汉)有限公司 Message sending method, computer device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN110083687A (en) * 2019-04-28 2019-08-02 上海盛付通电子支付服务有限公司 A kind of information conversion method, equipment and storage medium

Also Published As

Publication number Publication date
CN112416143A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN112333082B (en) Message display method and device
CN112748842A (en) Text selection method and device
WO2021254251A1 (en) Input display method and apparatus, and electronic device
WO2021227922A1 (en) Communication object adding method and apparatus, and electronic device
CN112765104A (en) File saving method, device, equipment and storage medium
US20070158403A1 (en) Business card information exchange device and method
CN113014476A (en) Group creation method and device
CN111665936A (en) Music collection method and device, electronic equipment and medium
CN112631437A (en) Information recommendation method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
CN112287162A (en) Message searching method and device and electronic equipment
CN112416143B (en) Text information editing method and device and electronic equipment
CN112882623B (en) Text processing method and device, electronic equipment and storage medium
CN114357325A (en) Content search method, device, equipment and medium
CN112783592B (en) Information issuing method, device, equipment and storage medium
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN111954079B (en) Image processing method, device, electronic equipment and medium
CN112100463A (en) Information processing method and device, electronic equipment and readable storage medium
CN111857466A (en) Message display method and device
CN112328149B (en) Picture format setting method and device and electronic equipment
CN114398128A (en) Information display method and device
CN113485600A (en) Singing list sharing method and device and electronic equipment
CN113127629A (en) Keyword searching method and device and electronic equipment
CN112988663A (en) File storage method and electronic equipment
CN111857463A (en) New message reminding method and device, electronic equipment and medium

Legal Events

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