CN108805960A - Composing Method of Mixing, device, computer readable storage medium and terminal - Google Patents
Composing Method of Mixing, device, computer readable storage medium and terminal Download PDFInfo
- Publication number
- CN108805960A CN108805960A CN201810553273.7A CN201810553273A CN108805960A CN 108805960 A CN108805960 A CN 108805960A CN 201810553273 A CN201810553273 A CN 201810553273A CN 108805960 A CN108805960 A CN 108805960A
- Authority
- CN
- China
- Prior art keywords
- expression
- picture
- text
- metadata
- occupy
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of Composing Method of Mixing, device, computer readable storage medium and terminals.Wherein, which includes:Obtain user data;By default expression mapping table, user data is parsed;Based on analysis result, expression metadata is constructed;Wherein, expression metadata includes lteral data and expression occupy-place character, and for expression occupy-place character for identifying expression picture to be shown, expression occupy-place characters' property is set as the attribute of expression picture to be shown;According to default placement rule, picture and text rendering is carried out to expression metadata.Solves the technical issues of how improving user's visual experience through the embodiment of the present invention, enrich the context that user makes comments, it is more readable than simple word, it can avoid the embarrassment having nothing to speak, the expression that can be selected according to user, determine expression picture corresponding with the Emotion element, meet the custom that user shows emotion, improve user comment area mutual momentum and liveness.
Description
Technical field
It, can more particularly to a kind of Composing Method of Mixing, device, computer the present invention relates to a kind of Internet technical field
Read storage medium and terminal.
Background technology
As user participates in the movable increase of network interdynamic, in interactive process, user expresses certainly under different contexts
Oneself wish of mood at that time is also increasingly stronger.Non-languae communication mode of the emoticon as expression mood, because it being capable of shape
It becomes more and more popular as vivo expressing the variation of mood.
In the application process of existing emoticon, when the network user inputs emoticon, the emoticon is usual
It is shown in input frame in the form of plain text;Then, when showing the emoticon, then by the expression of plain text
Symbol is converted into the emoticon of diagram form.
Since the above-mentioned prior art needs to be converted between various forms of emoticons;It is defeated user has been thereby resulted in
There are data format differences between the content and shown content that enter, so as to cause the defect of user's visual experience difference.
Invention content
The technical problem to be solved by the present invention is to provide a kind of Composing Method of Mixing, device, computer readable storage medium and
Terminal, with solve how to improve user's visual experience the technical issues of.
To achieve the goals above, according to the first aspect of the invention, following technical scheme is provided:
A kind of Composing Method of Mixing, including:
Obtain user data;
By default expression mapping table, the user data is parsed;
Based on analysis result, expression metadata is constructed;Wherein, the expression metadata includes lteral data and expression occupy-place
Character, for the expression occupy-place character for identifying expression picture to be shown, the expression occupy-place characters' property is set as institute
State the attribute of expression picture to be shown;
According to default placement rule, picture and text rendering is carried out to the expression metadata.
Further, the default expression mapping table determines in the following manner:
According to expression character and expression picture, the table of comparisons is built;
Based on the table of comparisons, regular expression is generated;
Based on the regular expression, is formed and preset expression mapping table.
Further, described according to default placement rule, the step of picture and text rendering is carried out to the expression metadata, specifically
Including:
According to default placement rule, the expression metadata is laid out;
The lteral data after layout is drawn using word rendering engine;
The expression occupy-place character after layout is drawn using graphics rendering engine.
Further, described according to default placement rule, the step of picture and text rendering is carried out to the expression metadata, specifically
Including:
Obtain propertystring;Wherein, the attachment of the propertystring includes the expression metadata;
The propertystring is rendered by text typesetting rendering engine according to default placement rule.
To achieve the goals above, according to the second aspect of the invention, following technical scheme is also provided:
A kind of picture and text mixing device, including:
Acquisition module, for obtaining user data;
Parsing module, for by default expression mapping table, being parsed to the user data;
Constructing module, for based on analysis result, constructing expression metadata;Wherein, the expression metadata includes word
Data and expression occupy-place character, the expression occupy-place character is for identifying expression picture to be shown, the expression occupy-place character
Attribute be set as the attribute of the expression picture to be shown;
Rendering module, for according to default placement rule, picture and text rendering to be carried out to the expression metadata.
Further, the parsing module determines the default expression mapping table in the following manner:
According to expression character and expression picture, the table of comparisons is built;
Based on the table of comparisons, regular expression is generated;
Based on the regular expression, is formed and preset expression mapping table.
Further, the rendering module is specifically used for:
According to default placement rule, the expression metadata is laid out;
The lteral data after layout is drawn using word rendering engine;
The expression occupy-place character after layout is drawn using graphics rendering engine.
Further, the rendering module is specifically used for:
Obtain propertystring;Wherein, the attachment of the propertystring includes the expression metadata;
The propertystring is rendered by text typesetting rendering engine according to default placement rule.
To achieve the goals above, according to the third aspect of the invention we, following technical scheme is also provided:
A kind of picture and text mixing hardware device, including:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction so that realized when the processor executes such as the present invention the
Composing Method of Mixing described in one side.
To achieve the goals above, according to the fourth aspect of the invention, following technical scheme is also provided:
A kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory
When computer-readable instruction is executed by computer so that the computer executes the picture and text mixing side described in first aspect present invention
Method.
To achieve the goals above, according to the fifth aspect of the invention, following technical scheme is also provided:
A kind of picture and text mixing terminal, including a kind of picture and text mixing device described in second aspect of the present invention.
A kind of Composing Method of Mixing of offer of the embodiment of the present invention, device, computer readable storage medium and terminal.Wherein,
The Composing Method of Mixing includes:Obtain user data;By default expression mapping table, user data is parsed;Based on solution
Analysis is as a result, construction expression metadata;Wherein, expression metadata includes lteral data and expression occupy-place character, expression occupy-place character
For identifying expression picture to be shown, expression occupy-place characters' property is set as the attribute of expression picture to be shown;According to
Default placement rule carries out picture and text rendering to expression metadata.The embodiment of the present invention waits showing using expression occupy-place character to identify
The expression picture shown;Then, then to constructed by user data and default expression mapping table including lteral data and expression
The expression metadata of occupy-place character is rendered, in visual experience so that emoticon is more integrated with word;Make
It is consistent with shown content to obtain content input by user;Improve the picture and text mixing effect in user's visual experience;And
The context that user makes comments also is enriched, can more be attracted eyeball, it is more readable than simple word, it can avoid having nothing to speak awkward
A word used for translation can meet user and show emotion according to the expression that user selects to determine expression picture corresponding with the Emotion element
Custom, improve user comment area mutual momentum and liveness and client renewal amount.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and
It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the present invention can be brighter
It is aobvious understandable, it is special below to lift preferred embodiment, and coordinate attached drawing, detailed description are as follows.
Description of the drawings
Fig. 1 a are the flow diagram according to the Composing Method of Mixing of one embodiment of the invention;
Fig. 1 b are to carry out picture and text wash with watercolours to the expression metadata according to default placement rule according to one embodiment of the invention
The flow diagram of dye;
Fig. 1 c are to carry out picture and text to the expression metadata according to default placement rule according to another embodiment of the present invention
The flow diagram of rendering;
Fig. 2 is the structural schematic diagram according to the picture and text mixing device of one embodiment of the invention;
Fig. 3 is the structural schematic diagram according to the picture and text mixing hardware device of one embodiment of the invention;
Fig. 4 is the structural schematic diagram according to the computer readable storage medium of one embodiment of the invention;
Fig. 5 is the structural schematic diagram according to the picture and text mixing terminal of one embodiment of the invention;
Fig. 6 is the structural schematic diagram according to the picture and text mixing terminal of another embodiment of the present invention.
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.Obviously, described embodiment is only the present invention
A part of the embodiment, instead of all the embodiments.The present invention can also be subject to reality by way of a different and different embodiment
It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the present invention
Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can
To be combined with each other.Based on the embodiments of the present invention, those of ordinary skill in the art are without creative efforts
The every other embodiment obtained, shall fall within the protection scope of the present invention.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian
And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein
And/or function is only illustrative.Based on the present invention, it will be understood by one of ordinary skill in the art that one described herein
Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways.
For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or put into practice method.In addition, can make
With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or
Put into practice the method.
It should also be noted that, the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way
Think, component count, shape and the size when only display is with related component in the present invention rather than according to actual implementation in schema are painted
System, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel also may be used
It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields
The skilled person will understand that the aspect can be put into practice without these specific details.
Below to present document relates to term be described in detail.
Character (character):Refer to the element of information itself, for example, Unicode characters.
Font (glyphs):It refer to the profiles characteristic of character.Wherein, a font can correspond to multiple characters;It is multiple
Font can correspond to a character.
Font (font):Refer to same size, the set of same style glyph, for example, runic, italic etc..
Baseline:Refer to a line of reference, is font accordingly as the reference of upper and lower position;The acquiescence baseline of expression and word
Not consistent, the baseline of the word of different fonts is also different.
Uplink height (ascent):Refer to the distance at the top of from baseline to font, is positive value.
Downlink height:Refer to the distance from baseline to font bottom, is negative value.
Line-spacing (linegap or leading):It refer to spacing between row and row;For example, several rows of font in letter press
Between the object (lead) filled.
Row is high:Refer to the distance between from current basic line to next line baseline, numerical value is equal to uplink height, downlink height
Absolute value and the sum of line-spacing.
The technical issues of in order to solve how to improve user's visual experience, the embodiment of the present invention provide a kind of picture and text mixing side
Method.As shown in Figure 1a, this method includes mainly step S100 to step S130.Wherein:
S100:Obtain user data.
Wherein, which may include lteral data and image data.The user data includes but is not limited to user
The user data selected from the panel of terminal, the user data that user is obtained by the operations such as replicating, pasting, and pass through the
The user data etc. that tripartite's platform is synchronous and comes.Certainly, the user data obtained in this step can also be by commenting network
Forum carries out keyword extraction and carries out user data obtained from emotion word analysis.These should also be included in the protection of the present invention
Within the scope of.The user data is used as user generated data (i.e. UGC data), for subsequent processing.
Wherein, which includes but not limited to smart mobile phone, tablet computer, laptop computer, desktop computer, intelligence
Television set, wearable device, virtual reality device etc..
S110:By default expression mapping table, which is parsed.
Wherein, Expression Mapping table can be locally applied Expression Mapping table (for example, the Expression Mapping of today's tops
Table), can also be the Expression Mapping table of third-party platform.
The expression metadata obtained in this step is preferably rich text format data.It can be with by the rich text format data
Compatible different platform, operating system and operating environment also allow for carrying out Data Format Transform, to optimize emoticon
Memory space and analysis feature, the expression vocabulary that can be directed to different platform are matched and are translated.
In an alternative embodiment, above-mentioned default expression mapping table can determine in the following manner:
S111:According to expression character and expression picture, the table of comparisons is built;
S112:Based on the table of comparisons, regular expression is generated;
S113:Based on the regular expression, is formed and preset expression mapping table.
S120:Based on analysis result, expression metadata is constructed;Wherein, which includes lteral data and expression
Occupy-place character, for identifying expression picture to be shown, which is set as waiting for the expression occupy-place character
The attribute of the expression picture of display.
Wherein, ((it can be by for example, blank character as reserved, to be responded character for the expression occupy-place character
0xFFFC is indicated) etc.).Expression picture to be shown is substituted by occupy-place character, in order to subsequently carry out drawing the step of word
Suddenly.
In specific implementation process, the pre-determined bit of expression picture to be shown can be determined using regular expression
It sets;Then, expression occupy-place character is set on the precalculated position, and the expression occupy-place characters' property is set;Wherein, the expression
Occupy-place characters' property includes but not limited to that uplink is high, downlink height and width degree, that is to say, that the size of the expression occupy-place character is
Size for the expression picture shown in terminal.
Preferably, the expression metadata that this step constructs can be the rich text format number with expression picture information
According to.
S130:According to default placement rule, picture and text rendering is carried out to the expression metadata.
In this step, which includes but not limited to following rule:
(1) placement rule line by line
Specifically, in expression metadata font and color be configured and convert;Wherein, it is related to multline text
When situation, word boundary, retraction, row height and line space etc. are carried out to word paragraph style and row pattern and converted.
(2) the size rule of expression picture
Specifically, in order to be laid out beautiful and visual satiety, get Bi Wen can be arranged in the size of expression picture
Word size size scheduled greatly, for example, 5pt (point, a kind of length unit are equal to 1/72 inch), 7pt etc., it can also be in table
The right and left of feelings picture position increases separately the blank spacing of 3pt.
(3) vertical center rule
Specifically, if necessary to which expression picture vertical center to be laid out, then the baseline of expression picture is subjected to migration processing
(baseline offset);Wherein, the distance of offset is determined according to the height of word baseline and the size of expression picture.
(4) left and right alignment rule
If expression picture will appear in, be expert at row is first and/or end of line, by the left margin of the expression picture and right/
Or back gauge is cut.
(5) rule is blocked
If the line number of expression metadata is more than line number threshold value, to more than part block, and blocking position
Addition predetermined character in place's for example, the predetermined character can be " ... full text " etc., and is expression to be rendered blocking at position
It when picture, by the predetermined character into line displacement, is allowed to after word segment, for example, can be by calculating table to be rendered
The width and back gauge of feelings picture;Then, predetermined character is deviated to the length of the width and the back gauge so that the predetermined character is closely followed
After word segment.
Certainly, those skilled in the art will be understood that in practical applications, can also be according to the ruler of display area in terminal
The corresponding imposition layout's rule of very little setting, details are not described herein.
In an alternative embodiment, as shown in Figure 1 b, step S130 is specifically included:
S131:According to default placement rule, which is laid out.
S132:The lteral data after layout is drawn using word rendering engine.
Wherein, word rendering engine for example can be Core Text rendering engines.
The Core Text rendering engines belong to bottom frame, internal to be docked with two-dimentional rendering engine, and can also make
For text layout and render interface.
To facilitate the understanding of the present invention, illustrate typesetting process by taking Core Text rendering engines as an example below:
It is selected to draw the origin lower left corner of display area (for example, in terminal);By each line of text (for example, CTline rows)
The word of middle same alike result is combined, as a text drawing unit (for example, CTRun drawing units);Then, Jiang Gehang
Text is combined composition text frame (for example, CTFrame frames).Core Text rendering engines according to propertystring (for example,
NSAttributedString propertystrings are used to describe rich text format data) inner Style Attributes, and call drafting
Function (for example, CTLineDraw functions) renders word to come.Wherein, propertystring include but not limited to runic, tiltedly
The attributes such as body, underscore, color, background;Each attribute has corresponding character zone.One text frame includes multiline text
Row;Each line of text includes multiple text drawing units.Text frame can be by production plant (for example, CTFramesetter texts
Production plant) it generates.Text frame can directly invoke drafting function and directly be drawn, and can also therefrom obtain line of text and work as
Forward uplink is high, downlink is high, line-spacing, is laid out to each text drawing unit and then using drafting letter
Number is drawn.
S133:The expression occupy-place character after layout is drawn using graphics rendering engine.
Wherein, graphics rendering engine for example can be Core Graphics X-Y scheme rendering engines.
Precedent is continued to use, the present embodiment can be by Core Text rendering engines and Core Graphic rendering engines to word
Body and font are handled, and word and emoticon are rendered the display area in terminal (for example, comment area, chat pair
Talk about frame etc.).
In another optional embodiment, as illustrated in figure 1 c, step S130 can also include specifically:
S134:Obtain propertystring;Wherein, the attachment of the propertystring includes expression metadata.
Wherein, propertystring for example can be NSAttributedString propertystrings.Expression metadata is made
It is implanted into the propertystring for attachment (for example, NSTextAttachment).
S135:The propertystring is rendered by text typesetting rendering engine according to default placement rule.
Wherein, text typesetting rendering engine (a kind of text tool case) for example can be Textkit typesetting rendering engines.
For example, by taking NSAttributedString propertystrings as an example, in this step, Textkit typesetting wash with watercolours
NSTextAttachment attachmentes can be mapped as propertystring by dye engine;Then, which is sent to text
It is rendered in this control.
What needs to be explained here is that, it is generally the case that the typesetting to font is based on baseline, and the typesetting to picture is also
Based on baseline.But when the height of the height of text font and expression picture is inconsistent, needle position misalignment amount can be first set
(for example, 1pt, 2pt etc.);Then, text typesetting rendering engine is recycled to be rendered.Wherein, if wrapped in propertystring
Containing extra line-spacing, then can also be overcome in such a way that pattern is set.
In practical applications, the embodiment of the present invention can be advised after obtaining context (context) based on above-mentioned layout
Then, word rendering engine and figure rendering can be called to draw by the data conversion comprising expression metadata at rendering parameter, then
It holds up or text typesetting rendering engine carries out picture and text rendering on context, to obtain the figure with word and emoticon
Text displaying, which thereby enhances user's visual experience.
In conclusion the embodiment of the present invention identifies expression picture to be shown using expression occupy-place character;Then, then it is right
Constructed by the user data and default expression mapping table including expression metadata of lteral data and expression occupy-place character into
Row renders, in visual experience so that emoticon is more integrated with word;Make content input by user and shows
The content shown is consistent;Improve the picture and text mixing effect in user's visual experience;But also enrich what user made comments
Context can more attract eyeball, more readable than simple word, can avoid the embarrassment having nothing to speak, and can be selected according to user
Expression meets the custom that user shows emotion to determine expression picture corresponding with the Emotion element, improves user and is commenting
The mutual momentum and liveness of forum and the renewal amount of client.
Hereinbefore, although describing each step in Composing Method of Mixing embodiment, ability according to above-mentioned sequence
Field technique personnel, can also inverted order, simultaneously it should be clear that the step in the embodiment of the present invention not necessarily executes in the order described above
Other sequences such as row, intersection execute, moreover, on the basis of above-mentioned steps, those skilled in the art can also add other
The mode of step, these obvious variants or equivalent replacement should also be included within protection scope of the present invention, and details are not described herein.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is used to execute the realization of the method for the present invention embodiment
Step illustrates only for convenience of description and does not disclose, please join with the relevant part of the embodiment of the present invention, particular technique details
According to the method for the present invention embodiment.
The technical issues of in order to solve how to improve user's visual experience, the embodiment of the present invention also provide a kind of picture and text mixing
Device.As shown in Fig. 2, the device mainly includes:Acquisition module 21, parsing module 22, constructing module 23 and rendering module 24.Its
In, acquisition module 21 is for obtaining user data.Parsing module 22 is used to, by default expression mapping table, carry out user data
Parsing.Constructing module 23 is for based on analysis result, constructing expression metadata;Wherein, expression metadata include lteral data and
Expression occupy-place character, for identifying expression picture to be shown, expression occupy-place characters' property is set as waiting for expression occupy-place character
The attribute of the expression picture of display.Rendering module 24 is used for according to default placement rule, and picture and text rendering is carried out to expression metadata.
Wherein, which may include lteral data and image data.The user data includes but is not limited to user
The user data selected from the panel of terminal, the user data that user is obtained by the operations such as replicating, pasting, and pass through the
The user data etc. that tripartite's platform is synchronous and comes.Certainly, the user data obtained in this step can also be by commenting network
Forum carries out keyword extraction and carries out user data obtained from emotion word analysis.These should also be included in the protection of the present invention
Within the scope of.The user data is used as user generated data (i.e. UGC data), for subsequent processing.
Wherein, ((it can be by for example, blank character as reserved, to be responded character for the expression occupy-place character
0xFFFC is indicated) etc.).
Above-mentioned Expression Mapping table can be locally applied Expression Mapping table (for example, the Expression Mapping of today's tops
Table), can also be the Expression Mapping table of third-party platform.
In an alternative embodiment, parsing module 22 determines default expression mapping table in the following manner:According to
Expression character and expression picture build the table of comparisons;Based on the table of comparisons, regular expression is generated;Based on regular expression, formed pre-
If Expression Mapping table.
Above-mentioned default placement rule includes but not limited to following rule:
(1) placement rule line by line
Specifically, in expression metadata font and color be configured and convert;Wherein, it is related to multline text
When situation, word boundary, retraction, row height and line space etc. are carried out to word paragraph style and row pattern and converted.
(2) the size rule of expression picture
Specifically, in order to be laid out beautiful and visual satiety, get Bi Wen can be arranged in the size of expression picture
Word size size scheduled greatly, for example, 5pt (point, a kind of length unit are equal to 1/72 inch), 7pt etc., it can also be in table
The right and left of feelings picture position increases separately the blank spacing of 3pt.
(3) vertical center rule
Specifically, if necessary to which expression picture vertical center to be laid out, then the baseline of expression picture is subjected to migration processing
(baseline offset);Wherein, the distance of offset is determined according to the height of word baseline and the size of expression picture.
(4) left and right alignment rule
If expression picture will appear in, be expert at row is first and/or end of line, by the left margin of the expression picture and right/
Or back gauge is cut.
(5) rule is blocked
If the line number of expression metadata is more than line number threshold value, to more than part block, and blocking position
Addition predetermined character in place's for example, the predetermined character can be " ... full text " etc., and is expression to be rendered blocking at position
It when picture, by the predetermined character into line displacement, is allowed to after word segment, for example, can be by calculating table to be rendered
The width and back gauge of feelings picture;Then, predetermined character is deviated to the length of the width and the back gauge so that the predetermined character is closely followed
After word segment.
In an alternative embodiment, rendering module 24 is specifically used for:According to default placement rule, to expression metadata
It is laid out;The lteral data after layout is drawn using word rendering engine;Using graphics rendering engine to layout after
Expression occupy-place character drawn.
Wherein, word rendering engine for example can be Core Text rendering engines.The Core Text rendering engines belong to
Bottom frame, it is internal to be docked with two-dimentional rendering engine, and be also used as text layout and render interface.
Wherein, graphics rendering engine for example can be Core Graphics X-Y scheme rendering engines.
In the present embodiment, rendering module 24 is by calling word rendering engine and graphics rendering engine to font and font
It is handled, and word and emoticon is rendered to the display area (for example, comment area, chat conversations frame etc.) in terminal.
In an alternative embodiment, rendering module 24 also particularly useful for:Obtain propertystring;Wherein, attribute word
The attachment of symbol string includes expression metadata;According to default placement rule, by text typesetting rendering engine, to propertystring into
Row renders.
Wherein, propertystring for example can be NSAttributedString propertystrings.Expression metadata is made
It is implanted into the propertystring for attachment (for example, NSTextAttachment).
Wherein, text typesetting rendering engine (a kind of text tool case) for example can be Textkit typesetting rendering engines.
In conclusion the embodiment of the present invention passes through acquisition module 21, parsing module 22, constructing module 23 and rendering module
24, expression picture to be shown is identified using expression occupy-place character;Then, then to passing through user data and default Expression Mapping
The expression metadata of table constructs including lteral data and expression occupy-place character is rendered;To in visual experience, make
It is more integrated with word to obtain emoticon;So that content input by user is consistent with shown content;Improve user
Picture and text mixing effect in visual experience;But also the context that user makes comments is enriched, it can more attract eyeball, than simple
Word is more readable, can avoid the embarrassment having nothing to speak, the expression that can be selected according to user, opposite with the Emotion element to determine
The expression picture answered meets the custom that user shows emotion, and improves user in the mutual momentum and liveness in comment area, Yi Jike
The renewal amount at family end.
Fig. 3 is the hardware block diagram for illustrating picture and text mixing hardware device according to an embodiment of the present disclosure.As shown in figure 3, root
Picture and text mixing hardware device 30 according to the embodiment of the present disclosure includes memory 31 and processor 32.
The memory 31 is for storing non-transitory computer-readable instruction.Specifically, memory 31 may include one
Or multiple computer program products, the computer program product may include various forms of computer readable storage mediums, example
Such as volatile memory and/or nonvolatile memory.The volatile memory for example may include random access memory
(RAM) and/or cache memory (cache) etc..The nonvolatile memory for example may include read-only memory
(ROM), hard disk, flash memory etc..
The processor 32 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution energy
The processing unit of the other forms of power, and the other components that can be controlled in picture and text mixing hardware device 30 are desired to execute
Function.In one embodiment of the disclosure, which is used to run this that store in the memory 31 computer-readable
Instruction so that the picture and text mixing hardware device 30 executes whole or the portion of the Composing Method of Mixing of each embodiment of the disclosure above-mentioned
Step by step.
Those skilled in the art will be understood that the technical issues of in order to solve how to obtain good user experience effect, this
Can also include structure well known to communication bus, interface etc. in embodiment, these well known structures should also be included in this hair
Within bright protection domain.
The respective description that can be referred in foregoing embodiments is described in detail in relation to the present embodiment, details are not described herein.
The present embodiment improves user when processor 32 executes the non-transitory computer-readable instruction on memory 31
Picture and text mixing effect in visual experience;But also the context that user makes comments is enriched, it can more attract eyeball, than simple
Word is more readable, can avoid the embarrassment having nothing to speak, the expression that can be selected according to user, opposite with the Emotion element to determine
The expression picture answered meets the custom that user shows emotion, and improves user in the mutual momentum and liveness in comment area, Yi Jike
The renewal amount at family end.
Fig. 4 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in figure 4, root
According to the computer readable storage medium 40 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 41.When this
When non-transitory computer-readable instruction 41 is run by processor, the Composing Method of Mixing of each embodiment of the disclosure above-mentioned is executed
All or part of step.
Above computer readable storage medium storing program for executing 40 includes but not limited to:Optical storage media (such as:CD-ROM and DVD), magnetic
Optical storage media (such as:MO), magnetic storage medium (such as:Tape or mobile hard disk), with built-in rewritable nonvolatile
Memory media (such as:Storage card) and with built-in ROM media (such as:ROM boxes).
The respective description that can be referred in foregoing embodiments is described in detail in relation to the present embodiment, details are not described herein.
Computer readable storage medium 40 provided in this embodiment is in non-transitory computer-readable instruction 41 by processor
When operation, the picture and text mixing effect in user's visual experience is improved;But also the context that user makes comments is enriched, more can
It attracts eyeball, it is more readable than simple word, the embarrassment having nothing to speak is can avoid, the expression that can be selected according to user is come true
Fixed expression picture corresponding with the Emotion element, meets the custom that user shows emotion, and improves user in the mutual of comment area
The renewal amount of momentum and liveness and client.
Fig. 5 is the hardware architecture diagram for illustrating the terminal according to the embodiment of the present disclosure.As shown in figure 5, the picture and text mixing
Terminal 50 includes above-mentioned picture and text mixing device 51.
The terminal can be implemented in a variety of manners, and the terminal in the disclosure can include but is not limited to such as move electricity
Words, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (just
Take formula multimedia player), the movement of navigation device, vehicle-mounted terminal equipment, vehicle-mounted display terminal, vehicle electronics rearview mirror etc.
The fixed terminal equipment of terminal device and such as number TV, desktop computer etc..
As the embodiment of equivalent replacement, which can also include other assemblies.As shown in fig. 6, the picture and text mixing
Terminal 60 may include power supply unit 61, wireless communication unit 62, A/V (audio/video) input unit 63, user input unit
64, sensing unit 65, interface unit 66, controller 67, output unit 68 and memory 69 etc..Fig. 6 is shown with various
The terminal of component can also alternatively be implemented more or more it should be understood that be not required for implementing all components shown
Few component.
Wherein, wireless communication unit 62 allows the radio communication between terminal 60 and wireless communication system or network.A/V
Input unit 63 is for receiving audio or video signal.It is defeated that user input unit 64 can generate key according to order input by user
Enter data with the various operations of control terminal equipment.The current state of 65 detection terminal 60 of sensing unit, is used the position of terminal 60
Family for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 60, terminal 60, terminal 60 is mobile and direction etc., and
And generate order or the signal for the operation for being used for control terminal 60.Interface unit 66 is used as at least one external device (ED) and terminal 60
Connection can by interface.Output unit 68 is configured to provide output signal with vision, audio and/or tactile manner.It deposits
Reservoir 69 can store the software program etc. of the processing and control operation that are executed by controller 67, or can temporarily store
Oneself is through output or the data that will be exported.Memory 69 may include the storage medium of at least one type.Moreover, terminal 60 can
To cooperate with the network storage device for the store function for executing memory 69 by network connection.67 usual control terminal of controller
The overall operation of equipment.In addition, controller 67 may include for reproducing or the multi-media module of multimedia playback data.Control
The handwriting input executed on the touchscreen or picture can be drawn input and are identified as word by device 67 with execution pattern identifying processing
Symbol or image.Power supply unit 61 receives external power or internal power under the control of controller 67 and provides operation each element
With the electric power appropriate needed for component.
The disclosure propose Composing Method of Mixing various embodiments can with use such as computer software, hardware or
The computer-readable medium of any combination thereof is implemented.For hardware implement, the disclosure propose Composing Method of Mixing it is various
Embodiment can be filled by using application-specific IC (ASIC), digital signal processor (DSP), Digital Signal Processing
It sets (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, micro-
Processor is designed to execute at least one of electronic unit of function described herein to implement, in some cases, this
The various embodiments of the open Composing Method of Mixing proposed can be implemented in controller 67.For software implementation, the disclosure
The various embodiments of the Composing Method of Mixing of proposition can be with the individual software that allows to execute at least one functions or operations
Module is implemented.Software code can be by the software application (or program) write with any programming language appropriate Lai real
It applies, software code can be stored in memory 69 and be executed by controller 67.
The respective description that can be referred in foregoing embodiments is described in detail in relation to the present embodiment, details are not described herein.
Picture and text mixing terminal provided in this embodiment improves the picture and text mixing effect in user's visual experience;But also it is rich
The context that rich user makes comments, can more attract eyeball, more readable than simple word, can avoid the embarrassment having nothing to speak,
It can meet what user showed emotion according to the expression that user selects to determine expression picture corresponding with the Emotion element
Custom, improve user comment area mutual momentum and liveness and client renewal amount.
The basic principle of the disclosure is described above in association with specific embodiment, however, it is desirable to, it is noted that in the disclosure
The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the disclosure
Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand
With, and it is unrestricted, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the disclosure,.
The block diagram of device, device, equipment, system involved in the disclosure only as illustrative example and is not intended to
It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that
, it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool
" etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above
"or" and " and " refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made
Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
In addition, as used herein, the "or" instruction separation that is used in the enumerating of the item started with "at least one"
It enumerates, so that enumerating for such as " A, B or C's being at least one " means A or B or C or AB or AC or BC or ABC (i.e. A and B
And C).In addition, wording " exemplary " does not mean that the example of description is preferred or more preferable than other examples.
It may also be noted that in the system and method for the disclosure, each component or each step are can to decompose and/or again
Combination nova.These decompose and/or reconfigure the equivalent scheme that should be regarded as the disclosure.
The technology instructed defined by the appended claims can not departed from and carried out to the various of technology described herein
Change, replace and changes.In addition, the scope of the claims of the disclosure is not limited to process described above, machine, manufacture, thing
Composition, means, method and the specific aspect of action of part.It can be essentially identical using being carried out to corresponding aspect described herein
Function either realize essentially identical result there is currently or to be developed later processing, machine, manufacture, event group
At, means, method or action.Thus, appended claims include such processing within its scope, machine, manufacture, event
Composition, means, method or action.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this
It is open.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein
General Principle can be applied to other aspect without departing from the scope of the present disclosure.Therefore, the disclosure is not intended to be limited to
Aspect shown in this, but according to the widest range consistent with principle disclosed herein and novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the disclosure
It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill
Art personnel will be recognized that its certain modifications, modification, change, addition and sub-portfolio.
Claims (11)
1. a kind of Composing Method of Mixing, which is characterized in that including:
Obtain user data;
By default expression mapping table, the user data is parsed;
Based on analysis result, expression metadata is constructed;Wherein, the expression metadata includes lteral data and expression occupy-place word
Symbol, the expression occupy-place character are set as described for identifying expression picture to be shown, the expression occupy-place characters' property
The attribute of expression picture to be shown;
According to default placement rule, picture and text rendering is carried out to the expression metadata.
2. according to the method described in claim 1, it is characterized in that, the default expression mapping table determines in the following manner:
According to expression character and expression picture, the table of comparisons is built;
Based on the table of comparisons, regular expression is generated;
Based on the regular expression, is formed and preset expression mapping table.
3. according to the method described in claim 1, it is characterized in that, described according to default placement rule, to the expression member number
According to the step of carrying out picture and text rendering, specifically include:
According to default placement rule, the expression metadata is laid out;
The lteral data after layout is drawn using word rendering engine;
The expression occupy-place character after layout is drawn using graphics rendering engine.
4. according to the method described in claim 1, it is characterized in that, described according to default placement rule, to the expression member number
According to the step of carrying out picture and text rendering, specifically include:
Obtain propertystring;Wherein, the attachment of the propertystring includes the expression metadata;
The propertystring is rendered by text typesetting rendering engine according to default placement rule.
5. a kind of picture and text mixing device, which is characterized in that including:
Acquisition module, for obtaining user data;
Parsing module, for by default expression mapping table, being parsed to the user data;
Constructing module, for based on analysis result, constructing expression metadata;Wherein, the expression metadata includes lteral data
With expression occupy-place character, the expression occupy-place character is for identifying expression picture to be shown, the category of the expression occupy-place character
Property is set as the attribute of the expression picture to be shown;
Rendering module, for according to default placement rule, picture and text rendering to be carried out to the expression metadata.
6. device according to claim 5, which is characterized in that the parsing module determines described pre- in the following manner
If Expression Mapping table:
According to expression character and expression picture, the table of comparisons is built;
Based on the table of comparisons, regular expression is generated;
Based on the regular expression, is formed and preset expression mapping table.
7. device according to claim 5, which is characterized in that the rendering module is specifically used for:
According to default placement rule, the expression metadata is laid out;
The lteral data after layout is drawn using word rendering engine;
The expression occupy-place character after layout is drawn using graphics rendering engine.
8. device according to claim 5, which is characterized in that the rendering module is specifically used for:
Obtain propertystring;Wherein, the attachment of the propertystring includes the expression metadata;
The propertystring is rendered by text typesetting rendering engine according to default placement rule.
9. a kind of picture and text mixing hardware device, including:
Memory, for storing non-transitory computer-readable instruction;And
Processor, for running the computer-readable instruction so that realized when the processor executes as in claim 1-4
Composing Method of Mixing described in any one.
10. a kind of computer readable storage medium, for storing non-transitory computer-readable instruction, when the non-transitory meter
When calculation machine readable instruction is executed by computer so that the computer executes the figure as described in any one of claim 1-4
Literary mixing method.
11. a kind of picture and text mixing terminal, including a kind of picture and text mixing device described in claim 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810553273.7A CN108805960A (en) | 2018-05-31 | 2018-05-31 | Composing Method of Mixing, device, computer readable storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810553273.7A CN108805960A (en) | 2018-05-31 | 2018-05-31 | Composing Method of Mixing, device, computer readable storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108805960A true CN108805960A (en) | 2018-11-13 |
Family
ID=64089963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810553273.7A Pending CN108805960A (en) | 2018-05-31 | 2018-05-31 | Composing Method of Mixing, device, computer readable storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108805960A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109741424A (en) * | 2018-12-29 | 2019-05-10 | 北京金山安全软件有限公司 | Method and device for inserting picture around character and electronic equipment |
CN109933751A (en) * | 2019-03-20 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Graphic rendering method, apparatus, computer readable storage medium and computer equipment |
CN109949391A (en) * | 2019-03-18 | 2019-06-28 | 武汉斗鱼鱼乐网络科技有限公司 | Graphic rendering method, apparatus, electronic equipment and storage medium |
CN109948129A (en) * | 2019-03-08 | 2019-06-28 | 广联达科技股份有限公司 | RichText Edition method, editing machine and electronic equipment based on d engine |
CN109948581A (en) * | 2019-03-28 | 2019-06-28 | 腾讯科技(深圳)有限公司 | Picture and text rendering method, device, equipment and readable storage medium storing program for executing |
CN110096665A (en) * | 2019-04-28 | 2019-08-06 | 北京字节跳动网络技术有限公司 | Methods of exhibiting, device, equipment and the medium of picture category comment data |
CN110647827A (en) * | 2019-09-09 | 2020-01-03 | 北京达佳互联信息技术有限公司 | Comment information processing method and device, electronic equipment and storage medium |
CN111222063A (en) * | 2019-11-26 | 2020-06-02 | 北京达佳互联信息技术有限公司 | Rich text rendering method and device, electronic equipment and storage medium |
CN111275794A (en) * | 2019-12-09 | 2020-06-12 | 佛山欧神诺云商科技有限公司 | Method, device and storage medium for automatically generating expression picture |
WO2021037201A1 (en) * | 2019-08-28 | 2021-03-04 | 腾讯科技(深圳)有限公司 | Character string display processing method and apparatus, terminal and storage medium |
CN113031949A (en) * | 2021-04-20 | 2021-06-25 | 深圳市活力天汇科技股份有限公司 | iOS-based text rendering engine, method, apparatus, device, and medium |
CN114625460A (en) * | 2022-02-24 | 2022-06-14 | 北京百度网讯科技有限公司 | Image-text mixed arranging method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080317347A1 (en) * | 2007-06-20 | 2008-12-25 | Chee Boon Lim | Rendering engine test system |
CN103678267A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and system for typesetting and rendering image-text mixed content |
CN105160033A (en) * | 2015-09-30 | 2015-12-16 | 北京奇虎科技有限公司 | Expression character string processing method and device |
CN105279247A (en) * | 2015-09-30 | 2016-01-27 | 北京奇虎科技有限公司 | Expression library generation method and device |
CN106530096A (en) * | 2016-10-08 | 2017-03-22 | 广州阿里巴巴文学信息技术有限公司 | Emotion icon processing method, device and electronic apparatus |
-
2018
- 2018-05-31 CN CN201810553273.7A patent/CN108805960A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080317347A1 (en) * | 2007-06-20 | 2008-12-25 | Chee Boon Lim | Rendering engine test system |
CN103678267A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and system for typesetting and rendering image-text mixed content |
CN105160033A (en) * | 2015-09-30 | 2015-12-16 | 北京奇虎科技有限公司 | Expression character string processing method and device |
CN105279247A (en) * | 2015-09-30 | 2016-01-27 | 北京奇虎科技有限公司 | Expression library generation method and device |
CN106530096A (en) * | 2016-10-08 | 2017-03-22 | 广州阿里巴巴文学信息技术有限公司 | Emotion icon processing method, device and electronic apparatus |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109741424A (en) * | 2018-12-29 | 2019-05-10 | 北京金山安全软件有限公司 | Method and device for inserting picture around character and electronic equipment |
CN109948129B (en) * | 2019-03-08 | 2022-11-22 | 广联达科技股份有限公司 | Rich text editing method and editor based on three-dimensional engine and electronic equipment |
CN109948129A (en) * | 2019-03-08 | 2019-06-28 | 广联达科技股份有限公司 | RichText Edition method, editing machine and electronic equipment based on d engine |
CN109949391A (en) * | 2019-03-18 | 2019-06-28 | 武汉斗鱼鱼乐网络科技有限公司 | Graphic rendering method, apparatus, electronic equipment and storage medium |
CN109949391B (en) * | 2019-03-18 | 2023-09-26 | 武汉斗鱼鱼乐网络科技有限公司 | Image-text drawing method, image-text drawing device, electronic equipment and storage medium |
CN109933751A (en) * | 2019-03-20 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Graphic rendering method, apparatus, computer readable storage medium and computer equipment |
CN109948581A (en) * | 2019-03-28 | 2019-06-28 | 腾讯科技(深圳)有限公司 | Picture and text rendering method, device, equipment and readable storage medium storing program for executing |
CN109948581B (en) * | 2019-03-28 | 2023-05-05 | 腾讯科技(深圳)有限公司 | Image-text rendering method, device, equipment and readable storage medium |
CN110096665A (en) * | 2019-04-28 | 2019-08-06 | 北京字节跳动网络技术有限公司 | Methods of exhibiting, device, equipment and the medium of picture category comment data |
CN110096665B (en) * | 2019-04-28 | 2022-03-04 | 北京字节跳动网络技术有限公司 | Method, device, equipment and medium for displaying picture comment data |
WO2021037201A1 (en) * | 2019-08-28 | 2021-03-04 | 腾讯科技(深圳)有限公司 | Character string display processing method and apparatus, terminal and storage medium |
CN114885202A (en) * | 2019-08-28 | 2022-08-09 | 腾讯数码(天津)有限公司 | Character string display processing method, device, terminal and storage medium |
US11743556B2 (en) | 2019-08-28 | 2023-08-29 | Tencent Technology (Shenzhen) Company Limited | Character string display processing method and apparatus, terminal, and storage medium |
CN110647827A (en) * | 2019-09-09 | 2020-01-03 | 北京达佳互联信息技术有限公司 | Comment information processing method and device, electronic equipment and storage medium |
CN111222063A (en) * | 2019-11-26 | 2020-06-02 | 北京达佳互联信息技术有限公司 | Rich text rendering method and device, electronic equipment and storage medium |
CN111275794A (en) * | 2019-12-09 | 2020-06-12 | 佛山欧神诺云商科技有限公司 | Method, device and storage medium for automatically generating expression picture |
CN111275794B (en) * | 2019-12-09 | 2023-07-11 | 佛山欧神诺云商科技有限公司 | Method, device and storage medium for automatically generating expression picture |
CN113031949A (en) * | 2021-04-20 | 2021-06-25 | 深圳市活力天汇科技股份有限公司 | iOS-based text rendering engine, method, apparatus, device, and medium |
CN114625460A (en) * | 2022-02-24 | 2022-06-14 | 北京百度网讯科技有限公司 | Image-text mixed arranging method, device, equipment and storage medium |
CN114625460B (en) * | 2022-02-24 | 2024-02-06 | 北京百度网讯科技有限公司 | Image-text mixed arrangement method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108805960A (en) | Composing Method of Mixing, device, computer readable storage medium and terminal | |
CN108073680B (en) | Generating presentation slides with refined content | |
CN109614847B (en) | Managing real-time handwriting recognition | |
Moschini | The" Face with Tears of Joy" Emoji. A Socio-Semiotic and Multimodal Insight into a Japan-America Mash-Up | |
US9384172B2 (en) | Multi-level list detection engine | |
CN110263281B (en) | Device and method for self-adapting page resolution in data visualization development | |
US20140085311A1 (en) | Method and system for providing animated font for character and command input to a computer | |
US20210209289A1 (en) | Method and apparatus for generating customized content based on user intent | |
CN107066440A (en) | Input control method and system for vertical text | |
CN109933751B (en) | Image-text drawing method and device, computer-readable storage medium and computer equipment | |
CN108763188A (en) | Text display method, device, equipment and storage medium | |
CN108961361B (en) | Method and system for generating special effect text image and computer equipment | |
CN106126140B (en) | A kind of method, apparatus and electronic equipment of rendering type | |
CN109408506A (en) | Table data processing method and device | |
Alvina et al. | Mojiboard: Generating parametric emojis with gesture keyboards | |
CN104516868A (en) | Layout space streaming restoring method and layout space streaming restoring system | |
CN101986289B (en) | Method and device for increasing browser page rendering speed | |
CN107665186B (en) | A kind of peculiar font generation method | |
CN106201549A (en) | Control method and device for information in application program and terminal equipment | |
CN113436298A (en) | Method, device and related components for automatically generating Chinese character stroke order animation | |
CN110609927B (en) | Visual family tree layout method, terminal device and storage medium | |
KR20210094823A (en) | The creating method and apparatus of personal handwriting customized hangul font | |
CN104794140B (en) | text highlight display method and device | |
CN108804631A (en) | Emoticon storage method, device, computer readable storage medium and terminal | |
Yua et al. | Research on flat design based on UI Design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |