CN105160033B - The processing method and processing device of expression character string - Google Patents

The processing method and processing device of expression character string Download PDF

Info

Publication number
CN105160033B
CN105160033B CN201510642793.1A CN201510642793A CN105160033B CN 105160033 B CN105160033 B CN 105160033B CN 201510642793 A CN201510642793 A CN 201510642793A CN 105160033 B CN105160033 B CN 105160033B
Authority
CN
China
Prior art keywords
expression
picture
character string
mapping relations
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510642793.1A
Other languages
Chinese (zh)
Other versions
CN105160033A (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

Abstract

The present invention provides a kind of processing method and processing devices of expression character string, including:For having the picture expression of the first mapping relations of picture expression expression character string, on the basis of the first mapping relations, increase the second mapping relations of expression character string and single code unicode, in conjunction with the first mapping relations and the second mapping relations, to establish correspondence mappings relationship in picture expression and single intersymbol, when receiving the processing message of some picture expression, utilize the correspondence mappings relationship in picture expression and the foundation of single intersymbol, single code corresponding with the picture expression is found, the processing operation carried in processing message is executed to the single code found.It can solve the problems, such as to need to execute when picture expression processing operation repeatedly complete using the present invention.

Description

The processing method and processing device of expression character string
Technical field
The present invention relates to field of computer technology, more particularly to a kind of processing method and processing device of expression character string.
Background technology
The Emoji meaning of a word comes from Japanese え も じ, and character is meant that in Japanese, is that Japan is used in wireless communications Visual emotion symbol, Apple Inc. publication 5 input methods of IOS introduce Emoji after, this emoticon gradually flows Row gets up.Currently, picture expression almost has obtained widely applying in all mobile chat softwares, such as wechat, credulity, QQ All support the transmission of expression.Picture expression is substantially a character string for meeting specific format, and most implementation is all Character string corresponding to picture expression and its is established into one layer of correspondence, such as " [:Smile] " corresponding to " smile " expression, " [:Cry] " correspond to " sobbing " expression.
The included TextView controls of operating system have powerful picture and text mixing processing capacity, it is mainly mixed by picture and text Row function SpannableString conveniently realizes conversion of the text to picture expression, can replace the word formulated in range Emoji expressions are changed to, although expression is shown in specified range, are actually preserved still inside TextView controls Original character string, i.e., picture expression and character string be considered as two individually individual exist, cause certain applications (such as defeated Enter method) carry out picture expression processing when, need to the picture expression execute repeatedly could complete operate.For example, Fig. 1 is shown now There is an exemplary plot of client input picture expression in technology, the 2nd picture expression is come in Fig. 1 and needs to delete, Fig. 2 shows Go out after client in the prior art carries out picture expression deletion and an exemplary plot of expression coding has occurred, as seen from Figure 2, After deleting picture expression, the original character string on backstage "/::" still have, and be shown in the interface of client, if desired Will "/::" delete, then need secondary carry out delete operation.
It can thus be seen that in the prior art, picture expression processing operation may need multi-pass operation that can complete, behaviour Corresponding resource can be wasted by making increasing for number, while also increase operation difficulty.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the processing method and processing device of the expression character string of problem.
Based on one aspect of the present invention, a kind of processing method of expression character string is provided, including:
For having the picture expression of the first mapping relations of picture expression-expression character string, closed in first mapping On the basis of system, increase the second mapping relations of expression character string and single code unicode;
In conjunction with first mapping relations and second mapping relations, in the picture expression and the single intersymbol Establish correspondence mappings relationship.
Optionally, further include:
When receiving the processing message of some picture expression, utilize what is established in the picture expression and the single intersymbol Correspondence mappings relationship finds single code corresponding with the picture expression;
The processing operation carried in the processing message is executed to the single code found.
Optionally, it using the correspondence mappings relationship established in the picture expression and the single intersymbol, finds and is somebody's turn to do The corresponding single code of picture expression, including:
According to first mapping relations, the corresponding expression character string of the picture expression is found;
In turn, according to second mapping relations, single code corresponding with the expression character string is found.
Optionally, the processing operation carried in the processing message is executed to the single code found, including:
Call processing function corresponding with the processing message;
Utilize the transformational relation described in the processing function setup between single code and the picture expression bitmap;
The processing operation carried in the processing message is executed using single code described in the processing function pair, and utilizes institute The processing operation is mapped to the picture expression bitmap by the transformational relation stated between single code and the picture expression bitmap.
Optionally, after the text input including at least one picture expression, as follows by the text It is uploaded to server:
Obtain the content of text of the text;
Single code therein is parsed, the reverse Mapping relationship of the single code and expression character string that are stored in expression library is utilized Find corresponding expression character string;
Position of the single code in the text is replaced using the corresponding expression character string found out;
The text for terminating to obtain will be replaced and be uploaded to server.
Based on another aspect of the present invention, a kind of processing unit of expression character string is additionally provided, including:
Increase module, suitable for the picture expression of the first mapping relations for having picture expression-expression character string, in institute On the basis of stating the first mapping relations, increase the second mapping relations of expression character string and single code unicode;
Module is established, is suitable in conjunction with first mapping relations and second mapping relations, in the picture expression Correspondence mappings relationship is established with the single intersymbol.
Optionally, further include:
Searching module, when processing message suitable for receiving some picture expression, using in the picture expression and described The correspondence mappings relationship that single intersymbol is established, finds single code corresponding with the picture expression;
Processing module, suitable for executing the processing operation carried in the processing message to the single code found.
Optionally, the searching module is further adapted for:
According to first mapping relations, the corresponding expression character string of the picture expression is found;
In turn, according to second mapping relations, single code corresponding with the expression character string is found.
Optionally, the searching module is further adapted for:
Call processing function corresponding with the processing message;
Utilize the transformational relation described in the processing function setup between single code and the picture expression bitmap;
The processing operation carried in the processing message is executed using single code described in the processing function pair, and utilizes institute The processing operation is mapped to the picture expression bitmap by the transformational relation stated between single code and the picture expression bitmap.
Optionally, further include:
Uploading module is suitable for after the text input including at least one picture expression, as follows will The text is uploaded to server:
Obtain the content of text of the text;
Single code therein is parsed, the reverse Mapping relationship of the single code and expression character string that are stored in expression library is utilized Find corresponding expression character string;
Position of the single code in the text is replaced using the corresponding expression character string found out;
The text for terminating to obtain will be replaced and be uploaded to server.
An embodiment of the present invention provides a kind of processing method and processing devices of expression character string, due to picture expression and expression word There are certain loopholes in picture expression for identification for first mapping relations of symbol string, lead to picture expression and expression character string It may be considered as two individually individual presence, at this point, if desired handling expression, it may be necessary to must execute repeatedly Can completion processing, to solve this technical problem, invention increases the second mapping relations of expression character string and unicode, Unicode is a kind of international standard code used on computers, can use unified and unique binary coding representation The character, pictograph and other symbols of dataphone are possibly used in all writing languages in the world, that is, unicode has Standby uniqueness.Exactly because unicode has uniqueness so that established between picture expression, expression character string and unicode three Mapping relations also have uniqueness, if handling at this time picture expression, by having in the mapping relations of uniqueness Any one element can find other two elements, so that the operation of picture expression also has uniqueness, to arbitrary When one element is operated, can be had uniquely according to what is established between picture expression, expression character string and unicode three Property mapping relations, other two elements being involved in are handled, therefore can ensure once to complete the processing of picture expression, Need the slow time caused by multi-pass operation, the wasting of resources, user's impression experience poor so as to avoid an expression processing The problems such as.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features of the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows an exemplary plot of client input picture expression in the prior art;
There is an exemplary plot of expression coding after carrying out picture expression deletion Fig. 2 shows client in the prior art;
Fig. 3 shows the process chart of the processing method of expression character string according to an embodiment of the invention;
Fig. 4 shows picture expression according to an embodiment of the invention, the mapping relations of expression character string and single code Schematic diagram;
Fig. 5 shows the process chart of the processing mode of picture expression according to an embodiment of the invention;
After Fig. 6 shows the text input according to an embodiment of the invention including at least one picture expression, The text is uploaded to the process chart of server;
Fig. 7 shows that the combination of picture expression according to an embodiment of the invention, expression character string and single code is reverse Mapping relations schematic diagram;
Fig. 8 shows the structural schematic diagram of the processing unit of expression character string according to an embodiment of the invention;
Fig. 9 shows another structural representation of the processing unit of expression character string according to an embodiment of the invention Figure;
Figure 10 shows another structural representation of the processing unit of expression character string according to an embodiment of the invention Figure;And
Figure 11 shows the system schematic of message transmission between multi-client in accordance with a preferred embodiment of the present invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
In order to solve the above technical problems, an embodiment of the present invention provides a kind of processing methods of expression character string.Fig. 3 is shown The process chart of the processing method of expression character string according to an embodiment of the invention.Referring to Fig. 3, this method is at least wrapped Following steps S302 is included to step S304.
First, step S302 is executed, for having the picture table of picture expression and the first mapping relations of expression character string Feelings increase the second mapping relations of expression character string and single code (unicode) on the basis of the first mapping relations.
It should be noted that in embodiments of the present invention, picture expression and the first mapping relations of expression character string are tables Existing mapping relations in feelings library, because the identities of the first mapping relations has certain loophole, cause picture expression and Expression character string may be considered as two individually individual presence, and then need execution that can repeatedly complete picture expression Processing.To solve this technical problem, the first mapping relations of the embodiment of the present invention pair are improved, in the base of the first mapping relations On plinth, the second mapping relations, i.e. mapping relations between expression character string and single code are increased.
Specifically, in one embodiment, an Emoji expressions library is set, which includes common picture expression, together When the Emoji expressions library in be stored with picture expression and its correspond to character string the first mapping relations, in addition, the Emoji classes institute Have picture expression can be stored in class catalogue (such as:Assets catalogues) in.
Second mapping relations of the increase expression character string and unicode that are referred to according to step S302 are to the present embodiment Expression character string in Emoji expressions library is handled, and corresponding unicode is arranged for it.It should be noted that unicode It is a kind of international standard code used on computers, unified and unique binary coding representation institute in the world can be used The character, pictograph and other symbols of dataphone are possibly used in some writing languages.Exactly because unicode has only One property so that the mapping relations established between picture expression, expression character string and unicode three also have uniqueness, every in this way A picture expression can use a unique character representation.When executing program, because the uniqueness and three of unicode is given tacit consent on backstage The uniqueness for the mapping relations that person establishes, it can be found by any one element having in the mapping relations of uniqueness His two elements when being operated to any one element, can so that the operation of picture expression also has uniqueness According to the mapping relations for having uniqueness established between picture expression, expression character string and unicode three, be involved in its He is handled two elements, can ensure once to complete the processing of picture expression, is needed so as to avoid an expression processing more Time caused by secondary operation slowly, the wasting of resources, user experience the problems such as experience is poor.Further, it is the entire Emoji of guarantee Institute's espressiove in expression library is all not in the case where multiple processing can complete a process demand, it is preferable that can be incited somebody to action Whole picture expressions in entire Emoji expressions library add the second mapping relations, make each picture expression in expression library To be mapped to unique unicode, when handling any picture expression in expression library, because unicode uniqueness and The uniqueness for the mapping relations that three establishes, the operation processing of each picture expression can be completed once.
Wherein, the single code added is set to the white space of client by the embodiment of the present invention, it is made to make full use of visitor The white space at family end, and it is succinct so that the single code added understands, the mapping relations added also are easy to obtain, avoid and its He has Code obfuscation in the same area, leads to the confusion caused by code superposition, also reduces acquisition difficulty.
In practical application, the second mapping relations between increased expression character string and unicode can pass through lightweight Data interchange format (such as:Json) be stored in class catalogue (such as:Assets catalogues) in, reflecting for format can be defined as Firing table:
{"unicode":"0xF001","imgCode":"[:smile]"}
{"unicode":"0xF002","imgCode":"[:cry]"}
Above-mentioned mapping table is loaded onto memory when picture expression processing routine is run, searches, extraction, handle for client Etc..
Step S302 is additionally arranged after the second mapping relations, and the embodiment of the present invention executes step S304, in conjunction with the first mapping Relationship and the second mapping relations, to establish correspondence mappings relationship in picture expression and single intersymbol.
Specifically, Fig. 4 shows picture expression according to an embodiment of the invention, expression character string and unicode Mapping relations schematic diagram.Referring to Fig. 4, the first mapping relations and the second mapping relations pass through the knot that expression character string both is realized It closes so that picture expression establishes corresponding mapping relations with unicode.By taking smile expression as an example, in conjunction with smile picture expression with Smile expression character string " [:Smile] " the first mapping relations and " [:Smile] " with single code " mappings of 0xF001 " second pass System, corresponding mapping relations are established in smile picture expression with single code " 0xF001 ".
In summary, an embodiment of the present invention provides a kind of processing method and processing devices of expression character string, due to picture table First mapping relations of feelings and expression character string in picture expression for identification there are certain loophole, cause picture expression with Expression character string may be considered as two individually individual presence, at this point, if desired handling expression, it may be necessary to Execute repeatedly could completion processing, to solve this technical problem, invention increases the second of expression character string and unicode Mapping relations, unicode are a kind of international standard codes used on computers, can use unified and unique binary system Coded representation is possibly used for the character, pictograph and other symbols of dataphone in all writing language in the world, that is, Unicode has uniqueness.Exactly because unicode has uniqueness so that picture expression, expression character string and unicode The mapping relations established between three also have uniqueness, if handling at this time picture expression, by having reflecting for uniqueness Any one element penetrated in relationship can find other two elements, so that the operation of picture expression also has uniquely Property, when being operated to any one element, it can be established according between picture expression, expression character string and unicode three The mapping relations for having uniqueness, other two elements being involved in are handled, therefore can ensure primary completion figure The processing of piece expression needs the slow time caused by multi-pass operation, the wasting of resources, user's sense so as to avoid an expression processing The problems such as poor by experience.
After setting up corresponding mapping relations (i.e. step S304) between picture expression and single code, if receiving certain The processing message of a picture expression can then be handled picture expression according to the unicode added.Specifically, Fig. 5 is shown The process chart of the processing mode of picture expression according to an embodiment of the invention.Referring to Fig. 5, this method includes at least Step S502 to step S504.
When step S502, receiving the processing message of some picture expression, established using the picture expression and single intersymbol Correspondence mappings relationship, find single code corresponding with the picture expression;
Step S504, the processing operation carried in the processing message of step S502 is executed to the single code found.
In embodiments of the present invention, as it was noted above, because single code has uniqueness so that triangular mapping relations Has uniqueness so that also have uniqueness to the operation of picture expression, after single code executes completion processing operation so that operation There are one unique character representations in background program for picture expression on interface, then when handling the picture expression, after Platform handles the corresponding picture expression of single code and expression character string, is needed repeatedly so as to avoid because of an expression processing The problems such as operating slow caused time, the wasting of resources, poor user's impression experience.
In the embodiment of the present invention, the subjects of implementation of above-mentioned steps may be instant communication client, such as QQ, credulity, micro- Letter, short message, multimedia message etc. can use the client that the text formattings such as word, picture are linked up.
Further, in a preferred embodiment of the invention, finding and picture expression pair mentioned by step S502 The single code answered can specifically include following steps:
Step 1, according to the first mapping relations of picture expression and expression character string, find the corresponding table of picture expression Feelings character string;
Step 2, according to the second mapping relations of expression character string and unicode, according to the expression word found in step 1 Symbol string, further searches for single code corresponding with the expression character string.
Specifically, by taking smile expression as an example, when inputting smile picture expression, pass through the first mapping of foundation when program is run Relationship finds the corresponding expression character string of smile picture expression " [:Smile] ", by increasing the second mapping relations established, Find the corresponding single code " 0xF001 " of the expression character string.
In a preferred embodiment of the invention, step S504 is mentioned executes processing message to the single code found The processing operation of middle carrying, may include steps of:
Step 1 calls processing function corresponding with processing message;
Step 2 utilizes the transformational relation between the single code of processing function setup and picture expression bitmap;
Step 3 executes the processing operation carried in above-mentioned processing message using the processing single code of function pair, and utilizes single Processing operation is mapped to picture expression bitmap by the transformational relation between code and picture expression bitmap.
What step 2 referred in the embodiment of the present invention utilizes the conversion between the single code of processing function setup and picture expression bitmap Relationship, wherein picture expression bitmap is parsed by all picture expressions in Emoji expressions library, i.e., firstly the need of by picture Expression is converted into Windows reference format graphic files, and then is parsed to Windows reference format graphic files, is formed Bitmap file (bitmap), bitmap are to indicate picture expression using pel array, by picture expression be defined as by point (such as Pixel) composition, each point can be indicated by multicolour, including 2,4,8,16,24 and 32 colors.By each picture expression solution After analysing into corresponding bitmap file bitmap, filename corresponding corresponding bitmap is matched, list (List) is used in combination Pairing result is preserved, items can be defined as format in List,
By taking smile expression as an example,
Each picture expression in database is resolvable to corresponding bitmap and is preserved, correspondingly, when progress picture When expression processing, corresponding bitmap can be called and be shown in client end interface.
Specifically, it by taking the input of smile expression as an example, searches after the corresponding single code of smile picture expression " 0xF001 ", due to Importation includes picture, needs a newly-built picture and text mixing function when program is run in Textview controls Then SpannableString calls the single code of setSpan function setups " 0xF001 " bitmap corresponding with smile picture expression The single code " 0xF001 " found is converted to bitmap file by the transformational relation of file, will finally obtain SpannableString is inserted into the input that editor's text present cursor position completes smile picture expression.
For common instant messaging class client, information transmission is both sides, any one information (commonly text Information) it is generated by local client, after being uploaded to server, the information is handled by server, and then by treated Information is forwarded to other side's client.It can be seen that after information generates, server end is required to identify with other side's client Go out corresponding information.And in the embodiment of the present invention, the second mapping relations are additionally arranged to picture expression, if directly will include to be additionally arranged The picture expression of second mapping relations is sent, then server, other side's client may be to this None- identifieds.
Therefore, by taking content of text as an example, in order to ensure that server can identify content of text, and can be complete by content of text Site preparation is forwarded to other side's client, needs to handle content of text.Fig. 6 shows packet according to an embodiment of the invention After the text input for including at least one picture expression, the text is uploaded to the process chart of server.Referring to Fig. 6, The flow that the text uploads includes at least step S602 to step S608.
Step S602, the content of text of text is obtained;
Step S604, single code therein is parsed, the inverse of the single code stored in expression library and expression character string is utilized To mapping relationship searching to corresponding expression character string;
Step S606, position of the single code in above-mentioned text is replaced using the corresponding expression character string found out;
Step S608, the text for terminating to obtain will be replaced and is uploaded to server.
Step S604 utilizes the reverse Mapping relationship of expression character string and unicode in the embodiment of the present invention, finds The corresponding expression character strings of unicode, Fig. 7 show picture expression according to an embodiment of the invention, expression character string and The combination reverse Mapping relation schematic diagram of unicode.In practical applications, picture expression, expression character string and unicode reflect It penetrates relationship to be reversible, such as what certain intelligent machine kernels can identify is expression character string, in actual treatment Picture expression is found using the reverse Mapping relationship of expression character string and picture expression, and then shows picture expression.Similarly, There may be certain terminals, backstage is only capable of enough identification unicode, and then can be according between unicode and picture expression It connects reverse Mapping relationship and finds corresponding picture expression, and be shown in terminal interface.
Specifically, by taking the content of text including smile expression as an example, when client is by text content uploading to server It needs that it is handled as follows, obtains the content of text in editor's text (EditText) first, parse in content of text Single code " 0xF001 ", smile table is found with the reverse Mapping relationship of corresponding expression character string by single code " 0xF001 " Feelings character string " [:Smile] ", and by smile expression character string " [:Smile] " replacing single code " 0xF001 ", it will finally replace Text after changing is uploaded to server.
In content of text process flow shown in fig. 6, to having used the content of text of the second mapping relations to handle, root According to single code expression character string corresponding with the reverse Mapping rule searching of expression character string, and then use the expression word found Symbol string replaces the position of single code in the text, which makes text message be restored to before unused second mapping relations, It can be considered urtext information.Then, the urtext information for restoring to obtain is uploaded to server, is passed by server It is defeated.The purpose of recovery operation shown in fig. 6 is the unicode that can be effectively prevented server end nonrecognition and add, and avoids taking Business device occurs the problems such as content of text mess code when identifying content of text, or is passed when transmitting text to other clients The problems such as sending mistake, packet loss.On the other hand, recovery operation shown in fig. 6 is executed in client-side, does not need to server ginseng With, server need not be that the mapping relations for the expression character string and single code added increase new data analysis mode, without Make any change, therefore, the embodiment of the present invention can complete picture in the case where not changing the increase hardware cost such as server Expression processing operation, saves vast resources.To sum up, above-mentioned content of text processing operation is more conducive to server response service Request, ensures the quality of service.
In addition, the first time mapping relations and expression character string of picture expression proposed by the present invention and expression character string with Second of mapping relations of unicode are transparent for server, and server need not do additional compatible processing.
In the following, with client by " today, teacher sent out an american sage herb (herein for " american sage herb " picture expression) to Xiao Ming " Content of text be sent to other side's client as a specific embodiment of the invention, the expression character further illustrated the present invention The flow of the processing method of string and advantageous effect when carrying out processing operation according to the picture expression that generates of the present invention.
Need the content of text inputted not only and include the word content of " today teacher to Xiao Ming sent out an american sage herb ", but also packet Include the image content of " american sage herb ".The word of client-side editing text input complete " today teacher to Xiao Ming sent out an american sage herb " It behind part, needs to input american sage herb picture expression, at this point, first mapping of the background program according to picture expression and expression character string Relationship finds the corresponding expression character string of american sage herb picture expression " [:Red flower] ", further according to the expression character added Second mapping relations of string and unicode, find " [:Red flower] " corresponding single code " 0xF003 ".It is single later Code " 0xF003 " executes processing operation, edits create a picture and text mixing function in text Textview controls first Then SpannableString calls setSpan functions that single code " 0xF003 " is converted to the bitmap of american sage herb picture expression File, obtained SpannableString are inserted into the input that editor's text present cursor position completes american sage herb picture expression. The content of text that client completes " today teacher to Xiao Ming sent out an american sage herb (being herein " american sage herb " picture expression) " is defeated After entering, need this section of content of text being uploaded to server, and other side's client is forwarded to by server.Due to text content Middle american sage herb picture expression is to execute processing operation by the single code " 0xF003 " added to complete input, in order to ensure server It can identify american sage herb picture expression, need that it is handled as follows, obtain that " today, teacher to Xiao Ming sent out an american sage herb The content of text of (being herein " american sage herb " picture expression) ", parses the single code of american sage herb picture expression in text content " 0xF003 ", and according to the reverse Mapping relationship of single code and expression character string, find the corresponding expression of single code " 0xF003 " Character string " [:Red flower] ", and incited somebody to action on backstage " [:Red flower] " replacing single code " 0xF003 ", i.e. text envelope Breath is restored to before unused second mapping relations, and the text message for restoring to obtain is uploaded to server, is transmitted by server To other side's client.
It should be noted that " american sage herb " picture expression in content of text is executed by the single code " 0xF003 " added Input is completed in operation, since single code " 0xF003 " has uniqueness so that american sage herb picture expression, " [:red Flower] mapping relations established of " with single code " 0xF003 " threes also have uniqueness, if desired to " today, teacher was to small It is bright to have sent out an american sage herb (being herein " american sage herb " picture expression) " in " american sage herb " picture expression deleted or replicated Etc. processing operations when, backstage execute program when, because acquiescence " 0xF003 " uniqueness and three establish relationship uniqueness, make Also have uniqueness to the operation of american sage herb picture expression, the american sage herb picture expression that is involved in, " [:Red flower] " with Single three elements of code " 0xF003 " are handled, therefore can once complete processing operation.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of processing unit of expression character string.Fig. 8 is shown The structural schematic diagram of the processing unit of expression character string according to an embodiment of the invention.Referring to Fig. 8, which at least wraps It includes:
Increase module 810, suitable for the picture expression of the first mapping relations for having picture expression and expression character string, On the basis of the first mapping relations, increase the second mapping relations of expression character string and single code unicode;
Establish module 820, couple with module 810 is increased, is suitable in conjunction with the first mapping relations and the second mapping relations, with Picture expression and single intersymbol establish correspondence mappings relationship.
After increasing expression character string and the second mapping relations of unicode in expression character string processing apparatus, this hair Bright embodiment can further be handled picture expression according to the mapping relations added, and Fig. 9 is shown according to the present invention one Another structural schematic diagram of the processing unit of the expression character string of a embodiment, the device at least further include:
Searching module 830 is coupled with module 820 is established, and when processing message suitable for receiving some picture expression, is utilized The correspondence mappings relationship that picture expression and single intersymbol are established, finds single code corresponding with the picture expression;
Processing module 840 is coupled with searching module 830, is carried suitable for being executed in processing message to the single code found Processing operation.
In a preferred embodiment, searching module 830 is further adapted for:
According to the first mapping relations, the corresponding expression character string of the picture expression is found;
In turn, according to the second mapping relations, single code corresponding with the expression character string is found.
In a preferred embodiment, searching module 830 is further adapted for:
Call processing function corresponding with processing message;
Utilize the transformational relation between the single code of processing function setup and picture expression bitmap;
The processing operation carried in processing message is executed using the single code of processing function pair, and utilizes single code and picture table Processing operation is mapped to picture expression bitmap by the transformational relation between feelings bitmap.
In a preferred embodiment, referring to Figure 10, the processing unit of expression character string can also include:
Uploading module 850 is coupled with processing module 840, is suitable in the text input knot for including at least one picture expression The text is uploaded to server by Shu Hou as follows:
Obtain the content of text of above-mentioned text;
Single code therein is parsed, the reverse Mapping relationship of the single code and expression character string that are stored in expression library is utilized Find corresponding expression character string;
Position of the single code in the text is replaced using the corresponding expression character string found out;
The text for terminating to obtain will be replaced and be uploaded to server.
Any one preferred embodiment provided in an embodiment of the present invention or combinations thereof can be applied to the message between multi-client Transmit process, Figure 11 show the system schematic of message transmission between multi-client in accordance with a preferred embodiment of the present invention. Referring to Figure 11, which includes server 1110, and carries out the multi-client of message transmission by server 1110 respectively 1120.The number of the client of Figure 11 is only signal value, in practical applications may thousands of up to a hundred even more, the present invention couple This does not do any restriction.
To sum up, it can reach following beneficial using the processing method and processing device of expression character string provided in an embodiment of the present invention Effect:
An embodiment of the present invention provides a kind of processing method and processing devices of expression character string, due to picture expression and expression word There are certain loopholes in picture expression for identification for first mapping relations of symbol string, lead to picture expression and expression character string It may be considered as two individually individual presence, at this point, if desired handling expression, it may be necessary to must execute repeatedly Can completion processing, to solve this technical problem, invention increases the second mapping relations of expression character string and unicode, Unicode is a kind of international standard code used on computers, can use unified and unique binary coding representation The character, pictograph and other symbols of dataphone are possibly used in all writing languages in the world, that is, unicode has Standby uniqueness.Exactly because unicode has uniqueness so that established between picture expression, expression character string and unicode three Mapping relations also have uniqueness, if handling at this time picture expression, by having in the mapping relations of uniqueness Any one element can find other two elements, so that the operation of picture expression also has uniqueness, to arbitrary When one element is operated, can be had uniquely according to what is established between picture expression, expression character string and unicode three Property mapping relations, other two elements being involved in are handled, therefore can ensure once to complete the processing of picture expression, Need the slow time caused by multi-pass operation, the wasting of resources, user's impression experience poor so as to avoid an expression processing The problems such as.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of arbitrary It mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realized in expression character string processing apparatus according to the ... of the embodiment of the present invention The some or all functions of some or all components.The present invention is also implemented as executing method as described herein Some or all equipment or program of device (for example, computer program and computer program product).Such reality The program of the existing present invention can may be stored on the computer-readable medium, or can be with the form of one or more signal. Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or in any other forms It provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
So far, although those skilled in the art will appreciate that present invention has been shown and described in detail herein multiple shows Example property embodiment still without departing from the spirit and scope of the present invention, still can according to the present disclosure directly Determine or derive many other variations or modifications consistent with the principles of the invention.Therefore, the scope of the present invention is understood that and recognizes It is set to and covers other all these variations or modifications.

Claims (6)

1. a kind of processing method of expression character string, including:
For having the picture expression of the first mapping relations of picture expression-expression character string, in first mapping relations On the basis of, increase the second mapping relations of expression character string and single code unicode;
In conjunction with first mapping relations and second mapping relations, to be established in the picture expression and the single intersymbol Correspondence mappings relationship;
Wherein, the method further includes:
When receiving the processing message of some picture expression, the correspondence established in the picture expression and the single intersymbol is utilized Mapping relations find single code corresponding with the picture expression;
The processing operation carried in the processing message is executed to the single code found;
Wherein, the processing operation carried in the processing message is executed to the single code found, including:
Call processing function corresponding with the processing message;
Utilize the transformational relation described in the processing function setup between single code and the picture expression bitmap;
The processing operation carried in the processing message is executed using single code described in the processing function pair, and utilizes the list The processing operation is mapped to the picture expression bitmap by the transformational relation between one yard and the picture expression bitmap.
2. according to the method described in claim 1, wherein, utilizing the correspondence established in the picture expression and the single intersymbol Mapping relations find single code corresponding with the picture expression, including:
According to first mapping relations, the corresponding expression character string of the picture expression is found;
In turn, according to second mapping relations, single code corresponding with the expression character string is found.
3. method according to claim 1 or 2, wherein in the text input knot for including at least one picture expression The text is uploaded to server by Shu Hou as follows:
Obtain the content of text of the text;
Single code therein is parsed, is searched using the single code stored in expression library and the reverse Mapping relationship of expression character string To corresponding expression character string;
Position of the single code in the text is replaced using the corresponding expression character string found out;
The text for terminating to obtain will be replaced and be uploaded to server.
4. a kind of processing unit of expression character string, including:
Increase module, suitable for the picture expression of the first mapping relations for having picture expression-expression character string, described the On the basis of one mapping relations, increase the second mapping relations of expression character string and single code unicode;
Module is established, is suitable in conjunction with first mapping relations and second mapping relations, in the picture expression and institute It states single intersymbol and establishes correspondence mappings relationship;
Wherein, described device further includes:
Searching module, when processing message suitable for receiving some picture expression, using in the picture expression and described single The correspondence mappings relationship that intersymbol is established, finds single code corresponding with the picture expression;
Processing module, suitable for executing the processing operation carried in the processing message to the single code found;
Wherein, the searching module is further adapted for:
Call processing function corresponding with the processing message;
Utilize the transformational relation described in the processing function setup between single code and the picture expression bitmap;
The processing operation carried in the processing message is executed using single code described in the processing function pair, and utilizes the list The processing operation is mapped to the picture expression bitmap by the transformational relation between one yard and the picture expression bitmap.
5. device according to claim 4, wherein the searching module is further adapted for:
According to first mapping relations, the corresponding expression character string of the picture expression is found;
In turn, according to second mapping relations, single code corresponding with the expression character string is found.
6. device according to claim 4 or 5, wherein further include:
Uploading module is suitable for after the text input including at least one picture expression, as follows by this article Originally it is uploaded to server:
Obtain the content of text of the text;
Single code therein is parsed, is searched using the single code stored in expression library and the reverse Mapping relationship of expression character string To corresponding expression character string;
Position of the single code in the text is replaced using the corresponding expression character string found out;
The text for terminating to obtain will be replaced and be uploaded to server.
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 CN105160033A (en) 2015-12-16
CN105160033B true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105160033B (en) * 2015-09-30 2018-09-11 北京奇虎科技有限公司 The processing method and processing device of expression character string
CN105718534B (en) * 2016-01-14 2017-05-03 广州市动景计算机科技有限公司 Information pushing apparatus, information pushing method and client
CN106055416B (en) * 2016-05-23 2020-08-18 珠海市魅族科技有限公司 Method and device for data cross-application transfer
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
US10650095B2 (en) * 2017-07-31 2020-05-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
CN111200552B (en) * 2018-11-16 2022-05-13 腾讯科技(深圳)有限公司 Instant communication method and device, equipment and storage medium thereof
CN110780955B (en) * 2019-09-05 2023-08-22 连尚(新昌)网络科技有限公司 Method and equipment for processing expression message
CN111369645B (en) * 2020-02-28 2023-12-05 北京百度网讯科技有限公司 Expression information display method, device, equipment and medium
WO2024046275A1 (en) * 2022-09-02 2024-03-07 华为技术有限公司 Display method and electronic device

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

Also Published As

Publication number Publication date
WO2017054597A1 (en) 2017-04-06
CN105160033A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105160033B (en) The processing method and processing device of expression character string
US11016716B2 (en) Picture interface display method and apparatus according to jump protocol
CN111352912B (en) Compressed file processing method, device, storage medium, terminal and server
US10599402B2 (en) Techniques to configure a web-based application for bot configuration
CN106020504A (en) Information output method and device
CN104463296B (en) A kind of generation, acquisition and the processing method and system of two-dimension code structure information
US20120023175A1 (en) Method to Change Instant Messaging Status Based on Text Entered During Conversation
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
CN112929253B (en) Virtual image interaction method and device
CN108173747B (en) Information interaction method and device
CN108549586B (en) Information processing method and device
CN106209584B (en) User information processing method, client and server Internet-based
CN105763424B (en) A kind of literal information processing method and device
KR20190134100A (en) Method and apparatus for providing chatting service
CN106878145B (en) Display method, display device and display system of user-defined picture
US20230168855A1 (en) Systems and methods for synchronizing graphical displays across devices
CN105279247A (en) Expression library generation method and device
US20220237366A1 (en) Systems and methods for synchronizing graphical displays across thin client devices
CN103049275B (en) A kind of method, device and equipment processing operational order
KR20200073502A (en) Apparatus for providing chatting service
CN108234620A (en) Cross-platform data transmission method, apparatus and system
KR20200073497A (en) Method for providing chatting service in user treminal, and the program stored in medium for executing the method
CN101686568A (en) Methods and terminals for transmitting and displaying text information
CN111200552B (en) Instant communication method and device, equipment and storage medium thereof
CN110516263A (en) A kind of text interpretation method and device

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