US20140324414A1 - Method and apparatus for displaying emoticon - Google Patents
Method and apparatus for displaying emoticon Download PDFInfo
- Publication number
- US20140324414A1 US20140324414A1 US14/126,439 US201314126439A US2014324414A1 US 20140324414 A1 US20140324414 A1 US 20140324414A1 US 201314126439 A US201314126439 A US 201314126439A US 2014324414 A1 US2014324414 A1 US 2014324414A1
- Authority
- US
- United States
- Prior art keywords
- instant message
- emoticon
- configuration file
- set keyword
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004891 communication Methods 0.000 description 25
- 238000003860 storage Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
Images
Classifications
-
- G06F17/277—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/274—Converting codes to words; Guess-ahead of partial word inputs
-
- G06F17/276—
Definitions
- the present disclosure relates to the field of communication and, more particularly, relates to methods and apparatus for displaying an emoticon.
- the users may edit instant messages using the instant communication tools and send instant messages to friends via the instant communication tools.
- the users may also receive the instant messages from friends via the instant communication tools.
- instant messages edited by the users via the instant communication tools are mainly text messages.
- the text messages as a form of instant messages may then be sent to friends via the instant communication tools.
- the instant messages are not able to visually express what the user wants to express. It is also desirable for the instant messages to provide some chatting amusements when in use.
- an instant message can be received and a pre-set keyword contained in the instant message can be obtained.
- An emoticon corresponding to the pre-set keyword contained in the instant message can be obtained and displayed on a chat interface displaying the instant message.
- an apparatus for displaying an emoticon can include a first obtaining module, a second obtaining module, and a displaying module.
- the first obtaining module can be configured to receive an instant message and obtain a pre-set keyword contained in the instant message.
- the second obtaining module can be configured to obtain an emoticon corresponding to the pre-set keyword contained in the instant message.
- the displaying module can be configured to display the emoticon on a chat interface displaying the instant message.
- an instant message inputted by a user can be received.
- a pre-set keyword in the instant message can be determined and obtained.
- An emoticon corresponding to the pre-set keyword contained in the instant message can be obtained and displayed on a chat interface displaying the instant message.
- displaying the emoticon on the chat interface that displays the instant message can visually express what the user wants to express and can increase chatting amusements between the user and friends of the user.
- FIG. 1 depicts an exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 2 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 3 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 4 depicts an exemplary chat interface displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 5 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 6 depicts another exemplary chat interface displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 7 depicts an exemplary apparatus for displaying an emoticon in accordance with various embodiments of the present teachings
- FIG. 8 depicts an exemplary environment incorporating certain disclosed embodiments.
- FIG. 9 depicts an exemplary computing system in accordance with various disclosed embodiments.
- an instant message can be received and a pre-set keyword contained in the instant message can be determined and obtained.
- An emoticon corresponding to the pre-set keyword contained in the instant message can then be obtained and displayed on a chat interface displaying the instant message.
- an exemplary apparatus for displaying an emoticon can include a first obtaining module, a second obtaining module, and/or a displaying module.
- FIG. 1 depicts an exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings.
- Step 101 an instant message is received and a pre-set keyword contained in the instant message is obtained.
- Step 102 according to the obtained pre-set keyword, an emoticon corresponding to the obtained pre-set keyword is obtained.
- Step 103 the obtained emoticon is displayed on a chat interface displaying the instant message.
- a terminal can receive an instant message inputted by a user to obtain a pre-set keyword contained in the instant message.
- the terminal can obtain an emoticon corresponding to the pre-set keyword contained in the instant message.
- the terminal can display the obtained emoticon on a chat interface displaying the instant message.
- emoticon can be displayed on the chat interface displaying the instant message.
- FIG. 2 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings.
- a terminal receives an instant message and obtains a pre-set keyword contained in the instant message.
- the instant message can contain more than one pre-set keywords and the terminal can obtain these pre-set keyword(s) according to various disclosed embodiments.
- a pre-set keyword may include one word, two or more words, a set of multiple words, two or more sets of multiple words, and/or one or more sentences.
- a pre-set keyword may be “Happy Birthday” or “Missed You” or “May You be Happy and Prosperous”, etc.
- a pre-set keyword contained in the instant message can be determined and obtained.
- the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can obtain a collection of pre-set keywords from a local configuration file. Based on a pre-set keyword contained in the collection of pre-set keywords, the terminal can search the instant message for the pre-set keyword. When the pre-set keyword contained in the collection of pre-set keywords is found in the instant message, the found pre-set keyword can be determined as that pre-set keyword contained in the instant message.
- the terminal can determine if the instant message contains a text message after receiving the instant message.
- the terminal can segment the instant message to obtain segmented words contained in the instant message.
- the terminal can also obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword contained in the collection of pre-set keywords. After this comparison, a segmented word from the instant message that is the same as in a pre-set keyword contained in the collection of pre-set keywords can be determined as the pre-set keyword contained in the instant message.
- the voice message when the instant message is a voice message, the voice message can first be converted to a text message.
- a pre-set keyword contained in the instant message can then be determined from the converted text message according to the above-described exemplary methods for determining the pre-set keyword contained in the instant message.
- the collection of pre-set keywords can be obtained from a server. For example, when a pre-set keyword contained in the instant message cannot be obtained from a local configuration file according to the instant message, the pre-set keyword can be obtained from the server. In this manner, the hit rate of determining the pre-set keyword contained in the instant message can be improved.
- the instant message can be a message inputted by a user and received by a terminal.
- the instant message can be a message sent to the terminal from a user's friend via a server.
- the terminal can display an emoticon according to the methods disclosed herein.
- the collection of pre-set keywords may contain pre-set keywords of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc.
- the terminal can receive this instant message of “Happy Birthday to You”.
- the terminal can then search the instant message according to the pre-set keywords (e.g., “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc.) in the collection of pre-set keywords.
- the terminal can search the instant message according to the pre-set keyword “Happy Birthday” from the collection of pre-set keywords and may find the pre-set keyword “Happy Birthday” is contained in the instant message.
- the terminal can also search the instant message according to the pre-set keywords “Missed You” and “May You be Happy and Prosperous” from the collection of pre-set keywords and, in this case, may not find these pre-set keywords.
- the pre-set keyword “Happy Birthday” can then be determined as the pre-set keyword contained in the instant message.
- the terminal can segment the received instant message “Happy Birthday to You” and the segmented words of the instant message may include “Happy Birthday”, “to”, and “You”.
- Each segmented word can be compared with each pre-set keyword of “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous” in the collection of pre-set keywords.
- the terminal can obtain one or more segmented words (e.g., including “Happy Birthday”, “to”, and “You”) in the instant message that are the same as in the pre-set keywords (e.g., including “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous”) from the collection of pre-set keywords.
- the same segmented words can be “Happy Birthday”, which can then be determined as the pre-set keyword contained in the instant message.
- Step 202 according to the pre-set keyword determined in Step 201 , the terminal obtains an emoticon from a local configuration file corresponding to the determined pre-set keyword.
- the local configuration file can include a corresponding relationship between pre-set keywords and emoticons.
- the terminal can search a record of an emoticon corresponding to the determined pre-set keyword, and obtain the emoticon corresponding to the determined pre-set keyword from the record.
- the terminal can obtain an emoticon corresponding to the one pre-set keyword from the local configuration file according to the one pre-set keyword.
- the terminal can obtain an emoticon corresponding to each or any pre-set keyword in the multiple pre-set keywords from the local configuration file, according to the multiple pre-set keywords.
- Obtaining the emoticon corresponding to the pre-set keyword from the local configuration file can reduce operation time of the terminal. Efficiency for displaying the emoticons can be improved.
- the terminal can obtain an emoticon corresponding to the pre-set keyword from a server.
- the terminal can send an obtaining request to the server for obtaining the emoticon.
- the obtaining request can contain the pre-set keyword.
- the server can obtain the emoticon corresponding to the pre-set keyword based on the corresponding relationship between the pre-set keywords and the emoticons.
- the terminal can then receive the emoticon sent by the server.
- the terminal can obtain the latest emoticon from the server.
- Step 203 the terminal displays the emoticon on a chat interface of the instant message.
- the terminal can display the emoticon corresponding to the pre-set keyword on the chat interface of the instant message.
- the terminal can display an emoticon corresponding to each pre-set keyword of the multiple pre-set keywords on the chat interface of the instant message.
- an emoticon corresponding to any pre-set keyword in the multiple pre-set keywords can be displayed on the chat interface of the instant message. Displaying the emoticon on the chat interface of the instant message provides amusements for displaying the instant message and provides the user with pleasant surprises.
- the terminal can periodically renew the local configuration file. For example, in Step 204 , the terminal periodically obtains a configuration file from the server.
- the configuration file contains a corresponding relationship between the pre-set keywords and the emoticons.
- the terminal can periodically send a renewing request to the server.
- the renewing request can contain a terminal identification of the terminal.
- the server can receive the renewing request and obtain a configuration file that is saved on the server. According to the terminal identification, the server can send the obtained configuration file to the terminal.
- the configuration file can include the corresponding relationship between the pre-set keywords and the emoticons.
- Step 205 the local configuration file in the terminal is renewed with the configuration file obtained from the server in Step 204 .
- the terminal can renew the local configuration file.
- the terminal can receive commands of the client programming of the instant communication business from the user and can send a renewing request to the server.
- the server can send the saved configuration file to the terminal.
- the terminal can renew the local configuration file with the configuration file received from the server.
- the terminal can renew the local configuration file with the latest configuration file, and then obtain the latest pre-set keywords and emoticons.
- the terminal may first complete the renewing process of the local configuration file, and then obtain an emoticon corresponding to the pre-set keyword contained in the instant message.
- the terminal can receive the instant message inputted by the user and obtain the pre-set keyword in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain the emoticon corresponding to the pre-set keyword and display the emoticon on the chat interface displaying the instant message. As such, displaying the emoticon on the chat interface displaying the instant message can visually express what the user wants to express and thus increase chatting amusements between the user and friends of the user.
- FIG. 3 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings.
- a terminal receives an instant message and obtains a pre-set keyword contained in the instant message.
- the instant message can contain more than one pre-set keywords and the terminal can obtain these pre-set keyword(s) according to various disclosed embodiments.
- the terminal can determine if the instant message contains a text message after receiving the instant message.
- the terminal can obtain a collection of pre-set keywords from a local configuration file. Based on a pre-set keyword contained in the collection of pre-set keywords, the terminal can search the instant message for the pre-set keyword.
- the pre-set keyword contained in the collection of pre-set keywords is found in the instant message, the found pre-set keyword can be determined as that pre-set keyword contained in the instant message.
- the terminal can determine if the instant message contains a text message after receiving the instant message.
- the terminal can segment the instant message to obtain segmented words contained in the instant message.
- the terminal can also obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword contained in the collection of pre-set keywords. After the comparison, a segmented word from the instant message that is the same as in a pre-set keyword contained in the collection of pre-set keywords can be determined as the pre-set keyword contained in the instant message.
- the voice message when the instant message is a voice message, the voice message can first be converted to a text message.
- a pre-set keyword contained in the instant message can then be determined from the converted text message according to the above-described exemplary methods for determining the pre-set keyword contained in the instant message.
- the collection of pre-set keywords can be obtained from a server. For example, when a pre-set keyword contained in the instant message cannot be obtained from a local configuration file according to the instant message, the pre-set keyword can be obtained from the server. In this manner, the hit rate of determining the pre-set keyword contained in the instant message can be improved.
- the instant message can be a message inputted by a user and received by a terminal.
- the instant message can be a message sent to the terminal from a user's friend via a server.
- the terminal can display an emoticon according to the methods disclosed herein.
- the collection of pre-set keywords may contain pre-set keywords of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc.
- the terminal can receive this instant message of “Happy Birthday to You”.
- the terminal can then search the instant message according to the pre-set keywords (e.g., “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc.) in the collection of pre-set keywords.
- the terminal can search the instant message according to the pre-set keyword “Happy Birthday” from the collection of pre-set keywords and may find the pre-set keyword “Happy Birthday” is contained in the instant message.
- the terminal can also search the instant message according to the pre-set keywords “Missed You” and “May You be Happy and Prosperous” from the collection of pre-set keywords and, in this case, may not find these pre-set keywords.
- the found pre-set keyword “Happy Birthday” can then be determined as the pre-set keyword contained in the instant message.
- the terminal can segment the received instant message “Happy Birthday to You” and the segmented words of the instant message may include “Happy Birthday”, “to”, and “You”.
- Each segmented word can be compared with each pre-set keyword of “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous” in the collection of pre-set keywords.
- the terminal can obtain one or more segmented words (e.g., including “Happy Birthday”, “to”, and “You”) in the instant message that are the same as in the pre-set keywords (e.g., including “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous”) from the collection of pre-set keywords.
- the same segmented words can be “Happy Birthday”, which can then be determined as the pre-set keyword contained in the instant message.
- Step 302 according to the pre-set keyword determined in Step 301 , the terminal obtains an emoticon and a play track from a local configuration file corresponding to the determined pre-set keyword.
- the local configuration file can include a corresponding relationship among pre-set keywords, emoticons, and play tracks.
- the terminal can search and find the emoticon and the play track corresponding to the determined pre-set keyword.
- the terminal can obtain an emoticon corresponding to the one pre-set keyword from the local configuration file according to the one pre-set keyword.
- the terminal can obtain an emoticon corresponding to each or any pre-set keyword in the multiple pre-set keywords from the local configuration file, according to the multiple pre-set keywords.
- Obtaining the emoticon corresponding to the pre-set keyword from the local configuration file can reduce operation time of the terminal. Efficiency for displaying the emoticons can be improved.
- the terminal can obtain an emoticon corresponding to the pre-set keyword from a server.
- the terminal can send an obtaining request to the server for obtaining the emoticon.
- the obtaining request can contain the pre-set keyword.
- the server can obtain the emoticon corresponding to the pre-set keyword based on the corresponding relationship between the pre-set keywords and the emoticons.
- the terminal can then receive the emoticon sent by the server.
- the terminal can obtain the latest emoticon from the server.
- the local configuration file may also include an effective time and may further include a corresponding relationship among pre-set keywords, emoticons, play tracks, and/or effective times. According to this corresponding relationship, the terminal can obtain an emoticon, a play track, and/or an effective time according to the determined pre-set keyword.
- the play track can include a play path of the emoticon and/or a displaying time of the emoticon.
- the play path can roll the emoticon from top to bottom or from right to left.
- the displaying time can be a time for displaying the emoticon, e.g., for about 2 seconds or other time length as desired.
- Table 1 lists an exemplary corresponding relationship among pre-set keywords, emoticons, and play tracks.
- the terminal can, for example, find an emoticon (e.g., Emoticon 1) and obtain a play track (e.g., Play Track 1) corresponding to a pre-set keyword (e.g., “Happy Birthday”).
- an emoticon e.g., Emoticon 1
- a play track e.g., Play Track 1
- a pre-set keyword e.g., “Happy Birthday”.
- Step 303 the terminal displays the emoticon according to the obtained play track on a chat interface of the instant message.
- the terminal can display the emoticon corresponding to the pre-set keyword on the chat interface of the instant message.
- the terminal can display an emoticon corresponding to each pre-set keyword of the multiple pre-set keywords on the chat interface of the instant message.
- an emoticon corresponding to any pre-set keyword in the multiple pre-set keywords can be displayed on the chat interface of the instant message.
- Displaying the emoticon according to the obtained play track on the chat interface of the instant message can dynamically display the emoticon to increase the dynamic sense and provide the user with pleasant surprises.
- the terminal can obtain a current time and compare the current time with the effective time corresponding to the pre-set keyword. When the current time is within such effective time, the emoticon can be displayed according to the obtained play track on the chat interface of the instant message.
- Play Track 1 may be the play track to display the emoticon by rolling from top to bottom and the emoticon may be a picture of cake.
- the emoticon may be a picture of cake.
- an emoticon containing a picture of cake and corresponding to the pre-set keyword can be displayed on the exemplary chat interface in a snake-like form.
- the terminal can periodically renew the local configuration file. For example, in Step 304 , the terminal periodically obtains a configuration file from the server.
- the configuration file contains a corresponding relationship between the pre-set keywords, the emoticons, and the play tracks.
- the terminal can periodically send a renewing request to the server.
- the renewing request can contain a terminal identification of the terminal.
- the server can receive the renewing request and obtain a configuration file that is saved on the server. According to the terminal identification, the server can send the obtained configuration file to the terminal.
- the configuration file can include the corresponding relationship between the pre-set keywords, the emoticons, and the play tracks.
- Step 305 the local configuration file in the terminal is renewed with the configuration file obtained in Step 304 .
- the terminal can renew the local configuration file.
- the terminal can receive commands of the client programming of the instant communication business from the user and can send a renewing request to the server.
- the server can send the saved configuration file to the terminal.
- the terminal can renew the local configuration file with the configuration file received from the server.
- the terminal can renew the local configuration file with the latest configuration file, and then obtain the latest pre-set keywords, emoticons, play tracks, and effective times.
- the terminal may first complete the renewing process of the local configuration file, and then obtain an emoticon corresponding to the pre-set keyword contained in the instant message, a play track of the emoticon, and an effective time of the emoticon.
- the terminal can receive the instant message inputted by the user and obtain the pre-set keyword in the instant message.
- the terminal can obtain the emoticon and the play track corresponding to the pre-set keyword and display the emoticon according to the play track on a chat interface displaying the instant message.
- displaying the emoticon on the chat interface displaying the instant message according to the play track can dynamically and visually express what the user wants to express and thus increase chatting amusements between the user and friends of the user.
- FIG. 5 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings.
- a terminal receives an instant message and obtains a pre-set keyword contained in the instant message.
- the instant message can contain more than one pre-set keywords and the terminal can obtain these pre-set keyword(s) according to various disclosed embodiments.
- the terminal can determine if the instant message contains a text message after receiving the instant message.
- the terminal can obtain a collection of pre-set keywords from a local configuration file. Based on a pre-set keyword contained in the collection of pre-set keywords, the terminal can search the instant message for the pre-set keyword.
- the pre-set keyword contained in the collection of pre-set keywords is found in the instant message, the found pre-set keyword can be determined as that pre-set keyword contained in the instant message.
- the terminal can determine if the instant message contains a text message after receiving the instant message.
- the terminal can segment the instant message to obtain segmented words contained in the instant message.
- the terminal can also obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword contained in the collection of pre-set keywords. After this comparison, a segmented word from the instant message that is the same as in a pre-set keyword contained in the collection of pre-set keywords can be determined as the pre-set keyword contained in the instant message.
- the voice message when the instant message is a voice message, the voice message can first be converted to a text message.
- a pre-set keyword contained in the instant message can then be determined from the converted text message according to the above-described exemplary methods for determining the pre-set keyword contained in the instant message.
- the collection of pre-set keywords can be obtained from a server. For example, when a pre-set keyword contained in the instant message cannot be obtained from a local configuration file according to the instant message, the pre-set keyword can be obtained from the server. In this manner, the hit rate of determining the pre-set keyword contained in the instant message can be improved.
- the instant message can be a message inputted by a user and received by a terminal.
- the instant message can be a message sent to the terminal from a user's friend via a server.
- the terminal can display an emoticon according to the methods disclosed herein.
- the collection of pre-set keywords may contain pre-set keywords of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, “Happy New Year” etc.
- the terminal can receive this instant message of “Wish You a Happy New Year”.
- the terminal can then search the instant message according to the pre-set keywords (e.g., “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, “Happy New Year”, etc.) in the collection of pre-set keywords.
- the terminal can search the instant message according to the pre-set keyword “Happy New Year” from the collection of pre-set keywords and may find the pre-set keyword “Happy New Year” is contained in the instant message.
- the terminal can also search the instant message according to the pre-set keywords “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous” from the collection of pre-set keywords and, in this case, may not find these pre-set keywords.
- the pre-set keyword “Happy New Year” can then be determined as the pre-set keyword contained in the instant message.
- the terminal can segment the received instant message “Wish You a Happy New Year” and the segmented words of the instant message may include “Wish”, “You”, and “Happy New Year”.
- Each segmented word can be compared with each pre-set keyword of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, and “Happy New Year” in the collection of pre-set keywords.
- the terminal can obtain one or more segmented words (e.g., including “Wish”, “You”, and “Happy New Year”) in the instant message that are the same as in the pre-set keywords (e.g., including “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, and “Happy New Year”) from the collection of pre-set keywords.
- the segmented word “Happy New Year” can then be determined as the pre-set keyword contained in the instant message.
- Step 502 according to the pre-set keyword determined in Step 501 , the terminal obtains an emoticon and an effective time from a local configuration file corresponding to the determined pre-set keyword.
- the local configuration file can include a corresponding relationship among pre-set keywords, emoticons, and/or effective times.
- the terminal can search and find the emoticon and the effective time corresponding to the determined pre-set keyword.
- the terminal can obtain an emoticon corresponding to the one pre-set keyword from the local configuration file according to the one pre-set keyword.
- the terminal can obtain an emoticon corresponding to each or any pre-set keyword in the multiple pre-set keywords from the local configuration file, according to the multiple pre-set keywords.
- Obtaining the emoticon and effective time corresponding to the pre-set keyword from the local configuration file can reduce operation time of the terminal. Efficiency for displaying the emoticons can be improved.
- the terminal can obtain an emoticon corresponding to the pre-set keyword from a server.
- the terminal can send an obtaining request to the server for obtaining the emoticon.
- the obtaining request can contain the pre-set keyword.
- the server can obtain the emoticon corresponding to the pre-set keyword based on the corresponding relationship between the pre-set keywords and the emoticons.
- the terminal can then receive the emoticon sent by the server.
- the terminal can obtain the latest emoticon from the server.
- the local configuration file may also include a play track, and a corresponding relationship among pre-set keywords, emoticons, play tracks, and/or effective times. According to the corresponding relationship, the terminal can obtain an emoticon, a play track, and an effective time according to the determined pre-set keyword.
- the play track can include a play path of the emoticon, and/or a displaying time of the emoticon.
- the play path can roll the emoticon from top to bottom or from right to left.
- the displaying time can be the time for displaying the emoticon, e.g., for about 2 seconds or other time length as desired.
- Table 2 lists an exemplary corresponding relationship among pre-set keywords, emoticons, and effective times. Based on Table 2, the terminal can, for example, find an emoticon (e.g., Emoticon 4) corresponding to a pre-set keyword (e.g., “Happy New Year”) and obtain an effective time (e.g., 01/01-01/07).
- an emoticon e.g., Emoticon 4
- a pre-set keyword e.g., “Happy New Year”
- an effective time e.g., 01/01-01/07
- Step 503 when the terminal obtains a current time and the current time is within the effective time, the terminal displays the emoticon on a chat interface of the instant message.
- the terminal can obtain a current time; compare the current time with the effective time of the emoticon; and determine if the current time is within the effective time.
- the terminal can display the emoticon on the chat interface of the instant message.
- the terminal does not display the emoticon on the chat interface of the instant message and the operation ends.
- the terminal can display the emoticon corresponding to the pre-set keyword on the chat interface of the instant message.
- the terminal can display an emoticon corresponding to each pre-set keyword of the multiple pre-set keywords on the chat interface of the instant message.
- an emoticon corresponding to any pre-set keyword in the multiple pre-set keywords can be displayed on the chat interface of the instant message.
- Displaying the emoticon on the chat interface of the instant message can increase amusements for displaying emoticons and provide the user with pleasant surprises.
- the terminal can obtain a current time and compare the current time with the effective time corresponding to the pre-set keyword. When the current time is within such effective time, the emoticon can be displayed according to the obtained play track on the chat interface of the instant message.
- the terminal can display Emoticon 4.
- an exemplary chat interface in FIG. 6 when user A inputs an instant message of “Wish You a Happy New Year” shown on the exemplary chat interface, an emoticon (e.g., having a form of greeting with one clenched first in the other hand) corresponding to the pre-set keyword “Happy New Year” can be shown on the exemplary chat interface.
- the terminal can periodically renew the local configuration file. For example, in Step 504 , the terminal periodically obtains a configuration file from the server.
- the configuration file contains a corresponding relationship between the pre-set keywords, the emoticons, and/or the effective times.
- the terminal can periodically send a renewing request to the server.
- the renewing request can contain a terminal identification of the terminal.
- the server can receive the renewing request and obtain a configuration file that is saved on the server. According to the terminal identification, the server can send the obtained configuration file to the terminal.
- the configuration file can include the corresponding relationship between the pre-set keywords, the emoticons, and the effective times.
- Step 505 the local configuration file in the terminal is renewed with the configuration file obtained in Step 504 .
- the terminal can renew the local configuration file.
- the terminal can receive commands of the client programming of the instant communication business from the user and can send a renewing request to the server.
- the server can send the saved configuration file to the terminal.
- the terminal can renew the local configuration file with the configuration file received from the server.
- the terminal can renew the local configuration file with the latest configuration file, and then obtain the latest pre-set keywords, emoticons, play tracks, and/or effective times.
- the terminal may first complete the renewing process of the local configuration file, and then obtain an emoticon corresponding to the pre-set keyword contained in the instant message, a play track of the emoticon, and/or an effective time of the emoticon.
- the terminal can receive the instant message inputted by the user and obtain the pre-set keyword in the instant message.
- the terminal can obtain the emoticon and display the emoticon according to the play track on the chat interface displaying the instant message.
- displaying the emoticon on the chat interface for displaying the instant message according to the effective time of the pre-set keyword can provide time-based effects and pleasant surprises to the users and increase chatting amusements between the user and friends of the user.
- FIG. 7 depicts an exemplary apparatus for displaying an emoticon in accordance with various embodiments of the present teachings.
- the exemplary apparatus can include a first obtaining module 701 , a second obtaining module 702 , and/or a displaying module 703 .
- the first obtaining module 701 can be configured to receive an instant message and obtain a pre-set keyword of the instant message. In some embodiments, to obtain the pre-set keyword of the instant message, the first obtaining module 701 can be configured to determine if the instant message contains a text message. When the instant message is determined that does not contain a text message but contains, for example, a voice message. The voice message can be converted to a text message. When the instant message is determined that contains the text message, a collection of pre-set keywords can be obtain from a local configuration file. The first obtaining module 701 can further be configured to search the text message contained in the instant message for each pre-set keyword from the collection of pre-set keywords. When a pre-set keyword in the collection of pre-set keywords is found in the instant message, the first obtaining module 701 can be configured to determine that the found pre-set keyword is the pre-set keyword contained in the instant message.
- the first obtaining module 701 can be configured to determine if the instant message contains a text message. When the instant message is determined that does not contain a text message but contains, for example, a voice message. The voice message can be converted to a text message. When the instant message is determined that contains the text message, the first obtaining module 701 can be configured to segment the instant message to obtain segmented words contained in the instant message and then obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword in the collection of pre-set keywords. The first obtaining module 701 can be configured to determine a segmented word from the instant message that is a same as in a pre-set keyword from the collection of pre-set keywords as the pre-set keyword contained in the instant message.
- the second obtaining module 702 can be configured to obtain an emoticon corresponding to the pre-set keyword.
- the displaying module 703 can be configured to display the emoticon obtained by the second obtaining module 702 on a chat interface displaying instant message.
- the second obtaining module 702 can include a first obtaining unit.
- the first obtaining unit can be configured, according to the pre-set keyword, to obtain the emoticon corresponding to the pre-set keyword from a local configuration file.
- the local configuration file can be configured to store a corresponding relationship between the pre-set keywords and the emoticons. Further, the local configuration file can be configured to store a play track and/or an effective time of each emoticon included in the corresponding relationship between the pre-set keywords and the emoticons.
- the second obtaining module 702 can include a second obtaining unit. The second obtaining unit can be configured to obtain a play track and/or an effective time of each emoticon from the local configuration file.
- the displaying module 703 can include a displaying unit.
- the displaying unit can be configured to display the emoticon on the chat interface of the instant message according to the play track and/or the effective time of the emoticon.
- the exemplary apparatus can further include a third obtaining module, and/or a renewing module.
- the third obtaining module can be configured to periodically obtain a configuration file from a server.
- the configuration file can at least include a corresponding relationship between the pre-set keywords and the emoticons.
- the renewing module can be configured to renew the local configuration file with the obtained configuration file.
- the terminal can receive an instant message inputted by the user and obtain the pre-set keyword contained in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain the emoticon corresponding to the pre-set keyword and display the emoticon on the chat interface of the instant message. As such, according to the instant message, displaying the emoticon on the chat interface of the instant message can visually express what the user wants to express and thus increase chatting amusements between the user and friends of the user.
- the disclosed modules/units in the exemplary apparatus as depicted above can be configured in one device or configured in multiple devices as desired.
- the modules disclosed herein can be integrated in one module or in multiple modules for processing messages.
- Each of the modules disclosed herein can be divided into one or more sub-modules, which can be recombined in any manners.
- the exemplary apparatus in FIG. 7 can be used to perform the above-disclosed methods, e.g., in FIGS. 1-6 , for displaying emoticons on the chat interface of the instant message.
- the disclosed embodiments can be examples only.
- suitable software and/or hardware e.g., a universal hardware platform
- the disclosed embodiments can be implemented by hardware only, which alternatively can be implemented by software products only.
- the software products can be stored in a storage medium (e.g., as shown in FIG. 9 ).
- the software products can include suitable commands to enable a terminal device (e.g., including a mobile phone, a personal computer, a server, or a network device, etc.) to implement the disclosed embodiments.
- FIG. 8 depicts an exemplary environment 800 incorporating certain disclosed embodiments.
- environment 800 may include a server 804 , a terminal or a client 806 , and/or a communication network 802 .
- the server 804 and the client 806 may be coupled through the communication network 802 for information exchange, such as obtaining web data.
- client 806 and one server 804 are shown in the environment 800 , any number of clients 806 or servers 804 may be included, and other devices may also be included.
- Communication network 802 may include any appropriate type of communication network for providing network connections to the server 804 and client 806 or among multiple servers 804 or clients 806 .
- communication network 802 may include the Internet or other types of computer networks or telecommunication networks, either wired or wireless.
- a terminal or a client may refer to any appropriate user terminal with certain computing capabilities, such as a personal computer (PC), a work station computer, a server computer, a hand-held computing device (tablet), a smart phone or mobile phone, or any other user-side computing device.
- Such terminals can be used in the disclosed methods as depicted in FIGS. 1-6 .
- a server may refer to one or more server computers configured to provide certain server functionalities, such as database management and search engines.
- a server may also include one or more processors to execute computer programs in parallel.
- the server can be used in the disclosed methods as depicted in FIGS. 1-6 .
- Server 804 and/or client 806 may be implemented on any appropriate computing platform.
- FIG. 9 shows a block diagram of an exemplary computing system 900 capable of implementing server 904 and/or client 906 .
- computing system 900 may include a processor 902 , a storage medium 904 , a monitor 906 , a communication module 908 , a database 910 , and/or peripherals 912 . Certain devices may be omitted and other devices may be included.
- Processor 902 may include any appropriate processor or processors. Further, processor 902 can include multiple cores for multi-thread or parallel processing.
- Storage medium 904 may include memory modules, such as ROM, RAM, flash memory modules, and erasable and rewritable memory, and mass storages, such as CD-ROM, U-disk, and hard disk, etc. Storage medium 904 may store computer programs for implementing various processes, when executed by processor 902 .
- peripherals 912 may include I/O devices such as keyboard and mouse, and communication module 908 may include network devices for establishing connections through the communication network 902 .
- Database 910 may include one or more databases for storing certain data and for performing certain operations on the stored data, such as database searching.
- an instant message can be received and a pre-set keyword contained in the instant message can be determined.
- An emoticon corresponding to the pre-set keyword contained in the instant message can then be obtained and displayed on the chat interface that displays the instant message.
- An exemplary apparatus can include a first obtaining module, a second obtaining module, and/or a displaying module.
- the first obtaining module can be configured to receive an instant message and obtain a pre-set keyword contained in the instant message.
- the second obtaining module can be configured to obtain an emoticon corresponding to the pre-set keyword contained in the instant message.
- the displaying module can be configured to display the emoticon on a chat interface displaying the instant message.
- an instant message inputted by a user can be received.
- a pre-set keyword in the instant message can be determined and obtained.
- An emoticon corresponding to the pre-set keyword contained in the instant message can be obtained and displayed on a chat interface displaying the instant message.
- displaying the emoticon on the chat interface that displays the instant message can visually express what the user wants to express and can increase chatting amusements between the user and friends of the user.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Various embodiments provide methods and apparatus for displaying an emoticon. In an exemplary method, an instant message can be received and a pre-set keyword contained in the instant message can be determined. An emoticon corresponding to the pre-set keyword contained in the instant message can then be obtained and displayed on a chat interface displaying the instant message. Accordingly, an exemplary apparatus for displaying an emoticon can include a first obtaining module, a second obtaining module, and/or a displaying module.
Description
- This application claims priority to Chinese Patent Application No. CN201310156500X, filed on Apr. 28, 2013, the entire contents of which are incorporated herein by reference.
- The present disclosure relates to the field of communication and, more particularly, relates to methods and apparatus for displaying an emoticon.
- With continuous development of communication technologies, it is more and more popular that users use instant communication tools installed in a terminal to chat with friends. The users may edit instant messages using the instant communication tools and send instant messages to friends via the instant communication tools. The users may also receive the instant messages from friends via the instant communication tools.
- Currently, instant messages edited by the users via the instant communication tools are mainly text messages. The text messages as a form of instant messages may then be sent to friends via the instant communication tools. The instant messages, however, are not able to visually express what the user wants to express. It is also desirable for the instant messages to provide some chatting amusements when in use.
- According to various embodiments, there is provided a method for displaying an emoticon. In this method, an instant message can be received and a pre-set keyword contained in the instant message can be obtained. An emoticon corresponding to the pre-set keyword contained in the instant message can be obtained and displayed on a chat interface displaying the instant message.
- According to various embodiments, there is also provided an apparatus for displaying an emoticon. The apparatus can include a first obtaining module, a second obtaining module, and a displaying module. The first obtaining module can be configured to receive an instant message and obtain a pre-set keyword contained in the instant message. The second obtaining module can be configured to obtain an emoticon corresponding to the pre-set keyword contained in the instant message. The displaying module can be configured to display the emoticon on a chat interface displaying the instant message.
- In one embodiment, an instant message inputted by a user can be received. A pre-set keyword in the instant message can be determined and obtained. An emoticon corresponding to the pre-set keyword contained in the instant message can be obtained and displayed on a chat interface displaying the instant message. As such, displaying the emoticon on the chat interface that displays the instant message can visually express what the user wants to express and can increase chatting amusements between the user and friends of the user.
- Other aspects or embodiments of the present disclosure can be understood by those skilled in the art in light of the description, the claims, and the drawings of the present disclosure.
- The following drawings are merely examples for illustrative purposes according to various disclosed embodiments and are not intended to limit the scope of the disclosure.
-
FIG. 1 depicts an exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 2 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 3 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 4 depicts an exemplary chat interface displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 5 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 6 depicts another exemplary chat interface displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 7 depicts an exemplary apparatus for displaying an emoticon in accordance with various embodiments of the present teachings; -
FIG. 8 depicts an exemplary environment incorporating certain disclosed embodiments; and -
FIG. 9 depicts an exemplary computing system in accordance with various disclosed embodiments. - Reference will now be made in detail to exemplary embodiments of the disclosure, which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts.
- Methods and apparatus for displaying an emoticon are provided herein. In an exemplary method, an instant message can be received and a pre-set keyword contained in the instant message can be determined and obtained. An emoticon corresponding to the pre-set keyword contained in the instant message can then be obtained and displayed on a chat interface displaying the instant message. Accordingly, an exemplary apparatus for displaying an emoticon can include a first obtaining module, a second obtaining module, and/or a displaying module.
-
FIG. 1 depicts an exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings. InStep 101, an instant message is received and a pre-set keyword contained in the instant message is obtained. InStep 102, according to the obtained pre-set keyword, an emoticon corresponding to the obtained pre-set keyword is obtained. InStep 103, the obtained emoticon is displayed on a chat interface displaying the instant message. - For example, a terminal can receive an instant message inputted by a user to obtain a pre-set keyword contained in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain an emoticon corresponding to the pre-set keyword contained in the instant message. The terminal can display the obtained emoticon on a chat interface displaying the instant message. As such, according to the instant message, emoticon can be displayed on the chat interface displaying the instant message. By displaying emoticons (e.g., instead of text messages), it may be able to visually express what the user wants to express and to increase chatting amusements between the user and friends of the user.
-
FIG. 2 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings. InStep 201, a terminal receives an instant message and obtains a pre-set keyword contained in the instant message. In various embodiments, the instant message can contain more than one pre-set keywords and the terminal can obtain these pre-set keyword(s) according to various disclosed embodiments. - As used herein, the term “a pre-set keyword” may include one word, two or more words, a set of multiple words, two or more sets of multiple words, and/or one or more sentences. For example, a pre-set keyword may be “Happy Birthday” or “Missed You” or “May You be Happy and Prosperous”, etc.
- After an instant message is received, a pre-set keyword contained in the instant message can be determined and obtained. In an exemplary method for determining a pre-set keyword contained in an instant message, the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can obtain a collection of pre-set keywords from a local configuration file. Based on a pre-set keyword contained in the collection of pre-set keywords, the terminal can search the instant message for the pre-set keyword. When the pre-set keyword contained in the collection of pre-set keywords is found in the instant message, the found pre-set keyword can be determined as that pre-set keyword contained in the instant message.
- In another exemplary method for determining a pre-set keyword contained in an instant message, the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can segment the instant message to obtain segmented words contained in the instant message. The terminal can also obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword contained in the collection of pre-set keywords. After this comparison, a segmented word from the instant message that is the same as in a pre-set keyword contained in the collection of pre-set keywords can be determined as the pre-set keyword contained in the instant message.
- In some cases, when the instant message is a voice message, the voice message can first be converted to a text message. A pre-set keyword contained in the instant message can then be determined from the converted text message according to the above-described exemplary methods for determining the pre-set keyword contained in the instant message.
- In various embodiments, the collection of pre-set keywords can be obtained from a server. For example, when a pre-set keyword contained in the instant message cannot be obtained from a local configuration file according to the instant message, the pre-set keyword can be obtained from the server. In this manner, the hit rate of determining the pre-set keyword contained in the instant message can be improved.
- In various embodiments, the instant message can be a message inputted by a user and received by a terminal. Alternatively, the instant message can be a message sent to the terminal from a user's friend via a server. When the terminal receives the instant message, the terminal can display an emoticon according to the methods disclosed herein.
- For example, the collection of pre-set keywords may contain pre-set keywords of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc. In an embodiment when an instant message inputted by a user is “Happy Birthday to You”, the terminal can receive this instant message of “Happy Birthday to You”. The terminal can then search the instant message according to the pre-set keywords (e.g., “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc.) in the collection of pre-set keywords. For example, the terminal can search the instant message according to the pre-set keyword “Happy Birthday” from the collection of pre-set keywords and may find the pre-set keyword “Happy Birthday” is contained in the instant message. The terminal can also search the instant message according to the pre-set keywords “Missed You” and “May You be Happy and Prosperous” from the collection of pre-set keywords and, in this case, may not find these pre-set keywords. The pre-set keyword “Happy Birthday” can then be determined as the pre-set keyword contained in the instant message.
- In another example, the terminal can segment the received instant message “Happy Birthday to You” and the segmented words of the instant message may include “Happy Birthday”, “to”, and “You”. Each segmented word can be compared with each pre-set keyword of “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous” in the collection of pre-set keywords.
- After comparison, the terminal can obtain one or more segmented words (e.g., including “Happy Birthday”, “to”, and “You”) in the instant message that are the same as in the pre-set keywords (e.g., including “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous”) from the collection of pre-set keywords. In this example, the same segmented words can be “Happy Birthday”, which can then be determined as the pre-set keyword contained in the instant message.
- In
Step 202, according to the pre-set keyword determined inStep 201, the terminal obtains an emoticon from a local configuration file corresponding to the determined pre-set keyword. The local configuration file can include a corresponding relationship between pre-set keywords and emoticons. - For example, according to the determined pre-set keyword and from the corresponding relationship between pre-set keywords and emoticons from the local configuration file, the terminal can search a record of an emoticon corresponding to the determined pre-set keyword, and obtain the emoticon corresponding to the determined pre-set keyword from the record.
- In an embodiment when the instant message contains one pre-set keyword, the terminal can obtain an emoticon corresponding to the one pre-set keyword from the local configuration file according to the one pre-set keyword. In another embodiment when the instant message contains multiple pre-set keywords, the terminal can obtain an emoticon corresponding to each or any pre-set keyword in the multiple pre-set keywords from the local configuration file, according to the multiple pre-set keywords.
- Obtaining the emoticon corresponding to the pre-set keyword from the local configuration file can reduce operation time of the terminal. Efficiency for displaying the emoticons can be improved.
- Optionally, according to the determined pre-set keyword, the terminal can obtain an emoticon corresponding to the pre-set keyword from a server. For example, the terminal can send an obtaining request to the server for obtaining the emoticon. The obtaining request can contain the pre-set keyword. After receiving the pre-set keyword from the obtaining request, the server can obtain the emoticon corresponding to the pre-set keyword based on the corresponding relationship between the pre-set keywords and the emoticons. The terminal can then receive the emoticon sent by the server. As such, based on the pre-set keyword, the terminal can obtain the latest emoticon from the server.
- In
Step 203, the terminal displays the emoticon on a chat interface of the instant message. - In an embodiment when the instant message contains one pre-set keyword, the terminal can display the emoticon corresponding to the pre-set keyword on the chat interface of the instant message. In another embodiment when the instant message contains multiple pre-set keywords, the terminal can display an emoticon corresponding to each pre-set keyword of the multiple pre-set keywords on the chat interface of the instant message. In an additional embodiment when the instant message contains multiple pre-set keywords, an emoticon corresponding to any pre-set keyword in the multiple pre-set keywords can be displayed on the chat interface of the instant message. Displaying the emoticon on the chat interface of the instant message provides amusements for displaying the instant message and provides the user with pleasant surprises.
- Further, the terminal can periodically renew the local configuration file. For example, in
Step 204, the terminal periodically obtains a configuration file from the server. The configuration file contains a corresponding relationship between the pre-set keywords and the emoticons. - For example, the terminal can periodically send a renewing request to the server. The renewing request can contain a terminal identification of the terminal. The server can receive the renewing request and obtain a configuration file that is saved on the server. According to the terminal identification, the server can send the obtained configuration file to the terminal. The configuration file can include the corresponding relationship between the pre-set keywords and the emoticons.
- In
Step 205, the local configuration file in the terminal is renewed with the configuration file obtained from the server inStep 204. - When a user starts a client programming of an instant communication business, the terminal can renew the local configuration file. For example, the terminal can receive commands of the client programming of the instant communication business from the user and can send a renewing request to the server. In response to the renewing request, the server can send the saved configuration file to the terminal. The terminal can renew the local configuration file with the configuration file received from the server.
- In this manner, when the user starts the client programming of the instant communication business, the terminal can renew the local configuration file with the latest configuration file, and then obtain the latest pre-set keywords and emoticons.
- In an embodiment when the terminal receives the instant message while the terminal is renewing the local configuration file, the terminal may first complete the renewing process of the local configuration file, and then obtain an emoticon corresponding to the pre-set keyword contained in the instant message.
- As disclosed, the terminal can receive the instant message inputted by the user and obtain the pre-set keyword in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain the emoticon corresponding to the pre-set keyword and display the emoticon on the chat interface displaying the instant message. As such, displaying the emoticon on the chat interface displaying the instant message can visually express what the user wants to express and thus increase chatting amusements between the user and friends of the user.
-
FIG. 3 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings. InStep 301, a terminal receives an instant message and obtains a pre-set keyword contained in the instant message. In various embodiments, the instant message can contain more than one pre-set keywords and the terminal can obtain these pre-set keyword(s) according to various disclosed embodiments. - In an exemplary method for determining a pre-set keyword contained in an instant message, the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can obtain a collection of pre-set keywords from a local configuration file. Based on a pre-set keyword contained in the collection of pre-set keywords, the terminal can search the instant message for the pre-set keyword. When the pre-set keyword contained in the collection of pre-set keywords is found in the instant message, the found pre-set keyword can be determined as that pre-set keyword contained in the instant message.
- In another exemplary method for determining a pre-set keyword contained in an instant message, the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can segment the instant message to obtain segmented words contained in the instant message. The terminal can also obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword contained in the collection of pre-set keywords. After the comparison, a segmented word from the instant message that is the same as in a pre-set keyword contained in the collection of pre-set keywords can be determined as the pre-set keyword contained in the instant message.
- In some cases, when the instant message is a voice message, the voice message can first be converted to a text message. A pre-set keyword contained in the instant message can then be determined from the converted text message according to the above-described exemplary methods for determining the pre-set keyword contained in the instant message.
- In various embodiments, the collection of pre-set keywords can be obtained from a server. For example, when a pre-set keyword contained in the instant message cannot be obtained from a local configuration file according to the instant message, the pre-set keyword can be obtained from the server. In this manner, the hit rate of determining the pre-set keyword contained in the instant message can be improved.
- In various embodiments, the instant message can be a message inputted by a user and received by a terminal. Alternatively, the instant message can be a message sent to the terminal from a user's friend via a server. When the terminal receives the instant message, the terminal can display an emoticon according to the methods disclosed herein.
- For example, the collection of pre-set keywords may contain pre-set keywords of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc. In an embodiment when an instant message inputted by a user is “Happy Birthday to You”, the terminal can receive this instant message of “Happy Birthday to You”. The terminal can then search the instant message according to the pre-set keywords (e.g., “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, etc.) in the collection of pre-set keywords. For example, the terminal can search the instant message according to the pre-set keyword “Happy Birthday” from the collection of pre-set keywords and may find the pre-set keyword “Happy Birthday” is contained in the instant message. The terminal can also search the instant message according to the pre-set keywords “Missed You” and “May You be Happy and Prosperous” from the collection of pre-set keywords and, in this case, may not find these pre-set keywords. The found pre-set keyword “Happy Birthday” can then be determined as the pre-set keyword contained in the instant message.
- In another example, the terminal can segment the received instant message “Happy Birthday to You” and the segmented words of the instant message may include “Happy Birthday”, “to”, and “You”. Each segmented word can be compared with each pre-set keyword of “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous” in the collection of pre-set keywords.
- After the comparison, the terminal can obtain one or more segmented words (e.g., including “Happy Birthday”, “to”, and “You”) in the instant message that are the same as in the pre-set keywords (e.g., including “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous”) from the collection of pre-set keywords. In this example, the same segmented words can be “Happy Birthday”, which can then be determined as the pre-set keyword contained in the instant message.
- In
Step 302, according to the pre-set keyword determined inStep 301, the terminal obtains an emoticon and a play track from a local configuration file corresponding to the determined pre-set keyword. The local configuration file can include a corresponding relationship among pre-set keywords, emoticons, and play tracks. - For example, according to the determined pre-set keyword and from the corresponding relationship among pre-set keywords, emoticons, and play tracks from the local configuration file, the terminal can search and find the emoticon and the play track corresponding to the determined pre-set keyword.
- In an embodiment when the instant message contains one pre-set keyword, the terminal can obtain an emoticon corresponding to the one pre-set keyword from the local configuration file according to the one pre-set keyword. In another embodiment when the instant message contains multiple pre-set keywords, the terminal can obtain an emoticon corresponding to each or any pre-set keyword in the multiple pre-set keywords from the local configuration file, according to the multiple pre-set keywords.
- Obtaining the emoticon corresponding to the pre-set keyword from the local configuration file can reduce operation time of the terminal. Efficiency for displaying the emoticons can be improved.
- Optionally, according to the determined pre-set keyword, the terminal can obtain an emoticon corresponding to the pre-set keyword from a server. For example, the terminal can send an obtaining request to the server for obtaining the emoticon. The obtaining request can contain the pre-set keyword. After receiving the pre-set keyword from the obtaining request, the server can obtain the emoticon corresponding to the pre-set keyword based on the corresponding relationship between the pre-set keywords and the emoticons. The terminal can then receive the emoticon sent by the server. As such, based on the pre-set keyword, the terminal can obtain the latest emoticon from the server.
- Further, the local configuration file may also include an effective time and may further include a corresponding relationship among pre-set keywords, emoticons, play tracks, and/or effective times. According to this corresponding relationship, the terminal can obtain an emoticon, a play track, and/or an effective time according to the determined pre-set keyword.
- The play track can include a play path of the emoticon and/or a displaying time of the emoticon. For example, the play path can roll the emoticon from top to bottom or from right to left. The displaying time can be a time for displaying the emoticon, e.g., for about 2 seconds or other time length as desired.
- Table 1 lists an exemplary corresponding relationship among pre-set keywords, emoticons, and play tracks. According to Table 1, the terminal can, for example, find an emoticon (e.g., Emoticon 1) and obtain a play track (e.g., Play Track 1) corresponding to a pre-set keyword (e.g., “Happy Birthday”).
-
TABLE 1 Pre-Set Keyword Emoticon Play Track Happy Birthday Emoticon 1 Play Track 1 Missed you Emoticon 2 Play Track 2 May You be Happy Emoticon 3 Play Track 3 and Prosperous - In
Step 303, the terminal displays the emoticon according to the obtained play track on a chat interface of the instant message. - In an embodiment when the instant message contains one pre-set keyword, the terminal can display the emoticon corresponding to the pre-set keyword on the chat interface of the instant message. In another embodiment when the instant message contains multiple pre-set keywords, the terminal can display an emoticon corresponding to each pre-set keyword of the multiple pre-set keywords on the chat interface of the instant message. In an additional embodiment when the instant message contains multiple pre-set keywords, an emoticon corresponding to any pre-set keyword in the multiple pre-set keywords can be displayed on the chat interface of the instant message.
- Displaying the emoticon according to the obtained play track on the chat interface of the instant message can dynamically display the emoticon to increase the dynamic sense and provide the user with pleasant surprises.
- In an embodiment that the local configuration file includes a corresponding relationship among pre-set keywords, emoticons, play tracks and/or effective times, before the terminal obtains the emoticon according to the obtained play track, the terminal can obtain a current time and compare the current time with the effective time corresponding to the pre-set keyword. When the current time is within such effective time, the emoticon can be displayed according to the obtained play track on the chat interface of the instant message.
- For example, corresponding to the pre-set keyword “Happy Birthday” in Table 1, Play Track 1 may be the play track to display the emoticon by rolling from top to bottom and the emoticon may be a picture of cake. As shown on an exemplary chat interface in
FIG. 4 , when user A inputs an instant message of “Happy Birthday to You”, an emoticon containing a picture of cake and corresponding to the pre-set keyword can be displayed on the exemplary chat interface in a snake-like form. - Further the terminal can periodically renew the local configuration file. For example, in
Step 304, the terminal periodically obtains a configuration file from the server. The configuration file contains a corresponding relationship between the pre-set keywords, the emoticons, and the play tracks. - For example, the terminal can periodically send a renewing request to the server. The renewing request can contain a terminal identification of the terminal. The server can receive the renewing request and obtain a configuration file that is saved on the server. According to the terminal identification, the server can send the obtained configuration file to the terminal. The configuration file can include the corresponding relationship between the pre-set keywords, the emoticons, and the play tracks.
- In
Step 305, the local configuration file in the terminal is renewed with the configuration file obtained inStep 304. - When a user starts a client programming of an instant communication business, the terminal can renew the local configuration file. For example, the terminal can receive commands of the client programming of the instant communication business from the user and can send a renewing request to the server. In response to the renewing request, the server can send the saved configuration file to the terminal. The terminal can renew the local configuration file with the configuration file received from the server.
- In this manner, when the user starts the client programming of the instant communication business, the terminal can renew the local configuration file with the latest configuration file, and then obtain the latest pre-set keywords, emoticons, play tracks, and effective times.
- In an embodiment when the terminal receives the instant message while the terminal is renewing the local configuration file, the terminal may first complete the renewing process of the local configuration file, and then obtain an emoticon corresponding to the pre-set keyword contained in the instant message, a play track of the emoticon, and an effective time of the emoticon.
- As disclosed, the terminal can receive the instant message inputted by the user and obtain the pre-set keyword in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain the emoticon and the play track corresponding to the pre-set keyword and display the emoticon according to the play track on a chat interface displaying the instant message. As such, displaying the emoticon on the chat interface displaying the instant message according to the play track can dynamically and visually express what the user wants to express and thus increase chatting amusements between the user and friends of the user.
-
FIG. 5 depicts another exemplary method for displaying an emoticon in accordance with various embodiments of the present teachings. - In
Step 501, a terminal receives an instant message and obtains a pre-set keyword contained in the instant message. In various embodiments, the instant message can contain more than one pre-set keywords and the terminal can obtain these pre-set keyword(s) according to various disclosed embodiments. - In an exemplary method for determining a pre-set keyword contained in an instant message, the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can obtain a collection of pre-set keywords from a local configuration file. Based on a pre-set keyword contained in the collection of pre-set keywords, the terminal can search the instant message for the pre-set keyword. When the pre-set keyword contained in the collection of pre-set keywords is found in the instant message, the found pre-set keyword can be determined as that pre-set keyword contained in the instant message.
- In another exemplary method for determining a pre-set keyword contained in an instant message, the terminal can determine if the instant message contains a text message after receiving the instant message. When the instant message is determined that contains a text message, the terminal can segment the instant message to obtain segmented words contained in the instant message. The terminal can also obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword contained in the collection of pre-set keywords. After this comparison, a segmented word from the instant message that is the same as in a pre-set keyword contained in the collection of pre-set keywords can be determined as the pre-set keyword contained in the instant message.
- In some cases, when the instant message is a voice message, the voice message can first be converted to a text message. A pre-set keyword contained in the instant message can then be determined from the converted text message according to the above-described exemplary methods for determining the pre-set keyword contained in the instant message.
- In various embodiments, the collection of pre-set keywords can be obtained from a server. For example, when a pre-set keyword contained in the instant message cannot be obtained from a local configuration file according to the instant message, the pre-set keyword can be obtained from the server. In this manner, the hit rate of determining the pre-set keyword contained in the instant message can be improved.
- In various embodiments, the instant message can be a message inputted by a user and received by a terminal. Alternatively, the instant message can be a message sent to the terminal from a user's friend via a server. When the terminal receives the instant message, the terminal can display an emoticon according to the methods disclosed herein.
- For example, the collection of pre-set keywords may contain pre-set keywords of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, “Happy New Year” etc. In an embodiment when an instant message inputted by a user is “Wish You a Happy New Year”, the terminal can receive this instant message of “Wish You a Happy New Year”. The terminal can then search the instant message according to the pre-set keywords (e.g., “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, “Happy New Year”, etc.) in the collection of pre-set keywords. For example, the terminal can search the instant message according to the pre-set keyword “Happy New Year” from the collection of pre-set keywords and may find the pre-set keyword “Happy New Year” is contained in the instant message. The terminal can also search the instant message according to the pre-set keywords “Happy Birthday”, “Missed You”, and “May You be Happy and Prosperous” from the collection of pre-set keywords and, in this case, may not find these pre-set keywords. The pre-set keyword “Happy New Year” can then be determined as the pre-set keyword contained in the instant message.
- In another example, the terminal can segment the received instant message “Wish You a Happy New Year” and the segmented words of the instant message may include “Wish”, “You”, and “Happy New Year”. Each segmented word can be compared with each pre-set keyword of “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, and “Happy New Year” in the collection of pre-set keywords.
- After comparison, the terminal can obtain one or more segmented words (e.g., including “Wish”, “You”, and “Happy New Year”) in the instant message that are the same as in the pre-set keywords (e.g., including “Happy Birthday”, “Missed You”, “May You be Happy and Prosperous”, and “Happy New Year”) from the collection of pre-set keywords. In this example, the segmented word “Happy New Year” can then be determined as the pre-set keyword contained in the instant message.
- In
Step 502, according to the pre-set keyword determined inStep 501, the terminal obtains an emoticon and an effective time from a local configuration file corresponding to the determined pre-set keyword. The local configuration file can include a corresponding relationship among pre-set keywords, emoticons, and/or effective times. - For example, according to the determined pre-set keyword and from the corresponding relationship among pre-set keywords, emoticons, and/or effective times from the local configuration file, the terminal can search and find the emoticon and the effective time corresponding to the determined pre-set keyword.
- In an embodiment when the instant message contains one pre-set keyword, the terminal can obtain an emoticon corresponding to the one pre-set keyword from the local configuration file according to the one pre-set keyword. In another embodiment when the instant message contains multiple pre-set keywords, the terminal can obtain an emoticon corresponding to each or any pre-set keyword in the multiple pre-set keywords from the local configuration file, according to the multiple pre-set keywords.
- Obtaining the emoticon and effective time corresponding to the pre-set keyword from the local configuration file can reduce operation time of the terminal. Efficiency for displaying the emoticons can be improved.
- Optionally, according to the determined pre-set keyword, the terminal can obtain an emoticon corresponding to the pre-set keyword from a server. For example, the terminal can send an obtaining request to the server for obtaining the emoticon. The obtaining request can contain the pre-set keyword. After receiving the pre-set keyword from the obtaining request, the server can obtain the emoticon corresponding to the pre-set keyword based on the corresponding relationship between the pre-set keywords and the emoticons. The terminal can then receive the emoticon sent by the server. As such, based on the pre-set keyword, the terminal can obtain the latest emoticon from the server.
- Further, the local configuration file may also include a play track, and a corresponding relationship among pre-set keywords, emoticons, play tracks, and/or effective times. According to the corresponding relationship, the terminal can obtain an emoticon, a play track, and an effective time according to the determined pre-set keyword.
- The play track can include a play path of the emoticon, and/or a displaying time of the emoticon. For example, the play path can roll the emoticon from top to bottom or from right to left. The displaying time can be the time for displaying the emoticon, e.g., for about 2 seconds or other time length as desired.
- Table 2 lists an exemplary corresponding relationship among pre-set keywords, emoticons, and effective times. Based on Table 2, the terminal can, for example, find an emoticon (e.g., Emoticon 4) corresponding to a pre-set keyword (e.g., “Happy New Year”) and obtain an effective time (e.g., 01/01-01/07).
-
TABLE 2 Pre-Set Keyword Emoticon Effective Time Happy Birthday Emoticon 1 01/01-12/31 Missed you Emoticon 2 01/01-12/31 May You be Happy and Emoticon 3 01/01-02/01 Prosperous Happy New Year Emoticon 4 01/01-01/07 - In
Step 503, when the terminal obtains a current time and the current time is within the effective time, the terminal displays the emoticon on a chat interface of the instant message. - For example, the terminal can obtain a current time; compare the current time with the effective time of the emoticon; and determine if the current time is within the effective time. When the current time is determined within the effective time, the terminal can display the emoticon on the chat interface of the instant message. In the case when the current time is determined not within the effective time, the terminal does not display the emoticon on the chat interface of the instant message and the operation ends.
- In an embodiment when the instant message contains one pre-set keyword, the terminal can display the emoticon corresponding to the pre-set keyword on the chat interface of the instant message. In another embodiment when the instant message contains multiple pre-set keywords, the terminal can display an emoticon corresponding to each pre-set keyword of the multiple pre-set keywords on the chat interface of the instant message. In an additional embodiment when the instant message contains multiple pre-set keywords, an emoticon corresponding to any pre-set keyword in the multiple pre-set keywords can be displayed on the chat interface of the instant message.
- Displaying the emoticon on the chat interface of the instant message can increase amusements for displaying emoticons and provide the user with pleasant surprises.
- In an embodiment that the local configuration file includes a corresponding relationship among pre-set keywords, emoticons, play tracks and/or effective times, before the terminal obtains the emoticon according to the obtained play track, the terminal can obtain a current time and compare the current time with the effective time corresponding to the pre-set keyword. When the current time is within such effective time, the emoticon can be displayed according to the obtained play track on the chat interface of the instant message.
- For example, when the current time is about 12:00 pm on a date of January 5, i.e., within the effective time of 01/01-01/07 corresponding to Emoticon 4 as depicted in Table 2, the terminal can display Emoticon 4. On an exemplary chat interface in
FIG. 6 , when user A inputs an instant message of “Wish You a Happy New Year” shown on the exemplary chat interface, an emoticon (e.g., having a form of greeting with one clenched first in the other hand) corresponding to the pre-set keyword “Happy New Year” can be shown on the exemplary chat interface. - Further, the terminal can periodically renew the local configuration file. For example, in
Step 504, the terminal periodically obtains a configuration file from the server. The configuration file contains a corresponding relationship between the pre-set keywords, the emoticons, and/or the effective times. - For example, the terminal can periodically send a renewing request to the server. The renewing request can contain a terminal identification of the terminal. The server can receive the renewing request and obtain a configuration file that is saved on the server. According to the terminal identification, the server can send the obtained configuration file to the terminal. The configuration file can include the corresponding relationship between the pre-set keywords, the emoticons, and the effective times.
- In
Step 505, the local configuration file in the terminal is renewed with the configuration file obtained inStep 504. - When a user starts a client programming of an instant communication business, the terminal can renew the local configuration file. For example, the terminal can receive commands of the client programming of the instant communication business from the user and can send a renewing request to the server. In response to the renewing request, the server can send the saved configuration file to the terminal. The terminal can renew the local configuration file with the configuration file received from the server.
- In this manner, when the user starts the client programming of the instant communication business, the terminal can renew the local configuration file with the latest configuration file, and then obtain the latest pre-set keywords, emoticons, play tracks, and/or effective times.
- In an embodiment when the terminal receives the instant message while the terminal is renewing the local configuration file, the terminal may first complete the renewing process of the local configuration file, and then obtain an emoticon corresponding to the pre-set keyword contained in the instant message, a play track of the emoticon, and/or an effective time of the emoticon.
- As disclosed, the terminal can receive the instant message inputted by the user and obtain the pre-set keyword in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain the emoticon and display the emoticon according to the play track on the chat interface displaying the instant message. As such, displaying the emoticon on the chat interface for displaying the instant message according to the effective time of the pre-set keyword can provide time-based effects and pleasant surprises to the users and increase chatting amusements between the user and friends of the user.
-
FIG. 7 depicts an exemplary apparatus for displaying an emoticon in accordance with various embodiments of the present teachings. The exemplary apparatus can include a first obtainingmodule 701, a second obtainingmodule 702, and/or a displayingmodule 703. - The first obtaining
module 701 can be configured to receive an instant message and obtain a pre-set keyword of the instant message. In some embodiments, to obtain the pre-set keyword of the instant message, the first obtainingmodule 701 can be configured to determine if the instant message contains a text message. When the instant message is determined that does not contain a text message but contains, for example, a voice message. The voice message can be converted to a text message. When the instant message is determined that contains the text message, a collection of pre-set keywords can be obtain from a local configuration file. The first obtainingmodule 701 can further be configured to search the text message contained in the instant message for each pre-set keyword from the collection of pre-set keywords. When a pre-set keyword in the collection of pre-set keywords is found in the instant message, the first obtainingmodule 701 can be configured to determine that the found pre-set keyword is the pre-set keyword contained in the instant message. - In other embodiments, to obtain the pre-set keyword of the instant message, the first obtaining
module 701 can be configured to determine if the instant message contains a text message. When the instant message is determined that does not contain a text message but contains, for example, a voice message. The voice message can be converted to a text message. When the instant message is determined that contains the text message, the first obtainingmodule 701 can be configured to segment the instant message to obtain segmented words contained in the instant message and then obtain a collection of pre-set keywords from a local configuration file. Each segmented word contained in the instant message can be compared with each pre-set keyword in the collection of pre-set keywords. The first obtainingmodule 701 can be configured to determine a segmented word from the instant message that is a same as in a pre-set keyword from the collection of pre-set keywords as the pre-set keyword contained in the instant message. - Based on the obtained pre-set keyword of the instant message, the second obtaining
module 702 can be configured to obtain an emoticon corresponding to the pre-set keyword. The displayingmodule 703 can be configured to display the emoticon obtained by the second obtainingmodule 702 on a chat interface displaying instant message. - The second obtaining
module 702 can include a first obtaining unit. The first obtaining unit can be configured, according to the pre-set keyword, to obtain the emoticon corresponding to the pre-set keyword from a local configuration file. The local configuration file can be configured to store a corresponding relationship between the pre-set keywords and the emoticons. Further, the local configuration file can be configured to store a play track and/or an effective time of each emoticon included in the corresponding relationship between the pre-set keywords and the emoticons. Accordingly, the second obtainingmodule 702 can include a second obtaining unit. The second obtaining unit can be configured to obtain a play track and/or an effective time of each emoticon from the local configuration file. - The displaying
module 703 can include a displaying unit. The displaying unit can be configured to display the emoticon on the chat interface of the instant message according to the play track and/or the effective time of the emoticon. - In various embodiments, the exemplary apparatus can further include a third obtaining module, and/or a renewing module. The third obtaining module can be configured to periodically obtain a configuration file from a server. The configuration file can at least include a corresponding relationship between the pre-set keywords and the emoticons. The renewing module can be configured to renew the local configuration file with the obtained configuration file.
- As disclosed, the terminal can receive an instant message inputted by the user and obtain the pre-set keyword contained in the instant message. According to the pre-set keyword contained in the instant message, the terminal can obtain the emoticon corresponding to the pre-set keyword and display the emoticon on the chat interface of the instant message. As such, according to the instant message, displaying the emoticon on the chat interface of the instant message can visually express what the user wants to express and thus increase chatting amusements between the user and friends of the user.
- In various embodiments, the disclosed modules/units in the exemplary apparatus as depicted above can be configured in one device or configured in multiple devices as desired. The modules disclosed herein can be integrated in one module or in multiple modules for processing messages. Each of the modules disclosed herein can be divided into one or more sub-modules, which can be recombined in any manners. The exemplary apparatus in
FIG. 7 can be used to perform the above-disclosed methods, e.g., inFIGS. 1-6 , for displaying emoticons on the chat interface of the instant message. - The disclosed embodiments can be examples only. One of ordinary skill in the art would appreciate that suitable software and/or hardware (e.g., a universal hardware platform) may be included and used to perform the disclosed methods. For example, the disclosed embodiments can be implemented by hardware only, which alternatively can be implemented by software products only. The software products can be stored in a storage medium (e.g., as shown in
FIG. 9 ). The software products can include suitable commands to enable a terminal device (e.g., including a mobile phone, a personal computer, a server, or a network device, etc.) to implement the disclosed embodiments. -
FIG. 8 depicts anexemplary environment 800 incorporating certain disclosed embodiments. As shown inFIG. 8 ,environment 800 may include aserver 804, a terminal or aclient 806, and/or acommunication network 802. Theserver 804 and theclient 806 may be coupled through thecommunication network 802 for information exchange, such as obtaining web data. Although only oneclient 806 and oneserver 804 are shown in theenvironment 800, any number ofclients 806 orservers 804 may be included, and other devices may also be included. -
Communication network 802 may include any appropriate type of communication network for providing network connections to theserver 804 andclient 806 or amongmultiple servers 804 orclients 806. For example,communication network 802 may include the Internet or other types of computer networks or telecommunication networks, either wired or wireless. - A terminal or a client, as used herein, may refer to any appropriate user terminal with certain computing capabilities, such as a personal computer (PC), a work station computer, a server computer, a hand-held computing device (tablet), a smart phone or mobile phone, or any other user-side computing device. Such terminals can be used in the disclosed methods as depicted in
FIGS. 1-6 . - A server, as used herein, may refer to one or more server computers configured to provide certain server functionalities, such as database management and search engines. A server may also include one or more processors to execute computer programs in parallel. In one embodiment, the server can be used in the disclosed methods as depicted in
FIGS. 1-6 . -
Server 804 and/orclient 806 may be implemented on any appropriate computing platform.FIG. 9 shows a block diagram of anexemplary computing system 900 capable of implementingserver 904 and/orclient 906. - As shown in
FIG. 9 ,computing system 900 may include aprocessor 902, astorage medium 904, amonitor 906, a communication module 908, adatabase 910, and/orperipherals 912. Certain devices may be omitted and other devices may be included. -
Processor 902 may include any appropriate processor or processors. Further,processor 902 can include multiple cores for multi-thread or parallel processing.Storage medium 904 may include memory modules, such as ROM, RAM, flash memory modules, and erasable and rewritable memory, and mass storages, such as CD-ROM, U-disk, and hard disk, etc.Storage medium 904 may store computer programs for implementing various processes, when executed byprocessor 902. - Further,
peripherals 912 may include I/O devices such as keyboard and mouse, and communication module 908 may include network devices for establishing connections through thecommunication network 902.Database 910 may include one or more databases for storing certain data and for performing certain operations on the stored data, such as database searching. - Other applications, advantages, alternations, modifications, or equivalents to the disclosed embodiments are obvious to those skilled in the art and are intended to be encompassed within the scope of the present disclosure.
- Without limiting the scope of any claim and/or the specification, examples of industrial applicability and certain advantageous effects of the disclosed embodiments are listed for illustrative purposes. Various alternations, modifications, or equivalents to the technical solutions of the disclosed embodiments can be obvious to those skilled in the art and can be included in this disclosure.
- Methods and apparatus for displaying an emoticon on a chat interface of an instant message are provided. In an exemplary method, an instant message can be received and a pre-set keyword contained in the instant message can be determined. An emoticon corresponding to the pre-set keyword contained in the instant message can then be obtained and displayed on the chat interface that displays the instant message.
- An exemplary apparatus can include a first obtaining module, a second obtaining module, and/or a displaying module. The first obtaining module can be configured to receive an instant message and obtain a pre-set keyword contained in the instant message. The second obtaining module can be configured to obtain an emoticon corresponding to the pre-set keyword contained in the instant message. The displaying module can be configured to display the emoticon on a chat interface displaying the instant message.
- In one embodiment, an instant message inputted by a user can be received. A pre-set keyword in the instant message can be determined and obtained. An emoticon corresponding to the pre-set keyword contained in the instant message can be obtained and displayed on a chat interface displaying the instant message. As such, displaying the emoticon on the chat interface that displays the instant message can visually express what the user wants to express and can increase chatting amusements between the user and friends of the user.
Claims (14)
1. A method for displaying an emoticon, comprising:
receiving an instant message and obtaining a pre-set keyword contained in the instant message;
obtaining an emoticon corresponding to the pre-set keyword contained in the instant message; and
displaying the emoticon on a chat interface displaying the instant message.
2. The method of claim 1 , wherein the obtaining of the emoticon corresponding to the pre-set keyword comprises:
according to the pre-set keyword, obtaining the emoticon corresponding to the pre-set keyword from a local configuration file, wherein the local configuration file comprises a corresponding relationship between pre-set keywords and emoticons.
3. The method of claim 2 , wherein the local configuration file further comprises: a play track, an effective time, and their combinations, of each emoticon included in the corresponding relationship, and wherein, after obtaining the emoticon corresponding to the pre-set keyword from the local configuration file, the method further comprises:
obtaining, the play track, the effective time, and their combinations, of the emoticon from the local configuration file.
4. The method of claim 3 , wherein the displaying of the emoticon on the chat interface comprises:
displaying the emoticon on the chat interface based on the play track, the effective time, and their combinations, of the emoticon.
5. The method of claim 1 , further comprising:
periodically obtaining a configuration file from a server, the configuration file at least comprising a corresponding relationship between pre-set keywords and emoticons; and
renewing a local configuration file with the obtained configuration file.
6. The method of claim 1 , wherein the pre-set keyword contained in the instant message is obtained by:
determining if the instant message contains a text message;
obtaining a collection of pre-set keywords from a local configuration file, when the instant message is determined that contains the text message;
searching the text message contained in the instant message for each pre-set keyword from the collection of pre-set keywords; and
when a pre-set keyword in the collection of pre-set keywords is found in the instant message, determining the found pre-set keyword is the pre-set keyword contained in the instant message.
7. The method of claim 1 , wherein the pre-set keyword contained in the instant message is obtained by:
determining if the instant message contains a text message;
segmenting the instant message to obtain segmented words contained in the instant message, when the instant message is determined that contains the text message;
obtaining a collection of pre-set keywords from a local configuration file;
comparing each segmented word contained in the instant message with each pre-set keyword in the collection of pre-set keywords; and
determining a segmented word from the instant message that is a same as in a pre-set keyword from the collection of pre-set keywords as the pre-set keyword contained in the instant message.
8. An apparatus for displaying an emoticon, comprising:
a first obtaining module, configured to receive an instant message and to obtain a pre-set keyword contained in the instant message;
a second obtaining module, configured to obtain an emoticon corresponding to the pre-set keyword contained in the instant message; and
a displaying module, configured to display the emoticon on a chat interface displaying the instant message.
9. The apparatus of claim 8 , wherein the second obtaining module comprises:
a first obtaining unit, configured to obtain the emoticon corresponding to the pre-set keyword from a local configuration file, wherein the local configuration file is configured to store a corresponding relationship between pre-set keywords and emoticons.
10. The apparatus of claim 9 , wherein the local configuration file is further configured to store a play track, an effective time, and their combinations, of the emoticon included in the corresponding relationship, and wherein the second obtaining module further comprises:
a second obtaining unit, configured to obtain the play track, the effective time, and their combinations, of the emoticon from the local configuration file.
11. The apparatus of claim 10 , wherein the displaying module comprises:
a displaying unit, configured to display the emoticon on the chat interface based on the play track, the effective time, and their combinations, of the emoticon.
12. The apparatus of claim 8 , further comprising:
a third obtaining module, configured to periodically obtain a configuration file from a server, the configuration file at least comprising a corresponding relationship between pre-set keywords and emoticons; and
a renewing module, configured to renew a local configuration file with the obtained configuration file.
13. The apparatus of claim 8 , wherein, to obtain the pre-set keyword contained in the instant message, the first obtaining module is configured to:
determine if the instant message contains a text message;
obtain a collection of pre-set keywords from a local configuration file, when the instant message is determined that contains the text message;
search the text message contained in the instant message for each pre-set keyword from the collection of pre-set keywords; and
when a pre-set keyword in the collection of pre-set keywords is found in the instant message, determine the found pre-set keyword is the pre-set keyword contained in the instant message.
14. The apparatus of claim 8 , wherein, to obtain the pre-set keyword contained in the instant message, the first obtaining module is configured to:
determine if the instant message contains a text message;
segment the instant message to obtain segmented words contained in the instant message, when the instant message is determined that contains the text message;
obtain a collection of pre-set keywords from a local configuration file;
compare each segmented word contained in the instant message with each pre-set keyword in the collection of pre-set keywords; and
determine a segmented word from the instant message that is a same as in a pre-set keyword from the collection of pre-set keywords as the pre-set keyword contained in the instant message.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310156500.XA CN104125139A (en) | 2013-04-28 | 2013-04-28 | Method and apparatus for displaying expression |
CN201310156500.X | 2013-04-28 | ||
PCT/CN2013/076397 WO2014176803A1 (en) | 2013-04-28 | 2013-05-29 | Method and apparatus for displaying emoticon |
Publications (1)
Publication Number | Publication Date |
---|---|
US20140324414A1 true US20140324414A1 (en) | 2014-10-30 |
Family
ID=51789965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/126,439 Abandoned US20140324414A1 (en) | 2013-04-28 | 2013-05-29 | Method and apparatus for displaying emoticon |
Country Status (1)
Country | Link |
---|---|
US (1) | US20140324414A1 (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850335A (en) * | 2015-05-28 | 2015-08-19 | 瞬联软件科技(北京)有限公司 | Expression curve generating method based on voice input |
CN106648778A (en) * | 2016-12-23 | 2017-05-10 | 腾讯音乐娱乐(深圳)有限公司 | Dynamic image display method and terminal |
CN106789543A (en) * | 2015-11-20 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The method and apparatus that facial expression image sends are realized in session |
US20180343336A1 (en) * | 2015-11-10 | 2018-11-29 | Samsung Electronics Co., Ltd. | Method for supporting voice calls in communication terminal |
CN109036403A (en) * | 2018-07-20 | 2018-12-18 | 北京小米移动软件有限公司 | Information interacting method and device |
US10425368B2 (en) | 2015-02-11 | 2019-09-24 | Tencent Technology (Shenzhen) Company Limited | Information processing method, user equipment, server, and computer-readable storage medium |
US10528219B2 (en) | 2015-08-10 | 2020-01-07 | Tung Inc. | Conversion and display of a user input |
US10554805B2 (en) | 2015-02-10 | 2020-02-04 | Tencent Technology (Shenzhen) Company Limited | Information processing method, terminal, and computer-readable storage medium |
US10652287B2 (en) | 2015-01-20 | 2020-05-12 | Tencent Technology (Shenzhen) Company Limited | Method, device, and system for managing information recommendation |
US10812418B2 (en) | 2017-01-17 | 2020-10-20 | Samsung Electronics Co., Ltd. | Message generation method and wearable electronic device for supporting the same |
US10880244B2 (en) | 2013-07-02 | 2020-12-29 | Huawei Technologies Co., Ltd. | Method, apparatus, and client for displaying media information, and method and apparatus for displaying graphical controls |
US10877629B2 (en) | 2016-10-13 | 2020-12-29 | Tung Inc. | Conversion and display of a user input |
US11011166B2 (en) * | 2018-11-29 | 2021-05-18 | International Business Machines Corporation | Voice message categorization and tagging |
US20220210102A1 (en) * | 2018-03-29 | 2022-06-30 | TipeME Holdings Pty Ltd | A System and Method for Allowing Messaging Between a First Computing Device Operated by a First User and a Second Computing Device Operated by a Second User and a Structured Message Data Set for Use in that System and Method |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020077135A1 (en) * | 2000-12-16 | 2002-06-20 | Samsung Electronics Co., Ltd. | Emoticon input method for mobile terminal |
US20040221224A1 (en) * | 2002-11-21 | 2004-11-04 | Blattner Patrick D. | Multiple avatar personalities |
US20050143108A1 (en) * | 2003-12-27 | 2005-06-30 | Samsung Electronics Co., Ltd. | Apparatus and method for processing a message using avatars in a wireless telephone |
US20050156873A1 (en) * | 2004-01-20 | 2005-07-21 | Microsoft Corporation | Custom emoticons |
US20050248574A1 (en) * | 2004-01-30 | 2005-11-10 | Ashish Ashtekar | Method and apparatus for providing flash-based avatars |
US20060015812A1 (en) * | 2004-07-15 | 2006-01-19 | Cingular Wireless Ii, Llc | Using emoticons, such as for wireless devices |
US20070040850A1 (en) * | 2005-08-04 | 2007-02-22 | Txtstation Global Limited | Media delivery system and method |
US20070094330A1 (en) * | 2002-07-31 | 2007-04-26 | Nicholas Russell | Animated messaging |
US20080022128A1 (en) * | 1999-05-28 | 2008-01-24 | Proudler Graeme J | System for providing a trustworthy user interface |
US7685237B1 (en) * | 2002-05-31 | 2010-03-23 | Aol Inc. | Multiple personalities in chat communications |
US20100179991A1 (en) * | 2006-01-16 | 2010-07-15 | Zlango Ltd. | Iconic Communication |
US20110037767A1 (en) * | 2009-08-13 | 2011-02-17 | Xavier Casanova | Video in e-mail |
US7913176B1 (en) * | 2003-03-03 | 2011-03-22 | Aol Inc. | Applying access controls to communications with avatars |
US20120059787A1 (en) * | 2010-09-07 | 2012-03-08 | Research In Motion Limited | Dynamically Manipulating An Emoticon or Avatar |
US20130012245A1 (en) * | 2011-07-06 | 2013-01-10 | Samsung Electronics Co., Ltd. | Apparatus and method for transmitting message in mobile terminal |
US20130159919A1 (en) * | 2011-12-19 | 2013-06-20 | Gabriel Leydon | Systems and Methods for Identifying and Suggesting Emoticons |
US20130275525A1 (en) * | 2012-04-17 | 2013-10-17 | Trenda Media, LLC | Messaging system and method |
US20130339983A1 (en) * | 2012-06-18 | 2013-12-19 | Microsoft Corporation | Creation and context-aware presentation of customized emoticon item sets |
USD755225S1 (en) * | 2014-06-30 | 2016-05-03 | Aliphcom | Display screen or portion thereof with animated graphical user interface |
US20160350981A1 (en) * | 2015-05-27 | 2016-12-01 | SuperD Co. Ltd | Image processing method and device |
-
2013
- 2013-05-29 US US14/126,439 patent/US20140324414A1/en not_active Abandoned
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080022128A1 (en) * | 1999-05-28 | 2008-01-24 | Proudler Graeme J | System for providing a trustworthy user interface |
US20020077135A1 (en) * | 2000-12-16 | 2002-06-20 | Samsung Electronics Co., Ltd. | Emoticon input method for mobile terminal |
US7685237B1 (en) * | 2002-05-31 | 2010-03-23 | Aol Inc. | Multiple personalities in chat communications |
US20070094330A1 (en) * | 2002-07-31 | 2007-04-26 | Nicholas Russell | Animated messaging |
US20040221224A1 (en) * | 2002-11-21 | 2004-11-04 | Blattner Patrick D. | Multiple avatar personalities |
US7913176B1 (en) * | 2003-03-03 | 2011-03-22 | Aol Inc. | Applying access controls to communications with avatars |
US20050143108A1 (en) * | 2003-12-27 | 2005-06-30 | Samsung Electronics Co., Ltd. | Apparatus and method for processing a message using avatars in a wireless telephone |
US20050156873A1 (en) * | 2004-01-20 | 2005-07-21 | Microsoft Corporation | Custom emoticons |
US20050248574A1 (en) * | 2004-01-30 | 2005-11-10 | Ashish Ashtekar | Method and apparatus for providing flash-based avatars |
US20060015812A1 (en) * | 2004-07-15 | 2006-01-19 | Cingular Wireless Ii, Llc | Using emoticons, such as for wireless devices |
US20070040850A1 (en) * | 2005-08-04 | 2007-02-22 | Txtstation Global Limited | Media delivery system and method |
US20100179991A1 (en) * | 2006-01-16 | 2010-07-15 | Zlango Ltd. | Iconic Communication |
US20110037767A1 (en) * | 2009-08-13 | 2011-02-17 | Xavier Casanova | Video in e-mail |
US20120059787A1 (en) * | 2010-09-07 | 2012-03-08 | Research In Motion Limited | Dynamically Manipulating An Emoticon or Avatar |
US20130012245A1 (en) * | 2011-07-06 | 2013-01-10 | Samsung Electronics Co., Ltd. | Apparatus and method for transmitting message in mobile terminal |
US20130159919A1 (en) * | 2011-12-19 | 2013-06-20 | Gabriel Leydon | Systems and Methods for Identifying and Suggesting Emoticons |
US20130275525A1 (en) * | 2012-04-17 | 2013-10-17 | Trenda Media, LLC | Messaging system and method |
US20130339983A1 (en) * | 2012-06-18 | 2013-12-19 | Microsoft Corporation | Creation and context-aware presentation of customized emoticon item sets |
USD755225S1 (en) * | 2014-06-30 | 2016-05-03 | Aliphcom | Display screen or portion thereof with animated graphical user interface |
US20160350981A1 (en) * | 2015-05-27 | 2016-12-01 | SuperD Co. Ltd | Image processing method and device |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11700217B2 (en) * | 2013-07-02 | 2023-07-11 | Huawei Technologies Co., Ltd. | Displaying media information and graphical controls for a chat application |
US10880244B2 (en) | 2013-07-02 | 2020-12-29 | Huawei Technologies Co., Ltd. | Method, apparatus, and client for displaying media information, and method and apparatus for displaying graphical controls |
US10652287B2 (en) | 2015-01-20 | 2020-05-12 | Tencent Technology (Shenzhen) Company Limited | Method, device, and system for managing information recommendation |
US10554805B2 (en) | 2015-02-10 | 2020-02-04 | Tencent Technology (Shenzhen) Company Limited | Information processing method, terminal, and computer-readable storage medium |
US10425368B2 (en) | 2015-02-11 | 2019-09-24 | Tencent Technology (Shenzhen) Company Limited | Information processing method, user equipment, server, and computer-readable storage medium |
CN104850335A (en) * | 2015-05-28 | 2015-08-19 | 瞬联软件科技(北京)有限公司 | Expression curve generating method based on voice input |
US10521071B2 (en) * | 2015-05-28 | 2019-12-31 | Cienet Technologies (Beijing) Co., Ltd. | Expression curve generating method based on voice input and device thereof |
US11199941B2 (en) | 2015-08-10 | 2021-12-14 | Tung Inc. | Conversion and display of a user input |
US10528219B2 (en) | 2015-08-10 | 2020-01-07 | Tung Inc. | Conversion and display of a user input |
US11039001B2 (en) * | 2015-11-10 | 2021-06-15 | Samsung Electronics Co., Ltd. | Method for supporting voice calls in communication terminal |
US20180343336A1 (en) * | 2015-11-10 | 2018-11-29 | Samsung Electronics Co., Ltd. | Method for supporting voice calls in communication terminal |
US20180018319A1 (en) * | 2015-11-20 | 2018-01-18 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for sending sticker image during chat session |
CN106789543A (en) * | 2015-11-20 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The method and apparatus that facial expression image sends are realized in session |
US11256865B2 (en) * | 2015-11-20 | 2022-02-22 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for sending sticker image during chat session |
US10877629B2 (en) | 2016-10-13 | 2020-12-29 | Tung Inc. | Conversion and display of a user input |
CN106648778A (en) * | 2016-12-23 | 2017-05-10 | 腾讯音乐娱乐(深圳)有限公司 | Dynamic image display method and terminal |
US10812418B2 (en) | 2017-01-17 | 2020-10-20 | Samsung Electronics Co., Ltd. | Message generation method and wearable electronic device for supporting the same |
US20220210102A1 (en) * | 2018-03-29 | 2022-06-30 | TipeME Holdings Pty Ltd | A System and Method for Allowing Messaging Between a First Computing Device Operated by a First User and a Second Computing Device Operated by a Second User and a Structured Message Data Set for Use in that System and Method |
CN109036403A (en) * | 2018-07-20 | 2018-12-18 | 北京小米移动软件有限公司 | Information interacting method and device |
US11011166B2 (en) * | 2018-11-29 | 2021-05-18 | International Business Machines Corporation | Voice message categorization and tagging |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140324414A1 (en) | Method and apparatus for displaying emoticon | |
WO2014176803A1 (en) | Method and apparatus for displaying emoticon | |
CN105608593B (en) | Monitoring and responding to social media posts with socially relevant comparisons | |
AU2011235030B2 (en) | Conversational question and answer | |
US10845949B2 (en) | Continuity of experience card for index | |
US9253137B1 (en) | Concurrent display of conversation messages and social network posts by conversation message authors | |
US8977698B2 (en) | Tagging content within a networking environment based upon recipients receiving the content | |
US20170091717A1 (en) | Auto extraction of tasks from unstructured communications such as emails and messages | |
CN106302085A (en) | The recommendation method and system of instant messaging group | |
US20130268516A1 (en) | Systems And Methods For Analyzing And Visualizing Social Events | |
US9203792B2 (en) | Integration system providing conversation messages and social network posts by conversation message authors to client | |
US20180302761A1 (en) | Recommendation System for Multi-party Communication Sessions | |
US10122673B2 (en) | Methods and systems for aggregating user generated content | |
WO2013071064A1 (en) | Dynamic playbook: experimentation platform for social networks | |
WO2014015787A1 (en) | Method, server, and client for pushing and displaying splash screen | |
US20160239533A1 (en) | Identity workflow that utilizes multiple storage engines to support various lifecycles | |
US10664482B2 (en) | Providing relevance based dynamic hashtag navigation | |
US8856112B2 (en) | Considering document endorsements when processing queries | |
CN107370661A (en) | Message sending method and device based on contact list and electronic equipment | |
US11138211B2 (en) | Determining key contributors for documents | |
US10104034B1 (en) | Providing invitations based on cross-platform information | |
CN118612520A (en) | Message interaction method, device, equipment and storage medium | |
US10242106B2 (en) | Enhance search assist system's freshness by extracting phrases from news articles | |
US10601749B1 (en) | Trends in a messaging platform | |
US20150026266A1 (en) | Share to stream |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, CHI Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ZHANG, XIAOLONG;LIN, QIANYA;LI, MIN;AND OTHERS;REEL/FRAME:031784/0037 Effective date: 20131118 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |