CN106249910A - A kind of character processing method based on character library and device, user terminal - Google Patents

A kind of character processing method based on character library and device, user terminal Download PDF

Info

Publication number
CN106249910A
CN106249910A CN201610565911.8A CN201610565911A CN106249910A CN 106249910 A CN106249910 A CN 106249910A CN 201610565911 A CN201610565911 A CN 201610565911A CN 106249910 A CN106249910 A CN 106249910A
Authority
CN
China
Prior art keywords
character
picture
character picture
library
grid
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
CN201610565911.8A
Other languages
Chinese (zh)
Other versions
CN106249910B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201610565911.8A priority Critical patent/CN106249910B/en
Publication of CN106249910A publication Critical patent/CN106249910A/en
Application granted granted Critical
Publication of CN106249910B publication Critical patent/CN106249910B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Abstract

The present embodiments relate to technical field of data processing, disclose a kind of character processing method based on character library and device, user terminal, the method includes: the target character in character library is converted into character picture;Character picture is carried out rasterizing, it is thus achieved that multiple grids;For each grid, it is judged that in the character picture subregion that this grid limits, whether region area shared by the pixel of target character exceedes appointment threshold value, if it does, determine that this grid is effective grid with the ratio of the area of this character picture subregion;Load, in the character picture subregion that effective grid limits, the morphing effects specified, it is thus achieved that form character picture.The embodiment of the present invention, can enrich the character form of character library, the outward manifestation making character is more attractive in appearance, such that it is able to improve the character library captivation to user, the input method corresponding with the character library captivation to user can be improved further, promote user's viscosity of the input method corresponding with character library.

Description

A kind of character processing method based on character library and device, user terminal
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of character processing method based on character library and device, User terminal.
Background technology
At present, the user terminal such as cell phone, panel computer and personal computer (Personal Computer, PC) Various input method, such as spelling input method, stroke input method etc. will be installed.Input method actually used in, user is eventually The character library that input method is corresponding also can periodically be upgraded by end, thus the character quantity that character library of enriching constantly comprises.In practice Middle discovery, upgrades to the character library that input method is corresponding, although can enrich the character quantity that character library corresponding to input method comprises, But still it is difficult to improve the present situation of the single this embarrassment of character form of character library, thus is easily reduced the character library attraction to user Power.
Summary of the invention
The embodiment of the invention discloses a kind of character processing method based on character library and device, user terminal, it is possible to abundant The character form of character library, thus improve the character library captivation to user.
Embodiment of the present invention first aspect discloses a kind of character processing method based on character library, including:
Target character in described character library is converted into character picture;
Described character picture is carried out rasterizing, it is thus achieved that multiple grids;
For grid each described, it is judged that the picture of target character described in the character picture subregion that described grid limits Whether the shared region area of element exceedes appointment threshold value, if it does, determine with the ratio of the area of described character picture subregion Described grid is effective grid;
Load, in the character picture subregion that described effective grid limits, the morphing effects specified, it is thus achieved that form character figure Sheet.
As the optional embodiment of one, in embodiment of the present invention first aspect, described by the mesh in described character library Before marking-up symbol is converted into character picture, described method also includes:
The character input instruction that detection user is inputted by a certain input method;Wherein, described a certain input method and described word Storehouse is corresponding;
From described character library, inquire about the candidate characters of described character input instructions match, and show described candidate characters;
Arbitrary character that detection user chooses from described candidate characters, as the target character in described character library.
As the optional embodiment of one, in embodiment of the present invention first aspect, described detection user is from described time The arbitrary character chosen in word selection symbol, after the target character in described character library and described by the mesh in described character library Before marking-up symbol is converted into character picture, described method also includes:
Detect described a certain input method arrange the character arranged in menu be converted into form character picture option whether by Choose, the step that the target character in described character library is converted into character picture if be checked, described in execution;
If be not checked, whether prompting is converted into form character picture option to described character is chosen, if used Family is converted into form character picture option and chooses described character, then export the morphing effects of multiple candidate;
The detection morphing effects specified from the morphing effects of the plurality of candidate of user, and described in performing by described word Target character in storehouse is converted into the step of character picture.
As the optional embodiment of one, in embodiment of the present invention first aspect, described method also includes:
Determine the current character display position that described a certain input method is corresponding;
Described form character picture is loaded onto described current character display position.
As the optional embodiment of one, in embodiment of the present invention first aspect, described in described effective grid limit The morphing effects specified is loaded, it is thus achieved that form character picture in fixed character picture subregion, including:
Judge whether to exist around described effective grid adjacent effective grid, if it does not, at described effective grid The morphing effects of the static form specified is loaded, it is thus achieved that form character picture in the character picture subregion limited;If it does, The character picture subregion that described effective grid and adjacent effective grid thereof limit is spliced, it is thus achieved that character picture splices Region;
Judge whether the area of described character picture splicing regions is more than and specify area, if it does not, at described character picture Splicing regions loads the morphing effects of the static form specified, it is thus achieved that form character picture;If it is, spell at described character picture Connect region and load the morphing effects of the dynamic-form specified, it is thus achieved that form character picture.
Embodiment of the present invention second aspect discloses a kind of character processing apparatus based on character library, including:
Converting unit, for being converted into character picture by the target character in described character library;
Rasterizing unit, for carrying out rasterizing to described character picture, it is thus achieved that multiple grids;
Judging unit, for for grid each described, it is judged that institute in the character picture subregion that described grid limits Whether the ratio of the area stating region area shared by the pixel of target character and described character picture subregion exceedes appointment threshold value, If it does, determine that described grid is effective grid;
Effect loading unit, for loading the form effect specified in the character picture subregion that described effective grid limits Really, it is thus achieved that form character picture.
As the optional embodiment of one, in embodiment of the present invention second aspect, described character processing apparatus also wraps Include:
Instruction detection unit, for described converting unit the target character in described character library is converted into character picture it Before, the character input instruction that detection user is inputted by a certain input method;Wherein, described a certain input method is relative with described character library Should;
Query display unit, for inquiring about the candidate characters of described character input instructions match from described character library, and shows Show described candidate characters;
Character machining unit, for detecting arbitrary character that user chooses from described candidate characters, as described character library In target character.
As the optional embodiment of one, in embodiment of the present invention second aspect, described character processing apparatus also wraps Include:
Option detector unit, arbitrary for choose from described candidate characters described character machining unit detection user Character, after the target character in described character library, the character arranged in menu that arranges detecting described a certain input method turns Change whether form character picture option is checked into, if be checked, trigger described converting unit perform described in by described word Target character in storehouse is converted into the step of character picture;If not being checked, triggering Tip element and starting;
Whether described Tip element, be converted into form character picture option to described character for prompting and choose, as Really user is converted into form character picture option and chooses described character, then export the morphing effects of multiple candidate;
Morphing effects detector unit, for detecting the form effect that user specifies from the morphing effects of the plurality of candidate Really, and trigger described converting unit perform described in the step that the target character in described character library is converted into character picture.
As the optional embodiment of one, in embodiment of the present invention second aspect, described character processing apparatus also wraps Include:
Form character picture loading unit, for determining the current character display position that described a certain input method is corresponding;With And described form character picture is loaded onto described current character display position.
As the optional embodiment of one, in embodiment of the present invention second aspect, described effect loading unit is concrete For judging whether to exist around described effective grid adjacent effective grid, if it does not, limit at described effective grid Character picture subregion in load the morphing effects of static form specified, it is thus achieved that form character picture;If it does, by institute The character picture subregion stating effective grid and the restriction of adjacent effective grid thereof splices, it is thus achieved that character picture splice region Territory;And judge whether the area of described character picture splicing regions is more than appointment area, if it does not, spell at described character picture Connect region and load the morphing effects of the static form specified, it is thus achieved that form character picture;If it is, splice at described character picture Region loads the morphing effects of the dynamic-form specified, it is thus achieved that form character picture.
The open a kind of user terminal of the embodiment of the present invention third aspect, including institute disclosed in embodiment of the present invention second aspect State character processing apparatus based on character library.
Compared with prior art, the embodiment of the present invention has the advantages that
In the embodiment of the present invention, the target character in character library can be converted into character picture, on this basis can be right Character picture carries out rasterizing, it is thus achieved that multiple grids;Further, when judging target in the character picture subregion that grid limits When the ratio of the area of region area shared by the pixel of character and this character picture subregion exceedes appointment threshold value, it may be determined that grid Lattice are effective grid, and load the morphing effects specified, such that it is able to obtain in the character picture subregion that effective grid limits Obtain form character picture.Implementing the embodiment of the present invention, can enrich the character form of character library, the outward manifestation making character is more beautiful See, such that it is able to improve the character library captivation to user, the input method corresponding with character library can be improved further to user's Captivation, promotes user's viscosity of the input method corresponding with character library.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for ability From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings Figure.
Fig. 1 is the schematic flow sheet of a kind of character processing method based on character library disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of character processing method based on character library disclosed in the embodiment of the present invention;
Fig. 3 is the process schematic that a kind of character disclosed in the embodiment of the present invention is converted into form character picture;
Fig. 4 is the schematic flow sheet of another kind of character processing method based on character library disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of character processing apparatus based on character library disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of character processing apparatus based on character library disclosed in the embodiment of the present invention;
Fig. 7 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under not making creative work premise Execute example, broadly fall into the scope of protection of the invention.
The embodiment of the invention discloses a kind of character processing method based on character library and device, user terminal, it is possible to abundant The character form of character library, thus improve the character library captivation to user.Below it is combined accompanying drawing to be described in detail.
Embodiment one
Refer to the flow process signal that Fig. 1, Fig. 1 are a kind of character processing methods based on character library disclosed in the embodiment of the present invention Figure.As it is shown in figure 1, the method may comprise steps of:
101, the target character in character library is converted into character picture by user terminal.
In the embodiment of the present invention, user terminal includes the user terminals such as cell phone, panel computer and PC, these users Terminal the most all can be provided with various input method, and each output method all can corresponding respective character library.
In one embodiment, user terminal can be in the case of user actively triggers, by the target character in character library It is converted into character picture.Such as, user can choose a certain character from the character library that some input method is corresponding, and user terminal can As target character and it is converted into character picture using character user chosen.
In another embodiment, the target character in character library actively can also be converted into character figure by user terminal Sheet.Such as, after user terminal some input method newly installed, can be by each word in character library corresponding for this input method Fu Jun is as target character and is converted into character picture.The most such as, the character library that some input method is corresponding is being entered by user terminal After row upgrading, after can this character library being upgraded, newly-increased character as target character and is converted into character picture.
In the embodiment of the present invention, target character can include Chinese character, pinyin character and various input method symbol, the present invention Embodiment is not construed as limiting.
In the embodiment of the present invention, user terminal can turn picture instrument (such as long microblogging instrument) at Background scheduling character will Target character is converted into character picture.
102, user terminal carries out rasterizing to this character picture, it is thus achieved that multiple grids.
In the embodiment of the present invention, user terminal can carry out rasterizing according to default lattice dimensions to this character picture, Obtain multiple grid.For example, preset lattice dimensions can be raster width be 10 pixels, grid height is 10 pixels. It should be noted that raster width and grid height can be adjusted according to the actual requirements, the embodiment of the present invention is not made specifically Limit.
103, user terminal is for each grid, it is judged that target character in the character picture subregion that this grid limits Whether region area shared by pixel exceedes appointment threshold value, if it does, determine with the ratio of the area of this character picture subregion This grid is effective grid;Whereas if not less than, determine that this grid is invalid grid.
In the embodiment of the present invention, the picture of target character in user terminal judges the character picture subregion that this grid limits When the ratio of the area of the shared region area of element and this character picture subregion exceedes appointment threshold value, it is believed that this grid limits Character picture subregion in valid pixel ratio exceed appointment threshold value, now user terminal may determine that this grid is effective grid Lattice.Wherein, it is intended that threshold value can be adjusted according to demand, such as specifying threshold value can be 50%, and the embodiment of the present invention is not made Limit.
104, user terminal loads, in the character picture subregion that effective grid limits, the morphing effects specified, it is thus achieved that shape State character picture.
In one embodiment, user terminal all can add in the character picture subregion that each effective grid limits Carry the morphing effects specified, it is thus achieved that form character picture.Wherein, morphing effects can be the morphing effects of static form, it is possible to To be the morphing effects of dynamic-form.For example, the morphing effects of static form can include flower, fruit etc.;And dynamic shape The morphing effects of formula can include animation.
In another embodiment, user terminal loads, in the character picture subregion that effective grid limits, the shape specified State effect, it is thus achieved that form character picture can be:
User terminal judges whether to exist around this effective grid adjacent effective grid, if it does not, effective at this The morphing effects of the static form specified is loaded, it is thus achieved that form character picture in the character picture subregion that grid limits;If Exist, the character picture subregion that this effective grid and adjacent effective grid thereof limit is spliced, it is thus achieved that character picture Splicing regions;And, it is judged that whether the area of this character picture splicing regions is more than is specified area (such as 100 elemental areas), If it does not, load the morphing effects of the static form specified in this character picture splicing regions, it is thus achieved that form character picture;If It is to load the morphing effects of the dynamic-form specified in this character picture splicing regions, it is thus achieved that form character picture.
Wherein, implementing this mode, can there are not adjacent effective grid in the embodiment of the present invention around this effective grid Lattice, or around this effective grid, there is adjacent effective grid, but this effective grid and adjacent effective grid limit thereof The area of the character picture splicing regions that fixed character picture sub-region stitching becomes, less than when specifying area, limits at this effective grid The morphing effects of the static form specified in fixed character picture subregion or is loaded in this character picture splicing regions, thus can To represent the morphing effects of character significantly.
Wherein, implementing this mode, can there is adjacent effective grid in the embodiment of the present invention around this effective grid, And the character picture splicing regions that the character picture sub-region stitching that this effective grid and adjacent effective grid thereof limit becomes Area more than specify area time, can this effective grid limit character picture subregion in or this character picture splice Region loads the morphing effects of dynamic-form specified, such that it is able to more vividly, the most capable morphing effects three-dimensionally representing character.
Wherein, implement the method described by Fig. 1, the character form of character library can be enriched, make the outward manifestation of character more Attractive in appearance, such that it is able to improve the character library captivation to user, the input method corresponding with character library can be improved further to user Captivation, promote user's viscosity of the input method corresponding with character library.
Embodiment two
Referring to Fig. 2, Fig. 2 is that disclosed in the embodiment of the present invention, the flow process of another kind of character processing method based on character library is shown It is intended to.In the method described by Fig. 2, user terminal can be in the case of user actively triggers, by the target word in character library Symbol is converted into form character picture.As in figure 2 it is shown, the method may comprise steps of:
201, the character input instruction that user terminal detection user is inputted by a certain input method;Wherein, this certain input Method is to there being character library.
For example, user terminal can detect the character input instruction that user is inputted by spelling input method, wherein, is somebody's turn to do Character input instruction can include phonetic " wang ".
202, user terminal inquires about the candidate characters of this character input instructions match from this character library, and shows candidate word Symbol.
For example, user terminal can be inquired about the input instruction of this character and include from the character library that spelling input method is corresponding The candidate characters such as phonetic " wang " " king ", " past ", " net ", " object for appreciation " and " object for appreciation " mated.
203, arbitrary character that user terminal detection user chooses from candidate characters, as the target character in character library.
For example, when user from " king ", " toward ", " net ", the candidate characters such as " object for appreciation " and " object for appreciation " chooses character " king " Time, user terminal can detect user from " king ", " toward ", " net ", the character chosen the candidate characters such as " object for appreciation " and " object for appreciation " " king ", and using character " king " as the target character in character library.
204, the target character in character library is converted into character picture by user terminal.
205, user terminal carries out rasterizing to this character picture, it is thus achieved that multiple grids.
In the embodiment of the present invention, user terminal can carry out rasterizing according to default lattice dimensions to this character picture, Obtain multiple grid.For example, preset lattice dimensions can be raster width be 10 pixels, grid height is 10 pixels. It should be noted that raster width and grid height can be adjusted according to the actual requirements, the embodiment of the present invention is not made specifically Limit.
206, user terminal is for each grid, it is judged that target character in the character picture subregion that this grid limits Whether region area shared by pixel exceedes appointment threshold value, if it does, determine with the ratio of the area of this character picture subregion This grid is effective grid;Whereas if not less than, determine that this grid is invalid grid.
In the embodiment of the present invention, the picture of target character in user terminal judges the character picture subregion that this grid limits When the ratio of the area of the shared region area of element and this character picture subregion exceedes appointment threshold value, it is believed that this grid limits Character picture subregion in valid pixel ratio exceed appointment threshold value, now user terminal may determine that this grid is effective grid Lattice.Wherein, it is intended that threshold value can be adjusted according to demand, such as specifying threshold value can be 50%, and the embodiment of the present invention is not made Limit.
207, user terminal loads, in the character picture subregion that effective grid limits, the morphing effects specified, it is thus achieved that shape State character picture.
In another embodiment, user terminal loads, in the character picture subregion that effective grid limits, the shape specified State effect, it is thus achieved that form character picture can be:
User terminal judges whether to exist around this effective grid adjacent effective grid, if it does not, effective at this The morphing effects of the static form specified is loaded, it is thus achieved that form character picture in the character picture subregion that grid limits;If Exist, the character picture subregion that this effective grid and adjacent effective grid thereof limit is spliced, it is thus achieved that character picture Splicing regions;And, it is judged that whether the area of this character picture splicing regions is more than is specified area (such as 100 elemental areas), If it does not, load the morphing effects of the static form specified in this character picture splicing regions, it is thus achieved that form character picture;If It is to load the morphing effects of the dynamic-form specified in this character picture splicing regions, it is thus achieved that form character picture.
Wherein, implementing this mode, can there are not adjacent effective grid in the embodiment of the present invention around this effective grid Lattice, or around this effective grid, there is adjacent effective grid, but this effective grid and adjacent effective grid limit thereof The area of the character picture splicing regions that fixed character picture sub-region stitching becomes, less than when specifying area, limits at this effective grid The morphing effects of the static form specified in fixed character picture subregion or is loaded in this character picture splicing regions, thus can To represent the morphing effects of character significantly.
Wherein, implementing this mode, can there is adjacent effective grid in the embodiment of the present invention around this effective grid, And the character picture splicing regions that the character picture sub-region stitching that this effective grid and adjacent effective grid thereof limit becomes Area more than specify area time, can this effective grid limit character picture subregion in or this character picture splice Region loads the morphing effects of dynamic-form specified, such that it is able to more vividly, the most capable morphing effects three-dimensionally representing character.
Seeing also Fig. 3, Fig. 3 is the process that a kind of character disclosed in the embodiment of the present invention is converted into form character picture Schematic diagram.As it is shown on figure 3, after the target character " king " in character library is converted into character picture by user terminal, user terminal This character picture is carried out rasterizing, it is thus achieved that multiple grids;Further, user terminal is for each grid, it is judged that these grid The area of region area and this character picture subregion shared by the pixel of target character in the character picture subregion that lattice limit Whether ratio exceedes appointment threshold value, if it does, determine that this grid is effective grid;And, user terminal can be at effective grid The morphing effects specified is loaded, it is thus achieved that form character picture in the character picture subregion that lattice limit.
208, user terminal determines the current character display position that this certain input method is corresponding.
209, form character picture is loaded onto this current character display position by user terminal.
Wherein, implement the method described by Fig. 2, the character form of character library can be enriched, make the outward manifestation of character more Attractive in appearance, such that it is able to improve the character library captivation to user, the input method corresponding with character library can be improved further to user Captivation, promote user's viscosity of the input method corresponding with character library.
Embodiment three
Referring to Fig. 4, Fig. 4 is that disclosed in the embodiment of the present invention, the flow process of another kind of character processing method based on character library is shown It is intended to.In the method described by Fig. 4, user terminal can be in the case of user actively triggers, by the target word in character library Symbol is converted into form character picture.As shown in Figure 4, the method may comprise steps of:
401, the character input instruction that user terminal detection user is inputted by a certain input method;Wherein, this certain input Method is to there being character library.
For example, user terminal can detect the character input instruction that user is inputted by spelling input method, wherein, is somebody's turn to do Character input instruction can include phonetic " wang ".
402, user terminal inquires about the candidate characters of this character input instructions match from this character library, and shows candidate word Symbol.
For example, user terminal can be inquired about the input instruction of this character and include from the character library that spelling input method is corresponding The candidate characters such as phonetic " wang " " king ", " past ", " net ", " object for appreciation " and " object for appreciation " mated.
403, arbitrary character that user terminal detection user chooses from candidate characters, as the target character in character library.
For example, when user from " king ", " toward ", " net ", the candidate characters such as " object for appreciation " and " object for appreciation " chooses character " king " Time, user terminal can detect user from " king ", " toward ", " net ", the character chosen the candidate characters such as " object for appreciation " and " object for appreciation " " king ", and using character " king " as the target character in character library.
404, user terminal detect this certain input method arrange in menu arrange character be converted into form character picture Whether option is checked, if be checked, performs step 407~step 412;If be not checked, perform step 405~step 412。
405, whether user terminal prompting is converted into form character picture option to described character and chooses, if user Described character is converted into form character picture option choose, then exports the morphing effects of multiple candidate.
406, the morphing effects that user terminal detection user specifies from the morphing effects of multiple candidates.
407, the target character in character library is converted into character picture by user terminal.
408, user terminal carries out rasterizing to this character picture, it is thus achieved that multiple grids.
In the embodiment of the present invention, user terminal can carry out rasterizing according to default lattice dimensions to this character picture, Obtain multiple grid.For example, preset lattice dimensions can be raster width be 10 pixels, grid height is 10 pixels. It should be noted that raster width and grid height can be adjusted according to the actual requirements, the embodiment of the present invention is not made specifically Limit.
409, user terminal is for each grid, it is judged that target character in the character picture subregion that this grid limits Whether region area shared by pixel exceedes appointment threshold value, if it does, determine with the ratio of the area of this character picture subregion This grid is effective grid;Whereas if not less than, determine that this grid is invalid grid.
In the embodiment of the present invention, the picture of target character in user terminal judges the character picture subregion that this grid limits When the ratio of the area of the shared region area of element and this character picture subregion exceedes appointment threshold value, it is believed that this grid limits Character picture subregion in valid pixel ratio exceed appointment threshold value, now user terminal may determine that this grid is effective grid Lattice.Wherein, it is intended that threshold value can be adjusted according to demand, such as specifying threshold value can be 50%, and the embodiment of the present invention is not made Limit.
410, user terminal loads, in the character picture subregion that effective grid limits, the morphing effects specified, it is thus achieved that shape State character picture.
In another embodiment, user terminal loads, in the character picture subregion that effective grid limits, the shape specified State effect, it is thus achieved that form character picture can be:
User terminal judges whether to exist around this effective grid adjacent effective grid, if it does not, effective at this The morphing effects of the static form specified is loaded, it is thus achieved that form character picture in the character picture subregion that grid limits;If Exist, the character picture subregion that this effective grid and adjacent effective grid thereof limit is spliced, it is thus achieved that character picture Splicing regions;And, it is judged that whether the area of this character picture splicing regions is more than is specified area (such as 100 elemental areas), If it does not, load the morphing effects of the static form specified in this character picture splicing regions, it is thus achieved that form character picture;If It is to load the morphing effects of the dynamic-form specified in this character picture splicing regions, it is thus achieved that form character picture.
Wherein, implementing this mode, can there are not adjacent effective grid in the embodiment of the present invention around this effective grid Lattice, or around this effective grid, there is adjacent effective grid, but this effective grid and adjacent effective grid limit thereof The area of the character picture splicing regions that fixed character picture sub-region stitching becomes, less than when specifying area, limits at this effective grid The morphing effects of the static form specified in fixed character picture subregion or is loaded in this character picture splicing regions, thus can To represent the morphing effects of character significantly.
Wherein, implementing this mode, can there is adjacent effective grid in the embodiment of the present invention around this effective grid, And the character picture splicing regions that the character picture sub-region stitching that this effective grid and adjacent effective grid thereof limit becomes Area more than specify area time, can this effective grid limit character picture subregion in or this character picture splice Region loads the morphing effects of dynamic-form specified, such that it is able to more vividly, the most capable morphing effects three-dimensionally representing character.
411, user terminal determines the current character display position that this certain input method is corresponding.
412, form character picture is loaded onto this current character display position by user terminal.
Wherein, implement the method described by Fig. 4, the character form of character library can be enriched, make the outward manifestation of character more Attractive in appearance, such that it is able to improve the character library captivation to user, the input method corresponding with character library can be improved further to user Captivation, promote user's viscosity of the input method corresponding with character library.
Embodiment four
Referring to Fig. 5, Fig. 5 is the structural representation of a kind of character processing apparatus based on character library disclosed in the embodiment of the present invention Figure.As it is shown in figure 5, should may include that by character processing apparatus based on character library
Converting unit 501, for being converted into character picture by the target character in character library;
Rasterizing unit 502, for carrying out rasterizing to character picture, it is thus achieved that multiple grids;
Judging unit 503, for for each grid, it is judged that target word in the character picture subregion that this grid limits Shared by the pixel of symbol, whether region area exceedes appointment threshold value with the ratio of the area of this character picture subregion, if it does, Determine that this grid is effective grid;
Effect loading unit 504, for loading the form effect specified in the character picture subregion that effective grid limits Really, it is thus achieved that form character picture.
In the embodiment of the present invention, converting unit 501 can turn picture instrument (such as long microblogging instrument) at Background scheduling character Target character is converted into character picture.
In the embodiment of the present invention, rasterizing unit 502 can carry out grid according to default lattice dimensions to this character picture Format, it is thus achieved that multiple grids.For example, preset lattice dimensions can be raster width be 10 pixels, grid height is 10 Pixel.It should be noted that raster width and grid height can be adjusted according to the actual requirements, the embodiment of the present invention is not made Concrete restriction.
In one embodiment, the character figure slice, thin piece district that effect loading unit 504 can limit at each effective grid The morphing effects specified all is loaded, it is thus achieved that form character picture in territory.Wherein, morphing effects can be the form effect of static form Really, it is also possible to be the morphing effects of dynamic-form.For example, the morphing effects of static form can include flower, fruit etc.;And The morphing effects of dynamic-form can include animation.
In another embodiment, effect loading unit 504 loads in the character picture subregion that effective grid limits The morphing effects specified, it is thus achieved that form character picture can be:
Effect loading unit 504 judges whether to exist around this effective grid adjacent effective grid, if it does not, The morphing effects of the static form specified is loaded, it is thus achieved that form character figure in the character picture subregion that this effective grid limits Sheet;If it does, the character picture subregion that this effective grid and adjacent effective grid thereof limit is spliced, it is thus achieved that word Symbol picture splicing regions;And, it is judged that whether the area of this character picture splicing regions is more than specifying area (such as 100 pixels Area), if it does not, load the morphing effects of the static form specified in this character picture splicing regions, it is thus achieved that form character figure Sheet;If it is, load the morphing effects of the dynamic-form specified in this character picture splicing regions, it is thus achieved that form character picture.
Wherein, implementing this mode, can there are not adjacent effective grid in the embodiment of the present invention around this effective grid Lattice, or around this effective grid, there is adjacent effective grid, but this effective grid and adjacent effective grid limit thereof The area of the character picture splicing regions that fixed character picture sub-region stitching becomes, less than when specifying area, limits at this effective grid The morphing effects of the static form specified in fixed character picture subregion or is loaded in this character picture splicing regions, thus can To represent the morphing effects of character significantly.
Wherein, implementing this mode, can there is adjacent effective grid in the embodiment of the present invention around this effective grid, And the character picture splicing regions that the character picture sub-region stitching that this effective grid and adjacent effective grid thereof limit becomes Area more than specify area time, can this effective grid limit character picture subregion in or this character picture splice Region loads the morphing effects of dynamic-form specified, such that it is able to more vividly, the most capable morphing effects three-dimensionally representing character.
Wherein, implement the character processing apparatus based on character library described by Fig. 5, the character form of character library can be enriched, make The outward manifestation of character is more attractive in appearance, such that it is able to improve the character library captivation to user, can improve further and character library The corresponding input method captivation to user, promotes user's viscosity of the input method corresponding with character library.
Embodiment five
Referring to Fig. 6, Fig. 6 is that disclosed in the embodiment of the present invention, the structure of another kind of character processing apparatus based on character library is shown It is intended to.Wherein, the character processing apparatus based on character library shown in Fig. 6 is character processing apparatus based on character library as shown in Figure 5 It is optimized and obtains.Compared with the character processing apparatus based on character library shown in Fig. 5, the character based on character library shown in Fig. 6 Processing means can also include:
Instruction detection unit 505, for converting unit 501 target character in character library is converted into character picture it Before, the character input instruction that detection user is inputted by a certain input method;Wherein, this certain input method is corresponding with this character library;
Query display unit 506, for inquiring about the candidate characters of this character input instructions match from this character library, and shows Candidate characters;
Character machining unit 507, for detecting arbitrary character that user chooses from candidate characters, as in this character library Target character.
For example, instruction detection unit 505 can detect the character input instruction that user is inputted by spelling input method, Wherein, this character input instruction can include phonetic " wang ";Query display unit 506 can be from word corresponding to spelling input method In storehouse, inquire about the input of this character and instruct " king ", " past ", " net ", " object for appreciation " and " object for appreciation " waiting that the phonetic " wang " included mates Word selection accords with;When user from " king ", " toward ", " net ", the candidate characters such as " object for appreciation " and " object for appreciation " chooses character " king " time, character machining Unit 507 can detect user from " king ", " toward ", " net ", the character " king " chosen the candidate characters such as " object for appreciation " and " object for appreciation ", and Using character " king " as the target character in character library.
As the optional embodiment of one, the character processing apparatus shown in Fig. 6 can also include:
Option detector unit 508, for detecting, at character machining unit 507, arbitrary word that user chooses from candidate characters Symbol, after the target character in this character library, the character conversion arranged in menu that arranges detecting this certain input method shapes Whether state character picture option is checked, if being checked, triggering converting unit 501 and performing to turn the target character in this character library Change the step of character picture into;If not being checked, triggering Tip element 509 and starting;
Whether Tip element 509, be converted into form character picture option to this character for prompting and choose, if used Family is converted into form character picture option and chooses this character, then export the morphing effects of multiple candidate;
Morphing effects detector unit 510, for detecting the morphing effects that user specifies from the morphing effects of multiple candidates, And trigger converting unit 501 and perform to be converted into the target character in this character library the step of character picture.
In the embodiment of the present invention, when user this character is converted into form character picture option choose time, illustrate to use Family acquiescence, when using this some input method to input character, all converts characters to form character picture.
As the optional embodiment of one, the character processing apparatus shown in Fig. 6 can also include:
Form character picture loading unit 511, for determining the current character display position that this certain input method is corresponding, with And this form character picture is loaded onto current character display position.
Wherein, implement the character processing apparatus described by Fig. 6 and can enrich the character form of character library, make the external table of character The most attractive in appearance, such that it is able to improve the character library captivation to user, the input method corresponding with character library can be improved further Captivation to user, promotes user's viscosity of the input method corresponding with character library.
Embodiment six
Referring to Fig. 7, Fig. 7 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention.As it is shown in fig. 7, This user terminal can include the character processing apparatus based on character library that embodiment four or embodiment five describe.Wherein, Fig. 7 is implemented Described user terminal, can enrich the character form of character library, and the outward manifestation making character is more attractive in appearance, such that it is able to improve The character library captivation to user, can improve the input method corresponding with the character library captivation to user further, promotes and word User's viscosity of the input method that storehouse is corresponding.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage Medium include read only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read only memory (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other disk storages, disk memory, magnetic tape storage or can For carrying or store any other medium computer-readable of data.
Above character processing method based on character library a kind of disclosed in the embodiment of the present invention and device, user terminal are carried out Being discussed in detail, principle and the embodiment of the present invention are set forth by specific case used herein, above example Explanation be only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, According to the thought of the present invention, the most all will change, in sum, in this specification Hold and should not be construed as limitation of the present invention.

Claims (11)

1. a character processing method based on character library, it is characterised in that including:
Target character in described character library is converted into character picture;
Described character picture is carried out rasterizing, it is thus achieved that multiple grids;
For grid each described, it is judged that the pixel institute of target character described in the character picture subregion that described grid limits Whether the ratio of the area accounting for region area and described character picture subregion exceedes appointment threshold value, if it does, determine described Grid is effective grid;
Load, in the character picture subregion that described effective grid limits, the morphing effects specified, it is thus achieved that form character picture.
Character processing method the most according to claim 1, it is characterised in that described target character in described character library is turned Before changing character picture into, described method also includes:
The character input instruction that detection user is inputted by a certain input method;Wherein, described a certain input method and described character library phase Corresponding;
From described character library, inquire about the candidate characters of described character input instructions match, and show described candidate characters;
Arbitrary character that detection user chooses from described candidate characters, as the target character in described character library.
Character processing method the most according to claim 2, it is characterised in that described detection user is from described candidate characters The arbitrary character chosen, after the target character in described character library, and described turns the target character in described character library Before changing character picture into, described method also includes:
The character arranged in menu that arranges detecting described a certain input method is converted into whether form character picture option is checked, The step that the target character in described character library is converted into character picture if be checked, described in execution;
If be not checked, whether prompting is converted into form character picture option to described character is chosen, if user couple Described character is converted into form character picture option and chooses, then export the morphing effects of multiple candidate;
The detection morphing effects specified from the morphing effects of the plurality of candidate of user, and described in performing by described character library Target character be converted into the step of character picture.
Character processing method the most according to claim 3, it is characterised in that described method also includes:
Determine the current character display position that described a certain input method is corresponding;
Described form character picture is loaded onto described current character display position.
5. according to the character processing method described in any one of Claims 1 to 4, it is characterised in that described at described effective grid The morphing effects specified is loaded, it is thus achieved that form character picture in the character picture subregion limited, including:
Judge whether to exist around described effective grid adjacent effective grid, if it does not, limit at described effective grid Character picture subregion in load the morphing effects of static form specified, it is thus achieved that form character picture;If it does, by institute The character picture subregion stating effective grid and the restriction of adjacent effective grid thereof splices, it is thus achieved that character picture splice region Territory;
Judge whether the area of described character picture splicing regions is more than and specify area, if it does not, splice at described character picture Region loads the morphing effects of the static form specified, it is thus achieved that form character picture;If it is, in described character picture splice region Territory loads the morphing effects of the dynamic-form specified, it is thus achieved that form character picture.
6. a character processing apparatus based on character library, it is characterised in that including:
Converting unit, for being converted into character picture by the target character in described character library;
Rasterizing unit, for carrying out rasterizing to described character picture, it is thus achieved that multiple grids;
Judging unit, for for grid each described, it is judged that mesh described in the character picture subregion that described grid limits Shared by the pixel of marking-up symbol, whether region area exceedes appointment threshold value with the ratio of the area of described character picture subregion, if Exceed, determine that described grid is effective grid;
Effect loading unit, for loading, in the character picture subregion that described effective grid limits, the morphing effects specified, Obtain form character picture.
Character processing apparatus the most according to claim 6, it is characterised in that also include:
Instruction detection unit, was used for before the target character in described character library is converted into character picture by described converting unit, The character input instruction that detection user is inputted by a certain input method;Wherein, described a certain input method is corresponding with described character library;
Query display unit, for inquiring about the candidate characters of described character input instructions match from described character library, and shows institute State candidate characters;
Character machining unit, for detecting arbitrary character that user chooses from described candidate characters, as in described character library Target character.
Character processing apparatus the most according to claim 7, it is characterised in that also include:
Option detector unit, for the arbitrary word chosen from described candidate characters described character machining unit detection user Symbol, after the target character in described character library, that detects described a certain input method arranges the character conversion arranged in menu Become form character picture option whether be checked, if be checked, trigger described converting unit perform described in by described character library In target character be converted into the step of character picture;If not being checked, triggering Tip element and starting;
Whether described Tip element, be converted into form character picture option to described character for prompting and choose, if used Family is converted into form character picture option and chooses described character, then export the morphing effects of multiple candidate;
Morphing effects detector unit, for detecting the morphing effects that user specifies from the morphing effects of the plurality of candidate, and Trigger the step that the target character in described character library is converted into character picture described in the execution of described converting unit.
Character processing apparatus the most according to claim 8, it is characterised in that also include:
Form character picture loading unit, for determining the current character display position that described a certain input method is corresponding;And will Described form character picture is loaded onto described current character display position.
10. according to the character processing apparatus described in any one of claim 6~9, it is characterised in that described effect loading unit has Body is for judging whether to exist around described effective grid adjacent effective grid, if it does not, limit at described effective grid The morphing effects of the static form specified is loaded, it is thus achieved that form character picture in fixed character picture subregion;If it does, will The character picture subregion that described effective grid and adjacent effective grid thereof limit splices, it is thus achieved that character picture splice region Territory;And judge whether the area of described character picture splicing regions is more than appointment area, if it does not, spell at described character picture Connect region and load the morphing effects of the static form specified, it is thus achieved that form character picture;If it is, splice at described character picture Region loads the morphing effects of the dynamic-form specified, it is thus achieved that form character picture.
11. 1 kinds of user terminals, it is characterised in that include the character based on character library described in claim 6~10 any one Processing means.
CN201610565911.8A 2016-07-15 2016-07-15 A kind of character processing method and device, user terminal based on character library Expired - Fee Related CN106249910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610565911.8A CN106249910B (en) 2016-07-15 2016-07-15 A kind of character processing method and device, user terminal based on character library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610565911.8A CN106249910B (en) 2016-07-15 2016-07-15 A kind of character processing method and device, user terminal based on character library

Publications (2)

Publication Number Publication Date
CN106249910A true CN106249910A (en) 2016-12-21
CN106249910B CN106249910B (en) 2019-01-04

Family

ID=57614049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610565911.8A Expired - Fee Related CN106249910B (en) 2016-07-15 2016-07-15 A kind of character processing method and device, user terminal based on character library

Country Status (1)

Country Link
CN (1) CN106249910B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189971A (en) * 2018-09-04 2019-01-11 四川长虹电器股份有限公司 A kind of method of flexible special display effect number

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090241102A1 (en) * 2008-03-20 2009-09-24 Inventec Corporation Method for updating electronic dictionary
CN102339277A (en) * 2011-09-16 2012-02-01 广州市动景计算机科技有限公司 Method and system for converting text content into picture content
CN102360250A (en) * 2011-10-13 2012-02-22 广东步步高电子工业有限公司 Memory type input method and system and mobile handheld device applying same
CN102402689A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 Method and device for establishing association between target word and user input graphs
CN102693094A (en) * 2012-06-12 2012-09-26 上海量明科技发展有限公司 Method, client side and system for adjusting characters in instant messaging
CN102768754A (en) * 2012-08-03 2012-11-07 网易(杭州)网络有限公司 Method and device for implementation of picture verification code
CN103500332A (en) * 2013-09-06 2014-01-08 优视科技有限公司 Character display method and device in image
CN105022746A (en) * 2014-04-25 2015-11-04 腾讯科技(深圳)有限公司 Character library generation method, server and system
CN105047181A (en) * 2015-08-05 2015-11-11 广东小天才科技有限公司 Method and device for displaying characters
CN105046736A (en) * 2014-04-30 2015-11-11 吉奥梅里斯有限公司 Graphics processing systems

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090241102A1 (en) * 2008-03-20 2009-09-24 Inventec Corporation Method for updating electronic dictionary
CN102402689A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 Method and device for establishing association between target word and user input graphs
CN102339277A (en) * 2011-09-16 2012-02-01 广州市动景计算机科技有限公司 Method and system for converting text content into picture content
CN102360250A (en) * 2011-10-13 2012-02-22 广东步步高电子工业有限公司 Memory type input method and system and mobile handheld device applying same
CN102693094A (en) * 2012-06-12 2012-09-26 上海量明科技发展有限公司 Method, client side and system for adjusting characters in instant messaging
CN102768754A (en) * 2012-08-03 2012-11-07 网易(杭州)网络有限公司 Method and device for implementation of picture verification code
CN103500332A (en) * 2013-09-06 2014-01-08 优视科技有限公司 Character display method and device in image
CN105022746A (en) * 2014-04-25 2015-11-04 腾讯科技(深圳)有限公司 Character library generation method, server and system
CN105046736A (en) * 2014-04-30 2015-11-11 吉奥梅里斯有限公司 Graphics processing systems
CN105047181A (en) * 2015-08-05 2015-11-11 广东小天才科技有限公司 Method and device for displaying characters

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
垂天翼: "如何制作由字符组成的图片?", 《软件》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189971A (en) * 2018-09-04 2019-01-11 四川长虹电器股份有限公司 A kind of method of flexible special display effect number

