CN1842013A - Method for realizing dynamic text information - Google Patents

Method for realizing dynamic text information Download PDF

Info

Publication number
CN1842013A
CN1842013A CN 200510063986 CN200510063986A CN1842013A CN 1842013 A CN1842013 A CN 1842013A CN 200510063986 CN200510063986 CN 200510063986 CN 200510063986 A CN200510063986 A CN 200510063986A CN 1842013 A CN1842013 A CN 1842013A
Authority
CN
China
Prior art keywords
animation effect
text
content
animation
text information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510063986
Other languages
Chinese (zh)
Other versions
CN100505627C (en
Inventor
唐沐
陈妍
林松涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2005100639868A priority Critical patent/CN100505627C/en
Publication of CN1842013A publication Critical patent/CN1842013A/en
Application granted granted Critical
Publication of CN100505627C publication Critical patent/CN100505627C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for achieving dynamic text information. The sending end generates the dynamic text information by the interface inputted text content and text effect and transmits the message to the received end; the received end applies the carton effect in the dynamic text information to the text content of the information and outputs the carton effect to the display.

Description

A kind of method that realizes dynamic text information
Technical field
The present invention relates to network data transmission technology, particularly relate to the method that a kind of Internet chat instrument is realized dynamic text information, or rather, the present invention relates to the generation and the display packing of dynamic text information.
Background technology
In network application, Internet chat is liked by the netizen most.At first, the user is satisfied with simple text chat, and along with development of computer, now increasing user wishes that the Internet chat instrument can provide the mode of the chat with more expressive forces.
What existing Internet chat was adopted is the plain text that combines font style, and these texts are static.In chat group, the user is that the text that oneself sends is selected some special fonts for use in order to make oneself be different from other people, with the expressive force of rich text.In order to realize this sytlized font, present chat tool utilizes escape character (ESC) to set up a kind of corresponding relation between the literal of user's input and picture, is that corresponding picture shows with the character conversion of literal.
Existing text technical scheme of transmission is: the user who sends client (hereinafter referred is a transmitting terminal) is by the user interface input characters, the input of the monitor monitoring user of transmitting terminal, when user's end of input, in literal and escape character (ESC) be the escape character (ESC) of correspondence with the text conversion of user's input in the database one to one, escape character (ESC) is sent to reception client (hereinafter referred is a receiving terminal), after receiving terminal receives escape character (ESC), one-to-one relationship according to escape character (ESC) and picture name, from picture library, access corresponding picture, export picture to display, like this, the receiving terminal user will see the personalized text message that transmitting terminal transmits.
Though the method for prior art has satisfied chat user to a certain extent to enriching the demand of expressive force, but there is very big limitation in this method: at first, realize that by escape character (ESC) the basis of text individuation is a picture, if receiving terminal is not stored the pairing picture of escape character (ESC) that transmitting terminal transmits, need to download this picture, this just needs great amount of data transmission, so this method might increase the transmission quantity of network data; And, the character library of this picture form storage will take very large space, usually on client, only can store font commonly used and style, and transmitting terminal also only can send the text with font commonly used and style, so still can not finely satisfy user's individual demand.
Summary of the invention
Main purpose of the present invention is to provide a kind of method that realizes dynamic text information, provides to have the text transmission of enriching animation effect.
The objective of the invention is to be achieved through the following technical solutions:
A kind of method that realizes dynamic text information comprises the steps:
A, transmission client generate dynamic text information according to the content of text and the animation effect of user's input, and transmit this message to receiving client;
B, receive client the animation effect in the dynamic text information be applied to content of text in this message, and display application the content of text of animation effect.
Wherein, this method further comprises: in the reception client animation effect sequence library is set, the corresponding a kind of animation effect of each animation effect sequence comprises a plurality of status datas that are used for determining animation effect;
In step B, described reception client with the step that animation effect is applied to content of text is:
B1, reception client read the animation effect sequence corresponding with animation effect in the dynamic text information from the animation effect sequence library;
B2, receive client the status data in the animation effect sequence is applied to content of text in the dynamic text information, and show that this has used the content of text of status data.
Wherein, this method further comprises: in the reception client animation is set and triggers timer,
In step B2, the described step that status data is applied to content of text is: trigger timer by animation and trigger status data is applied to content of text.
Wherein, after the step B1, further comprise: judge whether to start animation and trigger timer, if, execution in step B2 then; Otherwise, start this animation and trigger timer, execution in step B2 then.
Wherein, described status data is coordinate data, font color code or font size code.
Wherein, described dynamic text information comprises content of text and animation effect flag bit, the animation effect of the value identifying user input of described animation effect flag bit;
In steps A, the step of described generation dynamic text information is:
Transmitting terminal is that dynamic text information is reserved the flag bit space that content of text space and a plurality of and animation effect sequence have corresponding relation, and the value of being had living space is zero;
The content of text of user's input is kept at the content of text space;
The animation effect of analysis user input is searched the pairing animation effect sequence of animation effect, and is the flag bit space tax nonzero value of animation effect sequence correspondence.
Wherein, in step B1, receive client read with dynamic text information in the step of the corresponding animation effect sequence of animation effect be:
Receive the value that client reads animation effect flag bit in the dynamic text information;
The reception client reads corresponding animation effect sequence according to the value of animation effect flag bit from animation effect data storehouse.
The invention provides a kind of method that realizes dynamic text information, this method is that transmitting terminal is with content of text and the text effect generation dynamic text information of user by the interface input, with this transmission of messages to receiving terminal, animation effect in the receiving terminal dynamic text information is applied to the content of text in this message, and the text that will have a special animation effect exports display to.The method of prior art is the input of transmitting terminal monitor monitoring user, with the text conversion of user's input is corresponding escape character (ESC), escape character (ESC) is sent to receiving terminal, and receiving terminal accesses corresponding picture according to escape character (ESC) from picture library, export picture to display.Method of the present invention can provide multiple animation effect for the user of Internet chat, and does not increase the volume of transmitted data of network.And need not to have saved hard drive space in the client stores very large picture character library that takes up room.Use method of the present invention, Internet service provider can provide abundanter service for the user, thereby improves the network user's satisfaction greatly.
Description of drawings
Fig. 1 is the method flow diagram according to realization dynamic text information of the present invention;
Fig. 2 is a schematic diagram of realizing the animation effect example that font is rolled;
Fig. 3 is a schematic diagram of realizing the animation effect example that font size changes;
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is further described below in conjunction with the drawings and specific embodiments.
The invention provides a kind of method that realizes dynamic text information, this method is that transmitting terminal is with content of text and the text effect generation dynamic text information of user by the interface input, with this transmission of messages to receiving terminal, animation effect in the receiving terminal dynamic text information is applied to the content of text in this message, and the text that will have a special animation effect exports display to.
Need explanation, the mentioned dynamic text information of the present invention is not the text message of ordinary meaning, but has the text message of special animation effect, promptly the literal in the message along with the variation of time the change state, for example, change the position of literal along with the variation of time.
Fig. 1 is the method flow diagram according to realization dynamic text information of the present invention.Referring to Fig. 1, this method comprises the steps:
Step 101: the animation effect storehouse is set respectively on transmitting terminal and the receiving terminal, the multiple animation effect sequence of storage in the animation effect storehouse, come by type to divide, the animation effect sequence has change in location class and style to change two kinds of classes, wherein the change in location class comprises the rolling sequence and the sequence etc. of beating, and style changes class and comprises textcolor sequence and size text sequence etc.
For change in location class sequence, there are a plurality of coordinate datas in the sequence, these coordinate datas are represented the motion track of text, make text have the effect of change in location, the i.e. rolling effect or the effect of beating usually;
For the textcolor sequence in the style variation class, wherein preserve a plurality of color codes, the expression textcolor is over time;
For the size text sequence in the style variation class, wherein preserve a plurality of font size codes, the font of expression text is over time.
Every kind of sequence comprises multiple subsequence, and corresponding different animation effects has roll the forward sequence and the sequence of rolling backward in the sequence of for example rolling.
Coordinate data in the sequence, color code and font size code all are status datas, expression state information that text had, i.e. and position information, colouring information or font size information, or the like.
Step 102: the transmitting terminal user is input text content and animation effect on user interface.
The user can import animation effect by graphic user interface (GUI) mode or script file mode:
The GUI mode is that the user selects animation effect according to the option that provides on the interface;
To be the user be stored in the animation effect of needs in the script file script file mode;
Each tool advantage of dual mode: the advantage of GUI mode is What You See Is What You Get, makes things convenient for the user to select; The mode of script file is more convenient for the user of skilled application, and script file can reuse, and when animation effect did not change, the mode of script file can avoid the user to repeat to import identical animation effect.Also can store with the animation effect that the GUI mode is imported with script file.
The user also can import animation effect by alternate manner.
Step 103: transmitting terminal comprises the flag bit of content of text and sign animation effect with the content of text and the synthetic dynamic text information of animation effect of user's input in this message.
Flag bit is the message field of sign animation effect in the dynamic text information, and usually, the animation effect sequence in the animation effect storehouse of flag bit and client is corresponding, for example, rolling flag bit and font color flag bit is arranged, or the like.
Dynamic text information comprises header and content information.Header comprises initial position and animation effect flag bit.Content information comprises concrete word content.
Transmitting terminal is at first reserved the flag bit space that content of text space and a plurality of and animation effect sequence have corresponding relation for dynamic text information, and the initial value that is had living space is zero; Secondly, the content of text with user's input is kept at the content of text space; At last, the animation effect data of analysis user input are searched the pairing animation effect sequence of animation effect, and are the flag bit space tax nonzero value of animation effect sequence correspondence.
Illustrate,, represent that then the text of this message has rolling effect, the rolling subsequence that this value is corresponding concrete if the value of rolling flag bit is non-0; If the value of rolling flag bit is 0, represent that then the text of this message does not have rolling effect.
Step 104: transmitting terminal is packed dynamic text information, then packing data is transferred to receiving terminal.
Step 105: after receiving terminal receives dynamic text information, carry out data and unpack, extract the content of dynamic text information, promptly extract the content of text and the flag bit information of dynamic text information.
Step 106: receiving terminal reads corresponding animation effect sequence according to the flag bit of dynamic text information from the animation effect banks.
Illustrate, if the rolling flag bit in the message is not 0, the content of text in the expression message has rolling effect, then reads from the animation effect banks and the corresponding rolling sequence of the value of this flag bit; If the font color flag bit in the message is not 0, the content of text in the expression message has the effect of turn colors, then reads from the animation effect banks and the corresponding font color sequence of the value of this flag bit; If rolling flag bit in the message and font color flag bit all are not 0, the content of text of expression in message turn colors when rolling, then from the animation effect banks, read and the corresponding rolling sequence of value of the flag bit that rolls and with the corresponding font color sequence of the value of font color flag bit.
Step 107: generate the text change sequence according to the animation effect sequence of taking out, comprise the text change information that is applied to the Message-text content in the text change sequence.
Illustrate, if the animation effect sequence of taking out is the rolling sequence, what then preserve in the text change sequence is a series of coordinate datas; If the animation effect sequence of taking out is the font color sequence, what then preserve in the text change sequence is a series of font color codes; If the animation effect sequence of taking out is to roll and two sequences of textcolor, then existing a series of coordinate datas in the text change sequence have a series of font color codes again.
Step 108: receiving terminal judges whether to have started animation and triggers timer, if then execution in step 110; Otherwise, execution in step 109.
Step 109: receiving terminal starts animation and triggers timer, and the triggering cycle of this timer can be the default setting of system, also can be provided with by the user.
Step 110: the content of text that the text change sequence that generates is applied to dynamic text information.
Illustrate, if comprise a series of coordinate datas in the text change sequence, so according to the triggering of timer one by one with coordinate data as the current position of text; If comprise a series of font color codes in the text change sequence, so according to the triggering of timer one by one with the color of font color as current font; If existing a series of coordinate datas in the font change sequence also have a series of font color codes, so according to the triggering of timer one by one with the position of coordinate data as current text, simultaneously one by one with font color as current font color.
Step 111: the content of text that receiving terminal will have been used the text change sequence outputs to display.
On the receiving terminal display, demonstration be the text that has animation effect in the dynamic text information.Along with the variation of time, position or color, the size etc. of text on display also change.
Fig. 2 is the schematic diagram that the method according to this invention realizes an example of font rolling effect, as shown in Figure 2, literal " TEST " all changes at the coordinate position in the triggering cycle of continuous five timers, and the literal that shows on the receiving terminal display has rolling effect.
Fig. 3 is the schematic diagram that the method according to this invention realizes an example of font size variation effect, as shown in Figure 3, literal " TEST " all changes in the font size in the triggering cycle of continuous four timers, and it is big that the literal that shows on the receiving terminal display constantly becomes.
In the above description, need to start animation and trigger timer, trigger the content of text that the text change sequence that will generate is applied to dynamic text information by timer.Should be appreciated that method of the present invention also can be can't help animation and be triggered timer and trigger the text change sequence is applied to content of text, but trigger thread and control the text change sequence is applied to content of text by writing animation.
Need explanation, the mentioned dynamic text information of the present invention is not common text message one by one, and this dynamic text information can be a passage, also can be the combination of picture and literal, even can be that audio frequency, video combine with literal.
What above introduce is the implementation step of the method according to this invention.In concrete implementation process, can carry out suitable improvement, to adapt to the concrete needs of concrete condition to the method according to this invention.For example, application of the present invention is not limited to Internet chat, also can be applied in other various fields.Therefore be appreciated that according to the specific embodiment of the present invention just to play an exemplary role, not in order to restriction protection scope of the present invention.

Claims (7)

1, a kind of method that realizes dynamic text information is characterized in that, this method comprises the steps:
A, transmission client generate dynamic text information according to the content of text and the animation effect of user's input, and transmit this message to receiving client;
B, receive client the animation effect in the dynamic text information be applied to content of text in this message, and display application the content of text of animation effect.
2, method according to claim 1, it is characterized in that, this method further comprises: in the reception client animation effect sequence library is set, the corresponding a kind of animation effect of each animation effect sequence comprises a plurality of status datas that are used for determining animation effect;
In step B, described reception client with the step that animation effect is applied to content of text is:
B1, reception client read the animation effect sequence corresponding with animation effect in the dynamic text information from the animation effect sequence library;
B2, receive client the status data in the animation effect sequence is applied to content of text in the dynamic text information, and show that this has used the content of text of status data.
3, method according to claim 2 is characterized in that, this method further comprises: in the reception client animation is set and triggers timer,
In step B2, the described step that status data is applied to content of text is: trigger timer by animation and trigger status data is applied to content of text.
4, method according to claim 3 is characterized in that, after the step B1, further comprises: judge whether to start animation and trigger timer, if, execution in step B2 then; Otherwise, start this animation and trigger timer, execution in step B2 then.
5, method according to claim 2 is characterized in that, described status data is coordinate data, font color code or font size code.
6, method according to claim 2 is characterized in that, described dynamic text information comprises content of text and animation effect flag bit, the animation effect of the value identifying user input of described animation effect flag bit;
In steps A, the step of described generation dynamic text information is:
Transmitting terminal is that dynamic text information is reserved the flag bit space that content of text space and a plurality of and animation effect sequence have corresponding relation, and the value of being had living space is zero;
The content of text of user's input is kept at the content of text space;
The animation effect of analysis user input is searched the pairing animation effect sequence of animation effect, and is the flag bit space tax nonzero value of animation effect sequence correspondence.
7, method according to claim 6 is characterized in that, in step B1, receive client read with dynamic text information in the step of the corresponding animation effect sequence of animation effect be:
Receive the value that client reads animation effect flag bit in the dynamic text information;
The reception client reads corresponding animation effect sequence according to the value of animation effect flag bit from animation effect data storehouse.
CNB2005100639868A 2005-03-28 2005-03-28 Method for realizing dynamic text information Active CN100505627C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100639868A CN100505627C (en) 2005-03-28 2005-03-28 Method for realizing dynamic text information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100639868A CN100505627C (en) 2005-03-28 2005-03-28 Method for realizing dynamic text information

Publications (2)

Publication Number Publication Date
CN1842013A true CN1842013A (en) 2006-10-04
CN100505627C CN100505627C (en) 2009-06-24

Family

ID=37030870

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100639868A Active CN100505627C (en) 2005-03-28 2005-03-28 Method for realizing dynamic text information

Country Status (1)

Country Link
CN (1) CN100505627C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088566A (en) * 2009-12-03 2011-06-08 新奥特(北京)视频技术有限公司 Method and device for playing television graphic and text subtitles with special effects
CN102201124A (en) * 2010-03-26 2011-09-28 腾讯科技(深圳)有限公司 Method and device for synthesizing picture and character
CN102629917A (en) * 2012-03-15 2012-08-08 齐凡 Personalized information transmission method and transmission system
CN104462029A (en) * 2013-09-18 2015-03-25 北京新媒传信科技有限公司 Method and system for rich text display in intelligent terminal
CN107294836A (en) * 2016-04-13 2017-10-24 正财神云端科技有限公司 Personalized audio map generation system and method applied to instant messaging

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088566A (en) * 2009-12-03 2011-06-08 新奥特(北京)视频技术有限公司 Method and device for playing television graphic and text subtitles with special effects
CN102088566B (en) * 2009-12-03 2015-09-23 新奥特(北京)视频技术有限公司 A kind of stunt broadcasting method of television graphics context subtitling and device
CN102201124A (en) * 2010-03-26 2011-09-28 腾讯科技(深圳)有限公司 Method and device for synthesizing picture and character
WO2011116658A1 (en) * 2010-03-26 2011-09-29 腾讯科技(深圳)有限公司 Method and device for synthesizing pictures and characters
CN102201124B (en) * 2010-03-26 2015-05-06 腾讯科技(深圳)有限公司 Method and device for synthesizing picture and character
CN102629917A (en) * 2012-03-15 2012-08-08 齐凡 Personalized information transmission method and transmission system
CN104462029A (en) * 2013-09-18 2015-03-25 北京新媒传信科技有限公司 Method and system for rich text display in intelligent terminal
CN104462029B (en) * 2013-09-18 2017-11-21 北京新媒传信科技有限公司 The method and system that rich text is shown in a kind of intelligent terminal
CN107294836A (en) * 2016-04-13 2017-10-24 正财神云端科技有限公司 Personalized audio map generation system and method applied to instant messaging

Also Published As

Publication number Publication date
CN100505627C (en) 2009-06-24

Similar Documents

Publication Publication Date Title
CN1842005B (en) Method for realizing picture and words message show
JP5373135B2 (en) Efficient encoding of alternative graphic sets
US20070239881A1 (en) Multiplexing binary encoding to facilitate compression
JP2009545064A (en) Method and apparatus for font subsetting
CN103678267B (en) Method and system for typesetting and rendering image-text mixed content
CN1842013A (en) Method for realizing dynamic text information
CN102546612B (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN103744670A (en) Method and device for displaying popups
CN1822651A (en) Method for dynamically forming caption image data and caption data flow
US20080082556A1 (en) Knowledge based encoding of data with multiplexing to facilitate compression
CN101075910A (en) Method and device for fastly registering
US20140029916A1 (en) Audio/video content synchronization and display
CN1625179A (en) Send by reference in a customizable, tag-based protocol
JP2011518526A (en) Terminal user interface device and method for rich media service
CN109977822B (en) Data supply method, model training method, device, system, equipment and medium
CN107643889A (en) Page rendering method and apparatus based on template engine
CN111147354B (en) Message processing method, device, equipment and storage medium
CN1897028A (en) System and method for issuing and reporting advertisement information in webpage connector
CN102523444A (en) Compression method for monochrome bitmap and system thereof
CN101876990A (en) Method for transmitting tree-structure object
CN111399788B (en) Media file playing method and media file playing device
CN107426146A (en) User sends the system and method for displaying present banner after present in live application
CN110381023A (en) A kind of message storage method based on MQTT agreement
CN101686568B (en) Methods and terminals for transmitting and displaying text information
CN102289358A (en) A computer-implemented method, a computer program product and an embedded system for displaying data more efficiently

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant