CN105160033A - Expression character string processing method and device - Google Patents

Expression character string processing method and device Download PDF

Info

Publication number
CN105160033A
CN105160033A CN201510642793.1A CN201510642793A CN105160033A CN 105160033 A CN105160033 A CN 105160033A CN 201510642793 A CN201510642793 A CN 201510642793A CN 105160033 A CN105160033 A CN 105160033A
Authority
CN
China
Prior art keywords
expression
picture
character string
feelings
single code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510642793.1A
Other languages
Chinese (zh)
Other versions
CN105160033B (en
Inventor
郭伟
夏伟成
孟伟奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510642793.1A priority Critical patent/CN105160033B/en
Publication of CN105160033A publication Critical patent/CN105160033A/en
Priority to PCT/CN2016/096919 priority patent/WO2017054597A1/en
Application granted granted Critical
Publication of CN105160033B publication Critical patent/CN105160033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/432Query formulation
    • G06F16/434Query formulation using image data, e.g. images, photos, pictures taken by a user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

The invention provides an expression character string processing method and device. According to the method, on the basis of a first mapping relation, a second mapping relation of an expression character string and a unicode is added for image expressions with the first mapping relation of an image expression and the expression character string; a corresponding mapping relation is established between the image expression and the unicode by combining the first mapping relation and the second mapping relation; when processing information of a certain image expression is received, the unicode corresponding to the image expression is found by use of the corresponding mapping relation between the image expression and the unicode; and a processing operation carried in the processing information is performed on the found unicode. Through adoption of the method, the problem that the image expression processing operation needs to be carried out for many times is solved.

Description

The disposal route of expression character string and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of disposal route and device of character string of expressing one's feelings.
Background technology
The Emoji meaning of a word is from Japanese え も じ, and the implication in Japanese is character, and be the visual emotion symbol that Japan is used in wireless communications, after the IOS5 input method issued in Apple introduces Emoji, this emoticon comes into vogue gradually.At present, picture expression almost obtains in all mobile chat softwares to be applied widely, and such as micro-letter, credulity, QQ support the transmission of expressing one's feelings.Picture expression is a character string meeting specific format in essence, most implementation is all that picture expression and the character string corresponding to it are set up one deck corresponding relation, such as " [: smile] " correspond to " smile " expression, " and [: cry] " correspond to " sobbing " expression.
The TextView control that operating system carries has powerful image mixed character typeset processing power, it realizes mainly through image mixed character typeset function SpannableString the conversion that text expresses one's feelings to picture easily, word within the scope of formulation can be replaced with Emoji expression, but although display is expression in specified scope, what in fact TextView control inside was preserved is still original character string, namely picture expression and character string are regarded as two independent individualities and exist, when causing some application (such as input method) to carry out the process of picture expression, needing repeatedly could complete operation to the execution of this picture expression.Such as, Fig. 1 shows an exemplary plot of client input picture expression in prior art, the picture expression coming the 2nd in Fig. 1 needs to delete, Fig. 2 shows the exemplary plot that client in prior art carries out occurring after picture expression is deleted expression coding, as seen from Figure 2, after deleting picture expression, the original character string on backstage "/:: " still exist, and be presented in the interface of client, if desired incite somebody to action "/:: " delete, then need secondary to carry out deletion action.
This shows, in prior art, picture expression process operation may need multi-pass operations to complete, and increasing of number of operations can waste corresponding resource, too increases operation easier simultaneously.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the disposal route of expression character string solved the problem at least in part and device.
Based on one aspect of the present invention, provide a kind of disposal route of character string of expressing one's feelings, comprising:
To express one's feelings-expressing one's feelings the picture expression of the first mapping relations of character string for possessing picture, on the basis of described first mapping relations, increasing expression character string and second mapping relations of single code unicode;
In conjunction with described first mapping relations and described second mapping relations, to set up correspondence mappings relation in described picture expression and described single intersymbol.
Alternatively, also comprise:
When receiving the processing messages of certain picture expression, utilize the correspondence mappings relation in described picture expression and described single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture;
The single code found is performed to the process operation of carrying in described processing messages.
Alternatively, utilize the correspondence mappings relation in described picture expression and described single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture, comprising:
According to described first mapping relations, find the expression character string that this picture expression is corresponding;
And then, according to described second mapping relations, find the single code corresponding with this expression character string.
Alternatively, the single code found is performed to the process operation of carrying in described processing messages, comprising:
Call the process function corresponding with described processing messages;
Utilize the transformational relation that described in described process function setup, single code and described picture are expressed one's feelings between bitmap;
Utilize described process function described single code to be performed to the process operation of carrying in described processing messages, and described process operation map to be expressed one's feelings bitmap by the transformational relation utilizing described single code and described picture to express one's feelings between bitmap to described picture.
Alternatively, after the Text Input comprising picture expression described at least one terminates, as follows the text is uploaded onto the server:
Obtain the content of text of described text;
Parse single code wherein, utilize the single code stored in expression storehouse to find corresponding expression character string with the reverse Mapping relation of expression character string;
The expression character string of the correspondence found out is used to replace the described position of single code in described text;
Upload onto the server replacing the text terminating to obtain.
Based on another aspect of the present invention, additionally provide a kind for the treatment of apparatus of character string of expressing one's feelings, comprising:
Increase module, being suitable for expressing one's feelings-expressing one's feelings the picture expression of the first mapping relations of character string for possessing picture, on the basis of described first mapping relations, increasing expression character string and second mapping relations of single code unicode;
Set up module, be suitable in conjunction with described first mapping relations and described second mapping relations, to set up correspondence mappings relation in described picture expression and described single intersymbol.
Alternatively, also comprise:
Search module, when being suitable for receiving the processing messages of certain picture expression, utilize the correspondence mappings relation in described picture expression and described single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture;
Processing module, is suitable for performing the process operation of carrying in described processing messages to the single code found.
Alternatively, search module described in be also suitable for:
According to described first mapping relations, find the expression character string that this picture expression is corresponding;
And then, according to described second mapping relations, find the single code corresponding with this expression character string.
Alternatively, search module described in be also suitable for:
Call the process function corresponding with described processing messages;
Utilize the transformational relation that described in described process function setup, single code and described picture are expressed one's feelings between bitmap;
Utilize described process function described single code to be performed to the process operation of carrying in described processing messages, and described process operation map to be expressed one's feelings bitmap by the transformational relation utilizing described single code and described picture to express one's feelings between bitmap to described picture.
Alternatively, also comprise:
Upper transmission module, is suitable for, after the Text Input comprising picture expression described at least one terminates, the text being uploaded onto the server as follows:
Obtain the content of text of described text;
Parse single code wherein, utilize the single code stored in expression storehouse to find corresponding expression character string with the reverse Mapping relation of expression character string;
The expression character string of the correspondence found out is used to replace the described position of single code in described text;
Upload onto the server replacing the text terminating to obtain.
Embodiments provide a kind of disposal route and device of character string of expressing one's feelings, because the first mapping relations of picture expression and expression character string are for identifying that picture exists certain leak when expressing one's feelings, cause picture to be expressed one's feelings may being regarded as two independent individualities with expression character string existing, now, if desired expression is processed, may need execution repeatedly just can complete process, for solving this technical matters, invention increases second mapping relations of expression character string and unicode, unicode is a kind of international standard code used on computers, can with unified and the character of dataphone may be used in the writing language that unique binary coding representation is all in the world, pictograph and other symbols, namely, unicode possesses uniqueness.Exactly because unicode possesses uniqueness, picture is expressed one's feelings, the mapping relations set up between expression character string and unicode three also have uniqueness, if now process picture expression, other two elements can be found by any one element possessed in the mapping relations of uniqueness, thus the operation making picture express one's feelings also possesses uniqueness, when any one element is operated, all can express one's feelings according to picture, the mapping relations possessing uniqueness set up between expression character string and unicode three, other two elements related to are processed, therefore, it is possible to ensure once to complete the process of picture expression, thus avoid one expression process need multi-pass operations to cause time slow, the wasting of resources, user experiences and experiences the problem such as poor.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows an exemplary plot of client input picture expression in prior art;
Fig. 2 shows the exemplary plot that client in prior art carries out occurring after picture expression is deleted expression coding;
Fig. 3 shows the processing flow chart of the disposal route of character string of expressing one's feelings according to an embodiment of the invention;
Fig. 4 shows the mapping relations schematic diagram of picture expression, expression character string and single code according to an embodiment of the invention;
Fig. 5 shows the processing flow chart of the processing mode of picture expression according to an embodiment of the invention;
Fig. 6 show comprise according to an embodiment of the invention at least one picture expression Text Input terminate after, the processing flow chart that the text is uploaded onto the server;
Fig. 7 show the expression of picture according to an embodiment of the invention, expression character string and single code in conjunction with reverse Mapping relation schematic diagram;
Fig. 8 shows the structural representation of the treating apparatus of character string of expressing one's feelings according to an embodiment of the invention;
Fig. 9 shows the another kind of structural representation of the treating apparatus of character string of expressing one's feelings according to an embodiment of the invention;
Figure 10 shows the another kind of structural representation of the treating apparatus of character string of expressing one's feelings according to an embodiment of the invention; And
Figure 11 shows the system schematic of transmission of messages between multi-client in accordance with a preferred embodiment of the present invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For solving the problems of the technologies described above, embodiments provide a kind of disposal route of character string of expressing one's feelings.Fig. 3 shows the processing flow chart of the disposal route of character string of expressing one's feelings according to an embodiment of the invention.See Fig. 3, the method at least comprises the following steps S302 to step S304.
First, perform step S302, expressing one's feelings for possessing the picture of picture expression with the first mapping relations of expression character string, on the basis of the first mapping relations, increasing the second mapping relations of expression character string and single code (unicode).
It should be noted that, in embodiments of the present invention, picture expression is the existing mapping relations of expressing one's feelings in storehouse with the first mapping relations of expression character string, because the identity of the first mapping relations has certain leak, cause picture to be expressed one's feelings and expression character string may be regarded as two independent individualities and exists, and then need to perform the process that repeatedly can complete picture expression.For solving this technical matters, the embodiment of the present invention is improved the first mapping relations, on the basis of the first mapping relations, adds the second mapping relations, the mapping relations of namely expressing one's feelings between character string and single code.
Particularly, in one embodiment, an Emoji expression storehouse is set, this expression storehouse comprises conventional picture expression, store the first mapping relations of picture expression and its corresponding character string in this Emoji expression storehouse simultaneously, in addition, all picture expressions of this Emoji class can be kept in class catalogue (such as: assets catalogue).
The increase expression character string mentioned according to step S302 and second mapping relations of unicode process the expression character string that the Emoji of the present embodiment expresses one's feelings in storehouse, for it arranges corresponding unicode.That unicode is a kind of international standard code used on computers with should be noted that, can with unified and the character of dataphone, pictograph and other symbols may be used in the writing language that unique binary coding representation is all in the world.Exactly because unicode possesses uniqueness, picture is expressed one's feelings, between expression character string and unicode three, the mapping relations set up also have uniqueness, each like this picture expression can with a unique character representation.During executive routine, because of the uniqueness of the mapping relations that uniqueness and the three of backstage acquiescence unicode set up, other two elements can be found by any one element possessed in the mapping relations of uniqueness, thus the operation making picture express one's feelings also possesses uniqueness, when any one element is operated, all can express one's feelings according to picture, the mapping relations possessing uniqueness set up between expression character string and unicode three, other two elements related to are processed, can ensure once to complete the process of picture expression, thus avoid one expression process need multi-pass operations to cause time slow, the wasting of resources, user experiences and experiences the problem such as poor.Further, for ensureing that institute's espressiove in whole Emoji expression storehouse all there will not be repeatedly process can complete the situation of a processing demands, preferably, whole pictures expressions in whole Emoji expression storehouse all can be set up the second mapping relations, make each picture expression in expression storehouse all can be mapped to unique unicode, when any picture expression in expression storehouse is processed, because of the uniqueness of the mapping relations that uniqueness and the three of unicode set up, the operational processes of each picture expression all can once complete.
Wherein, the single code set up is arranged at the white space of client by the embodiment of the present invention, it is made to make full use of the white space of client, and it is succinct to make the single code set up know, its mapping relations of setting up also easily obtain, existing Code obfuscation with other is avoided at the same area, to cause code to superpose the confusion caused, also reduce acquisition difficulty.
In practical application, the second mapping relations between the expression character string increased and unicode can be kept in class catalogue (such as: assets catalogue) by the data interchange format of lightweight (such as: json), can be defined as the mapping table of following form:
{"unicode":"0xF001","imgCode":"[:smile]"}
{"unicode":"0xF002","imgCode":"[:cry]"}
......
When picture expression handling procedure runs, above-mentioned mapping table is loaded on internal memory, searches for client, extract, process etc.
After step S302 has set up the second mapping relations, the embodiment of the present invention performs step S304, in conjunction with the first mapping relations and the second mapping relations, to set up correspondence mappings relation in picture expression and single intersymbol.
Particularly, Fig. 4 shows the mapping relations schematic diagram of picture expression, expression character string and unicode according to an embodiment of the invention.See Fig. 4, the combination both the first mapping relations and the second mapping relations are realized by expression character string, makes picture express one's feelings and sets up corresponding mapping relations with unicode.For expression of smiling, in conjunction with smile picture expression and the first mapping relations of character string " [: smile] " and " [: smile] " and single code " 0xF001 " second mapping relations of express one's feelings of smiling, express one's feelings at smile picture and set up corresponding mapping relations with single code " 0xF001 ".
In summary, embodiments provide a kind of disposal route and device of character string of expressing one's feelings, because the first mapping relations of picture expression and expression character string are for identifying that picture exists certain leak when expressing one's feelings, cause picture to be expressed one's feelings may being regarded as two independent individualities with expression character string existing, now, if desired expression is processed, may need execution repeatedly just can complete process, for solving this technical matters, invention increases second mapping relations of expression character string and unicode, unicode is a kind of international standard code used on computers, can with unified and the character of dataphone may be used in the writing language that unique binary coding representation is all in the world, pictograph and other symbols, namely, unicode possesses uniqueness.Exactly because unicode possesses uniqueness, picture is expressed one's feelings, the mapping relations set up between expression character string and unicode three also have uniqueness, if now process picture expression, other two elements can be found by any one element possessed in the mapping relations of uniqueness, thus the operation making picture express one's feelings also possesses uniqueness, when any one element is operated, all can express one's feelings according to picture, the mapping relations possessing uniqueness set up between expression character string and unicode three, other two elements related to are processed, therefore, it is possible to ensure once to complete the process of picture expression, thus avoid one expression process need multi-pass operations to cause time slow, the wasting of resources, user experiences and experiences the problem such as poor.
Picture expression with set up corresponding mapping relations (i.e. step S304) between single code after, if receive certain picture express one's feelings processing messages, then can according to the unicode set up to picture express one's feelings process.Particularly, Fig. 5 shows the processing flow chart of the processing mode of picture expression according to an embodiment of the invention.See Fig. 5, the method at least comprises step S502 to step S504.
Step S502, when receiving the processing messages of certain picture expression, utilize this picture to express one's feelings and the correspondence mappings relation of single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture;
Step S504, the single code found is performed to the process operation of carrying in the processing messages of step S502.
In embodiments of the present invention, as mentioned before, because single code possesses uniqueness, triangular mapping relations are made also to possess uniqueness, make that also uniqueness is possessed to the operation of picture expression, after the complete process operation of single code, picture on operation interface is expressed one's feelings in background program, has a unique character representation, when again this picture expression being processed, backstage all processes the picture expression of single code correspondence and expression character string, thus avoid because of one expression process need multi-pass operations to cause time slow, the wasting of resources, user experiences and experiences the problem such as poor.
In the embodiment of the present invention, the subject of implementation of above-mentioned steps may be instant communication client, and such as QQ, credulity, micro-letter, note, multimedia message etc. can use the text formatting such as word, picture to carry out the client linked up.
Further, in a preferred embodiment of the invention, the corresponding single code of expressing one's feelings with picture of finding mentioned by step S502 specifically can comprise the steps:
Step 1, according to first mapping relations of picture expression with expression character string, find the expression character string that this picture expression is corresponding;
Step 2, according to expression character string and second mapping relations of unicode, according to the expression character string found in step 1, find the single code corresponding with this expression character string further.
Particularly, for expression of smiling, during input smile picture expression, the first mapping relations by setting up when program is run, find expression character string corresponding to smile picture expression " [: smile] ", by increasing the second mapping relations set up, find the single code " 0xF001 " that this expression character string is corresponding.
In a preferred embodiment of the invention, the mentioned single code to finding of step S504 performs the process operation of carrying in processing messages, can comprise the steps:
Step 1, call the process function corresponding with processing messages;
Step 2, the transformational relation utilizing the process single code of function setup and picture to express one's feelings between bitmap;
Step 3, utilize process function single code to be performed to the process operation of carrying in above-mentioned processing messages, and the transformational relation utilizing single code and picture to express one's feelings between bitmap will process operation map to express one's feelings bitmap to picture.
The single code of utilization process function setup that in the embodiment of the present invention, step 2 is mentioned and the transformational relation that picture is expressed one's feelings between bitmap, wherein, picture expression bitmap is formed by all picture expressions parsing in Emoji expression storehouse, namely picture expression is first needed to be converted into Windows standard format graphic file, and then Windows standard format graphic file is resolved, form bitmap file (bitmap), bitmap uses pel array to represent that picture is expressed one's feelings, picture expression is defined as and is made up of point (such as pixel), each point can be represented by multicolour, comprise 2, 4, 8, 16, 24 and 32 colors.After each picture expression is resolved to corresponding bitmap file bitmap, filename corresponding with it for the bitmap of correspondence is matched, and preserves matching result with list (List), everyly in List can be defined as following form,
For expression of smiling,
Each picture expression in database is resolved into corresponding bitmap and preserves, and correspondingly, when carrying out the process of picture expression, can call corresponding bitmap and being presented at client end interface.
Particularly, example is input as with smile expression, search " 0xF001 " after single code corresponding to smile picture expression, because importation comprises picture, a newly-built image mixed character typeset function SpannableString is needed in Textview control when program is run, then call the single code of setSpan function setup " 0xF001 " and smile picture to express one's feelings the transformational relation of corresponding bitmap file, the single code " 0xF001 " being about to find is converted to bitmap file, finally the SpannableString obtained is inserted into the input that Edit Text present cursor position completes smile picture expression.
For conventional instant messaging class client, information transmission is both sides, and any one information (commonly text message) is generated by local client, after uploading onto the server, by server, this information is processed, and then the information after process is forwarded to the other side's client.As can be seen here, after information generates, server end and the other side's client all need to identify corresponding information.And in the embodiment of the present invention, the second mapping relations have been set up to picture expression, if directly sent comprising the picture expression of having set up the second mapping relations, then server, the other side's client all may to this None-identifieds.
Therefore, for content of text, in order to ensure that server can identify content of text, and content of text intactly can be forwarded to the other side's client, need to process content of text.Fig. 6 show comprise according to an embodiment of the invention at least one picture expression Text Input terminate after, the processing flow chart that the text is uploaded onto the server.See Fig. 6, the flow process that the text is uploaded at least comprises step S602 to step S608.
The content of text of step S602, acquisition text;
Step S604, parse single code wherein, utilize the single code stored in expression storehouse to find corresponding expression character string with the reverse Mapping relation of character string of expressing one's feelings;
The expression character string of the correspondence that step S606, use find out replaces the position of single code in above-mentioned text;
Step S608, terminate the text that obtains upload onto the server replacing.
In the embodiment of the present invention, step S604 utilizes the reverse Mapping relation of expression character string and unicode, find the expression character string that unicode is corresponding, Fig. 7 show the expression of picture according to an embodiment of the invention, expression character string and unicode in conjunction with reverse Mapping relation schematic diagram.In actual applications, the mapping relations of picture expression, expression character string and unicode are all reversible, what such as some intelligent machine kernel can identify is expression character string, the reverse Mapping relation that expression character string and picture just can be used in actual treatment to express one's feelings finds picture and expresses one's feelings, and then the expression that Shows Picture.In like manner, also may there is some terminal, its backstage only can identify unicode, and then can find corresponding picture according to the indirect reverse Mapping relation between unicode expresses one's feelings with picture and express one's feelings, and is presented at terminal interface.
Particularly, to comprise the content of text of expression of smiling, client by text content uploading to needing during server to be handled as follows it, first the content of text in Edit Text (EditText) is obtained, parse the single code " 0xF001 " in content of text, character string " [: smile] " of expressing one's feelings of smiling is found by single code " 0xF001 " and the reverse Mapping relation of corresponding expression character string, and character string that smile is expressed one's feelings " [: smile] " replace single code " 0xF001 ", finally the text after replacement is uploaded onto the server.
In content of text treatment scheme shown in Fig. 6, the content of text employing the second mapping relations is processed, the expression character string corresponding with the reverse Mapping rule searching of expression character string according to single code, and then use the expression character string found to replace single code position in the text, before this amendment makes text message return to not use the second mapping relations, can be considered urtext information.Subsequently, the urtext information recovering to obtain is uploaded onto the server, is transmitted by server.The object of the recovery operation shown in Fig. 6 is the unicode that can effectively prevent server end nonrecognition from setting up, server is avoided to occur the problems such as content of text mess code when identifying content of text, or at transmission text to occurring during other clients to transmit the problems such as mistake, packet loss.On the other hand, recovery operation shown in Fig. 6 performs at client-side, server is not needed to participate in, server does not need the mapping relations of the expression character string for setting up and single code to increase new Data Analysis mode, need not do any change, therefore, the embodiment of the present invention can when not changing server etc. and increasing hardware cost, complete picture expression process operation, save ample resources.To sum up, above-mentioned content of text process operation, advantageously in the request of server respond services, ensures the quality of service.
In addition, the first time mapping relations of the picture expression that the present invention proposes and expression character string are transparent with the second time mapping relations of express one's feelings character string and unicode concerning server, and server does not need to do extra compatible processing.
Below, using client, the content of text of " today, teacher sent out an american sage herb (herein for " american sage herb " picture expression) to Xiao Ming " is sent to the other side's client as the present invention's specific embodiment, further illustrates the flow process of the disposal route of expression character string of the present invention and carry out beneficial effect when process operates according to the picture expression that the present invention generates.
Need the content of text of input both to comprise the word content of " today, teacher sent out an american sage herb to Xiao Ming ", comprise again the image content of " american sage herb ".After the word segment of client-side editing Text Input complete " today, teacher sent out an american sage herb to Xiao Ming ", need input american sage herb picture expression, now, background program is according to first mapping relations of picture expression with expression character string, find expression character string corresponding to american sage herb picture expression " [: redflower] ", again according to the expression character string of setting up the second mapping relations with unicode, find the single code " 0xF003 " of " [: redflower] " correspondence.Single code " 0xF003 " performs process operation afterwards, first a newly-built image mixed character typeset function SpannableString in Edit Text Textview control, then call the bitmap file that single code " 0xF003 " is converted to american sage herb picture expression by setSpan function, the SpannableString obtained is inserted into the input that Edit Text present cursor position completes american sage herb picture expression.After the content of text input that client completes " today, teacher sent out an american sage herb (being " american sage herb " picture expression) herein to Xiao Ming ", need this section of content of text to upload onto the server, and by server forwards to the other side's client.Because american sage herb picture expression in text content performs process by the single code " 0xF003 " set up to have operated input, in order to ensure that server can identify that american sage herb picture is expressed one's feelings, need to be handled as follows it, obtain the content of text of " today, teacher sent out an american sage herb (being " american sage herb " picture expression) herein to Xiao Ming ", parse the single code " 0xF003 " of american sage herb picture expression in text content, and according to the reverse Mapping relation of single code with expression character string, find expression character string corresponding to single code " 0xF003 " " [: redflower] ", and incite somebody to action on backstage " [: redflower] " replace single code " 0xF003 ", namely before text message returns to and does not use the second mapping relations, the text message recovering to obtain is uploaded onto the server, the other side's client is sent to by server.
It should be noted that, " american sage herb " picture expression in content of text completes input by single code " 0xF003 " executable operations of setting up, because single code " 0xF003 " has uniqueness, american sage herb picture is expressed one's feelings, the mapping relations that " [: redflower] " and single code " 0xF003 " three set up also have uniqueness, if desired to " american sage herb " picture expression in " today, teacher sent out an american sage herb (herein for " american sage herb " picture expression) to Xiao Ming " delete or copy wait process to operate time, during the executive routine of backstage, because of the uniqueness of the relation that the uniqueness and three of giving tacit consent to " 0xF003 " are set up, make that also uniqueness is possessed to the operation of american sage herb picture expression, by the american sage herb picture expression related to, " [: redflower] " all process with single code " 0xF003 " three elements, therefore, it is possible to once complete process operation.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind for the treatment of apparatus of character string of expressing one's feelings.Fig. 8 shows the structural representation of the treating apparatus of character string of expressing one's feelings according to an embodiment of the invention.See Fig. 8, this device at least comprises:
Increase module 810, being suitable for expressing one's feelings for possessing the picture of picture expression with the first mapping relations of expression character string, on the basis of the first mapping relations, increasing by second mapping relations of expression character string and single code unicode;
Set up module 820, be coupled with increase module 810, be suitable in conjunction with the first mapping relations and the second mapping relations, to set up correspondence mappings relation in picture expression and single intersymbol.
Add second mapping relations of expression character string and unicode in expression character string processing apparatus after, the embodiment of the present invention can process picture expression according to the mapping relations of setting up further, Fig. 9 shows the another kind of structural representation of the treating apparatus of character string of expressing one's feelings according to an embodiment of the invention, and this device at least also comprises:
Search module 830, and set up module 820 and be coupled, when being suitable for the processing messages receiving certain picture expression, utilize picture to express one's feelings and the correspondence mappings relation of single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture;
Processing module 840, and searches module 830 and is coupled, and is suitable for performing the process operation of carrying in processing messages to the single code found.
In a preferred embodiment, search module 830 to be also suitable for:
According to the first mapping relations, find the expression character string that this picture expression is corresponding;
And then, according to the second mapping relations, find the single code corresponding with this expression character string.
In a preferred embodiment, search module 830 to be also suitable for:
Call the process function corresponding with processing messages;
Utilize the transformational relation that the process single code of function setup and picture are expressed one's feelings between bitmap;
Utilize process function single code to be performed to the process operation of carrying in processing messages, and the transformational relation utilizing single code and picture to express one's feelings between bitmap will process operation map to express one's feelings bitmap to picture.
In a preferred embodiment, see Figure 10, the treating apparatus of expression character string can also comprise:
Upper transmission module 850, is coupled with processing module 840, is suitable for, after the Text Input comprising at least one picture expression terminates, the text being uploaded onto the server as follows:
Obtain the content of text of above-mentioned text;
Parse single code wherein, utilize the single code stored in expression storehouse to find corresponding expression character string with the reverse Mapping relation of expression character string;
The expression character string of the correspondence found out is used to replace the position of single code in described text;
Upload onto the server replacing the text terminating to obtain.
Any one preferred embodiment that the embodiment of the present invention provides or its combination, can be applicable to the message transfer process between multi-client, Figure 11 shows the system schematic of transmission of messages between multi-client in accordance with a preferred embodiment of the present invention.See Figure 11, this system comprises server 1110, and carries out the multi-client 1120 of transmission of messages respectively by server 1110.The number of the client of Figure 11 is only signal value, in actual applications may be thousands of up to a hundred even more, and the present invention does not do any restriction to this.
To sum up, disposal route and the device of the expression character string adopting the embodiment of the present invention to provide can reach following beneficial effect:
Embodiments provide a kind of disposal route and device of character string of expressing one's feelings, because the first mapping relations of picture expression and expression character string are for identifying that picture exists certain leak when expressing one's feelings, cause picture to be expressed one's feelings may being regarded as two independent individualities with expression character string existing, now, if desired expression is processed, may need execution repeatedly just can complete process, for solving this technical matters, invention increases second mapping relations of expression character string and unicode, unicode is a kind of international standard code used on computers, can with unified and the character of dataphone may be used in the writing language that unique binary coding representation is all in the world, pictograph and other symbols, namely, unicode possesses uniqueness.Exactly because unicode possesses uniqueness, picture is expressed one's feelings, the mapping relations set up between expression character string and unicode three also have uniqueness, if now process picture expression, other two elements can be found by any one element possessed in the mapping relations of uniqueness, thus the operation making picture express one's feelings also possesses uniqueness, when any one element is operated, all can express one's feelings according to picture, the mapping relations possessing uniqueness set up between expression character string and unicode three, other two elements related to are processed, therefore, it is possible to ensure once to complete the process of picture expression, thus avoid one expression process need multi-pass operations to cause time slow, the wasting of resources, user experiences and experiences the problem such as poor.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the expression character string processing apparatus of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.

Claims (10)

1. a disposal route for character string of expressing one's feelings, comprising:
To express one's feelings-expressing one's feelings the picture expression of the first mapping relations of character string for possessing picture, on the basis of described first mapping relations, increasing expression character string and second mapping relations of single code unicode;
In conjunction with described first mapping relations and described second mapping relations, to set up correspondence mappings relation in described picture expression and described single intersymbol.
2. method according to claim 1, wherein, also comprises:
When receiving the processing messages of certain picture expression, utilize the correspondence mappings relation in described picture expression and described single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture;
The single code found is performed to the process operation of carrying in described processing messages.
3. method according to claim 2, wherein, utilizes the correspondence mappings relation in described picture expression and described single intersymbol foundation, finds corresponding single code of expressing one's feelings with this picture, comprising:
According to described first mapping relations, find the expression character string that this picture expression is corresponding;
And then, according to described second mapping relations, find the single code corresponding with this expression character string.
4. according to the method in claim 2 or 3, wherein, the single code found is performed to the process operation of carrying in described processing messages, comprising:
Call the process function corresponding with described processing messages;
Utilize the transformational relation that described in described process function setup, single code and described picture are expressed one's feelings between bitmap;
Utilize described process function described single code to be performed to the process operation of carrying in described processing messages, and described process operation map to be expressed one's feelings bitmap by the transformational relation utilizing described single code and described picture to express one's feelings between bitmap to described picture.
5. the method according to any one of claim 2 to 4, wherein, after the Text Input comprising picture expression described at least one terminates, uploads onto the server the text as follows:
Obtain the content of text of described text;
Parse single code wherein, utilize the single code stored in expression storehouse to find corresponding expression character string with the reverse Mapping relation of expression character string;
The expression character string of the correspondence found out is used to replace the described position of single code in described text;
Upload onto the server replacing the text terminating to obtain.
6. a treating apparatus for character string of expressing one's feelings, comprising:
Increase module, being suitable for expressing one's feelings-expressing one's feelings the picture expression of the first mapping relations of character string for possessing picture, on the basis of described first mapping relations, increasing expression character string and second mapping relations of single code unicode;
Set up module, be suitable in conjunction with described first mapping relations and described second mapping relations, to set up correspondence mappings relation in described picture expression and described single intersymbol.
7. device according to claim 6, wherein, also comprises:
Search module, when being suitable for receiving the processing messages of certain picture expression, utilize the correspondence mappings relation in described picture expression and described single intersymbol foundation, find corresponding single code of expressing one's feelings with this picture;
Processing module, is suitable for performing the process operation of carrying in described processing messages to the single code found.
8. device according to claim 7, wherein, described in search module and be also suitable for:
According to described first mapping relations, find the expression character string that this picture expression is corresponding;
And then, according to described second mapping relations, find the single code corresponding with this expression character string.
9. the device according to claim 7 or 8, wherein, described in search module and be also suitable for:
Call the process function corresponding with described processing messages;
Utilize the transformational relation that described in described process function setup, single code and described picture are expressed one's feelings between bitmap;
Utilize described process function described single code to be performed to the process operation of carrying in described processing messages, and described process operation map to be expressed one's feelings bitmap by the transformational relation utilizing described single code and described picture to express one's feelings between bitmap to described picture.
10. the device according to any one of claim 7 to 9, wherein, also comprises:
Upper transmission module, is suitable for, after the Text Input comprising picture expression described at least one terminates, the text being uploaded onto the server as follows:
Obtain the content of text of described text;
Parse single code wherein, utilize the single code stored in expression storehouse to find corresponding expression character string with the reverse Mapping relation of expression character string;
The expression character string of the correspondence found out is used to replace the described position of single code in described text;
Upload onto the server replacing the text terminating to obtain.
CN201510642793.1A 2015-09-30 2015-09-30 The processing method and processing device of expression character string Active CN105160033B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510642793.1A CN105160033B (en) 2015-09-30 2015-09-30 The processing method and processing device of expression character string
PCT/CN2016/096919 WO2017054597A1 (en) 2015-09-30 2016-08-26 Processing method and device for emoji string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510642793.1A CN105160033B (en) 2015-09-30 2015-09-30 The processing method and processing device of expression character string

Publications (2)

Publication Number Publication Date
CN105160033A true CN105160033A (en) 2015-12-16
CN105160033B CN105160033B (en) 2018-09-11

Family

ID=54800889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510642793.1A Active CN105160033B (en) 2015-09-30 2015-09-30 The processing method and processing device of expression character string

Country Status (2)

Country Link
CN (1) CN105160033B (en)
WO (1) WO2017054597A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718534A (en) * 2016-01-14 2016-06-29 广州市动景计算机科技有限公司 Information pushing apparatus, information pushing method and client
CN106055416A (en) * 2016-05-23 2016-10-26 珠海市魅族科技有限公司 Cross-application data transfer method and apparatus
WO2017054597A1 (en) * 2015-09-30 2017-04-06 北京奇虎科技有限公司 Processing method and device for emoji string
CN106951105A (en) * 2017-03-03 2017-07-14 深圳市联谛信息无障碍有限责任公司 A kind of method that use Barrier-free Service reads emoticon
CN107360898A (en) * 2017-07-05 2017-11-21 佛山杰致信息科技有限公司 Greenhouse remote management system
CN108805960A (en) * 2018-05-31 2018-11-13 北京字节跳动网络技术有限公司 Composing Method of Mixing, device, computer readable storage medium and terminal
CN110780955A (en) * 2019-09-05 2020-02-11 连尚(新昌)网络科技有限公司 Method and equipment for processing emoticon message
CN110799980A (en) * 2017-07-31 2020-02-14 电子湾有限公司 Emoji understanding in online experiences
WO2024046275A1 (en) * 2022-09-02 2024-03-07 华为技术有限公司 Display method and electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200552B (en) * 2018-11-16 2022-05-13 腾讯科技(深圳)有限公司 Instant communication method and device, equipment and storage medium thereof
CN111369645B (en) * 2020-02-28 2023-12-05 北京百度网讯科技有限公司 Expression information display method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749936A (en) * 2004-09-07 2006-03-22 捷讯研究有限公司 System and method for inserting a graphic object into a text based message
CN101281430A (en) * 2007-04-06 2008-10-08 北京三星通信技术研究有限公司 Apparatus with expression symbol associating input function and associating input method
CN104331245A (en) * 2014-11-03 2015-02-04 荀亮 Click input method and Chinese character input method based on touch screens

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100631611B1 (en) * 2004-11-27 2006-10-09 엘지전자 주식회사 Method of generating a user emoticon of a mobile communication terminal and a method of transmitting and receiving a short message using the same
CN101639755B (en) * 2009-09-10 2011-07-13 腾讯科技(深圳)有限公司 Method for supporting picture input and equipment thereof
CN103809766A (en) * 2012-11-06 2014-05-21 夏普株式会社 Method and electronic device for converting characters into emotion icons
CN104881146A (en) * 2015-04-28 2015-09-02 北京美秒科技有限公司 Picture input method
CN105160033B (en) * 2015-09-30 2018-09-11 北京奇虎科技有限公司 The processing method and processing device of expression character string
CN105279247A (en) * 2015-09-30 2016-01-27 北京奇虎科技有限公司 Expression library generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749936A (en) * 2004-09-07 2006-03-22 捷讯研究有限公司 System and method for inserting a graphic object into a text based message
CN101281430A (en) * 2007-04-06 2008-10-08 北京三星通信技术研究有限公司 Apparatus with expression symbol associating input function and associating input method
CN104331245A (en) * 2014-11-03 2015-02-04 荀亮 Click input method and Chinese character input method based on touch screens

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054597A1 (en) * 2015-09-30 2017-04-06 北京奇虎科技有限公司 Processing method and device for emoji string
CN105718534A (en) * 2016-01-14 2016-06-29 广州市动景计算机科技有限公司 Information pushing apparatus, information pushing method and client
CN105718534B (en) * 2016-01-14 2017-05-03 广州市动景计算机科技有限公司 Information pushing apparatus, information pushing method and client
WO2017121278A1 (en) * 2016-01-14 2017-07-20 广州市动景计算机科技有限公司 Information-pushing device, method, client and machine-readable storage medium
CN106055416A (en) * 2016-05-23 2016-10-26 珠海市魅族科技有限公司 Cross-application data transfer method and apparatus
CN106951105A (en) * 2017-03-03 2017-07-14 深圳市联谛信息无障碍有限责任公司 A kind of method that use Barrier-free Service reads emoticon
CN107360898A (en) * 2017-07-05 2017-11-21 佛山杰致信息科技有限公司 Greenhouse remote management system
CN110799980A (en) * 2017-07-31 2020-02-14 电子湾有限公司 Emoji understanding in online experiences
CN110799980B (en) * 2017-07-31 2023-12-12 电子湾有限公司 Pictographic understanding in online experience
US11928428B2 (en) 2017-07-31 2024-03-12 Ebay Inc. Emoji understanding in online experiences
CN108805960A (en) * 2018-05-31 2018-11-13 北京字节跳动网络技术有限公司 Composing Method of Mixing, device, computer readable storage medium and terminal
CN110780955A (en) * 2019-09-05 2020-02-11 连尚(新昌)网络科技有限公司 Method and equipment for processing emoticon message
CN110780955B (en) * 2019-09-05 2023-08-22 连尚(新昌)网络科技有限公司 Method and equipment for processing expression message
WO2024046275A1 (en) * 2022-09-02 2024-03-07 华为技术有限公司 Display method and electronic device

Also Published As

Publication number Publication date
WO2017054597A1 (en) 2017-04-06
CN105160033B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN105160033A (en) Expression character string processing method and device
US11907642B2 (en) Enhanced links in curation and collaboration applications
US10387574B1 (en) Emoji disambiguation for online interactions
US20170295263A1 (en) System and method for applying an efficient data compression scheme to url parameters
US11487800B2 (en) Method and apparatus for processing information of a terminal
CN1983271A (en) System and method for defining and translating chat abbreviations
WO2018053594A1 (en) Emoji images in text messages
CN112650456A (en) Printing method and device and electronic equipment
CN110545236A (en) Instant messaging message modification method and device, storage medium and electronic equipment
US11048746B2 (en) Screen capture data amalgamation
US11962708B2 (en) Resume document parsing using computer vision and optical character recognition with reblocking feedback
CN103906012A (en) Information sending method and device
CN105207886A (en) Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system
CN104463296A (en) Two-dimension code structured information generation, obtaining and processing method and system
CN105515935A (en) Interaction information DOI processing method and device
CN113190152A (en) Method and device for switching application program theme
CN112651475A (en) Two-dimensional code display method, device, equipment and medium
CN103678706A (en) Picture recognition method, system, equipment and device based on screenshot information
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
CN102377688A (en) File transmission method and equipment
US20220109651A1 (en) Interactive components for user collaboration
CN112256370A (en) Information display method and device and electronic equipment
US20230168855A1 (en) Systems and methods for synchronizing graphical displays across devices
CN105279247A (en) Expression library generation method and device
CN101686568B (en) Methods and terminals for transmitting and displaying text information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220708

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd

TR01 Transfer of patent right