WO2019149171A1 - 会话处理方法、装置及电子设备 - Google Patents

会话处理方法、装置及电子设备 Download PDF

Info

Publication number
WO2019149171A1
WO2019149171A1 PCT/CN2019/073393 CN2019073393W WO2019149171A1 WO 2019149171 A1 WO2019149171 A1 WO 2019149171A1 CN 2019073393 W CN2019073393 W CN 2019073393W WO 2019149171 A1 WO2019149171 A1 WO 2019149171A1
Authority
WO
WIPO (PCT)
Prior art keywords
emoticon
sequence
expression
session
emoticons
Prior art date
Application number
PCT/CN2019/073393
Other languages
English (en)
French (fr)
Inventor
周欣荣
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019149171A1 publication Critical patent/WO2019149171A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Definitions

  • the embodiments of the present disclosure relate to the field of electronic device technologies, and in particular, to a session processing method, apparatus, and electronic device.
  • the emoticon is an artistic expression of daily life, and is referred to as a third language other than speech and text.
  • IM Instant Messaging
  • emoticons can help people accurately express the information that matches the chat scene, and increase the fun of the user in the chat, and even get unexpected expressions.
  • emoticons are mainly divided into character emoticons and picture emoticons.
  • the user can select different types of emoticons according to the actual chat scene.
  • the embodiments of the present specification provide a session processing method, apparatus, and electronic device to improve the interest in the instant messaging process.
  • an embodiment of the present disclosure provides a session processing method, including:
  • a chain reaction is performed on the expression sequence, wherein the chain reaction is used to change a display style of an emoticon in the expression sequence in an interface of the chat session.
  • the expression sequence is: a sequence comprising two emoticons.
  • the two emoticons included in the expression sequence are issued by different users.
  • the expression sequence is: a sequence including two or more emoticons.
  • the preset chain reaction condition is that the emoticons in the expression sequence conform to a preset association relationship.
  • the preset chain reaction condition is that the meaning of the emoticon in the expression sequence conforms to a preset association relationship.
  • the step of performing a chain reaction on the expression sequence includes:
  • the step of performing display content update on the emoticon in the expression sequence includes:
  • Display content update is performed on at least two emoticons in the expression sequence as a whole.
  • the step of performing display content update on the emoticon in the expression sequence includes:
  • the step of performing an expression replacement on the emoticon in the expression sequence includes:
  • the expression replacement in the expression sequence in the expression sequence is performed with the obtained replacement emoticon.
  • the step of obtaining a replacement emoticon corresponding to each of the emoticons in the expression sequence according to a preset mapping relationship between the initial emoticon and the replacement emoticon includes:
  • the target emoticon to be replaced in the expression sequence belongs to a custom type, requesting the target from the issuer of the target emoticon according to a preset mapping relationship between the initial emoticon and the replacement emoticon
  • the emoticon replaces the emoticon.
  • the embodiment of the present specification further provides a session processing method, including:
  • a new session message is detected, the session message including an emoticon;
  • the display style of the existing emoticon in the interface of the chat session is changed.
  • a session processing method provided by the embodiment of the present disclosure further includes:
  • the step of changing a display style of the existing emoticon in the session includes:
  • the display position update is performed on the existing emoticon.
  • the embodiment of the present specification further provides a session processing method, including:
  • sequence of the object is: a sequence including at least two data objects
  • a chain reaction is performed on the sequence of the object, wherein the chain reaction is used to change a display style of the data object in the sequence of the chat session in the interface of the chat session.
  • the embodiment of the present disclosure provides a session processing apparatus, including:
  • the expression sequence detecting unit is configured to detect whether there is an expression sequence that meets a preset chain reaction condition in the same chat session, wherein the expression sequence is: a sequence including at least two emoticons;
  • a chain reaction unit configured to perform a chain reaction on the expression sequence when the detection result is YES, wherein the chain reaction is used to change a display style of an emoticon in the expression sequence in an interface of the chat session .
  • the embodiment of the present disclosure further provides a session processing apparatus, including:
  • a message detecting unit configured to detect a new session message in the chat session, where the session message includes an emoticon
  • a display style changing unit configured to change a display style of the existing emoticon in an interface of the chat session when it is determined that the emoticon has an association relationship with an existing emoticon in the chat session .
  • the embodiment of the present disclosure further provides a session processing apparatus, including:
  • the object sequence detecting unit is configured to detect whether there is a sequence of objects in the same chat session that meets a preset chain reaction condition, wherein the object sequence is: a sequence including at least two data objects;
  • a chain reaction unit for performing a chain reaction on the sequence of the object when the detection result is YES, wherein the chain reaction is used to change a display style of the data object in the sequence of the chat session in the sequence of the chat session .
  • an electronic device including:
  • a memory for storing processor executable instructions
  • the processor is configured to implement the session processing method provided by the first aspect.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • the processor is configured to implement the session processing method provided by the second aspect.
  • an electronic device including:
  • a memory for storing processor executable instructions
  • processor is configured to implement the session processing method provided by the third aspect.
  • the expression sequence is: a sequence including at least two emoticons; and further, when the detection result is Yes, the expression sequence is chained, and the chain reaction is used to change the display style of the emoticons in the expression sequence in the interface of the chat session. Since the expression sequence conforming to the preset chain reaction condition is chained in the chat process, thereby changing the display style of the emoticon in the interface of the chat session, the interest in the instant messaging process can be improved.
  • the display style of the existing emoticon in the session is changed. Since the display style of the existing emoticon is changed when it is judged that there is an association relationship between successive emoticons, the interest in the instant messaging process can be improved.
  • the object sequence is: a sequence including at least two data objects;
  • the detection result is YES
  • a chain reaction is performed on the sequence of the object, and the chain reaction is used to change the display style of the data object in the object sequence in the interface of the chat session. Since the chain reaction of the object sequence that meets the preset chain reaction condition is performed during the chat process, thereby changing the display style of the data object in the interface of the chat session, the interest in the instant messaging process can be improved.
  • FIG. 1 is a flowchart of a session processing method provided by a first aspect of the embodiments of the present specification
  • FIG. 2 is another flowchart of a session processing method provided by the first aspect of the embodiments of the present specification
  • FIG. 3 is another flowchart of a session processing method provided by the first aspect of the embodiments of the present specification.
  • FIG. 4 is a schematic diagram showing an interface change state of a chat session by using a session processing method provided by the first aspect of the embodiments of the present specification;
  • FIG. 5 is another flowchart of a session processing method according to a first aspect of the present disclosure
  • FIG. 6 is a schematic diagram of an interface change state of a chat session by using a session processing method provided by the first aspect of the embodiments of the present specification;
  • FIG. 7 is another flowchart of a session processing method according to a first aspect of the present disclosure.
  • FIG. 8 is another flowchart of a session processing method according to a first aspect of the present disclosure.
  • FIG. 9 is a schematic diagram showing an interface change state of a chat session by using a session processing method provided by the first aspect of the embodiments of the present specification.
  • FIG. 10 is a schematic structural diagram of an electronic device according to a first aspect of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a session processing apparatus according to a first aspect of the present disclosure.
  • FIG. 12 is a flowchart of a session processing method according to a second aspect of the embodiments of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a session processing apparatus according to a second aspect of the present disclosure.
  • FIG. 14 is a flowchart of a session processing method according to a third aspect of the embodiments of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a session processing apparatus according to a third aspect of the embodiments of the present disclosure.
  • the steps of the corresponding method are not necessarily performed in the order shown and described in the specification in other embodiments. In some other embodiments, the method may include more or fewer steps than those described herein. In addition, the individual steps described in this specification may be decomposed into multiple steps for description in other embodiments; while the multiple steps described in this specification may be combined into a single step in other embodiments. description.
  • the embodiment of the present specification provides a session processing method.
  • the execution body of a session processing method may be a session processing device that runs in an electronic device.
  • the session processing device may be a function plug-in in an instant messaging program
  • the electronic device may be a device such as a smart phone, a tablet computer, a notebook computer, or the like.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the chat session may be a chat session with two users.
  • the interface of the chat session is a friend session box; of course, the chat session may also be related to a chat session of two or more users, that is, a group chat. Session, at this time, the interface of the chat session is a group chat session box, which is also reasonable.
  • the session processing device can independently execute S102-S104 for the established chat session.
  • the session processing device in the electronic device held by the user A can perform the S102-S104 provided in the embodiment of the present specification for the chat session 1.
  • the S102-S104 provided in the embodiment of the present specification can be executed on the chat session 2, and the user
  • the session processing device in the electronic device held by the B can perform the S102-S104 provided in the embodiment of the present specification on the chat session 1.
  • the session processing device in the electronic device held by the user C can perform the embodiment provided in the embodiment of the present description on the chat session 2. S102-S104.
  • each emoticon in the expression sequence may belong to different session messages respectively, or at least two emoticons in the expression sequence may belong to the same session message, wherein one session message is a piece sent by the user.
  • Information; and the session message to which the emoticon belongs may include only emoticons, and may include both emoticons and texts.
  • the emoticon may be included.
  • user A sends a session message: emoticon 1, followed by user B to issue a session message: emoticon 2
  • user B issues a session message: emoticon 3.
  • both the emoticon and the text may be included.
  • user A sends a session message: text 1 + emoticon 1, followed by user B to send a session message. : emoticon 2+ text 2
  • user A issues a session message: emoticon 1 + text 1, followed by user B to issue a session message: emoticon 2+ text 2, then user B continues to issue a session message: emoticon 3 .
  • the expression sequence may be: a sequence including two emoticons, or a sequence including two or more emoticons.
  • the expression sequence is a sequence including two emoticons
  • there may be no text information between the two emoticons that is, two emoticons are continuous emoticons; of course, two emoticons may exist between The text, specifically, the previous emoticon appears, followed by at least one plain text, and then the latter emoticon appears.
  • the two emoticons can be issued by the same user or by different users, which is reasonable.
  • user A issues a session message: emoticon 1
  • user B continues to issue a session message: emoticon 2
  • user A issues a session message: Emoticon 1, and then continue to send a session message: expression 2.
  • user A issues a session message: emoticon 1, and then continues to issue a session message: text 1, and then user B issues a session message: emoticon 2
  • user A issues a session message: emoticon 1, after which user B issues a session message: text 1, and then user B issues a session message: emoticon 2.
  • the expression sequence is a sequence including two or more emoticons
  • there may be no text information between the two or more emoticons that is, two or more emoticons are continuous emoticons; of course, the two or more emoticons There may also be textual information between them.
  • the two or more emoticons can be issued by the same user, or by at least two users, which is reasonable.
  • user A issues a session message: emoticon 1, and then user B continues to issue a session message: emoticon 2, user C issues a session message: expression Or 2, user A issues a session message: emoticon 1, and then continues to issue a session message: emoticon 2, followed by a session message: emoticon 2; or, user A issues a session message: emoticon 1, after which the user B continuously issues two session messages, which are emoticon 2 and emoticon 3.
  • user A issues a session message: emoticon 1, and then continues to issue a session message: text 1, and then issues a session message: emoticon 2, tight User B then sends a session message: emoticon 2; or, user A issues a session message: emoticon 1, and then continues to issue a session message: text 1, then user A issues a session message: emoticon 2, followed by user B to issue a session Message: Emoticon 3.
  • the preset chain reaction condition may be that the emoticons in the expression sequence conform to a preset association relationship.
  • the preset chain reaction condition may be that the meaning of the emoticon in the expression sequence conforms to a preset association relationship.
  • the preset chain reaction condition is that the emoticons in the expression sequence conform to a preset association relationship:
  • the pre-set association relationship between the emoticons in the expression sequence specifically refers to: the previous emoticon in the expression sequence belongs to the first expression set and the latter emoticon belongs to the second An expression set, wherein the emoticon in the first expression set appears before the emoticon in the second expression set in the chain reaction; or the previous emoticon in the expression sequence belongs to the first expression set, the latter expression
  • the character belongs to the second expression set, and the previous emoticon and the subsequent emoticon conform to a predetermined expression mapping relationship, wherein in the chain reaction, the emoticon in the first emoticon sets precedes the expression in the second emoticon set The character appears; or, the two emoticons in the expression sequence belong to a certain expression set, and so on.
  • the preset association relationship between the emoticons in the expression sequence specifically refers to: the first emoticon in the expression sequence belongs to the first expression set, and the remaining at least two expressions
  • the character belongs to the second expression set, wherein the emoticon in the first expression set appears before the emoticon in the second expression set in the chain reaction; or the emoticon included in the expression sequence belongs to the first expression
  • the set, the remaining at least two emoticons belong to the second emoticon set, and the first emoticon and the remaining at least two emoticons conform to the predetermined emoticon mapping relationship, wherein in the chain reaction, the emoticons in the first emoticon set precede the The emoticon in the second expression set appears; or the tail emoticon included in the expression sequence belongs to the second expression set, and the remaining at least two emoticons belong to the first expression set, wherein the first expression in the chain reaction
  • the emoticons in the collection appear before the emoticons in the second emoticon set; or the emoticons contained in the emoticon sequence belong to a certain table Collection, and so on.
  • the meaning of the emoticon in the expression sequence conforms to the implementation manner of the preset association relationship:
  • the meaning of the emoticons in the expression sequence conforms to the preset association relationship, specifically: the meaning of the previous emoticon in the expression sequence belongs to the first meaning set and the latter emoticon
  • the meaning belongs to the second meaning set, wherein the meaning in the first meaning set precedes the meaning in the second meaning set in the chain reaction; or the meaning of the previous emoticon in the expression sequence belongs to the first meaning set
  • the meaning of the latter emoticon belongs to the second meaning set, and the meaning of the previous emoticon and the meaning of the latter emoticon conform to a predetermined meaning mapping relationship, wherein the meaning in the first meaning set in the chain reaction is first
  • the meaning in the second meaning set appears; or, the meaning of the two emoticons in the expression sequence belongs to a certain meaning set, and so on.
  • the meaning of the emoticons in the expression sequence conforms to the preset association relationship, specifically: the meaning of the first emoticon in the expression sequence belongs to the first meaning set, and the remaining at least two The meaning of the emoticon belongs to the second meaning set, wherein the meaning in the first meaning set precedes the meaning in the second meaning set in the chain reaction; or the meaning of the head emoticon included in the expression sequence The meaning of the first meaning set and the remaining at least two emoticons belong to the second meaning set.
  • the meaning of the first emoticon and the meaning of the remaining at least two emoticons conform to a predetermined meaning mapping relationship, wherein in the chain reaction The meaning in a meaning set appears before the meaning in the second meaning set; or the meaning of the tail emoticon included in the expression sequence belongs to the second meaning set, and the meanings of the remaining at least two emoticons belong to the first meaning a collection, wherein the meaning in the first meaning set in the chain reaction precedes the meaning in the second meaning set; or, the The meaning of the situation emoticon sequence belong to a meaning contained in the collection, and the like.
  • the detection result is yes, it indicates that the emoticon in the interface of the chat session can trigger a chain reaction, and therefore, the expression sequence can be chained, and the expression in the expression sequence can be changed in the chat session by the chain reaction.
  • the display style in the interface enhances the fun of the instant messaging process. It can be understood that when the detection result is not YES, no processing can be performed.
  • the embodiment of the present specification only changes the display style of the emoticon in the interface of the chat session in the expression sequence, and the emoticon stored in the expression sequence in the background does not change; and, in the chain reaction of the expression sequence Thereafter, after a predetermined length of time, the emoticons in the sequence of expressions in the chat session can be restored.
  • the step of performing a chain reaction on the expression sequence may include:
  • the display position of the emoticon in the expression sequence is updated.
  • the so-called display content update may include, but is not limited to, an expression replacement or a state switch, wherein the expression replacement is to replace the emoticon in the expression sequence with another emoticon, and the state switching is in the expression sequence.
  • the emoticon switches from the current display state to another display state, which may be a hidden state.
  • the so-called display position update adjusts the display position of the emoticon in the expression sequence, for example, two or more emoticons in the expression sequence are closely processed.
  • the display content of the emoticon in the expression sequence may be updated, or only the display position of the emoticon in the expression sequence may be updated, or It is reasonable that the emoticons in the expression sequence update the display content and display the display position of the emoticons in the expression sequence.
  • the display content of the emoticon in the expression sequence when the display content of the emoticon in the expression sequence is updated, the display content may be independently updated by one or more emoticons in the expression sequence; or, the expression sequence may be At least two emoticons are overall updated for display content.
  • the display content update may be performed on the firstly generated emoticon in the expression sequence, which is of course not limited thereto.
  • at least two emoticons in the expression sequence may be replaced by one other emoticon or at least two other emoticons, etc. Wait.
  • the step of performing expression replacement on the emoticon in the expression sequence may include:
  • the expression is replaced by the expression in the expression sequence with the obtained replacement expression.
  • a third expression set including a plurality of emoticons is preset, and the emoticons in the third expression set are used as replacement emoticons.
  • selecting an emoticon from the third expression set it can be random or non-random, which is reasonable.
  • the step of performing an expression replacement on the emoticon in the expression sequence may include:
  • the expression is replaced by the expression in the expression sequence with the obtained replacement emoticon.
  • a mapping relationship between the initial emoticon and the replacement emoticon is preset, wherein the initial emoticon is an expression that needs to be replaced, so that the expression replacement process is more targeted. Further improve the user experience.
  • the replacement emoticon corresponding to the target emoticon may be obtained locally according to a preset mapping relationship between the initial emoticon and the replacement emoticon.
  • the so-called universal type is the basic emoticon that each user has.
  • the target emoticon to be replaced in the expression sequence belongs to a custom type
  • the target emoticon is requested from the issuer of the target emoticon according to a preset mapping relationship between the initial emoticon and the replacement emoticon.
  • the corresponding replacement expression the so-called custom type, that is, the emoticon set by the user according to his own needs.
  • the user is provided with a number of expression templates that express basic emotions, such as: dull, happy, naughty, powerless, angry, hurtful, tired, sweet, etc., the user can add an expression package of interest in the expression template to create Belong to your own exclusive expression.
  • the initial emoticon and the replacement emoticon can be represented by the emoticon, or by the expression meaning, which are all reasonable.
  • detecting whether an expression sequence conforming to a preset chain reaction condition exists in the same chat session and the expression sequence is: a sequence including at least two emoticons;
  • the detection result is YES
  • a chain reaction is performed on the expression sequence, and the chain reaction is used to change the display style of the emoticon in the expression sequence in the interface of the chat session. Since the expression sequence conforming to the preset chain reaction condition is chained in the chat process, thereby changing the display style of the emoticon in the interface of the chat session, the interest in the instant messaging process can be improved.
  • a session processing method provided by the first aspect of the present specification is introduced by taking a sequence of expressions as a sequence including two emoticons as an example.
  • the execution body of a session processing method may be a session processing device that runs in an electronic device.
  • the session processing device may be a function plug-in in an instant messaging program
  • the electronic device may be a device such as a smart phone, a tablet computer, a notebook computer, or the like.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the step of detecting whether the included previous emoticon belongs to the first emoticon set and the latter emoticon belongs to the second emoticon set in the same chat session is when the emoticon sequence includes two emoticons The detecting whether there is a specific implementation manner of the expression sequence that meets the preset chain reaction condition in the same chat session.
  • the detection of whether the included previous emoticon belongs to the first emoticon set and the subsequent emoticon belongs to the second emoticon set in the same chat session, that is, whether the interface of the same chat session is displayed is displayed.
  • the included first emoticon belongs to the first expression set, and the latter emoticon belongs to the expression sequence of the second expression set.
  • the chat session may be a chat session about two users.
  • the interface of the chat session is a friend session box; of course, the chat session may also be related to a chat session of two or more users, that is, a group chat session.
  • the chat session interface is a group chat session box, this is also reasonable.
  • two emoticons in the expression sequence may belong to different session messages or belong to the same session message, wherein one session message is a piece of information sent by the user; and the session message to which the emoticon belongs It can include only emoticons, and can include both emoticons and text.
  • two emoticons are continuous emoticons; of course, there may also be text between the two emoticons, specifically, the previous emoticon After the occurrence, at least one plain text appears, and then the latter emoticon appears; and the two emoticons can be issued by the same user or by different users, which is reasonable.
  • the emoticons in the second expression set can logically affect the emoticons in the first expression set, for example, the first expression set may include hope to be cared for.
  • Emoticons such as emoticons that express plain emotions, emoticons that express weakness, expressions that express angry emotions, emoticons that express sad emotions, emoticons that characterize fatigue, etc.; correspondingly, the second expression set can It includes caring emoticons such as emoticons that characterize gifts, emoticons that characterize sunlight, emoticons that characterize hugs, emoticons that characterize hot tea, and more.
  • determining whether the last emoticon of the currently output emoticon in the chat session belongs to The first expression set if yes, determines that there is a sequence of expressions in the same chat session that the previous emoticon belongs to the first emoticon set and the latter emoticon belongs to the second emoticon set.
  • An emoticon characterizing a powerless emotion in an expression set may determine that there is a sequence of expressions in the same chat session in which the included previous emoticon belongs to the first emoticon set and the latter emoticon belongs to the second emoticon set.
  • the current output in the chat session belongs to the emoticon in the first emoticon set
  • the emoticon characterizing the gift in the second expression set may determine that there is an expression sequence in the same chat session that the included previous emoticon belongs to the first emoticon set and the latter emoticon belongs to the second emoticon set.
  • a plurality of sets of the first expression set and the second set of expression sets can be set, and each set of the first expression set and the second expression set can trigger a chain reaction.
  • a set of the first expression set and the second expression set may also be set. In this case, in a specific implementation manner, any one of the first expression set and the second expression set.
  • the chain reaction can be triggered; in another specific implementation, in order to make it more specific, the emoticon in the first emoticon and the emoticon in the second emoticon can be set.
  • the first emoticon set includes: an emoticon A that represents a dull emotion, and an expression that expresses a weak emotion.
  • the second expression set includes: an emoticon a characterizing the gift and an emoticon b characterizing the hug, and in order to be more targeted,
  • the emoticon A, the emoticon B, and the emoticon a are mapped, and the emoticon C, the emoticon D, and the emoticon b are mapped.
  • S204 Perform a chain reaction on the expression sequence when the detection result is YES, wherein the chain reaction is used to change a display style of the emoticon in the expression sequence in the interface of the chat session.
  • S204 is similar to S104 of the above embodiment, except that in this embodiment, a chain reaction sequence containing two emoticons is chained, and in the previous embodiment, a sequence of expressions including at least two emoticons is chained. reaction.
  • the expression sequence is a sequence including two emoticons, and the two emoticons are continuous expressions sent by different users.
  • the first expression set includes an emoticon characterizing the flat emotion emoticon, an emoticon characterizing the angry mood, and an emoticon characterizing the sad heart emotion; and the second expression set includes an emoticon characterizing the gift and an emoticon characterizing the hug.
  • the form of the chain reaction is an expression replacement and a position update, wherein a correspondence relationship between the initial emoticon and the replacement emoticon is preset: the emoticon characterizing the dull emotion corresponds to the emoticon characterizing the happy mood, and the expression of the angry mood
  • the emoticons correspond to emoticons that characterize dull emotions
  • emoticons that characterize sad emotions correspond to emoticons that characterize dull emotions.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the expression sequence is a sequence including two emoticons, and text information may exist between the two emoticons, and the two emoticons are expressions sent by different users.
  • the first expression set includes an emoticon characterizing the flat emotion emoticon, an emoticon characterizing the angry mood, and an emoticon characterizing the sad heart emotion; and the second expression set includes an emoticon characterizing the gift and an emoticon characterizing the hug.
  • the form of the chain reaction is an expression replacer, wherein a correspondence relationship between the initial emoticon and the replacement emoticon is preset in advance: the emoticon characterizing the dull emotion corresponds to an emoticon characterizing the happy mood, and an expression representing the angry mood.
  • the emoticons correspond to emoticons that characterize dull emotions, and emoticons that characterize broken heart emotions correspond to emoticons that characterize dull emotions.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the determination result is no, determining whether the first two conversation messages of the currently outputted emoticon in the chat session include an emoticon belonging to the first expression set;
  • a session processing method provided by the first aspect of the embodiments of the present specification is described by taking a sequence of expressions as a sequence including two or more emoticons.
  • the execution body of a session processing method may be a session processing device that runs in an electronic device.
  • the session processing device may be a function plug-in in an instant messaging program
  • the electronic device may be a device such as a smart phone, a tablet computer, a notebook computer, or the like.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the step of detecting whether the included header emoticon belongs to the first emoticon set and the remaining at least two emoticons belong to the second emoticon set in the same chat session is when the emoticon sequence includes more than two emoticons At the time, the detecting whether there is a specific implementation manner of the expression sequence that meets the preset chain reaction condition in the same chat session.
  • detecting whether there is an expression sequence in which the included header emoticons belong to the first emoticon set and the remaining at least two emoticons belong to the second emoticon set in the same chat session, that is, whether the interface of the same chat session is detected is displayed.
  • the contained first emoticon belongs to the first expression set, and the remaining at least two emoticons belong to the expression sequence of the second expression set.
  • the chat session may be a chat session about two users.
  • the interface of the chat session is a friend session box; of course, the chat session may also be related to a chat session of two or more users, that is, a group chat session.
  • the chat session interface is a group chat session box, this is also reasonable.
  • two or more emoticons in the expression sequence may belong to different session messages respectively, or at least two emoticons in the expression sequence may belong to the same session message, wherein one session message is sent by the user.
  • a piece of information; and the session message to which the emoticon belongs may include only an emoticon, and may include both an emoticon and a text.
  • the emoticons in the second expression set can logically affect the emoticons in the first expression set, for example, the first expression set may include hope to be cared for.
  • Emoticons such as emoticons that express plain emotions, emoticons that express weakness, expressions that express angry emotions, emoticons that express sad emotions, emoticons that characterize fatigue, etc.; correspondingly, the second expression set can It includes caring emoticons such as emoticons that characterize gifts, emoticons that characterize sunlight, emoticons that characterize hugs, emoticons that characterize hot tea, and more.
  • the current output in the chat session belongs to the emoticon in the first emoticon set
  • determining at least the next two emoticons of the currently output emoticon in the chat session Whether it belongs to the second expression set, and if so, it is determined that there is a sequence of expressions in the same chat session that the included header emoticons belong to the first expression set and the remaining at least two emoticons belong to the second expression set.
  • An emoticon representing the gift in the second expression set may determine that there is an expression sequence in the same chat session that the included first emoticon belongs to the first emoticon set and the remaining at least two emoticons belong to the second emoticon set.
  • a plurality of sets of the first expression set and the second set of expression sets can be set, and each set of the first expression set and the second expression set can trigger a chain reaction.
  • a set of the first expression set and the second expression set may also be set. In this case, in a specific implementation manner, any one of the first expression set and the second expression set.
  • the chain reaction can be triggered; in another specific implementation, in order to make it more specific, the emoticon in the first emoticon and the emoticon in the second emoticon can be set.
  • S504 is similar to S104 of the above embodiment, except that in this embodiment, a chain reaction sequence containing two emoticons is chained, and the previous embodiment interlocks the expression sequence including at least two emoticons. reaction.
  • the expression sequence is a sequence including three emoticons, which are continuous emoticons, and the head emoticons are issued by one user, and the other two emoticons are issued by another user.
  • the first expression set includes an emoticon characterizing the flat emotion emoticon, an emoticon characterizing the angry mood, and an emoticon characterizing the sad heart emotion; and the second expression set includes an emoticon characterizing the gift and an emoticon characterizing the hug.
  • the form of the chain reaction is an expression replacement, wherein a correspondence relationship between the initial emoticon and the replacement emoticon is preset: the emoticon characterizing the dull emotion corresponds to an emoticon characterizing the happy mood, and an emoticon characterizing the angry mood An emoticon corresponding to an emoticon characterizing a dull mood, and an emoticon characterizing a sad mood corresponds to an emoticon characterizing a dull emotion.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the next two session messages that are determined to obtain the emoticon currently outputted in the chat session include an emoticon that represents the gift belonging to the second emoticon set.
  • the emoticon character representing the dull emotion in the interface of the chat session is replaced with an emoticon characterizing the happy mood.
  • the embodiment of the present specification further provides an electronic device.
  • the electronic device includes a processor 1002, an internal bus 1004, a network interface 1006, a memory 1008, and a non-volatile memory 1010, and of course may also include hardware required for other services.
  • the processor 1002 reads the corresponding computer program from the non-volatile memory 1010 into the memory 1008 and then operates to form a session processing device on a logical level.
  • the embodiments of the present specification do not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and It can be hardware or logic.
  • the session processing apparatus may include:
  • the expression sequence detecting unit 1120 is configured to detect whether there is an expression sequence that meets a preset chain reaction condition in the same chat session, where the expression sequence is: a sequence including at least two emoticons;
  • a chain reaction unit 1140 configured to perform a chain reaction on the expression sequence when the detection result is YES, wherein the chain reaction is used to change display of an emoticon in the expression sequence in an interface of the chat session style.
  • the expression sequence is: a sequence comprising two emoticons.
  • the two emoticons included in the expression sequence are issued by different users.
  • the expression sequence is: a sequence including two or more emoticons.
  • the preset chain reaction condition is that the emoticons in the expression sequence conform to a preset association relationship.
  • the preset chain reaction condition is that the meaning of the emoticon in the expression sequence conforms to a preset association relationship.
  • the chain reaction unit 1140 may include:
  • a first reaction subunit configured to update display content of the emoticons in the expression sequence
  • the second reaction subunit is configured to perform display position update on the emoticons in the expression sequence.
  • the first reaction subunit includes:
  • An independent update module configured to separately perform display content update on one or more emoticons in the expression sequence
  • the overall update module is configured to perform display content update on at least two emoticons in the expression sequence.
  • the first reaction subunit includes:
  • An expression replacement module configured to perform an expression replacement on the emoticon in the expression sequence
  • An expression switching module is configured to perform state switching on the emoticons in the expression sequence.
  • the expression replacement module includes:
  • An expression obtaining submodule configured to obtain, according to a preset mapping relationship between the initial emoticon and the replacement emoticon, a replacement emoticon corresponding to each of the emoticons in the expression sequence;
  • the expression replacement sub-module is configured to perform expression replacement on the emoticons in the expression sequence with the obtained replacement emoticons.
  • the expression obtaining submodule is specifically configured to:
  • the target emoticon to be replaced in the expression sequence belongs to a custom type, requesting the target from the issuer of the target emoticon according to a preset mapping relationship between the initial emoticon and the replacement emoticon
  • the emoticon replaces the emoticon.
  • the apparatus, module or unit set forth in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, and a game control.
  • a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • the embodiment of the present disclosure further provides a computer readable storage medium, where the computer program is stored, and the program is implemented by the processor to implement the foregoing first aspect.
  • the session processing method may include:
  • a chain reaction is performed on the expression sequence, wherein the chain reaction is used to change a display style of an emoticon in the expression sequence in an interface of the chat session.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • the embodiment of the present specification further provides a session processing method.
  • the execution body of a session processing method may be a session processing device that runs in an electronic device.
  • the session processing device may be a function plug-in in an instant messaging program
  • the electronic device may be a device such as a smart phone, a tablet computer, a notebook computer, or the like.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • the chat session may be a chat session about two users.
  • the interface of the chat session is a friend session box; of course, the chat session may also be related to a chat session of two or more users, that is, a group chat session.
  • the interface of the chat session is a group chat session box, which is also reasonable.
  • the session processing device can independently execute S1202-S 1204 on the established chat session.
  • the session processing device After the session processing device detects the new session message, it can determine whether there is an association relationship between the emoticon and the existing emoticon in the chat session. If there is an association relationship, the existing emoticon can be changed.
  • the display style in the interface of the chat session It should be emphasized that the embodiment of the present specification only changes the display style of the existing emoticon in the interface of the chat session, and the existing emoticon stored in the background does not change; and, the existing emoticon is changed in the chat. After the display style in the interface of the session, after the predetermined length of time, the existing emoticon in the chat session can be restored.
  • the existing emoticon can be an emoticon or at least two emoticons, which is reasonable.
  • the emoticon and the sender of the existing emoticon may be different or the same.
  • the manner of determining whether the emoticon has an association relationship with the existing emoticon in the chat session may include:
  • the emoticons in the first emoticon set appear in the chat session before the emoticons in the second emoticon set, that is, the emoticons in the second emoticon set can logically affect the first emoticon set from the emotions.
  • the first expression set may include an emoticon that is desired to be cared for, such as an emoticon that characterizes a dull emotion, an emoticon that expresses a powerless emotion, an emoticon that expresses an angry mood, an emoticon that characterizes a sad emotion, and a character fatigue.
  • the second expression set may include a caring emoticon, such as an emoticon characterizing a gift, an emoticon characterizing the sun, an emoticon characterizing a hug, an emoticon characterizing a hot tea, etc. .
  • a caring emoticon such as an emoticon characterizing a gift, an emoticon characterizing the sun, an emoticon characterizing a hug, an emoticon characterizing a hot tea, etc.
  • the manner of determining whether the emoticon has an association relationship with the existing emoticon in the chat session may include:
  • the first emoticon set includes: an emoticon A that represents a dull emotion, and a character that expresses a weak emotion.
  • the emoticon B, the emoticon C that characterizes the emotional emotion, the emoticon D that characterizes the fatigue emotion, and the second expression set includes: an emoticon a that represents the gift and an emoticon b that represents the hug, in order to be more targeted,
  • the emoticon A, the emoticon B, and the emoticon a are mapped, and the emoticon C, the emoticon D, and the emoticon b are mapped.
  • the step of changing the display style of the existing emoticon in the chat session may include:
  • the so-called display content update may include, but is not limited to, an expression replacement or a state switch, wherein the expression replacement is to replace the existing emoticon with another emoticon, and the state switching is to change the existing emoticon from the current
  • the display state is switched to another display state, which may be a hidden state.
  • the so-called display position update adjusts the display position of the existing emoticon, for example, the existing emoticon and the emoticon are closely processed.
  • the step of performing expression replacement on the existing emoticon may include:
  • the expression is replaced with the existing emoticon.
  • a third expression set including a plurality of emoticons is preset, and the emoticons in the third expression set are used as replacement emoticons.
  • selecting an emoticon from the third expression set it can be random or non-random, which is reasonable.
  • the step of performing an expression replacement on the existing emoticon may include:
  • the expression replacement is performed on the existing emoticon with the obtained replacement emoticon.
  • a mapping relationship between the initial emoticon and the replacement emoticon is preset, wherein the initial emoticon is an expression that needs to be replaced, so that the expression replacement process is more targeted. Further improve the user experience.
  • the replacement emoticon corresponding to the existing emoticon can be obtained locally according to the preset mapping relationship between the initial emoticon and the replacement emoticon.
  • the so-called universal type is the basic emoticon that each user has.
  • the sender of the existing emoticon is requested to obtain the replacement emoticon corresponding to the existing emoticon.
  • the so-called custom type that is, the emoticon set by the user according to his own needs.
  • the user is provided with a number of expression templates that express basic emotions, such as: dull, happy, naughty, powerless, angry, hurtful, tired, sweet, etc., the user can add an expression package of interest in the expression template to create Belong to your own exclusive expression.
  • the display style of the emoticon in the new session message may also be changed while changing the display style of the existing emoticon in the interface of the chat session.
  • the specific implementation manner of changing the display style of the emoticon in the new session message may include:
  • the display position update of the emoticon in the new session message is performed.
  • the embodiment of the present specification further provides an electronic device.
  • the electronic device includes a processor, an internal bus, a network interface, memory, and non-volatile memory, and may of course include hardware required for other services.
  • the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a session processing device at a logical level.
  • a schematic structural view of the electronic device is the same as that of the electronic device mentioned in the foregoing, and FIG. 10 is specifically referred to.
  • the embodiments of the present specification do not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and It can be hardware or logic.
  • the session processing apparatus may include:
  • the message detecting unit 1320 is configured to detect a new session message in the chat session, where the session message includes an emoticon;
  • a display style changing unit 1340 configured to change a display of the existing emoticon in an interface of the chat session when it is determined that the emoticon has an association relationship with an existing emoticon in the chat session style.
  • the interest in the instant messaging process can be improved.
  • the display style changing unit 1340 changes the display style of the emoticon in the new session message while changing the display style of the existing emoticon in the interface of the chat session.
  • the display style changing unit 1340 is specifically configured to: when it is determined that the emoticon has an association relationship with an existing emoticon in the chat session, in an interface of the chat session, The existing emoticon performs display content update; or, in the session chat interface, performs display position update on the existing emoticon.
  • the embodiment of the present specification further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the second aspect is provided.
  • the session processing method may include:
  • a new session message is detected, the session message including an emoticon;
  • the display style of the existing emoticon in the interface of the chat session is changed.
  • the embodiment of the present specification further provides a session processing method.
  • the execution body of a session processing method may be a session processing device that runs in an electronic device.
  • the session processing device may be a function plug-in in an instant messaging program
  • the electronic device may be a smart phone, a tablet computer, a notebook computer, or the like.
  • the data object in this embodiment may be: an emoticon, a text, a red envelope, etc.
  • the object sequence may include only one type of data object, such as an emoticon or text; and may also include two types of data objects, such as A combination of emoticons and text, a combination of emoticons and red packets, a combination of text and red packets; it can also include three types of data objects, such as emoticons, combinations of text and red packets, and so on.
  • a session processing method provided by an embodiment of the present disclosure may include the following steps:
  • S1402 Detecting, in the same chat session, whether there is a sequence of objects that meets a preset chain reaction condition, where the sequence of the object is: a sequence including at least two data objects;
  • the sequence of objects is: a sequence comprising two data objects.
  • two data objects included in the sequence of objects are issued by different users.
  • the sequence of objects is: a sequence comprising more than two data objects.
  • the preset chain reaction condition is that the data objects in the object sequence meet a preset association relationship.
  • the preset chain reaction condition is that the meaning of the data object in the object sequence conforms to a preset association relationship.
  • S1404 Perform a chain reaction on the sequence of the object when the detection result is YES, wherein the chain reaction is used to change a display style of the data object in the sequence of the chat session in the object sequence.
  • the step of performing a chain reaction on the expression sequence includes:
  • the step of performing display content update on the data object in the sequence of the object includes:
  • Display content update is performed on at least two data objects in the object sequence as a whole.
  • the step of performing display content update on the data object in the sequence of the object may include:
  • the expression is replaced by an emoticon in the sequence of objects; or the state of the emoticon in the sequence of objects is switched.
  • the step of performing an expression replacement on the emoticon in the sequence of the object may include:
  • the expression is replaced with the emoticon in the sequence of objects with the obtained replacement emoticon.
  • the step of obtaining a replacement emoticon corresponding to each of the emoticons in the sequence of the object according to the preset mapping relationship between the initial emoticon and the replacement emoticon includes:
  • the target emoticon to be replaced in the sequence of objects belongs to a custom type, according to a preset mapping relationship between the initial emoticon and the replacement emoticon, requesting the target emoticon from the issuer of the target emoticon
  • the character corresponding to the character is replaced by a character.
  • the so-called change of the display style may specifically include, but is not limited to, a change in font size, font, text color, bold, tilt, and the like. Therefore, when it is necessary to perform a chain reaction on a data object belonging to text in the object sequence, the display style can be updated from the angle of the font size, the font, the text color, the bold, the tilt, and the like.
  • the sequence of objects is two consecutive data objects issued by different users, wherein the first object set includes: an emoticon characterizing a dull emotion, and the second object set includes a text content “I miss you”.
  • the replacement expression corresponding to the emoticon characterizing the dull emotion is an expression representing the happy emotion; when the chat session between the user A and the user B, the user A issues an emoticon characterizing the plain emotion, and then the user B issues the text content "I want to You can trigger a chain reaction, in which the expression of the plain emotion sent by user A in the interface of the chat session is replaced with an emoticon characterizing the happy mood.
  • the session processing method provided by this embodiment differs from the session processing method provided by the foregoing first aspect in that it is directed to a data object, and therefore, a further explanation about the session processing method described in this embodiment or For the content of the description, refer to the session processing method provided in the foregoing first aspect, which is not described herein.
  • an embodiment of the present specification further provides an electronic device.
  • the electronic device includes a processor, an internal bus, a network interface, memory, and non-volatile memory, and may of course include hardware required for other services.
  • the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a session processing device at a logical level.
  • a schematic structural view of the electronic device is the same as that of the electronic device mentioned in the foregoing, and FIG. 10 is specifically referred to.
  • the embodiments of the present specification do not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and It can be hardware or logic.
  • the session processing apparatus may include:
  • the object sequence detecting unit 1520 is configured to detect whether there is an object sequence that meets a preset chain reaction condition in the same chat session, where the object sequence is: a sequence including at least two data objects;
  • a chain reaction unit 1540 configured to perform a chain reaction on the sequence of the object when the detection result is YES, wherein the chain reaction is used to change a display of the data object in the sequence of the chat session in the interface of the chat session style.
  • the sequence of objects is: a sequence comprising two data objects.
  • two data objects included in the sequence of objects are issued by different users.
  • the sequence of objects is: a sequence comprising more than two data objects.
  • the preset chain reaction conditions include:
  • the included header data object belongs to the first object set, and the remaining at least two data objects belong to the second object set, wherein the data object in the first object set precedes the data in the second object set in the chain reaction The object appears.
  • the chain reaction unit 1540 may include:
  • a first reaction subunit configured to perform display content update on the data object in the object sequence
  • the second reaction subunit is configured to perform display position update on the data object in the object sequence.
  • the first reaction subunit includes:
  • An independent update module configured to separately perform display content update on one or more data objects in the sequence of objects
  • the overall update module is configured to perform display content update on at least two of the data objects in the object sequence.
  • the first reactive subunit includes:
  • the expression replacement module includes:
  • an expression obtaining submodule configured to obtain, according to a preset mapping relationship between the initial emoticon and the replacement emoticon, a replacement emoticon corresponding to each of the emoticons in the sequence of the object;
  • the expression replacement sub-module is configured to perform an expression replacement on the emoticon in the sequence of the object with the obtained replacement emoticon.
  • the expression obtaining submodule is specifically configured to:
  • the target emoticon to be replaced in the sequence of objects belongs to a custom type, requesting the target from the issuer of the target emoticon according to a preset mapping relationship between the initial emoticon and the replacement emoticon
  • the emoticon replaces the emoticon.
  • the embodiment of the present specification further provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by the processor, the foregoing session data processing method is implemented.
  • the session processing method may include:
  • sequence of the object is: a sequence including at least two data objects
  • a chain reaction is performed on the sequence of the object, wherein the chain reaction is used to change a display style of the data object in the sequence of the chat session in the interface of the chat session.
  • first, second, third, etc. may be used to describe various information in the embodiments of the present specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the embodiments of the present specification.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or "when” or "in response to a determination.”

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本说明书实施例提供会话处理方法、装置及电子设备。该会话处理方法包括:检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列,当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。

Description

会话处理方法、装置及电子设备
本申请要求2018年02月05日递交的申请号为201810111719.0、发明名称为“会话处理方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本说明书实施例涉及电子设备技术领域,尤其涉及会话处理方法、装置及电子设备。
背景技术
在网络应用场景下,表情符是日常生活的艺术化表达,被喻为语音与文字以外的第三种语言。在利用IM((Instant Messaging,即时通讯)软件的聊天过程中,表情符可以帮助人们准确地表达符合聊天场景的信息,同时增加用户在聊天中的乐趣,甚至能得到意想不到的表达效果。
其中,表情符主要分为字符表情符和图片表情符。在具体应用中,用户可以根据实际的聊天场景选择不同类型的表情符。
发明内容
有鉴于此,本说明书实施例提供会话处理方法、装置及电子设备,以提高即时通讯过程中的趣味性。
为实现上述目的,本说明书实施例提供技术方案如下:
第一方面,本说明书实施例提供了一种会话处理方法,包括:
检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列;
当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。
可选地,所述表情序列为:包括两个表情符的序列。
可选地,所述表情序列中所包括的两个表情符由不同用户发出。
可选地,所述表情序列为:包括两个以上表情符的序列。
可选地,所述预设连锁反应条件为所述表情序列中的表情符之间符合预设的关联关系。
可选地,所述预设连锁反应条件为所述表情序列中的表情符的含义符合预设的关联关系。
可选地,所述对所述表情序列进行连锁反应的步骤,包括:
对所述表情序列中的表情符进行显示内容更新;
和/或,
对所述表情序列中的表情符进行显示位置更新。
可选地,所述对所述表情序列中的表情符进行显示内容更新的步骤,包括:
对所述表情序列中的一个或多个表情符分别独立进行显示内容更新;
或者,
对所述表情序列中的至少两个表情符整体进行显示内容更新。
可选地,所述对所述表情序列中的表情符进行显示内容更新的步骤,包括:
对所述表情序列中的表情符进行表情替换;
或者,
对所述表情序列中的表情符进行状态切换。
可选地,所述对所述表情序列中的表情符进行表情替换的步骤,包括:
根据预设的关于初始的表情符与替换表情符的映射关系,获得所述表情序列中的表情符各自对应的替换表情符;
以所获得的替换表情符,对所述表情序列中的表情符进行表情替换。
可选地,所述根据预设的关于初始的表情符与替换表情符的映射关系,获得所述表情序列中的表情符各自对应的替换表情符的步骤,包括:
当所述表情序列中待被替换的目标表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从所述目标表情符的发出方请求获得所述目标表情符所对应替换表情符。
第二方面,本说明书实施例还提供了一种会话处理方法,包括:
在聊天会话中,检测到新的会话消息,所述会话消息包括表情符;
当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,改变所述已有表情符在所述聊天会话的界面中的显示样式。
可选地,本说明书实施例所提供的一种会话处理方法,还包括:
改变所述已有表情符在所述聊天会话的界面中的显示样式的同时,改变新会话消息中的表情符的显示样式。
可选地,所述改变所述已有表情符在所述会话中的显示样式的步骤,包括:
在所述聊天会话的界面中,对所述已有表情符进行显示内容更新;
或者,
在所述会话聊天的界面中,对所述已有表情符进行显示位置更新。
第三方面,本说明书实施例还提供了一种会话处理方法,包括:
检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,所述对象序列为:包括至少两个数据对象的序列;
当检测结果为是时,对所述对象序列进行连锁反应,其中,所述连锁反应用于改变所述对象序列中的数据对象在所述聊天会话的界面中的显示样式。
基于上述第一方面所提供的会话处理方法,本说明书实施例提供了一种会话处理装置,包括:
表情序列检测单元,用于检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列;
连锁反应单元,用于当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。
基于上述第二方面所提供的会话处理方法,本说明书实施例还提供了一种会话处理装置,包括:
消息检测单元,用于在聊天会话中,检测到新的会话消息,所述会话消息包括表情符;
显示样式更改单元,用于当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,改变所述已有表情符在所述聊天会话的界面中的显示样式。
基于上述第三方面所提供的会话处理方法,本说明书实施例还提供了一种会话处理装置,包括:
对象序列检测单元,用于检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,所述对象序列为:包括至少两个数据对象的序列;
连锁反应单元,用于当检测结果为是时,对所述对象序列进行连锁反应,其中,所述连锁反应用于改变所述对象序列中的数据对象在所述聊天会话的界面中的显示样式。
基于上述第一方面所提供的会话处理方法,本说明书实施例提供了一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为实现第一方面所提供的会话处理方法。
基于上述第二方面所提供的会话处理方法,本说明书实施例提供了一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为实现第二方面所提供的会话处理方法。
基于上述第三方面所提供的会话处理方法,本说明书实施例提供了一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为实现第三方面所提供的会话处理方法。
本说明书实施例所提供的一种会话方法中,检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,该表情序列为:包括至少两个表情符的序列;进而当检测结果为是时,对该表情序列进行连锁反应,该连锁反应用于改变该表情序列中的表情符在该聊天会话的界面中的显示样式。由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
另外,本说明书实施例所提供的另一种会话处理方法中,在检测到新的会话消息后,当判断出该会话消息所包含的表情符与该会话中的已有表情符之间存在关联关系时,改变该已有表情符在该会话中的显示样式。由于在判断出先后出现的表情符之间存在关联关系时改变已有表情符的显示样式,因此,可以提高即时通讯过程中的趣味性。
另外,本说明书实施例所提供的另一种会话处理方法中,检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,该对象序列为:包括至少两个数据对象的序列;并当检测结果为是时,对该对象序列进行连锁反应,该连锁反应用于改变该对象序列中的数据对象在该聊天会话的界面中的显示样式。由于在聊天过程中对符合预设连锁反应条件的对象序列进行连锁反应,从而改变该对象序列中的数据对象在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
附图说明
图1是本说明书实施例第一方面所提供的一种会话处理方法的流程图;
图2是本说明书实施例第一方面所提供的一种会话处理方法的另一流程图;
图3是本说明书实施例第一方面所提供的一种会话处理方法的另一流程图;
图4是利用本说明书实施例第一方面所提供的一种会话处理方法的聊天会话的界面变化状态示意图;
图5是本说明书实施例第一方面所提供的一种会话处理方法的另一流程图;
图6是利用本说明书实施例第一方面所提供的一种会话处理方法的聊天会话的界面变化状态示意图;
图7是本说明书实施例第一方面所提供的一种会话处理方法的另一流程图;
图8是本说明书实施例第一方面所提供的一种会话处理方法的另一流程图;
图9是利用本说明书实施例第一方面所提供的一种会话处理方法的聊天会话的界面变化状态示意图;
图10是本说明书实施例第一方面所提供的一种电子设备的结构示意图;
图11是本说明书实施例第一方面所提供的一种会话处理装置的结构示意图;
图12是本说明书实施例第二方面所提供的一种会话处理方法的流程图;
图13是本说明书实施例第二方面所提供的一种会话处理装置的结构示意图;
图14是本说明书实施例第三方面所提供的一种会话处理方法的流程图;
图15是本说明书实施例第三方面所提供的一种会话处理装置的结构示意图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书实施例的一些方面相一致的装置和方法的例子。
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。
第一方面,为了提高即时通讯过程中的趣味性,从而提高用户使用体验,本说明书实施例提供了一种会话处理方法。
需要说明的是,本说明书实施例所提供的一种会话处理方法的执行主体可以为一种会话处理装置,该会话处理装置运行于电子设备中。在具体应用中,该会话处理装置可以为即时通讯程序中的功能插件,而该电子设备可以为智能手机、平板电脑、笔记本电脑等设备。
如图1所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S102,检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,该表情序列为:包括至少两个表情符的序列;
其中,所谓检测同一聊天会话中是否存在符合预设连锁反应条件的表情序列,即检测同一聊天会话的界面中是否显示有符合预设连锁反应条件的表情序列。
需要说明的是,该聊天会话可以为关于两个用户的聊天会话,此时,聊天会话的界面即为好友会话框;当然,该聊天会话也可以关于两个以上用户的聊天会话,即群聊会话,此时,该聊天会话的界面为群聊会话框,这也是合理的。而无论该聊天会话属于哪一种类型的聊天会话,在任一聊天会话建立后,该会话处理装置可以对所建立的该聊天会话独立执行S102-S104。举例而言:如果用户A和用户B在聊天,同时用户A和用户C也在聊天,即当前建立了关于用户A和用户B的聊天会话1以及关于用户A和用户C的聊天会话2,那么,用户A所持电子设备中的会话处理装置可以对该聊天会话1执行本说明书实施例所提供的S102-S104,同时,可以对聊天会话2执行本说明书实施例所提供的S102-S104,而用户B所持电子设备中的会话处理装置可以对该聊天会话1执行本说明书实施例所提供的S102-S104,用户C所持电子设备中的会话处理装置可以对该聊天会话2执行本说明书实施例所提供的S102-S104。
可以理解的是,该表情序列中的各个表情符可以分别属于不同的会话消息,或者,该表情序列中的至少两个表情符可以属于同一会话消息,其中,一个会话消息即为用户发出的一条信息;并且,表情符所属的会话消息中可以仅仅包括表情符,也可以既包括表情符也包括文本。
具体的,对于表情符所属的会话消息中可以仅仅包括表情符的情况,举例而言:在一个聊天会话中,用户A发出会话消息:表情符1,紧接着用户B发出会话消息:表情符2;或者,用户A发出会话消息:表情符1和表情符2,紧着这用户B发出会话消息:表情符3。而对于表情符所属的会话消息中可以既包括表情符也包括文本的情况,举例 而言:在一个聊天会话中,用户A发出会话消息:文本1+表情符1,紧接着用户B发出会话消息:表情符2+文本2;或者,用户A发出会话消息:表情符1+文本1,紧着这用户B发出会话消息:表情符2+文本2,然后用户B继续发出会话消息:表情符3。
另外,需要强调的是,该表情序列可以为:包括两个表情符的序列,也可以为:包括两个以上表情符的序列。
具体的,当该表情序列为包括两个表情符的序列时,两个表情符之间可以不存在文本信息,即两个表情符为连续表情符;当然,两个表情符之间也可以存在文本,具体而言,前一表情符出现后,紧接着出现了至少一条纯文本,然后出现后一表情符。并且,该两个表情符可以由同一用户发出,或者由不同用户发出,这都是合理的。对于该两个表情符之间可以不存在文本信息的情况,举例而言:用户A发出会话消息:表情符1,之后用户B继续发出会话消息:表情符2;或者,用户A发出会话消息:表情符1,之后继续发出会话消息:表情2符。而对于该两个表情符之间可以存在文本信息的情况,举例而言:用户A发出会话消息:表情符1,之后继续发出会话消息:文本1,然后,用户B发出会话消息:表情符2;或者,用户A发出会话消息:表情符1,之后用户B发出会话消息:文本1,然后,用户B发出会话消息:表情符2。
而当该表情序列为包括两个以上表情符的序列时,该两个以上表情符之间可以不存在文本信息,即两个以上表情符为连续表情符;当然,该两个以上表情符之间也可以存在文本信息,具体而言,前一表情符出现后,其余表情符出现之前,出现了至少一条纯文本。并且,该两个以上表情符可以由同一用户发出,或者,由至少两个用户发出,这都是合理的。对于该两个以上表情符之间可以不存在文本信息的情况,举例而言,用户A发出会话消息:表情符1,之后用户B继续发出会话消息:表情符2,用户C发出会话消息:表情符2;或者,用户A发出会话消息:表情符1,之后继续发出会话消息:表情符2,紧接着又发出会话消息:表情符2;或者,用户A发出会话消息:表情符1,之后用户B连续发出两条会话消息,该两条会话消息分别为表情符2和表情符3。而对于该两个以上表情符之间可以存在文本信息的情况,举例而言:用户A发出会话消息:表情符1,之后继续发出会话消息:文本1,然后发出会话消息:表情符2,紧接着用户B发出会话消息:表情符2;或者,用户A发出会话消息:表情符1,之后继续发出会话消息:文本1,然后,用户A发出会话消息:表情符2,紧接着用户B发出会话消息:表情符3。
并且,可选地,在一种具体实现方式中,所述的预设连锁反应条件可以为该表情序 列中的表情符之间符合预设的关联关系。而由于在具体应用中存在多种表情系列,不同表情系列中存在具有相同表情含义的表情符,因此,为了适用于多种表情系列,可选地,在另一种具体实现方式中,所述的预设连锁反应条件可以为该表情序列中的表情符的含义符合预设的关联关系。
具体的,对于预设连锁反应条件为该表情序列中的表情符之间符合预设的关联关系的实现方式而言:
当该表情序列包括两个表情符时,该表情序列中的表情符之间符合预设的关联关系具体指:该表情序列中前一表情符属于第一表情集合且后一表情符属于第二表情集合,其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;或者,该表情序列中前一表情符属于第一表情集合、后一表情符属于第二表情集合,且该前一表情符与该后一表情符符合预定表情映射关系,其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;或者,该表情序列中的两个表情符均属于某一表情集合,等等。
当该表情序列包括两个以上表情符时,该表情序列中的表情符之间符合预设的关联关系具体指:该表情序列中的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合,其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;或者,该表情序列所包含的头表情符属于第一表情集合、其余至少两个表情符属于第二表情集合,同时,头表情符与其余至少两个表情符符合预定表情映射关系,其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;或者,该表情序列所包含的尾表情符属于第二表情集合、且其余至少两个表情符属于第一表情集合,其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;或者,该表情序列所包含的各个表情符均属于某一表情集合,等等。
具体的,对于预设连锁反应条件为该表情序列中的表情符的含义符合预设的关联关系的实现方式而言:
当该表情序列包括两个表情符时,该表情序列中的表情符的含义符合预设的关联关系具体指:该表情序列中前一表情符的含义属于第一含义集合且后一表情符的含义属于第二含义集合,其中,在连锁反应中该第一含义集合中的含义先于该第二含义集合中的含义出现;或者,该表情序列中前一表情符的含义属于第一含义集合、后一表情符的含义属于第二含义集合,且该前一表情符的含义与该后一表情符的含义符合预定含义映射关系,其中,在连锁反应中该第一含义集合中的含义先于该第二含义集合中的含义出现; 或者,该表情序列中的两个表情符的含义均属于某一含义集合,等等。
当该表情序列包括两个以上表情符时,该表情序列中的表情符的含义符合预设的关联关系具体指:该表情序列中的头表情符的含义属于第一含义集合、且其余至少两个表情符的含义属于第二含义集合,其中,在连锁反应中该第一含义集合中的含义先于该第二含义集合中的含义出现;或者,该表情序列所包含的头表情符的含义属于第一含义集合、其余至少两个表情符的含义属于第二含义集合,同时,头表情符的含义与其余至少两个表情符的含义符合预定含义映射关系,其中,在连锁反应中该第一含义集合中的含义先于该第二含义集合中的含义出现;或者,该表情序列所包含的尾表情符的含义属于第二含义集合、且其余至少两个表情符的含义属于第一含义集合,其中,在连锁反应中该第一含义集合中的含义先于该第二含义集合中的含义出现;或者,该表情序列所包含的各个表情符的含义均属于某一含义集合,等等。
S104,当检测结果为是时,对该表情序列进行连锁反应,其中,该连锁反应用于改变该表情序列中的表情符在该聊天会话的界面中的显示样式。
当检测结果为是时,表明该聊天会话的界面中的表情符可以触发连锁反应,因此,可以对该表情序列进行连锁反应,通过该连锁反应可以改变该表情序列中的表情符在该聊天会话的界面中的显示样式,从而提高即时通讯过程中的趣味性。可以理解的是,当检测结果不为是时,可以不作处理。另外,本说明书实施例仅仅改变该表情序列中表情符在该聊天会话的界面中的显示样式,后台存储的该表情序列中的表情符并未发生改变;并且,在对该表情序列进行连锁反应之后,经过预定时长后,该聊天会话中的该表情序列中的表情符可以进行还原。
可选地,所述对该表情序列进行连锁反应的步骤,可以包括:
对该表情序列中的表情符进行显示内容更新;
和/或
对该表情序列中的表情符进行显示位置更新。
其中,所谓的显示内容更新可以包括但不局限于:表情替换或者状态切换,其中,表情替换即为将该表情序列中的表情符替换为其他表情符,而状态切换即为将该表情序列中的表情符从当前显示状态切换为另一显示状态,该另一显示状态可以为隐藏状态。而所谓的显示位置更新即调整该表情序列中的表情符的显示位置,例如:将该表情序列中的两个或两个以上表情符进行贴紧处理。
可以理解的是,在对该表情序列进行连锁反应时,可以对该表情序列中的表情符进 行显示内容更新,也可以仅仅对该表情序列中的表情符进行显示位置更新,还可以既对该表情序列中的表情符进行显示内容更新又对该表情序列中的表情符进行显示位置更新,这都是合理的。
并且,需要说明的是,对该表情序列中的表情符进行显示内容更新时,可以对该表情序列中的一个或多个表情符分别独立进行显示内容更新;或者,可以对该表情序列中的至少两个表情符整体进行显示内容更新。其中,对于对该表情序列中的一个表情符进行显示内容更新的情况而言,可以对该表情序列中最先发出的表情符进行显示内容更新,当然并不局限于此。另外,对于对该表情序列中的至少两个表情符整体进行显示内容更新而言,可以将该表情序列中的至少两个表情符整体替换为一个其他表情符或者至少两个其他表情符,等等。
并且,从替换表情的确定的角度而言,一种具体实现方式中,对该表情序列中的表情符进行表情替换的步骤,可以包括:
从第三表情集合中,获得该表情序列中的表情符各自对应的替换表情;
以所获得的替换表情,对该表情序列中的表情符进行表情替换。
其中,预先设定了包含多个表情符的第三表情集合,该第三表情集合中的表情符作为替换表情。而从第三表情集合中选择表情符时,可以按照随机方式或非随机方式,这都是合理的。
在另一种具体实现方式中,对该表情序列中的表情符进行表情替换的步骤,可以包括:
根据预设的关于初始的表情符与替换表情符的映射关系,获得该表情序列中的表情符各自对应的替换表情;
以所获得的替换表情符,对该表情序列中的表情符进行表情替换。
在该种具体实现方式中,预先设定了关于初始的表情符与替换表情符的映射关系,其中,该初始的表情符即需要被替换的表情,这样,使得表情替换过程更加具有针对性,进一步提高用户体验。
另外,当该表情序列中待被替换的目标表情符属于通用类型时,根据预设的关于初始的表情符与替换表情符的映射关系,可以从本地获得该目标表情符所对应的替换表情符。其中,所谓通用类型即各个用户都具有的基础表情符。
而当该表情序列中待被替换的目标表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从该目标表情符的发出方请求获得该目标表情符所 对应替换表情。其中,所谓自定义类型,即用户根据自身需求所设定的表情符。例如:为用户提供若干表达基本情绪的表情模板,如:平淡、开心、调皮、无力、生气、伤透心、疲劳、甜蜜等,用户可以在表情模板中添加感兴趣的表情包,从而制作出属于自己的专属表情。
另外,需要强调的是,预设的关于初始的表情符与替换表情符的映射关系中,初始的表情符和替换表情符可以通过表情标识来表征,或者,通过表情含义来表征,这都是合理的。
本说明书实施例第一方面所提供的一种会话处理方法中,检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,该表情序列为:包括至少两个表情符的序列;进而当检测结果为是时,对该表情序列进行连锁反应,该连锁反应用于改变该表情序列中的表情符在该聊天会话的界面中的显示样式。由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
以表情序列为包括两个表情符的序列为例,对本说明书实施例第一方面所提供的一种会话处理方法进行介绍。
需要说明的是,本说明书实施例所提供的一种会话处理方法的执行主体可以为一种会话处理装置,该会话处理装置运行于电子设备中。在具体应用中,该会话处理装置可以为即时通讯程序中的功能插件,而该电子设备可以为智能手机、平板电脑、笔记本电脑等设备。
如图2所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S202,检测同一聊天会话中,是否存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列;其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;
所述检测同一聊天会话中,是否存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列的步骤,是当表情序列包括两个表情符时,所述检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列的一种具体实现方式。
其中,所谓检测同一聊天会话中,是否存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列,即检测同一聊天会话的界面中是否显示有所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列。
并且,该聊天会话可以为关于两个用户的聊天会话,此时,聊天会话的界面即为好友会话框;当然,该聊天会话也可以关于两个以上用户的聊天会话,即群聊会话,此时,该聊天会话的界面为群聊会话框,这也是合理的。可以理解的是,该表情序列中的两个表情符可以分别属于不同的会话消息,也可以属于同一会话消息,其中,一个会话消息即为用户发出的一条信息;并且,表情符所属的会话消息中可以仅仅包括表情符,也可以既包括表情符也包括文本。另外,该表情序列中的两个表情符之间可以不存在文本信息,即两个表情符为连续表情符;当然,两个表情符之间也可以存在文本,具体而言,前一表情符出现后,紧接着出现了至少一条纯文本,然后出现后一表情符;并且,该两个表情符可以由同一用户发出,或者由不同用户发出,这都是合理的。
需要说明的是,由于连锁反应,因此,第二表情集合中的表情符能够从情绪逻辑上影响到第一表情集合中的表情符,举例而言:该第一表情集合中可以包括希望被关怀的表情符,如表征平淡情绪的表情符、表征无力情绪的表情符、表征生气情绪的表情符、表征伤心情绪的表情符、表征疲劳情绪的表情符等;相应的,第二表情集合中可以包括具有关怀情怀的表情符,如表征礼物的表情符、表征阳光的表情符、表征拥抱的表情符,表征热茶的表情符等等。
另外,检测同一聊天会话中,是否存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列的具体实现方式存在多种。
可选地,在一种具体实现方式中,当检测到一聊天会话中当前输出属于该第二表情集合中的表情符时,判断该聊天会话中当前输出的表情符的上一表情符是否属于该第一表情集合,如果是,判定同一聊天会话中存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列。举例而言:当检测到一聊天会话中当前输出属于该第二表情集合中的表征拥抱的表情符时,如果判断出该聊天会话中该表征拥抱的表情符的上一表情符为属于该第一表情集合中的表征无力情绪的表情符,则可以判定同一聊天会话中存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列。
可选地,在另一种具体实现方式中,当检测到一聊天会话中当前输出属于该第一表情集合中的表情符时,判断该聊天会话中当前输出的表情符的下一表情符是否属于该第二表情集合,如果是,判定同一聊天会话中存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列。举例而言:当检测到一聊天会话中当前输出属于该第一表情集合中的表征无力情绪的表情符时,如果判断出该聊天会话中该表征 无力情绪的表情符的下一表情符为属于该第二表情集合中的表征礼物的表情符,则可以判定同一聊天会话中存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列。
需要强调的是,上述的检测同一聊天会话中,是否存在所包含的前一表情符属于第一表情集合、且后一表情符属于第二表情集合的表情序列的具体实现方式仅仅作为示例,并不应该构成对本说明书实施例的限定。
另外,可以设定多组第一表情集合和第二组表情集合,每组第一表情集合和第二表情集合均能够引发连锁反应。当然,也可以设定一组第一表情集合和第二表情集合,此种情况下,在一种具体实现方式中,第一表情集合中的任一表情符和第二表情集合中的任一表情符出现时,均可以触发连锁反应;而在另一种具体实现方式中,为了使得更具有针对性,可以设定第一表情集合中的表情符与第二表情集合中的表情符的映射关系,这样,所包含的前一表情符属于第一表情集合、后一表情符属于第二表情集合,且该前一表情符与该后一表情符符合预定表情映射关系时,该表情序列中的表情符之间符合预设的关联关系,即符合预设连锁反应条件。对于设定第一表情集合中的表情符与第二表情集合中的表情符的映射关系的情况,举例而言:第一表情集合中包括:表征平淡情绪的表情符A、表征无力情绪的表情符B、表征伤透心情绪的表情符C、表征疲劳情绪的表情符D,第二表情集合中包括:表征礼物的表情符a和表征拥抱的表情符b,为了更具有针对性,可以将表情符A、表情符B与表情符a进行映射,而将表情符C、表情符D与表情符b进行映射。
S204,当检测结果为是时,对该表情序列进行连锁反应,其中,该连锁反应用于改变该表情序列中的表情符在该聊天会话的界面中的显示样式。
本实施例,S204与上述实施例的S104类似,区别在于:本实施例中对包含两个表情符的表情序列进行连锁反应,而上一实施例对包含至少两个表情符的表情序列进行连锁反应。
本实施例中,由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
下面结合具体应用实例,对本说明书实施例第一方面所提供的一种会话处理方法进行介绍。该具体应用实例中,表情序列为包括两个表情符的序列,且两个表情符为不同 用户发出的连续表情。并且,第一表情集合中包括表征平淡情绪表情符、表征生气情绪的表情符、表征伤透心情绪的表情符;而第二表情集合中包括表征礼物的表情符、表征拥抱的表情符。另外,连锁反应的形式为表情替换及位置更新,其中,预先设定有关于初始表情符与替换表情符的对应关系:表征平淡情绪的表情符对应于表征开心的情绪的表情符、表征生气情绪的表情符对应于表征平淡情绪的表情符、表征伤透心情绪的表情对应于表征平淡情绪的表情符。
如图3所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S302,当检测到一聊天会话中当前输出属于第二表情集合的表征礼物的表情符时,判断该聊天会话中当前输出的表情符的上一会话消息中,是否包括属于第一表情集合的表情符;
S304,判断得到该上一会话消息中包含属于第一表情集合的表征平淡情绪的表情符;
S306,根据预先设定的关于初始表情符与替换表情符的对应关系,将聊天会话的界面中该表征平淡情绪的表情符替换为表征开心情绪的表情符,并且将表征开心情绪的表情符与表征礼物的表情符进行贴紧处理。
其中,关于本具体应用实例的界面变化状态示意图,可以参见图4中的(a)、(b)和(c)。
本实施例中,由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
下面结合具体应用实例,对本说明书实施例第一方面所提供的一种会话处理方法进行介绍。该具体应用实例中,表情序列为包括两个表情符的序列,两个表情符之间可以存在文本信息,且两个表情符为不同用户发出的表情。并且,第一表情集合中包括表征平淡情绪表情符、表征生气情绪的表情符、表征伤透心情绪的表情符;而第二表情集合中包括表征礼物的表情符、表征拥抱的表情符。另外,连锁反应的形式为表情替换符,其中,预先设定有关于初始表情符与替换表情符的对应关系:表征平淡情绪的表情符对应于表征开心的情绪的表情符、表征生气情绪的表情符对应于表征平淡情绪的表情符、表征伤透心情绪的表情符对应于表征平淡情绪的表情符。
如图5所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S402,当检测到一聊天会话中当前输出属于第二表情集合的表征礼物的表情符时,判断该聊天会话中当前输出的表情符的上一会话消息中,是否包括属于第一表情集合的表情符;
S404,判断结果为否,判断该聊天会话中当前输出的表情符的上两条会话消息中,是否包括属于第一表情集合的表情符;
S406,判断得到该上两条会话消息中包含属于第一表情集合的表征平淡情绪的表情符;
S408,根据预先设定的关于初始表情符与替换表情符的对应关系,将聊天会话的界面中该表征平淡情绪的表情符替换为表征开心情绪的表情符。
其中,关于本具体应用实例的界面变化状态示意图,可以参见图6中的(a)、(b)和(c)。
本实施例中,由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
以表情序列为包括两个以上表情符的序列为例,对本说明书实施例第一方面所提供的一种会话处理方法进行介绍。
需要说明的是,本说明书实施例所提供的一种会话处理方法的执行主体可以为一种会话处理装置,该会话处理装置运行于电子设备中。在具体应用中,该会话处理装置可以为即时通讯程序中的功能插件,而该电子设备可以为智能手机、平板电脑、笔记本电脑等设备。
如图7所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S502,检测同一聊天会话中,是否存在所包含的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合的表情序列;其中,在连锁反应中该第一表情集合中的表情符先于该第二表情集合中的表情符出现;
所述检测同一聊天会话中,是否存在所包含的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合的表情序列的步骤,是当表情序列包括两个以上表情符时,所述检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列的一种具体实现方式。
其中,所谓检测同一聊天会话中,是否存在所包含的头表情符属于第一表情集合、 且其余至少两个表情符属于第二表情集合的表情序列,即检测同一聊天会话的界面中,是否显示有所包含的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合的表情序列。
并且,该聊天会话可以为关于两个用户的聊天会话,此时,聊天会话的界面即为好友会话框;当然,该聊天会话也可以关于两个以上用户的聊天会话,即群聊会话,此时,该聊天会话的界面为群聊会话框,这也是合理的。可以理解的是,该表情序列中的两个以上表情符可以分别属于不同的会话消息,或者,该表情序列中的至少两个表情符可以属于同一会话消息,其中,一个会话消息即为用户发出的一条信息;并且,表情符所属的会话消息中可以仅仅包括表情符,也可以既包括表情符也包括文本。另外,该表情序列中的两个以上表情符之间可以不存在文本信息,即两个以上表情符为连续表情;当然,两个以上表情符之间也可以存在文本;并且,该两个以上表情符可以由同一用户发出,或者由至少两个用户发出,这都是合理的。
需要说明的是,由于连锁反应,因此,第二表情集合中的表情符能够从情绪逻辑上影响到第一表情集合中的表情符,举例而言:该第一表情集合中可以包括希望被关怀的表情符,如表征平淡情绪的表情符、表征无力情绪的表情符、表征生气情绪的表情符、表征伤心情绪的表情符、表征疲劳情绪的表情符等;相应的,第二表情集合中可以包括具有关怀情怀的表情符,如表征礼物的表情符、表征阳光的表情符、表征拥抱的表情符,表征热茶的表情符等等。
另外,检测同一聊天会话中,是否存在所包含的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合的表情序列的具体实现方式存在多种。
可选地,在一种具体实现方式中,当检测到一聊天会话中当前输出属于该第一表情集合中的表情符时,判断该聊天会话中当前输出的表情符的至少下两个表情符是否属于该第二表情集合,如果是,判定同一聊天会话中存在所包含的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合的表情序列。举例而言:当检测到一聊天会话中当前输出属于该第一表情集合中的表征无力情绪的表情符时,如果判断出该聊天会话中该表征无力情绪的表情的下两个表情符均为属于该第二表情集合中的表征礼物的表情符,则可以判定同一聊天会话中存在所包含的头表情符属于第一表情集合、且其余至少两个表情符属于第二表情集合的表情序列。
另外,可以设定多组第一表情集合和第二组表情集合,每组第一表情集合和第二表情集合均能够引发连锁反应。当然,也可以设定一组第一表情集合和第二表情集合,此 种情况下,在一种具体实现方式中,第一表情集合中的任一表情符和第二表情集合中的任一表情符出现时,均可以触发连锁反应;而在另一种具体实现方式中,为了使得更具有针对性,可以设定第一表情集合中的表情符与第二表情集合中的表情符的映射关系,这样,所包含的头表情符属于第一表情集合、其余至少两个表情符属于第二表情集合的表情序列,且该头表情符与该其余至少两个表情符符合预定表情映射关系时,该表情序列中的表情符之间符合预设的关联关系,即符合预设连锁反应条件。
S504,当检测结果为是时,对该表情序列进行连锁反应,其中,该连锁反应用于改变该表情序列中的表情符在该聊天会话的界面中的显示样式。
本实施例,S504与上述实施例的S104类似,区别在于:本实施例中对包含两个表情符的表情序列进行连锁反应,而上一实施例对包含至少两个表情符的表情序列进行连锁反应。
本实施例中,由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
下面结合具体应用实例,对本说明书实施例第一方面所提供的一种会话处理方法进行介绍。该具体应用实例中,表情序列为包括三个表情符的序列,该三个表情符为连续表情符,且头表情符由一个用户发出,另两个表情符由另外一个用户发出。并且,第一表情集合中包括表征平淡情绪表情符、表征生气情绪的表情符、表征伤透心情绪的表情符;而第二表情集合中包括表征礼物的表情符、表征拥抱的表情符。另外,连锁反应的形式为表情替换,其中,预先设定有关于初始表情符与替换表情符的对应关系:表征平淡情绪的表情符对应于表征开心的情绪的表情符、表征生气情绪的表情符对应于表征平淡情绪的表情符、表征伤透心情绪的表情符对应于表征平淡情绪的表情符。
如图8所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S602,当检测到一聊天会话中当前输出属于该第一表情集合中的表征平淡情绪的表情符时,判断该聊天会话中当前输出的表情符的下两条会话消息中,是否均包括第二表情集合的表情符;
S604,判断得到该聊天会话中当前输出的表情符的下两条会话消息中,均包括属于第二表情集合的表征礼物的表情符;
S606,根据预先设定的关于初始表情符与替换表情符的对应关系,将聊天会话的界 面中该表征平淡情绪的表情符替换为表征开心情绪的表情符。
其中,关于本具体应用实例的界面变化状态示意图,可以参见图9中的(a)、(b)和(c)。
本实施例中,由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
相应于上述第一方面所提供的一种会话处理方法,本说明书实施例还提供了一种电子设备。如图10所示,在硬件层面,该电子设备包括处理器1002、内部总线1004、网络接口1006、内存1008以及非易失性存储器1010,当然还可能包括其他业务所需要的硬件。处理器1002从非易失性存储器1010中读取对应的计算机程序到内存1008中然后运行,在逻辑层面上形成会话处理装置。
当然,除了软件实现方式之外,本说明书实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图11,在软件实施方式中,该会话处理装置可以包括:
表情序列检测单元1120,用于检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列;
连锁反应单元1140,用于当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。
由于在聊天过程中对符合预设连锁反应条件的表情序列进行连锁反应,从而改变该表情序列中的表情符在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
可选地,所述表情序列为:包括两个表情符的序列。
可选地,所述表情序列中所包括的两个表情符由不同用户发出。
可选地,所述表情序列为:包括两个以上表情符的序列。
可选地,所述预设连锁反应条件为所述表情序列中的表情符之间符合预设的关联关系。
可选地,所述预设连锁反应条件为所述表情序列中的表情符的含义符合预设的关联关系。
可选地,所述连锁反应单元1140可以包括:
第一反应子单元,用于对所述表情序列中的表情符进行显示内容更新;
和/或,
第二反应子单元,用于对所述表情序列中的表情符进行显示位置更新。
可选地,所述第一反应子单元包括:
独立更新模块,用于对所述表情序列中的一个或多个表情符分别独立进行显示内容更新;
或者,
整体更新模块,用于对所述表情序列中的至少两个表情符整体进行显示内容更新。
可选地,所述第一反应子单元包括:
表情替换模块,用于对所述表情序列中的表情符进行表情替换;
或者,
表情切换模块,用于对所述表情序列中的表情符进行状态切换。
可选地,所述表情替换模块包括:
表情获得子模块,用于根据预设的关于初始的表情符与替换表情符的映射关系,获得所述表情序列中的表情符各自对应的替换表情符;
表情替换子模块,用于以所获得的替换表情符,对所述表情序列中的表情符进行表情替换。
可选地,所述表情获得子模块具体用于:
当所述表情序列中待被替换的目标表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从所述目标表情符的发出方请求获得所述目标表情符所对应替换表情符。
上述实施例阐明的装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或 非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
相应于上述第一方面所提供的一种会话处理方法,本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第一方面所提供的一种会话处理方法。其中,该会话处理方法可以包括:
检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列;
当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。
需要说明的是,关于会话处理方法的具体实现方式及相应解释内容可以参见上述的方法实施例的相应内容,在此不做赘述。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
第二方面,为了提高即时通讯过程中的趣味性,从而提高用户使用体验,本说明书实施例还提供了一种会话处理方法。
需要说明的是,本说明书实施例所提供的一种会话处理方法的执行主体可以为一种会话处理装置,该会话处理装置运行于电子设备中。在具体应用中,该会话处理装置可以为即时通讯程序中的功能插件,而该电子设备可以为智能手机、平板电脑、笔记本电脑等设备。
如图12所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S1202,在聊天会话中,检测到新的会话消息,该会话消息包括表情符;
其中,聊天会话可以为关于两个用户的聊天会话,此时,聊天会话的界面即为好友会话框;当然,该聊天会话也可以关于两个以上用户的聊天会话,即群聊会话,此时,该聊天会话的界面为群聊会话框,这也是合理的。而无论该聊天会话属于哪一种类型的聊天会话,在任一聊天会话建立后,该会话处理装置可以对所建立的该聊天会话独立执行S1202-S1204。
S1204,当判断出该表情符与该聊天会话中的已有表情符之间存在关联关系时,改变该已有表情符在该聊天会话的界面中的显示样式。
当该会话处理装置检测到新的会话消息后,可以判断该表情符与该聊天会话中的已有表情符之间是否存在关联关系,如果存在关联关系,则可以改变该已有表情符在该聊天会话的界面中的显示样式。需要强调的是,本说明书实施例仅仅改变已有表情符在该聊天会话的界面中的显示样式,后台存储的该已有表情符并未发生改变;并且,改变该已有表情符在该聊天会话的界面中的显示样式之后,经过预定时长后,该聊天会话中的该已有表情符可以进行还原。
其中,已有表情符可以为一个表情符,也可以为至少两个表情符,这都是合理的。并且,该表情符和该已有表情符的发出者可以不同,也可以相同。
其中,判断出该表情符与该聊天会话中的已有表情符之间是否存在关联关系的方式存在多种。下面对判断出该表情符与该聊天会话中的已有表情符之间是否存在关联关系的方式进行举例介绍。
可选地,在一种具体实现方式中,判断该表情符与该聊天会话中的已有表情符之间是否存在关联关系的方式可以包括:
判断该表情符是否属于第二表情集合且该聊天会话中的已有表情符是否属于第一表情集合,当判断结果均为是时,判定该表情符与该已有表情符之间存在关联关系。
其中,该第一表情集合中的表情符先于该第二表情集合中的表情符出现在聊天会话中,也就是,第二表情集合中的表情符能够从情绪逻辑上影响到第一表情集合中的表情符。举例而言:该第一表情集合中可以包括希望被关怀的表情符,如表征平淡情绪的表情符、表征无力情绪的表情符、表征生气情绪的表情符、表征伤心情绪的表情符、表征疲劳情绪的表情符等;相应的,第二表情集合中可以包括具有关怀情怀的表情符,如表征礼物的表情符、表征阳光的表情符、表征拥抱的表情符,表征热茶的表情符等等。
可选地,在一种具体实现方式中,判断该表情符与该聊天会话中的已有表情符之间是否存在关联关系的方式可以包括:
判断该表情符是否属于第二表情集合、该聊天会话中的已有表情符是否属于第一表情集合,且该表情符与该已有表情符是否符合预定表情映射关系,当判断结果均为是时,判定该表情符与该已有表情符之间存在关联关系。
对于设定第一表情集合中的表情符与第二表情集合中的表情符的映射联关系的情况,举例而言:第一表情集合中包括:表征平淡情绪的表情符A、表征无力情绪的表情符B、表征伤透心情绪的表情符C、表征疲劳情绪的表情符D,第二表情集合中包括:表征礼物的表情符a和表征拥抱的表情符b,为了更具有针对性,可以将表情符A、表情符B与表情符a进行映射,而将表情符C、表情符D与表情符b进行映射。
另外,所述改变该已有表情符在该聊天会话中的显示样式的步骤,可以包括:
在该聊天会话的界面中,对该已有表情符进行显示内容更新;
或者,
在该聊天会话的界面中,对该已有表情符进行显示位置更新。
其中,所谓的显示内容更新可以包括但不局限于:表情替换或者状态切换,其中,表情替换即为将已有表情符替换为其他表情符,而状态切换即为将该已有表情符从当前显示状态切换为另一显示状态,该另一显示状态可以为隐藏状态。而所谓的显示位置更新即调整该已有表情符的显示位置,例如:将已有表情符与该表情符进行贴紧处理。
并且,从替换表情的确定的角度而言,一种具体实现方式中,对该已有表情符进行表情替换的步骤可以包括:
从第三表情集合中,获得该已有表情符对应的替换表情;
以所获得的替换表情,对已有表情符进行表情替换。
其中,预先设定了包含多个表情符的第三表情集合,该第三表情集合中的表情符作为替换表情。而从第三表情集合中选择表情符时,可以按照随机方式或非随机方式,这都是合理的。
在另一种具体实现方式中,对该已有表情符进行表情替换的步骤,可以包括:
根据预设的关于初始的表情符与替换表情符的映射关系,获得该已有表情符对应的替换表情;
以所获得的替换表情符,对该已有表情符进行表情替换。
在该种具体实现方式中,预先设定了关于初始的表情符与替换表情符的映射关系,其中,该初始的表情符即需要被替换的表情,这样,使得表情替换过程更加具有针对性,进一步提高用户体验。
另外,当该已有表情符属于通用类型时,根据预设的关于初始的表情符与替换表情符的映射关系,可以从本地获得该已有表情符所对应的替换表情符。其中,所谓通用类型即各个用户都具有的基础表情符。
而当该已有表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从该已有表情符的发出方请求获得该已有表情符所对应替换表情。其中,所谓自定义类型,即用户根据自身需求所设定的表情符。例如:为用户提供若干表达基本情绪的表情模板,如:平淡、开心、调皮、无力、生气、伤透心、疲劳、甜蜜等,用户可以在表情模板中添加感兴趣的表情包,从而制作出属于自己的专属表情。
举例而言:关于已有表情符存在一个而改变显示样式为表情替换和显示位置更新的情况,可以参见图4中的(a)、(b)和(c)所给出的界面变化状态示意图。
另外,需要强调的是,改变该已有表情符在所述聊天会话的界面中的显示样式的同时,也可以改变新会话消息中的表情符的显示样式。其中,改变新会话消息中的表情符的显示样式的具体实现方式可以包括:
在该聊天会话的界面中,对新会话消息中的表情符进行显示内容更新;
或者,
在该聊天会话的界面中,对新会话消息中的表情符进行显示位置更新。
关于对新会话消息中的表情符进行显示内容更新以及对新会话消息中的表情符进行显示位置更新的具体实现方式可以参见:上述的关于改变已有表情符在该聊天会话的界面中的显示样式的具体实现方式,在此不作赘述。本说明书实施例第二方面所提供的一种会话处理方法中,在检测到新的会话消息后,当判断出该会话消息所包含的表情符与该会话中的已有表情符之间存在关联关系时,改变该已有表情符在该会话中的显示样式。由于在判断出先后出现的表情符之间存在关联关系时改变已有表情符的显示样式,因此,可以提高即时通讯过程中的趣味性。
相应于上述第二方面所提供的一种会话处理方法,本说明书实施例还提供了一种电子设备。在硬件层面,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成会话处理装置。关于该电子设备的结构示意图与前述内容中提及的电子设备的结构示意图相同,具体参见图10。
当然,除了软件实现方式之外,本说明书实施例并不排除其他实现方式,比如逻辑 器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图13,在软件实施方式中,该会话处理装置可以包括:
消息检测单元1320,用于在聊天会话中,检测到新的会话消息,所述会话消息包括表情符;
显示样式更改单元1340,用于当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,改变所述已有表情符在所述聊天会话的界面中的显示样式。
本说明书实施例所提供的一种会话处理装置,由于在判断出先后出现的表情符之间存在关联关系时改变已有表情符的显示样式,因此,可以提高即时通讯过程中的趣味性。
可选地,所述显示样式更改单元1340改变所述已有表情符在所述聊天会话的界面中的显示样式的同时,改变新会话消息中的表情符的显示样式。
可选地,所述显示样式更改单元1340,具体用于当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,在所述聊天会话的界面中,对所述已有表情符进行显示内容更新;或者,在所述会话聊天的界面中,对所述已有表情符进行显示位置更新。
相应于上述第二方面所提供的一种会话处理方法,本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第二方面所提供的一种会话处理方法。其中,该会话处理方法可以包括:
在聊天会话中,检测到新的会话消息,所述会话消息包括表情符;
当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,改变所述已有表情符在所述聊天会话的界面中的显示样式。
需要说明的是,关于会话处理方法的具体实现方式及相应解释内容可以参见上述的方法实施例的相应内容,在此不做赘述。
第三方面,为了提高即时通讯过程中的趣味性,从而提高用户使用体验,本说明书实施例还提供了一种会话处理方法。
需要说明的是,本说明书实施例所提供的一种会话处理方法的执行主体可以为一种会话处理装置,该会话处理装置运行于电子设备中。在具体应用中,该会话处理装置可以为即时通讯程序中的功能插件,而该电子设备可以为智能手机、平板电脑、笔记本电 脑等设备。
其中,本实施例中的数据对象可以为:表情符、文本、红包等,相应的,该对象序列中可以仅仅包括一类数据对象,如表情符或文本;也可以包括两类数据对象,如表情符和文本的组合、表情符和红包的组合、文本和红包的组合;还可以包括三类数据对象,如:表情符、文本和红包的组合,等等。
如图14所示,本说明书实施例所提供的一种会话处理方法,可以包括如下步骤:
S1402,检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,该对象序列为:包括至少两个数据对象的序列;
可选地,所述对象序列为:包括两个数据对象的序列。
可选地,所述对象序列中所包括的两个数据对象由不同用户发出。
可选地,所述对象序列为:包括两个以上数据对象的序列。
可选地,所述预设连锁反应条件为所述对象序列中的数据对象之间符合预设的关联关系。
可选地,所述预设连锁反应条件为所述对象序列中的数据对象的含义符合预设的关联关系。
S1404,当检测结果为是时,对该对象序列进行连锁反应,其中,该连锁反应用于改变该对象序列中的数据对象在该聊天会话的界面中的显示样式。
可选地,所述对所述表情序列进行连锁反应的步骤,包括:
可选地,对该对象序列中的数据对象进行显示内容更新;
和/或,
对所述对象序列中的数据对象进行显示位置更新。
可选地,对所述对象序列中的数据对象进行显示内容更新的步骤,包括:
对所述对象序列中的一个或多个数据对象分别独立进行显示内容更新;
或者,
对该对象序列中的至少两个数据对象整体进行显示内容更新。
可选地,当数据对象为表情符,所述对所述对象序列中的数据对象进行显示内容更新的步骤,可以包括:
对该对象序列中的表情符进行表情替换;或者,对该对象序列中的表情符进行状态切换。
可选地,所述对该对象序列中的表情符进行表情替换的步骤,可以包括:
根据预设的关于初始的表情符与替换表情符的映射关系,获得所述对象序列中的表情符各自对应的替换表情符;
以所获得的替换表情符,对该对象序列中的表情符进行表情替换。
可选地,所述根据预设的关于初始的表情符与替换表情符的映射关系,获得所述对象序列中的表情符各自对应的替换表情符的步骤,包括:
当所述对象序列中待被替换的目标表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从所述目标表情符的发出方请求获得该目标表情符所对应替换表情符。
需要说明的是,对于文本而言,所谓的显示样式的更改具体可以包括但不局限于:字号大小、字体、文本颜色、加粗、倾斜等上的改变。因此,当需要对对象序列中的属于文本的数据对象进行连锁反应时,可以从字号大小、字体、文本颜色、加粗、倾斜等的角度进行显示样式的更新。
举例而言:假设对象序列为不同用户发出的两个连续的数据对象,其中,第一对象集合中包括:表征平淡情绪的表情符,而第二对象集合中包括文字内容“好想你”,表征平淡情绪的表情符对应的替换表情为表征开心情绪的表情;当用户A和用户B的聊天会话中,用户A发出了表征平淡情绪的表情符,紧接着用户B发出了文字内容“好想你”,则可以触发连锁反应,聊天会话的界面中用户A发出的表征平淡情绪的表情符替换为表征开心情绪的表情符。
由于相对于上述的第一方面所提供的会话处理方法而言,本实施例所提供的会话处理方法区别在于是针对于数据对象,因此,关于本实施例所述的会话处理方法的进一步解释或描述内容可以参见上述的第一方面所提供的会话处理方法,在此不做赘述。
由于在聊天过程中对符合预设连锁反应条件的对象序列进行连锁反应,从而改变该对象序列中的数据对象在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
相应于第三方面所提供的一种会话处理方法,本说明书实施例还提供了一种电子设备。在硬件层面,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成会话处理装置。关于该电子设备的结构示意图与前述内容中提及的电子设备的结构示意图相同,具体参见图10。当然,除了 软件实现方式之外,本说明书实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图15,在软件实施方式中,该会话处理装置可以包括:
对象序列检测单元1520,用于检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,所述对象序列为:包括至少两个数据对象的序列;
连锁反应单元1540,用于当检测结果为是时,对所述对象序列进行连锁反应,其中,所述连锁反应用于改变所述对象序列中的数据对象在所述聊天会话的界面中的显示样式。
由于在聊天过程中对符合预设连锁反应条件的对象序列进行连锁反应,从而改变该对象序列中的数据对象在聊天会话的界面中的显示样式,因此,可以提高即时通讯过程中的趣味性。
可选地,所述对象序列为:包括两个数据对象的序列。
可选地,所述对象序列中所包括的两个数据对象由不同用户发出。
可选地,所述对象序列为:包括两个以上数据对象的序列。
可选地,所述预设连锁反应条件包括:
所包含的头数据对象属于第一对象集合、且其余至少两个数据对象属于第二对象集合,其中,在连锁反应中该第一对象集合中的数据对象先于该第二对象集合中的数据对象出现。
可选地,所述连锁反应单元1540可以包括:
第一反应子单元,用于对所述对象序列中的数据对象进行显示内容更新;
和/或,
第二反应子单元,用于对所述对象序列中的数据对象进行显示位置更新。
可选地,所述第一反应子单元包括:
独立更新模块,用于对所述对象序列中的一个或多个数据对象分别独立进行显示内容更新;
或者,
整体更新模块,用于对所述对象序列中的至少两个数据对象整体进行显示内容更新。
可选地,当数据对象为表情符时,所述第一反应子单元包括:
表情替换模块,用于对所述对象序列中的表情符进行表情替换;或者,表情切换模 块,用于对所述对象序列中的表情符进行状态切换。
可选地,所述表情替换模块包括:
表情获得子模块,用于根据预设的关于初始的表情符与替换表情符的映射关系,获得所述对象序列中的表情符各自对应的替换表情符;
表情替换子模块,用于以所获得的替换表情符,对所述对象序列中的表情符进行表情替换。
可选地,所述表情获得子模块具体用于:
当所述对象序列中待被替换的目标表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从所述目标表情符的发出方请求获得所述目标表情符所对应替换表情符。
本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述的会话据处理方法。其中,该会话处理方法可以包括:
检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,所述对象序列为:包括至少两个数据对象的序列;
当检测结果为是时,对所述对象序列进行连锁反应,其中,所述连锁反应用于改变所述对象序列中的数据对象在所述聊天会话的界面中的显示样式。
需要说明的是,关于会话处理方法的具体实现方式及相应解释内容可以参见上述的第三方面所提供的会话处理方法实施例的相应内容,在此不做赘述。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在本说明书实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书实施例。在本说明书实施例和所附权利要求书中所使用的单数形式的“一种”、 “所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
以上所述仅为本说明书实施例的较佳实施例而已,并不用以限制本说明书实施例,凡在本说明书实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书实施例保护的范围之内。

Claims (21)

  1. 一种会话处理方法,其特征在于,包括:
    检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列;
    当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。
  2. 根据权利要求1所述的方法,其特征在于,所述表情序列为:包括两个表情符的序列。
  3. 根据权利要求2所述的方法,其特征在于,所述表情序列中所包括的两个表情符由不同用户发出。
  4. 根据权利要求1所述的方法,其特征在于,所述表情序列为:包括两个以上表情符的序列。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述预设连锁反应条件为所述表情序列中的表情符之间符合预设的关联关系。
  6. 根据权利要求1-4任一项所述的方法,其特征在于,所述预设连锁反应条件为所述表情序列中的表情符的含义符合预设的关联关系。
  7. 根据权利要求1-4任一项所述的方法,其特征在于,所述对所述表情序列进行连锁反应的步骤,包括:
    对所述表情序列中的表情符进行显示内容更新;
    和/或,
    对所述表情序列中的表情符进行显示位置更新。
  8. 根据权利要求7所述的方法,其特征在于,所述对所述表情序列中的表情符进行显示内容更新的步骤,包括:
    对所述表情序列中的一个或多个表情符分别独立进行显示内容更新;
    或者,
    对所述表情序列中的至少两个表情符整体进行显示内容更新。
  9. 根据权利要求7所述的方法,其特征在于,所述对所述表情序列中的表情符进行显示内容更新的步骤,包括:
    对所述表情序列中的表情符进行表情替换;
    或者,
    对所述表情序列中的表情符进行状态切换。
  10. 根据权利要求9所述的方法,其特征在于,所述对所述表情序列中的表情符进行表情替换的步骤,包括:
    根据预设的关于初始的表情符与替换表情符的映射关系,获得所述表情序列中的表情符各自对应的替换表情符;
    以所获得的替换表情符,对所述表情序列中的表情符进行表情替换。
  11. 根据权利要求10所述的方法,其特征在于,所述根据预设的关于初始的表情符与替换表情符的映射关系,获得所述表情序列中的表情符各自对应的替换表情符的步骤,包括:
    当所述表情序列中待被替换的目标表情符属于自定义类型时,根据预设的关于初始的表情符与替换表情符的映射关系,从所述目标表情符的发出方请求获得所述目标表情符所对应替换表情符。
  12. 一种会话处理方法,其特征在于,包括:
    在聊天会话中,检测到新的会话消息,所述会话消息包括表情符;
    当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,改变所述已有表情符在所述聊天会话的界面中的显示样式。
  13. 根据权利要求12所述的方法,其特征在于,还包括:
    改变所述已有表情符在所述聊天会话的界面中的显示样式的同时,改变新会话消息中的表情符的显示样式。
  14. 根据权利要求12或13所述的方法,其特征在于,所述改变所述已有表情符在所述会话中的显示样式的步骤,包括:
    在所述聊天会话的界面中,对所述已有表情符进行显示内容更新;
    或者,
    在所述会话聊天的界面中,对所述已有表情符进行显示位置更新。
  15. 一种会话处理方法,其特征在于,包括:
    检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,所述对象序列为:包括至少两个数据对象的序列;
    当检测结果为是时,对所述对象序列进行连锁反应,其中,所述连锁反应用于改变所述对象序列中的数据对象在所述聊天会话的界面中的显示样式。
  16. 一种会话处理装置,其特征在于,包括:
    表情序列检测单元,用于检测同一聊天会话中,是否存在符合预设连锁反应条件的表情序列,其中,所述表情序列为:包括至少两个表情符的序列;
    连锁反应单元,用于当检测结果为是时,对所述表情序列进行连锁反应,其中,所述连锁反应用于改变所述表情序列中的表情符在所述聊天会话的界面中的显示样式。
  17. 一种会话处理装置,其特征在于,包括:
    消息检测单元,用于在聊天会话中,检测到新的会话消息,所述会话消息包括表情符;
    显示样式更改单元,用于当判断出所述表情符与所述聊天会话中的已有表情符之间存在关联关系时,改变所述已有表情符在所述聊天会话的界面中的显示样式。
  18. 一种会话处理装置,其特征在于,包括:
    对象序列检测单元,用于检测同一聊天会话中,是否存在符合预设连锁反应条件的对象序列,其中,所述对象序列为:包括至少两个数据对象的序列;
    连锁反应单元,用于当检测结果为是时,对所述对象序列进行连锁反应,其中,所述连锁反应用于改变所述对象序列中的数据对象在所述聊天会话的界面中的显示样式。
  19. 一种电子设备,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为实现如权利要求1-11中任一项所述的会话处理方法。
  20. 一种电子设备,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为实现如权利要求12-14中任一项所述的会话处理方法。
  21. 一种电子设备,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为实现如权利要求15所述的会话处理方法。
PCT/CN2019/073393 2018-02-05 2019-01-28 会话处理方法、装置及电子设备 WO2019149171A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810111719.0A CN110119293A (zh) 2018-02-05 2018-02-05 会话处理方法、装置及电子设备
CN201810111719.0 2018-02-05

Publications (1)

Publication Number Publication Date
WO2019149171A1 true WO2019149171A1 (zh) 2019-08-08

Family

ID=67478626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073393 WO2019149171A1 (zh) 2018-02-05 2019-01-28 会话处理方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN110119293A (zh)
WO (1) WO2019149171A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934349B (zh) * 2021-10-28 2023-11-07 北京字跳网络技术有限公司 交互方法、装置、电子设备和存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020015514A1 (en) * 2000-04-13 2002-02-07 Naoto Kinjo Image processing method
CN105119812A (zh) * 2015-08-26 2015-12-02 小米科技有限责任公司 在聊天界面更改表情符号的方法、装置及终端设备
CN106293397A (zh) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 一种显示对象的处理方法及终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494618B (zh) * 2008-11-28 2011-07-06 腾讯科技(深圳)有限公司 一种即时通信终端窗口显示系统及方法
CN104780093B (zh) * 2014-01-15 2018-05-01 阿里巴巴集团控股有限公司 即时通讯过程中的表情信息处理方法及装置
CN106033337B (zh) * 2015-03-13 2019-07-16 腾讯科技(深圳)有限公司 一种即时通信表情符号生成方法及装置
CN106447747B (zh) * 2016-09-26 2021-11-02 北京小米移动软件有限公司 图像处理方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020015514A1 (en) * 2000-04-13 2002-02-07 Naoto Kinjo Image processing method
CN105119812A (zh) * 2015-08-26 2015-12-02 小米科技有限责任公司 在聊天界面更改表情符号的方法、装置及终端设备
CN106293397A (zh) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 一种显示对象的处理方法及终端

Also Published As

Publication number Publication date
CN110119293A (zh) 2019-08-13

Similar Documents

Publication Publication Date Title
US9684430B1 (en) Linguistic and icon based message conversion for virtual environments and objects
TWI671739B (zh) 會話資訊處理方法、裝置、電子設備
US11138207B2 (en) Integrated dynamic interface for expression-based retrieval of expressive media content
US10474877B2 (en) Automated effects generation for animated content
US10261991B2 (en) Method and system for imposing a dynamic sentiment vector to an electronic message
CN107707452B (zh) 针对表情的信息展示方法、装置以及电子设备
US20170083524A1 (en) Platform and dynamic interface for expression-based retrieval of expressive media content
US11550992B2 (en) Correcting errors in copied text
US10708203B2 (en) Systems and methods for indicating emotions through electronic self-portraits
US20150372959A1 (en) Software integrated electronic messaging cards
US20210397645A1 (en) Image search method and apparatus, computer device, and storage medium
US10504260B2 (en) Keyboard with in-line user created emojis
KR101756042B1 (ko) 입력 처리 방법, 장치 및 설비
US20170083519A1 (en) Platform and dynamic interface for procuring, organizing, and retrieving expressive media content
US10346026B1 (en) User interface
US20160004672A1 (en) Method, System, and Tool for Providing Self-Identifying Electronic Messages
US10191920B1 (en) Graphical image retrieval based on emotional state of a user of a computing device
US20170083520A1 (en) Selectively procuring and organizing expressive media content
US10929606B2 (en) Method for follow-up expression for intelligent assistance
WO2015014757A2 (en) User interface with pictograms for multimodal communication framework
WO2018040040A1 (zh) 消息通信方法及装置
CN107767205A (zh) 评价信息的展示系统、方法、客户端及处理方法、服务器
US11805083B2 (en) System and methods to generate messages for user shared media
WO2019149171A1 (zh) 会话处理方法、装置及电子设备
US20100005065A1 (en) Icon processing apparatus and icon processing method

Legal Events

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

Ref document number: 19747092

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19747092

Country of ref document: EP

Kind code of ref document: A1