Also Published As

Publication number Publication date
CN106249910B (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US20140310642A1 (en) Deferred placement prompt
CN108228287B (en) QT-based user interface control generation method and device
CN108573516B (en) It draws the generation method of this document, calculate equipment and computer storage medium
CN112230909B (en) Method, device, equipment and storage medium for binding data of applet
CN112074876A (en) Authoring content in a three-dimensional environment
US20150331557A1 (en) Selector to coordinate experiences between related applications
CN106687913A (en) Display device for displaying multiple applications on flexible display and method for controlling the display device
CN104933142A (en) Animation display method and device
US11620784B2 (en) Virtual scene display method and apparatus, and storage medium
CN102622159A (en) Portable equipment as well as realizing method and system of user interface of same
CN111193960B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN102800045A (en) Image processing method and device
CN103530127A (en) Icon display method and device
CN105517681A (en) Chart conversion system using metadata and method therefor
CN107357501B (en) Desktop wallpaper updating method and device and terminal
EP4171006A1 (en) Previewing method and apparatus for effect application, and device and storage medium
CN106249910A (en) A kind of character processing method based on character library and device, user terminal
CN105468227A (en) Method and apparatus for displaying information in webpage
CN109753612A (en) Control method, device, storage medium and the electronic equipment that questionnaire is shown
CN110007831A (en) A kind of flipping-over control method, device and terminal device
CN104063212A (en) Method For Creating A User Interface
CN102857826B (en) Method and device for image-text playing and based on circulation queue
CN104898928A (en) Graphic and text information display method and terminal
CN111796897A (en) Page display method and device, storage medium and electronic equipment
US20230054388A1 (en) Method and apparatus for presenting audiovisual work, device, and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190104

CF01 Termination of patent right due to non-payment of annual fee