CN106649209A - Text display method and device - Google Patents
Text display method and device Download PDFInfo
- Publication number
- CN106649209A CN106649209A CN201611270896.0A CN201611270896A CN106649209A CN 106649209 A CN106649209 A CN 106649209A CN 201611270896 A CN201611270896 A CN 201611270896A CN 106649209 A CN106649209 A CN 106649209A
- Authority
- CN
- China
- Prior art keywords
- word
- animation
- template
- text message
- library
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/34—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- 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
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a text display method. The text display method includes the steps that when text information is received, characteristic characters of the text information are extracted according to a pre-configured character library; in a pre-configured animation library, animation templates corresponding to the characteristic characters are found; the text information is displayed, and the characteristic characters are displayed based on the animation templates. The invention also discloses a text display device. By means of the text display method and device, the visual interestingness is enhanced, and reading experiences of a user are improved.
Description
Technical field
The present invention relates to text display technology field, more particularly to a kind of text display method and device.
Background technology
With the popularization of mobile terminal, text is very important one kind expression side in Information Communication, people's communication
Formula, such as user are chatted using note, chat software etc., and bank all can correspondingly send note and remind whenever customer consumption
The customer consumption amount of money, website can send identifying code note during registration of website.
At present, when user is when the text messages such as note, notification message, conversation message that mobile terminal is received are checked, text
Whole words in this information are all that unified form, unified color static show that user needs to spend substantial amounts of information
Important key message is searched from text message, for example, from a string literal of identifying code note length length identifying code is found,
Reading can just analyze the theme of note after note.
As can be seen here, current text display format is single, and visual effect is poor, is not easy to user and reads crucial letter soon
Breath.
The content of the invention
Present invention is primarily targeted at providing a kind of text display method and device, it is intended to solve text display format list
One technical problem.
For achieving the above object, the present invention provides a kind of text display method, and the text display method includes following step
Suddenly:
When text message is received, the feature word of the text message is extracted according to the character library being pre-configured with;
In the animation library being pre-configured with, the corresponding animation template of the feature word is searched;
The text message is shown, and the feature word is shown based on the animation template.
Preferably, the character library includes default regular expression, and the character library that the basis is pre-configured with is extracted described
The step of feature word of text message, includes:
The word group with the pattern match of the regular expression is searched in the text message, as feature word;
It is described in the animation library being pre-configured with, include the step of search the feature word corresponding animation template:
The corresponding animation template of the regular expression is searched in the animation library being pre-configured with, by the animation template for finding
As the corresponding animation template of the feature word.
Preferably, the character library includes default word template, and the character library that the basis is pre-configured with extracts the text
The step of feature word of this information, also includes:
Search in the text message and the word template identical word, as feature word;
It is described in the animation library being pre-configured with, include the step of search the feature word corresponding animation template:
The corresponding animation template of the word template is searched in the animation library being pre-configured with, the animation template for finding is made
For the corresponding animation template of the feature word.
Preferably, the text display method also includes:
When the custom instruction of input is received, according to custom instruction correspondence configuration regular expression or word mould
Plate, and be added in the character library;
It is the regular expression or the corresponding animation template of word template configuration according to the custom instruction, and updates
The animation library.
Preferably, it is described to show the text message, and the step of show the feature word based on the animation template
Also include:
Obtain the common language in the text message;
The common language is shown according to default foundation forms, the feature word is shown according to the animation template.
Additionally, for achieving the above object, the present invention also provides a kind of textual display device, the textual display device bag
Include:
Extraction module, for when text message is received, according to the character library being pre-configured with the spy of the text message being extracted
Solicit articles word;
Animation, in the animation library being pre-configured with, searching the corresponding animation template of the feature word;
Display module, for showing the text message, and shows the feature word based on the animation template.
Preferably, the character library includes default regular expression, and the extraction module is additionally operable to,
The word group with the pattern match of the regular expression is searched in the text message, as feature word;
The animation is additionally operable to,
The corresponding animation template of the regular expression is searched in the animation library being pre-configured with, by the animation template for finding
As the corresponding animation template of the feature word.
Preferably, the character library includes default word template, and the extraction module is additionally operable to,
Search in the text message and the word template identical word, as feature word;
The animation is additionally operable to,
The corresponding animation template of the word template is searched in the animation library being pre-configured with, the animation template for finding is made
For the corresponding animation template of the feature word.
Preferably, the textual display device also includes:
Custom block, for when the custom instruction of input is received, being configured just according to custom instruction correspondence
Then expression formula or word template, and be added in the character library;It is the regular expression or text according to the custom instruction
Character matrix plate configures corresponding animation template, and updates the animation library.
Preferably, the display module is additionally operable to,
Obtain the common language in the text message;The common language is shown according to default foundation forms, according to
The animation template shows the feature word.
A kind of text display method and device that the embodiment of the present invention is proposed, by when text message is received, according to pre-
The character library for first configuring extracts the feature word of text message, and the feature word for obtaining is the key message in this text message,
Or important information, need special highlighting;Then, in the animation library being pre-configured with, feature word is searched corresponding dynamic
Draw template, animation effect when this animation template determines that characteristic character shows;Then, text message is shown, and based on finding
Animation template show feature word, the animation for realizing feature word shows.During the present invention is by automatically extracting text message
Feature word, realize the automatic screening of text message, can be user choose automatically need pay special attention to information, and
And, word is characterized plus animation effect so that the notice of user quickly can be attracted by feature word, obtain text envelope
The key message of breath.Thus, present invention correspondence when text message is shown increases personalized animation effect, solves text and shows
The single technical problem of form, enhances the interest of vision;Also, the present invention can filter out important information, and by dynamic
Draw effect to be highlighted, improve the reading experience of user.
Description of the drawings
Fig. 1 is the schematic flow sheet of text display method first embodiment of the present invention;
Fig. 2 is to show the text message in Fig. 1, and the step of show the feature word based on the animation template
Refinement schematic flow sheet;
Fig. 3 is the schematic flow sheet of text display method second embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of textual display device first embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of textual display device second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
With reference to Fig. 1, text display method first embodiment of the present invention provides a kind of text display method, and the text shows
Method includes:
Step S10, when text message is received, the feature text of the text message is extracted according to the character library that is pre-configured with
Word.
The present embodiment by automatically extract the key feature word of text message go forward side by side action picture show, so as to realize key
The filtration of information with highlight, change traditional single form and show, increased the interest of the display of text message.
Specifically, as a kind of embodiment, mobile terminal receives note, the chat messages of application software, application software
The text message such as notification message.Wherein, mobile terminal can be mobile phone, panel computer etc..
After text message is received, mobile terminal extracts the feature text in this text message according to the character library being pre-configured with
Word.Feature word is keyword in this text message, word or sentence, comprising one or more Chinese characters, numeral, English letter etc.
The word of various ways.
Wherein, the information such as form, the word content of the word for needing animation to highlight are contained in character library, to match
The content of text message, determines the word for needing to highlight in current text information.
For example, identifying code word (86934 etc.), time (October No. 1 or 20161001 etc.), metering phrase (2000.5
Unit either 1024MB either 500 minutes), phone (+8612345 either 12345 or 025-12345 etc.), box name (* *@
Gmail.com etc.), other conventional text formattings etc., and self-defined word, the word of user.
Further, default regular expression and/or word template can be included in character library, can spirit according to actual needs
Configuration living.
Used as a kind of embodiment, the character library includes default regular expression, and step S10 includes:
The word group with the pattern match of the regular expression is searched in the text message, as feature word.
The word group with certain format such as time, telephone number, can be being obtained by the way of matching regular expressions
Take.
Specifically, previously according to the word group format configuration regular expression for needing to recognize, filter out, such that it is able to match
If the digit groups of length, the phrase to preset word starting, the word group to preset phrase that word terminates etc. form fixation, example
Such as " spending amount+numeral+unit ".
Character library includes one or more default regular expressions, and when text message is received, mobile terminal makes successively
With the regular expression in character library, searching in text message with the word group of the pattern match of regular expression, and be able to will look for
To word group in word as feature word, the regular expression of record and feature characters matching.
Hereby it is achieved that in text message feature word lookup, the feature word for finding can have multinomial.
Alternatively, the character library includes default word template, and step S10 includes:
Search in the text message and the word template identical word, as feature word.
In order to search fixed word, word or sentence, word template can be pre-configured with, word template is needs animation to show
Show, fixed default word, for example heartily, your word, word or the sentence such as good etc..Can be default comprising one or more in character library
Word template.
Then after text message is received, each word template of the mobile terminal in character library is looked into successively in text message
Identical word, word or sentence are looked for, using the word for finding, word or sentence as feature word, and is recorded identical with feature word
Word template.
Hereby it is achieved that in text message feature word lookup, the feature word for finding can have multinomial.
When default regular expression and word template is included simultaneously in character library, mobile terminal is respectively in text message
Search the word group with the pattern match of regular expression, and with word template identical word, as feature word.
Step S20, in the animation library being pre-configured with, search the corresponding animation template of the feature word.
After feature word in text message is found, mobile terminal searches this feature text in the animation library being pre-configured with
The corresponding animation template of word.Color, font size size, font, the position of text importing are have recorded in animation template, and whether is had
The animated actions such as rotation, discoloration, scaling.
Need explanation when, can be that the word of different-format or implication configures different animation templates.In configuring animations
During template, can be according to user when the word of certain form or implication is seen, being represented with which kind of animation effect can be more pleased
The investigation result configuration of acceptance.
If text message includes multinomial feature word, mobile terminal searches respectively the corresponding animation of various features word
Template.
Further, if the character library includes default regular expression, search in the text message with it is described
The word group of the pattern match of regular expression, used as feature word, then step S20 includes:
The corresponding animation template of the regular expression is searched in the animation library being pre-configured with, by the animation template for finding
As the corresponding animation template of the feature word.
If obtaining the feature word in text message with the matching regular expressions in character library, mobile terminal is searching animation
During template, the animation template corresponding to the regular expression of this feature characters matching is searched in animation library, and by this animation
Template is used as this corresponding animation template of feature word, namely shows this feature word using this animation template.
It should be noted that animation library includes each animation template, and animation mapping table.Record in animation mapping table
The mapping relations of animation template, the corresponding animation mould of different regular expressions in each regular expression and animation library in character library
Plate can be the same or different.
User can as needed change the corresponding relation of regular expression and animation template, and mobile terminal is to receive user defeated
When the modification for entering is instructed, closed according to the mapping of regular expression and animation template in modification instruction correspondence modification animation mapping table
System.
Further, as a kind of embodiment, if the character library includes default word template, in the text envelope
Search in breath and the word template identical word, used as feature word, then step S20 includes:
The corresponding animation template of the word template is searched in the animation library being pre-configured with, the animation template for finding is made
For the corresponding animation template of the feature word.
If searching the feature word obtained in text message with the word template in character library, mobile terminal is searching animation mould
During plate, search in animation library and the animation template corresponding to this feature word identical word template, and it is dynamic by what is found
Template is drawn as this corresponding animation template of feature word, namely for showing the animation template of this feature word.
It should be noted that animation library includes each animation template, and animation mapping table.Record in animation mapping table
The mapping relations of animation template in each word template and animation library in character library, the different corresponding animation templates of word template can
With it is identical can also be different.
User can as needed change the corresponding relation of word template and animation template, and mobile terminal is receiving user input
Modification when instructing, according to modification instruction correspondence modification animation mapping table Chinese character matrix plate and the mapping relations of animation template.
Step S30, the display text message, and the feature word is shown based on the animation template.
After the feature word animation template corresponding with feature word for obtaining text message, mobile terminal shows this text
Information, when showing, needs to show corresponding feature word using the animation template for obtaining, and is characterized word addition animation effect
Really.
Used as a kind of embodiment, with reference to Fig. 2, step S30 includes:
Step S31, the common language obtained in the text message;
Step S32, the common language is shown according to default foundation forms, the spy is shown according to the animation template
Solicit articles word.
In order to realize that differentiation shows the word in text message, the word in text message is divided into two by mobile terminal
Point:Feature word and common language.After extraction obtains feature word, remaining word is common language in text message.
Common language in acquisition for mobile terminal text message, then, using default foundation forms common language is shown,
Various features word is shown using the animation template correspondence of various features word, is realized according to word in Word message content
Attribute, adds corresponding display effect.
Wherein, foundation forms is pre-configured with, and can be static state display template, or Dynamic Announce template, can
Flexible configuration as needed.
Further, when feature word is shown, can for example support what animation showed in advance in system layer custom control
Text box, when needing to show text message, calls this control to be capable of achieving the display of text message.It is, of course, also possible to make by oneself
Adopted control, when needing to show text message, inherits this parent control, calls the related interface of animation in this control.
Hereby it is achieved that the display of the text message with animation effect.
In the present embodiment, when text message is received, the feature text of text message is extracted according to the character library being pre-configured with
Word, the feature word for obtaining is the key message in this text message, or important information, needs special highlighting;So
Afterwards, in the animation library being pre-configured with, the corresponding animation template of feature word is searched, this animation template determines that characteristic character shows
Animation effect when showing;Then, text message is shown, and feature word is shown based on the animation template for finding, realize feature
The animation of word shows.The present embodiment by automatically extracting text message in feature word, realize the automatic of text message
Screening, can be that user chooses the information for needing to pay special attention to automatically, also, be characterized word plus animation effect so that use
The notice at family quickly can be attracted by feature word, obtain the key message of text message.Thus, the present embodiment is showing
Correspondence increases personalized animation effect during text message, solves the single technical problem of text display format, enhances vision
Interest;Also, the present embodiment can filter out important information, and be highlighted by animation effect, improve user's
Reading experience.
Further, with reference to Fig. 3, text display method second embodiment of the present invention provides a kind of text display method, base
In the embodiment shown in above-mentioned Fig. 1, the text display method also includes:
Step S40, when the custom instruction of input is received, according to the custom instruction correspondence configuration regular expression
Or word template, and be added in the character library;
Step S50, it is the regular expression or the corresponding animation mould of word template configuration according to the custom instruction
Plate, and update the animation library.
In order to lift the experience of user, user can be with self-defined word, word and/or the special lattice for selecting and needing animation to show
Word group of formula etc..
Specifically, as a kind of embodiment, user can be input into self-defining special format word group, or self-defining
The configuration informations such as word, word, sentence, it is determined that needing the user-defined feature word that animation shows;Meanwhile, user can be self-defined spy
Word of soliciting articles selects or configures corresponding animation template.Then, user determines input custom instruction.
Mobile terminal obtains the configuration information carried in custom instruction when the custom instruction of user input is received.
If configuration information includes the word group of special format, mobile terminal correspondence configuration regular expression, the mould with regular expression
The word group of formula matching is the user-defined feature word of user;If configuration information includes self-defining word, word, sentence, move
Dynamic terminal-pair answers configured letters template, with the user-defined feature word that word template identical word is user.
Then, mobile terminal by configure regular expression or word template, in being added to character library, hereafter, mobile terminal
Can be used to search the user-defined feature word in text message.
Then, acquisition for mobile terminal user is the animation template that user-defined feature word is selected or configured.
Used as a kind of embodiment, user can be self-defining canonical table according to default animation template in animation library
Up to formula or the corresponding animation template of word stencil-chosen, then mobile terminal adds user configured regular expression or word template
In being added to animation mapping table, and according to the animation template that user is regular expression or word stencil-chosen, animation mapping is updated
Animation template and regular expression or the mapping relations of word template in table.Then, whole animation library is updated.Hereafter, it is mobile whole
End can add corresponding animation effect when text message is shown for user configured user-defined feature word.
Used as another embodiment, user can also be regular expression or the corresponding animation mould of word template configuration
Plate.Specifically, mobile terminal can carry the animation options being pre-configured with and select for user oneself, configure self-defined animation template.
Color, font size size, font, the position of animation options being pre-configured with including text importing, and whether have rotation, discoloration,
The animated actions such as scaling.Mobile terminal generates self-defined animation template according to the animation options that user selects, and is added to animation
In storehouse.
User when the corresponding animation template of user-defined feature word is configured, if being configured with corresponding self-defined animation mould
Plate, then mobile terminal user configured regular expression or word template are added in animation mapping table, and by regular expressions
Formula or word template be added in animation library and animation mapping table in, regular expression or word mould in configuring animations mapping table
The mapping relations of plate and animation template simultaneously update.Then, whole animation library is updated.Hereafter, mobile terminal is showing text message
When, corresponding animation effect can be added for user configured user-defined feature word.
Thus, the present embodiment realizes the self-defined of feature word and animation effect.
In the present embodiment, when the custom instruction of user input is received, according to custom instruction correspondence configuration canonical
Expression formula or word template, and be added in character library;Then, it is user configured regular expression or text according to custom instruction
Character matrix plate configures corresponding animation template, and updates animation library.The present embodiment realizes feature word and its correspondence animation effect
It is self-defined, give user individual self-defining right, user is configured according to demand, is managed.
With reference to Fig. 4, textual display device first embodiment of the present invention provides a kind of textual display device, and the text shows
Device includes:
Extraction module 10, for when text message is received, according to the character library being pre-configured with the text message being extracted
Feature word.
The present embodiment by automatically extract the key feature word of text message go forward side by side action picture show, so as to realize key
The filtration of information with highlight, change traditional single form and show, increased the interest of the display of text message.Text
This display device is configured into mobile terminal.
Specifically, as a kind of embodiment, extraction module 10 receive note, the chat messages of application software, using soft
The text messages such as the notification message of part.Wherein, mobile terminal can be mobile phone, panel computer etc..
After text message is received, extraction module 10 extracts the feature in this text message according to the character library being pre-configured with
Word.Feature word is keyword in this text message, word or sentence, comprising one or more Chinese characters, numeral, English letter
Etc. the word of various ways.
Wherein, the information such as form, the word content of the word for needing animation to highlight are contained in character library, to match
The content of text message, determines the word for needing to highlight in current text information.
For example, identifying code word (86934 etc.), time (October No. 1 or 20161001 etc.), metering phrase (2000.5
Unit either 1024MB either 500 minutes), phone (+8612345 either 12345 or 025-12345 etc.), box name (* *@
Gmail.com etc.), other conventional text formattings etc., and self-defined word, the word of user.
Further, default regular expression and/or word template can be included in character library, can spirit according to actual needs
Configuration living.
Used as a kind of embodiment, the character library includes default regular expression, and the extraction module 10 is additionally operable to,
The word group with the pattern match of the regular expression is searched in the text message, as feature word.
The word group with certain format such as time, telephone number, can be being obtained by the way of matching regular expressions
Take.
Specifically, previously according to the word group format configuration regular expression for needing to recognize, filter out, such that it is able to match
If the digit groups of length, the phrase to preset word starting, the word group to preset phrase that word terminates etc. form fixation, example
Such as " spending amount+numeral+unit ".
Character library includes one or more default regular expressions, and when text message is received, extraction module 10 is successively
Using the regular expression in character library, search in text message and with the word group of the pattern match of regular expression, and can incite somebody to action
Regular expression of the word in the word group for finding as feature word, record and feature characters matching.
Hereby it is achieved that in text message feature word lookup, the feature word for finding can have multinomial.
Alternatively, the character library includes default word template, and the extraction module 10 is additionally operable to,
Search in the text message and the word template identical word, as feature word.
In order to search fixed word, word or sentence, word template can be pre-configured with, word template is needs animation to show
Show, fixed default word, for example heartily, your word, word or the sentence such as good etc..Can be default comprising one or more in character library
Word template.
Then after text message is received, each word template of the extraction module 10 in character library, successively in text message
Identical word, word or sentence are searched, using the word for finding, word or sentence as feature word, and is recorded and feature word phase
Same word template.
Hereby it is achieved that in text message feature word lookup, the feature word for finding can have multinomial.
When default regular expression and word template is included simultaneously in character library, extraction module 10 is respectively in text message
The word group of middle lookup and the pattern match of regular expression, and with word template identical word, as feature word.
Animation 20, in the animation library being pre-configured with, searching the corresponding animation template of the feature word.
After feature word in text message is found, animation 20 searches this feature in the animation library being pre-configured with
The corresponding animation template of word.Have recorded color, font size size, font, the position of text importing in animation template, and whether
There are the animated actions such as rotation, discoloration, scaling.
Need explanation when, can be that the word of different-format or implication configures different animation templates.In configuring animations
During template, can be according to user when the word of certain form or implication is seen, being represented with which kind of animation effect can be more pleased
The investigation result configuration of acceptance.
If text message includes multinomial feature word, it is corresponding dynamic that animation 20 searches respectively various features word
Draw template.
Further, as a kind of embodiment, if the character library includes default regular expression, in the text
The word group with the pattern match of the regular expression is searched in information, used as feature word, then the animation 20 is also used
In,
The corresponding animation template of the regular expression is searched in the animation library being pre-configured with, by the animation template for finding
As the corresponding animation template of the feature word.
If obtaining the feature word in text message with the matching regular expressions in character library, animation 20 is dynamic in lookup
When drawing template, the animation template corresponding to the regular expression of this feature characters matching is searched in animation library, and this is moved
Template is drawn as this corresponding animation template of feature word, namely this feature word is shown using this animation template.
It should be noted that animation library includes each animation template, and animation mapping table.Record in animation mapping table
The mapping relations of animation template, the corresponding animation mould of different regular expressions in each regular expression and animation library in character library
Plate can be the same or different.
User can as needed change the corresponding relation of regular expression and animation template, and animation 20 is receiving user
When the modification of input is instructed, closed according to the mapping of regular expression and animation template in modification instruction correspondence modification animation mapping table
System.
Further, as a kind of embodiment, if the character library includes default word template, in the text envelope
Search in breath and the word template identical word, used as feature word, then the step animation 20 is additionally operable to,
The corresponding animation template of the word template is searched in the animation library being pre-configured with, the animation template for finding is made
For the corresponding animation template of the feature word.
If searching the feature word obtained in text message with the word template in character library, animation 20 is searching animation
During template, search in animation library and the animation template corresponding to this feature word identical word template, and will find
Animation template as this corresponding animation template of feature word, namely for showing the animation template of this feature word.
It should be noted that animation library includes each animation template, and animation mapping table.Record in animation mapping table
The mapping relations of animation template in each word template and animation library in character library, the different corresponding animation templates of word template can
With it is identical can also be different.
User can as needed change the corresponding relation of word template and animation template, and animation 20 is to receive user defeated
When the modification for entering is instructed, according to modification instruction correspondence modification animation mapping table Chinese character matrix plate and the mapping relations of animation template.
Display module 30, for showing the text message, and shows the feature word based on the animation template.
After the feature word animation template corresponding with feature word for obtaining text message, display module 30 shows this text
This information, when showing, needs to show corresponding feature word using the animation template for obtaining, and is characterized word addition animation effect
Really.
Used as a kind of embodiment, the display module 30 is additionally operable to,
Obtain the common language in the text message;The common language is shown according to default foundation forms, according to
The animation template shows the feature word.
In order to realize that differentiation shows the word in text message, the word in text message is divided into two by display module 30
Part:Feature word and common language.After extraction obtains feature word, remaining word is common text in text message
Word.
Display module 30 obtains the common language in text message, then, using default foundation forms common text is shown
Word, using the animation template correspondence of various features word various features word is shown, is realized according to Word message content Chinese
The attribute of word, adds corresponding display effect.
Wherein, foundation forms is pre-configured with, and can be static state display template, or Dynamic Announce template, can
Flexible configuration as needed.
Further, when feature word is shown, can for example support what animation showed in advance in system layer custom control
Text box, when needing to show text message, calls this control to be capable of achieving the display of text message.It is, of course, also possible to make by oneself
Adopted control, when needing to show text message, inherits this parent control, calls the related interface of animation in this control.
Hereby it is achieved that the display of the text message with animation effect.
In the present embodiment, when text message is received, extraction module 10 extracts text envelope according to the character library being pre-configured with
The feature word of breath, the feature word for obtaining is the key message in this text message, or important information, needs special prominent
Go out to show;Then, animation 20 searches the corresponding animation template of feature word, this animation in the animation library being pre-configured with
Animation effect when template determines that characteristic character shows;Then, display module 30 shows text message, and dynamic based on what is found
Template for displaying feature word is drawn, the animation for realizing feature word shows.During the present embodiment is by automatically extracting text message
Feature word, realizes the automatic screening of text message, can be that user chooses the information for needing to pay special attention to automatically, also,
Word is characterized plus animation effect so that the notice of user quickly can be attracted by feature word, obtains text message
Key message.Thus, the present embodiment correspondence when text message is shown increases personalized animation effect, solves text and shows
The single technical problem of form, enhances the interest of vision;Also, the present embodiment can filter out important information, and pass through
Animation effect is highlighted, and improves the reading experience of user.
Further, with reference to Fig. 5, textual display device second embodiment of the present invention provides a kind of textual display device, base
In the embodiment shown in above-mentioned Fig. 4, the textual display device also includes:
Custom block 40, for when the custom instruction of input is received, being configured according to custom instruction correspondence
Regular expression or word template, and be added in the character library;According to the custom instruction be the regular expression or
The corresponding animation template of word template configuration, and update the animation library.
In order to lift the experience of user, user can be with self-defined word, word and/or the special lattice for selecting and needing animation to show
Word group of formula etc..
Specifically, as a kind of embodiment, user can be input into self-defining special format word group, or self-defining
The configuration informations such as word, word, sentence, it is determined that needing the user-defined feature word that animation shows;Meanwhile, user can be self-defined spy
Word of soliciting articles selects or configures corresponding animation template.Then, user determines input custom instruction.
Custom block 40 when the custom instruction of user input is received, obtain custom instruction in carry with confidence
Breath.If configuration information includes the word group of special format, the correspondence configuration regular expression of custom block 40, with regular expressions
The word group of the pattern match of formula is the user-defined feature word of user;If configuration information includes self-defining word, word, language
Sentence, then the corresponding configured letters template of custom block 40, literary with the user-defined feature that word template identical word is user
Word.
Then, custom block 40 in being added to character library, hereafter, extracts the regular expression for configuring or word template
Module 10 can be used to search the user-defined feature word in text message.
Then, custom block 40 obtains the animation template that user is that user-defined feature word is selected or configured.
Used as a kind of embodiment, user can be self-defining canonical table according to default animation template in animation library
Up to formula or the corresponding animation template of word stencil-chosen, then custom block 40 is by user configured regular expression or word mould
Plate is added in animation mapping table, and according to the animation template that user is regular expression or word stencil-chosen, updates animation
Animation template and regular expression or the mapping relations of word template in mapping table.Then, whole animation library is updated.Hereafter, show
Show module 30 when text message is shown, corresponding animation effect can be added for user configured user-defined feature word.
Used as another embodiment, user can also be regular expression or the corresponding animation mould of word template configuration
Plate.Specifically, custom block 40 can carry the animation options being pre-configured with and select for user oneself, configure self-defined animation mould
Plate.The animation options being pre-configured with include color, font size size, font, the position of text importing, and whether have rotation, become
The animated actions such as color, scaling.Custom block 40 generates self-defined animation template according to the animation options that user selects, and adds
To in animation library.
User when the corresponding animation template of user-defined feature word is configured, if being configured with corresponding self-defined animation mould
Plate, then custom block 40 user configured regular expression or word template are added in animation mapping table, and by canonical
Expression formula or word template be added in animation library and animation mapping table in, regular expression or text in configuring animations mapping table
The mapping relations of character matrix plate and animation template simultaneously update.Then, whole animation library is updated.Hereafter, display module 30 is showing text
During this information, corresponding animation effect can be added for user configured user-defined feature word.
Thus, the present embodiment realizes the self-defined of feature word and animation effect.
In the present embodiment, custom block 40 is when the custom instruction of user input is received, according to custom instruction
Correspondence configuration regular expression or word template, and be added in character library;Then, custom block 40 is according to custom instruction
User configured regular expression or the corresponding animation template of word template configuration, and update animation library.The present embodiment is realized
Feature word and its correspondence animation effect it is self-defined, give user individual self-defining right, user enters according to demand
Row configuration, management.
The alternative embodiment of the present invention is these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of text display method, it is characterised in that the text display method is comprised the following steps:
When text message is received, the feature word of the text message is extracted according to the character library being pre-configured with;
In the animation library being pre-configured with, the corresponding animation template of the feature word is searched;
The text message is shown, and the feature word is shown based on the animation template.
2. text display method as claimed in claim 1, it is characterised in that the character library includes default regular expressions
The step of formula, feature word of the character library extraction text message that the basis is pre-configured with, includes:
The word group with the pattern match of the regular expression is searched in the text message, as feature word;
It is described in the animation library being pre-configured with, include the step of search the feature word corresponding animation template:
The corresponding animation template of the regular expression is searched in the animation library being pre-configured with, using the animation template for finding as
The corresponding animation template of the feature word.
3. text display method as claimed in claim 1, it is characterised in that the character library includes default word template,
The step of character library that the basis is pre-configured with extracts the feature word of the text message also includes:
Search in the text message and the word template identical word, as feature word;
It is described in the animation library being pre-configured with, include the step of search the feature word corresponding animation template:
The corresponding animation template of the word template is searched in the animation library being pre-configured with, using the animation template for finding as institute
State the corresponding animation template of feature word.
4. text display method as claimed in claim 2 or claim 3, it is characterised in that the text display method also includes:
When the custom instruction of input is received, according to custom instruction correspondence configuration regular expression or word template,
And be added in the character library;
It is the regular expression or the corresponding animation template of word template configuration according to the custom instruction, and updates described
Animation library.
5. the text display method as described in claim 1,2 or 3, it is characterised in that the display text message, and base
Also include the step of the animation template shows the feature word:
Obtain the common language in the text message;
The common language is shown according to default foundation forms, the feature word is shown according to the animation template.
6. a kind of textual display device, it is characterised in that the textual display device includes:
Extraction module, for when text message is received, according to the character library being pre-configured with the feature text of the text message being extracted
Word;
Animation, in the animation library being pre-configured with, searching the corresponding animation template of the feature word;
Display module, for showing the text message, and shows the feature word based on the animation template.
7. textual display device as claimed in claim 6, it is characterised in that the character library includes default regular expressions
Formula, the extraction module is additionally operable to,
The word group with the pattern match of the regular expression is searched in the text message, as feature word;
The animation is additionally operable to,
The corresponding animation template of the regular expression is searched in the animation library being pre-configured with, using the animation template for finding as
The corresponding animation template of the feature word.
8. textual display device as claimed in claim 6, it is characterised in that the character library includes default word template,
The extraction module is additionally operable to,
Search in the text message and the word template identical word, as feature word;
The animation is additionally operable to,
The corresponding animation template of the word template is searched in the animation library being pre-configured with, using the animation template for finding as institute
State the corresponding animation template of feature word.
9. textual display device as claimed in claim 7 or 8, it is characterised in that the textual display device also includes:
Custom block, for when the custom instruction of input is received, according to custom instruction correspondence configuration canonical table
Up to formula or word template, and it is added in the character library;It is the regular expression or word mould according to the custom instruction
Plate configures corresponding animation template, and updates the animation library.
10. the textual display device as described in claim 6,7 or 8, it is characterised in that the display module is additionally operable to,
Obtain the common language in the text message;The common language is shown according to default foundation forms, according to described
Animation template shows the feature word.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611270896.0A CN106649209A (en) | 2016-12-30 | 2016-12-30 | Text display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611270896.0A CN106649209A (en) | 2016-12-30 | 2016-12-30 | Text display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106649209A true CN106649209A (en) | 2017-05-10 |
Family
ID=58838165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611270896.0A Withdrawn CN106649209A (en) | 2016-12-30 | 2016-12-30 | Text display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106649209A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608729A (en) * | 2017-09-14 | 2018-01-19 | 光锐恒宇(北京)科技有限公司 | A kind of method and apparatus for showing dynamic effect in the application |
CN108363693A (en) * | 2018-02-13 | 2018-08-03 | 上海智臻智能网络科技股份有限公司 | Text handling method and device |
CN108961361A (en) * | 2017-05-27 | 2018-12-07 | 天津方正手迹数字技术有限公司 | Generate method and system, the computer equipment of literal with special effect image |
CN111201512A (en) * | 2017-10-12 | 2020-05-26 | 华为技术有限公司 | Method and equipment for scrolling and displaying notification message |
CN111221597A (en) * | 2018-11-23 | 2020-06-02 | 北京方正手迹数字技术有限公司 | Font rendering method and device and computer readable storage medium |
CN113570688A (en) * | 2021-07-24 | 2021-10-29 | 深圳市研色科技有限公司 | Automatic character animation generation method and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1384656A (en) * | 2002-03-28 | 2002-12-11 | 刘莎 | Structure short message service system and method |
CN1735240A (en) * | 2004-10-29 | 2006-02-15 | 康佳集团股份有限公司 | Method for realizing expression notation and voice in handset short message |
CN101291476A (en) * | 2007-04-17 | 2008-10-22 | 张岩 | Method for displaying text into image or animation on hand-hold equipment |
CN101383101A (en) * | 2008-10-15 | 2009-03-11 | 深圳市乐天科技有限公司 | Chinese character displaying method on the basis of information apparatus |
CN102112955A (en) * | 2009-08-28 | 2011-06-29 | 株式会社亚派 | Information display device |
CN102236552A (en) * | 2011-05-20 | 2011-11-09 | 深圳市木森动漫游戏有限公司 | Flash lightweight picture-text mixed arrangement |
CN103472972A (en) * | 2012-06-06 | 2013-12-25 | 联发科技(新加坡)私人有限公司 | Text display format setting unit and text display format setting method for mobile terminals and mobile terminal |
CN104238881A (en) * | 2014-09-10 | 2014-12-24 | 北京金山安全软件有限公司 | Terminal information display method and device and terminal |
CN105512138A (en) * | 2014-09-25 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Method for processing text information and system for same |
-
2016
- 2016-12-30 CN CN201611270896.0A patent/CN106649209A/en not_active Withdrawn
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1384656A (en) * | 2002-03-28 | 2002-12-11 | 刘莎 | Structure short message service system and method |
CN1735240A (en) * | 2004-10-29 | 2006-02-15 | 康佳集团股份有限公司 | Method for realizing expression notation and voice in handset short message |
CN101291476A (en) * | 2007-04-17 | 2008-10-22 | 张岩 | Method for displaying text into image or animation on hand-hold equipment |
CN101383101A (en) * | 2008-10-15 | 2009-03-11 | 深圳市乐天科技有限公司 | Chinese character displaying method on the basis of information apparatus |
CN102112955A (en) * | 2009-08-28 | 2011-06-29 | 株式会社亚派 | Information display device |
CN102236552A (en) * | 2011-05-20 | 2011-11-09 | 深圳市木森动漫游戏有限公司 | Flash lightweight picture-text mixed arrangement |
CN103472972A (en) * | 2012-06-06 | 2013-12-25 | 联发科技(新加坡)私人有限公司 | Text display format setting unit and text display format setting method for mobile terminals and mobile terminal |
CN104238881A (en) * | 2014-09-10 | 2014-12-24 | 北京金山安全软件有限公司 | Terminal information display method and device and terminal |
CN105512138A (en) * | 2014-09-25 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Method for processing text information and system for same |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108961361A (en) * | 2017-05-27 | 2018-12-07 | 天津方正手迹数字技术有限公司 | Generate method and system, the computer equipment of literal with special effect image |
CN107608729A (en) * | 2017-09-14 | 2018-01-19 | 光锐恒宇(北京)科技有限公司 | A kind of method and apparatus for showing dynamic effect in the application |
CN111201512A (en) * | 2017-10-12 | 2020-05-26 | 华为技术有限公司 | Method and equipment for scrolling and displaying notification message |
CN108363693A (en) * | 2018-02-13 | 2018-08-03 | 上海智臻智能网络科技股份有限公司 | Text handling method and device |
CN111221597A (en) * | 2018-11-23 | 2020-06-02 | 北京方正手迹数字技术有限公司 | Font rendering method and device and computer readable storage medium |
US11507727B2 (en) | 2018-11-23 | 2022-11-22 | Beijing Founder Handwriting Digital Technology Co., Ltd | Font rendering method and apparatus, and computer-readable storage medium |
CN113570688A (en) * | 2021-07-24 | 2021-10-29 | 深圳市研色科技有限公司 | Automatic character animation generation method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106649209A (en) | Text display method and device | |
US7669135B2 (en) | Using emoticons, such as for wireless devices | |
US8775526B2 (en) | Iconic communication | |
US20170286366A1 (en) | Smart variable expressive text or graphics for electronic communications | |
CN110060317A (en) | Poster method of automatic configuration, equipment, storage medium and device | |
CN107590524A (en) | The preparation method and device of a kind of electronic business card | |
US20160259502A1 (en) | Diverse emojis/emoticons | |
US20130254678A1 (en) | Iconic communication | |
Abdullah et al. | Islamisation in the Indonesian media spaces new sites for a conservative push | |
CN105094775B (en) | Webpage generation method and device | |
WO2010014853A1 (en) | Data-oriented user interface for mobile device | |
CN103019769A (en) | Software start interface control method and mobile terminal | |
WO2016203805A1 (en) | Information processing device, information processing system, information processing method, and program | |
TW201003506A (en) | Icon processing apparatus and icon processing method | |
CN105589641A (en) | Wallpaper replacing method, device and terminal | |
EP2822258B1 (en) | Method and terminal for speed dialing | |
CN105808771A (en) | Group information management method and device | |
CN101527889A (en) | Editing and showing method and mobile communication terminal for graphic short messages | |
CN106412302B (en) | A kind of sending method and mobile terminal of information | |
CN105554296A (en) | Information sending method and terminal | |
KR101315800B1 (en) | Management Method of Tag Based Personal Information in the Portable Information Terminal | |
CN102404292A (en) | Method and system for account automatic matching | |
McLelland | Socio-cultural aspects of mobile communication technologies in Asia and the Pacific: a discussion of the recent literature | |
CN112799552A (en) | Method and device for sharing promotion pictures and storage medium | |
CN107145286A (en) | Browse interaction processing method and device |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170510 |