CN105279247A - Expression library generation method and device - Google Patents

Expression library generation method and device Download PDF

Info

Publication number
CN105279247A
CN105279247A CN201510642516.0A CN201510642516A CN105279247A CN 105279247 A CN105279247 A CN 105279247A CN 201510642516 A CN201510642516 A CN 201510642516A CN 105279247 A CN105279247 A CN 105279247A
Authority
CN
China
Prior art keywords
expression
character string
picture
mapping relations
data
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.)
Pending
Application number
CN201510642516.0A
Other languages
Chinese (zh)
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
Qizhi Software Beijing 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 CN201510642516.0A priority Critical patent/CN105279247A/en
Publication of CN105279247A publication Critical patent/CN105279247A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an expression library generation method and device. The method comprises steps of reading a piece of data from a database storing the correspondence of image expressions and expression character strings; adding a mapping relation of the expression character string and the unicode in the piece of data; and generating an expression library by use of new data obtained after processing. Through adoption of the expression library generated by the method, the problem that the image expression needs to be processed for multiple times in a certain application is solved.

Description

The generation method in expression storehouse and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of generation method and device of storehouse of expressing one's feelings.
Background technology
At present, expression storehouse almost obtains in all mobile chat softwares applies widely, and such as micro-letter, credulity, QQ etc. have a storehouse of expressing one's feelings, and the content of text of editor can be sent to the other side's client from expression library call picture expression.Picture expression in expression storehouse 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.
Under normal circumstances, existing expression storehouse has established the mapping relations of picture expression and expression character string, the picture expression called based on these mapping relations, although display is expression in specified scope, but what in actual mechanical process, TextView control inside was preserved is original character string, namely picture expression and the expression character string in storehouse of expressing one's feelings is regarded as two independent individualities to be existed, picture expression integrally can not be processed, this shows, when background program performs, the identification of these mapping relations has certain leak, cause when picture processing is carried out in some application (such as input method), needing repeatedly could complete operation to the execution of picture expression.
This shows, when using existing expression storehouse, if carry out process operation to the picture expression that it comprises, multi-pass operations may be needed to complete, and increasing of number of operations can waste corresponding resource, and increases operation easier.
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 a kind of generation method of storehouse of expressing one's feelings solved the problem at least in part and device.
According to one aspect of the present invention, provide a kind of generation method of storehouse of expressing one's feelings, comprising:
From store picture expression with expression character string corresponding relation database read data;
The mapping relations between expression character string and single code unicode are set up in notebook data;
The new data obtained after utilizing process generates expression storehouse.
Alternatively, also comprise:
What repeat data reading step and mapping relations sets up step, until all data of described database are all processed, the single code that each data are set up is different.
Alternatively, the single code bit of setting up described in is in the blank coding region of described client.
Alternatively, described mapping relations of setting up expression character string and single intersymbol in notebook data, comprising:
The Direct mapping relation of expression character string and single code is set up in notebook data; And/or
The reverse Mapping relation of expression character string and single code sound is set up in notebook data.
Alternatively, described in the mapping relations of the expression character string of setting up and single intersymbol preserve in memory, when described picture expression is called, be loaded on described client internal memory.
Alternatively, described set up in notebook data expression character string and single intersymbol mapping relations after, also comprise:
In conjunction with described picture expression and the expression corresponding relation of character string and the mapping relations of described expression character string and single intersymbol, to set up new mapping relations in picture expression with described single intersymbol.
According to a further aspect in the invention, provide a kind of generating apparatus of storehouse of expressing one's feelings, comprising:
Digital independent interface, is suitable for reading data from the database of the corresponding relation storing picture expression and expression character string;
Module is set up in mapping, is suitable in notebook data, set up the mapping relations between expression character string and single code unicode;
Expression storehouse generation module, the new data obtained after being suitable for utilizing process generates expression storehouse.
Alternatively, also comprise:
Described data read module, is suitable for reading next data from described database;
Judge module, is suitable for judging that whether next data described are the last item data of described database; If not, then trigger described mapping and set up module; If so, then terminate;
Module is set up in described mapping, and what be suitable for performing mapping relations to described next data sets up step, and wherein, the single code that each data are set up is different.
Alternatively, the single code bit of setting up described in is in the blank coding region of described client.
Alternatively, described mapping is set up module and is also suitable for:
The Direct mapping relation of expression character string and single code is set up in notebook data; And/or
The reverse Mapping relation of expression character string and single code sound is set up in notebook data.
Alternatively, also comprise:
Storer, is suitable for the mapping relations of expression character string and the single intersymbol set up described in storing;
Load-on module, was suitable for being loaded on described client internal memory when described picture expression is called.
Alternatively, module is set up in described mapping, after being also suitable for setting up the mapping relations of expression character string and single intersymbol in notebook data, in conjunction with described picture expression and the expression corresponding relation of character string and the mapping relations of described expression character string and single intersymbol, to set up new mapping relations in picture expression with described single intersymbol.
In embodiments of the present invention, mapping relations between picture expression and expression character string are the existing mapping relations of expressing one's feelings in storehouse, because the mapping relations between picture expression and expression character string are for identifying that picture exists certain leak in expressing one's feelings, picture is caused to be expressed one's feelings and expression character string may be regarded as two independent individualities and exists, now, if desired picture expression is processed, may need to perform the process that repeatedly can complete picture expression.For solving this technical matters, the embodiment of the present invention is on the basis of picture expression with the mapping relations of expression character string, the mapping relations of expression character string and unicode are set up, unicode is a kind of international standard code used on computers, 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, that is, 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 the processing flow chart of the generation method in storehouse of expressing one's feelings according to an embodiment of the invention;
Fig. 2 shows the mapping relations of express one's feelings according to an embodiment of the invention character string and unicode;
Fig. 3 shows the mapping relations schematic diagram of picture expression, expression character string and unicode according to an embodiment of the invention;
Fig. 4 is a kind of structural representation of generating apparatus in storehouse of expressing one's feelings according to an embodiment of the invention;
Fig. 5 is the another kind of structural representation of generating apparatus in storehouse of expressing one's feelings according to an embodiment of the invention; And
Fig. 6 is the another kind of structural representation of generating apparatus in storehouse of expressing one's feelings according to an embodiment of the 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 the generation method in expression storehouse.Fig. 1 shows a kind of according to an embodiment of the invention processing flow chart of generation method of storehouse of expressing one's feelings.See Fig. 1, the method at least comprises the following steps S102 to step S106.
First, perform step S102, from store picture expression with expression character string corresponding relation database read data.
There is the corresponding relation of picture expression and expression character string in database, particularly, for expression of smiling, reads out smile picture expression and smile from database and to express one's feelings the mapping relations that character string " [: smile] " sets up.
Alternatively, picture expression corresponding to the every bar data in database all can be kept in class catalogue (such as: assets catalogue), and each picture expression is resolved to bitmap file (bitmap).Bitmap uses pel array to represent that picture is expressed one's feelings, and picture expression be defined as and be made up of point (such as pixel), each point can be represented by multicolour, comprises 2,4,8,16,24 and 32 colors.In resolving, first need picture expression to be converted into Windows standard format graphic file, and then Windows standard format graphic file is resolved.After each picture expression is resolved to corresponding 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,
publicclassEmoji{
/ * * expression title */
publicStringname;
The corresponding picture * of/* */
publicBitmapbitmap;
},
For expression of smiling,
publicclassEmoji{
/**Smile*/
publicStringname;
/**SmileImage*/
publicBitmapbitmap;
}。
Mention above, each picture expression in database is resolved into corresponding bitmap and preserves, and correspondingly, when carrying out the process of picture expression, can in database, call corresponding bitmap and be presented at client end interface.
Secondly, perform step S104, on the data basis that step S102 reads, set up the mapping relations between expression character string and single code (unicode).
The data that step S102 reads have the mapping relations of picture expression and expression character string, and on this mapping relations basis, the embodiment of the present invention is the mapping relations that data add expression character string and unicode.Particularly, for expression of smiling, express one's feelings on the basis of the mapping relations set up between character string " [: smile] " with smiling in smile picture expression, set up the mapping relations of " [: smile] " and single code " 0xF001 ".
It should be noted that, in embodiments of the present invention, mapping relations between picture expression and expression character string are the existing mapping relations of expressing one's feelings in storehouse, because the mapping relations between picture expression and expression character string are for identifying that picture exists certain leak in expressing one's feelings, picture is caused to be expressed one's feelings and expression character string may be regarded as two independent individualities and exists, now, if desired picture expression is processed, may need to perform the process that repeatedly can complete picture expression.For solving this technical matters, the embodiment of the present invention, on the basis of picture expression with the mapping relations of expression character string, has set up the 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, pictograph and other symbols may be used in the writing language that unique binary coding representation is all in the world, that is, 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.
Particularly, when client initiates removal request to any picture expression, background processor is expressed one's feelings with the mapping relationship searching between corresponding expression character string to corresponding expression character string according to picture, and then according to the expression character string of setting up with the mapping relationship searching between unicode to corresponding unicode, background processor performs deletion action to the unicode found, the picture expression on foreground and the expression character string of correspondence also corresponding deleted, therefore, it is possible to once complete the delete processing of picture expression, save unnecessary number of processes, saving resource, improve user and experience experience.
Subsequently, perform step S106, the new data obtained after utilizing step S104 process generates expression storehouse.
The new data that step S106 obtains both had comprised the mapping relations of picture expression and expression character string, comprise again the mapping relations of expression character string and unicode, the new data including above two kinds of mapping relations is generated expression storehouse, the picture expression of namely expressing one's feelings in storehouse comprises above two kinds of mapping relations, picture expression in the expression storehouse that the embodiment of the present invention is provided also possesses uniqueness at operating level, that is, disposable operation is only needed can to realize the process of expressing one's feelings to picture, need not multi-pass operations.Particularly, for expression of smiling, the expression storehouse generated according to method of the present invention, comprising smile expression data comprise two kinds of mapping relations, the i.e. mapping relations of smile picture expression and expression character string " [: smile] ", the mapping relations of expression character string " [: smile] " and single code " 0xF001 ".
Merely provide the process how data processed above, for ensureing that each picture expression in expression storehouse all can reach the object of single stepping, in a preferred embodiment of the invention, after the processed end of data, obtain another data in database, the mapping relations of setting up of the data read operation and step S104 that perform step S102 operate, until all data of database are all processed.After process terminates, the picture expression in whole expression storehouse has all set up the mapping relations of expression character string and unicode, 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, in the expression storehouse adopting generation method of the present invention to generate, the operational processes of each picture expression all can once complete.
In addition, be that, for ensureing the independence between each data, the single code set up for each data is different with should be noted that, avoid the amendment because of the corresponding multiple picture expression of identical the caused operation of single code.Because the unicode set up has uniqueness, make all to correspond to a unique unicode arranging the expression character string in cataloged procedure in every bar data.Such as, single code corresponding to " [: smile] " be " 0xF001 ", " [: cry] " correspondence be " 0xF002 ", now " 0xF001 " is deleted, what then uniquely determine to delete is " [: smile] " and expression of smiling, and can not process other pictures expression.
Further, a preferred embodiment of the present invention by the single code bit of setting up in the blank coding region of client, make full use of the white space of client, the single code set up is known succinct, its mapping relations of setting up also easily obtain, and in addition, to also avoid with other existing Code obfuscation at the same area, cause code to superpose the problem of the confusion caused, and then reduce acquisition difficulty.
The expression character string that step S106 sets up and the mapping relations of unicode, processing mode according to mapping relations and picture expression can be divided into two kinds, be a Direct mapping relation of setting up expression character string and single code in notebook data, and another kind is the reverse Mapping relation of setting up expression character string and single code in notebook data.Fig. 2 shows the schematic diagram of the mapping relations of expression character string according to an embodiment of the invention and unicode.In actual applications, consider the different disposal operation that picture is expressed one's feelings, can select to set up Direct mapping relation or reverse Mapping relation according to actual conditions, also can select to set up Direct mapping relation and reverse Mapping relation simultaneously.
See Fig. 2, between picture expression and expression character string, also can have Direct mapping relation and reverse Mapping relation simultaneously.In practical application, in conjunction with picture expression, expression character string and the triangular Direct mapping relation of unicode and reverse Mapping relation, and then perform the process of picture expression according to the mapping relations after combining.Particularly, for expression of smiling, during client executing smile picture expression operational processes, first according to the Direct mapping relation of smile picture expression with expression character string, find character string of expressing one's feelings accordingly " [: smile] ", and then utilize the Direct mapping relation of expression character string and the unicode increased, find corresponding single code " 0xF001 ", the operation and the smile picture performed in processing messages by " 0xF001 " is expressed one's feelings.Simultaneously, also some terminal may be there is, its backstage only can identify single code " 0xF001 ", and then can according to the reverse Mapping relation of smile expression character string and unicode, find corresponding smile expression character string " [: smile] ", the reverse Mapping relation of character string of expressing one's feelings according to picture expression and smile again, finds corresponding picture expression, and is presented at terminal interface.
Preferably, the expression character string of setting up and the mapping relations of single intersymbol can be preserved in memory, when picture expression is called, be loaded on client internal memory, to save the storage space of client.
In practical application, 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.
On the mapping relations basis adding expression character string and unicode, in a preferred embodiment of the present invention, also comprise: in conjunction with the corresponding relation of picture expression with expression character string and the mapping relations of express one's feelings character string and single intersymbol, to set up new mapping relations in picture expression with single intersymbol.Particularly, Fig. 3 shows the mapping relations schematic diagram of the picture expression of one embodiment of the present of invention, character string of expressing one's feelings and single code.See Fig. 3, in the mapping relations of picture expression and expression character string and the expression character string of setting up with on the basis of the mapping relations of unicode, realize picture expression and the combination of unicode by expression character string, make the mapping relations setting up correspondence between the two.For expression of smiling, express one's feelings the mapping relations of character string " [: smile] " and single code " 0xF001 " in conjunction with smile picture expression and the express one's feelings mapping relations of character string " [: smile] " and the smile of setting up of smiling, express one's feelings at smile picture and set up corresponding mapping relations with single code " 0xF001 ".
Below using american sage herb picture expression as the present invention's specific embodiment, further illustrate the present invention express one's feelings storehouse generate flow process.
First, from existing database, read american sage herb picture expression and american sage herb to express one's feelings the data of corresponding relation of character string " [: redflower] ", then in american sage herb picture expression with on the basis of the mapping relations of " [: redflower] ", set up the mapping relations of " [: redflower] " and single code " 0xF003 ", therefore in database, these data comprise two kinds of mapping relations, this new data is generated expression storehouse, it should be noted that, each picture expression in the expression storehouse generated according to the present invention includes above two kinds of mapping relations.Only for american sage herb picture expression in the embodiment of the present invention, but in database, other data all generate new data according to method of the present invention, composition expression storehouse.
Then, 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, the picture expression further illustrated in the expression storehouse generated according to the present invention carries out beneficial effect during process operation.
First, the word content that the content of text being sent to client both comprised " today, teacher sent out an american sage herb to Xiao Ming ", comprise again the image content of " american sage herb ", this american sage herb picture expression is according to a picture expression in the expression storehouse of the inventive method generation, it is on the mapping relations basis of existing picture expression and expression character string " [: redflower] ", adds the mapping relations of " [: redflower] " and single code " 0xF003 ".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 the 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 the setting up 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 the mapping relations not using increase, 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, picture expression in the expression storehouse generated according to method of the present invention adds the mapping relations of expression character string and unicode, american sage herb picture expression in content of text has also set up these mapping relations, and the input of american sage herb picture expression is complete by the single code " 0xF003 " set 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, 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 of generating apparatus of storehouse of expressing one's feelings.Fig. 4 is a kind of according to an embodiment of the invention structural representation of generating apparatus of storehouse of expressing one's feelings.See Fig. 4, this device at least comprises:
Digital independent interface 410, is suitable for reading data from the database of the corresponding relation storing picture expression and expression character string;
Module 420 is set up in mapping, is coupled with digital independent interface 410, is suitable in notebook data, set up the mapping relations between expression character string and unicode;
Expression storehouse generation module 430, sets up module 420 with mapping and is coupled, and the new data obtained after being suitable for utilizing process generates expression storehouse.
In a preferred embodiment of the invention, digital independent interface 410, is suitable for reading next data from database;
Also comprise judge module 440, set up module 420 with data read module 410 and mapping and be coupled, be suitable for judging that whether next data is the last item data of database; If not, then return triggering mapping and set up module; If so, then terminate;
Module 420 is set up in mapping, is coupled with judge module 440, be suitable for next data perform mapping relations set up step, wherein, the single code that each data are set up is different, and the generating apparatus structural representation in the expression storehouse that the embodiment of the present invention provides is see Fig. 5.
In a preferred embodiment of the invention, the single code bit of setting up is in the blank coding region of client.
In a preferred embodiment of the invention, map and set up module 420 and be also suitable for:
The Direct mapping relation of expression character string and single code is set up in notebook data; And/or
The reverse Mapping relation of expression character string and single code is set up in notebook data.
In a preferred embodiment, see Fig. 6, the generating apparatus in expression storehouse can also comprise:
Storer 450, sets up module 420 with mapping and is coupled, and is suitable for the mapping relations storing expression character string and the single intersymbol set up;
Load-on module 460, is coupled with storer 450, is suitable for being loaded on client internal memory when picture expression is called.
In a preferred embodiment, module 420 is set up in mapping, after being also suitable for setting up the mapping relations of expression character string and single intersymbol in notebook data, in conjunction with the corresponding relation of picture expression with expression character string and the mapping relations of express one's feelings character string and single intersymbol, to set up new mapping relations in picture expression with single intersymbol.
To sum up, generation method and the device in the expression storehouse adopting the embodiment of the present invention to provide can reach following beneficial effect:
In embodiments of the present invention, mapping relations between picture expression and expression character string are the existing mapping relations of expressing one's feelings in storehouse, because the mapping relations between picture expression and expression character string are for identifying that picture exists certain leak in expressing one's feelings, picture is caused to be expressed one's feelings and expression character string may be regarded as two independent individualities and exists, now, if desired picture expression is processed, may need to perform the process that repeatedly can complete picture expression.For solving this technical matters, the embodiment of the present invention, on the basis of picture expression with the mapping relations of expression character string, has set up the 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, pictograph and other symbols may be used in the writing language that unique binary coding representation is all in the world, that is, 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 by chromosome sheet, 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 storehouse generating 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 (12)

1. to express one's feelings the generation method in storehouse, be applied to the client using picture expression, comprise:
From store picture expression with expression character string corresponding relation database read data;
The mapping relations between expression character string and single code unicode are set up in notebook data;
The new data obtained after utilizing process generates expression storehouse.
2. method according to claim 1, wherein, also comprises:
What repeat data reading step and mapping relations sets up step, until all data of described database are all processed, wherein, the single code that each data are set up is different.
3. method according to claim 1 and 2, wherein, described in the single code bit of setting up in the blank coding region of described client.
4. the method according to any one of claims 1 to 3, wherein, described mapping relations of setting up expression character string and single intersymbol in notebook data, comprising:
The Direct mapping relation of expression character string and single code is set up in notebook data; And/or
The reverse Mapping relation of expression character string and single code is set up in notebook data.
5. the method according to any one of Claims 1-4, wherein, described in the mapping relations of the expression character string of setting up and single intersymbol preserve in memory, when described picture expression is called, be loaded on described client internal memory.
6. the method according to any one of claim 1 to 5, wherein, described set up in notebook data expression character string and single intersymbol mapping relations after, also comprise:
In conjunction with described picture expression and the expression corresponding relation of character string and the mapping relations of described expression character string and single intersymbol, to set up new mapping relations in picture expression with described single intersymbol.
7. to express one's feelings the generating apparatus in storehouse, be applied to the client using picture expression, comprise:
Digital independent interface, is suitable for reading data from the database of the corresponding relation storing picture expression and expression character string;
Module is set up in mapping, is suitable in notebook data, set up the mapping relations between expression character string and single code unicode;
Expression storehouse generation module, the new data obtained after being suitable for utilizing process generates expression storehouse.
8. device according to claim 7, wherein, also comprises:
Described data read module, is suitable for reading next data from described database;
Judge module, is suitable for judging that whether next data described are the last item data of described database; If not, then trigger described mapping and set up module; If so, then terminate;
Module is set up in described mapping, and what be suitable for performing mapping relations to described next data sets up step, and wherein, the single code that each data are set up is different.
9. the device according to claim 7 or 8, wherein, described in the single code bit of setting up in the blank coding region of described client.
10. the device according to any one of claim 7 to 9, wherein, described mapping is set up module and is also suitable for:
The Direct mapping relation of expression character string and single code is set up in notebook data; And/or
The reverse Mapping relation of expression character string and single code is set up in notebook data.
11. devices according to any one of claim 7 to 10, wherein, also comprise:
Storer, is suitable for the mapping relations of expression character string and the single intersymbol set up described in storing;
Load-on module, was suitable for being loaded on described client internal memory when described picture expression is called.
12. devices according to any one of claim 7 to 11, wherein, module is set up in described mapping, after being also suitable for setting up the mapping relations of expression character string and single intersymbol in notebook data, in conjunction with described picture expression and the expression corresponding relation of character string and the mapping relations of described expression character string and single intersymbol, to set up new mapping relations in picture expression with described single intersymbol.
CN201510642516.0A 2015-09-30 2015-09-30 Expression library generation method and device Pending CN105279247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510642516.0A CN105279247A (en) 2015-09-30 2015-09-30 Expression library generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510642516.0A CN105279247A (en) 2015-09-30 2015-09-30 Expression library generation method and device

Publications (1)

Publication Number Publication Date
CN105279247A true CN105279247A (en) 2016-01-27

Family

ID=55148261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510642516.0A Pending CN105279247A (en) 2015-09-30 2015-09-30 Expression library generation method and device

Country Status (1)

Country Link
CN (1) CN105279247A (en)

Cited By (3)

* 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
CN108805960A (en) * 2018-05-31 2018-11-13 北京字节跳动网络技术有限公司 Composing Method of Mixing, device, computer readable storage medium and terminal
CN111966804A (en) * 2020-08-11 2020-11-20 深圳传音控股股份有限公司 Expression processing method, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118558A (en) * 2007-07-10 2008-02-06 青岛海信移动通信技术股份有限公司 Converting method and apparatus for resource file
CN101281430A (en) * 2007-04-06 2008-10-08 北京三星通信技术研究有限公司 Apparatus with expression symbol associating input function and associating input method
CN201465547U (en) * 2009-05-21 2010-05-12 林庆元 Novel voice player
JP2013003755A (en) * 2011-06-15 2013-01-07 Nec Casio Mobile Communications Ltd Mobile communication terminal, emoticon input support system, emoticon input support method, and program
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device
CN104750663A (en) * 2013-12-27 2015-07-01 阿里巴巴集团控股有限公司 Identification method and device for text messy codes in page

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281430A (en) * 2007-04-06 2008-10-08 北京三星通信技术研究有限公司 Apparatus with expression symbol associating input function and associating input method
CN101118558A (en) * 2007-07-10 2008-02-06 青岛海信移动通信技术股份有限公司 Converting method and apparatus for resource file
CN201465547U (en) * 2009-05-21 2010-05-12 林庆元 Novel voice player
JP2013003755A (en) * 2011-06-15 2013-01-07 Nec Casio Mobile Communications Ltd Mobile communication terminal, emoticon input support system, emoticon input support method, and program
CN104750663A (en) * 2013-12-27 2015-07-01 阿里巴巴集团控股有限公司 Identification method and device for text messy codes in page
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device

Cited By (3)

* 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
CN108805960A (en) * 2018-05-31 2018-11-13 北京字节跳动网络技术有限公司 Composing Method of Mixing, device, computer readable storage medium and terminal
CN111966804A (en) * 2020-08-11 2020-11-20 深圳传音控股股份有限公司 Expression processing method, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN101183355B (en) Copy and paste processing method, apparatus
CN105160033A (en) Expression character string processing method and device
US9256583B2 (en) Conversion of a presentation to Darwin Information Typing Architecture (DITA)
CN108108342B (en) Structured text generation method, search method and device
CN105824787A (en) Control method and system for dynamic configuration of HTML template
US9703763B1 (en) Automatic document citations by utilizing copied content for candidate sources
CN111736840A (en) Compiling method and running method of applet, storage medium and electronic equipment
CN113158101B (en) Visual page rendering method, device, equipment and storage medium
CN103092941A (en) Method and device showing content on electronic equipment
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
US20080052619A1 (en) Spell Checking Documents with Marked Data Blocks
CN112527291A (en) Webpage generation method and device, electronic equipment and storage medium
Gulwani et al. StriSynth: synthesis for live programming
CN105279247A (en) Expression library generation method and device
CN114895908B (en) Web application expression-based implementation method, system, equipment and storage medium
CN104375814A (en) Generation method and device of an interface document
CN102193789B (en) Method and equipment for realizing configurable skip link
US20120192046A1 (en) Generation of a source complex document to facilitate content access in complex document creation
CN111142871A (en) Front-end page development system, method, equipment and medium
CN111026604A (en) Log file analysis method and device
CN113704819B (en) Coding output method and device of application log and computer readable storage medium
CN113590564B (en) Data storage method, device, electronic equipment and storage medium
CN112181429B (en) Information processing method and device and electronic equipment
CN112540958B (en) File processing method, device, equipment and computer storage medium
CN113377453A (en) Picture processing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160127

RJ01 Rejection of invention patent application after publication