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

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

Info

Publication number
CN106249910B
CN106249910B CN201610565911.8A CN201610565911A CN106249910B CN 106249910 B CN106249910 B CN 106249910B CN 201610565911 A CN201610565911 A CN 201610565911A CN 106249910 B CN106249910 B CN 106249910B
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.)
Expired - Fee Related
Application number
CN201610565911.8A
Other languages
Chinese (zh)
Other versions
CN106249910A (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, a kind of character processing method based on character library and device, user terminal are disclosed, this method comprises: the target character in character library is converted into character picture;Rasterizing is carried out to character picture, obtains multiple grids;For each grid, judge whether the ratio of the area of region area shared by the pixel of target character and the character picture subregion in the character picture subregion of grid restriction is more than specified threshold, if it does, determining that the grid is effective grid;Specified morphing effects are loaded in the character picture subregion that effective grid limits, and obtain form character picture.The embodiment of the present invention, the character form that character library can be enriched, keeps the external manifestation of character more beautiful, so as to improve character library to the attraction of user, input method corresponding with character library further can be improved to the attraction of user, promote user's viscosity of input method corresponding with character library.

Description

A kind of character processing method and device, user terminal based on character library
Technical field
The present invention relates to technical field of data processing more particularly to a kind of character processing method and device based on character library, User terminal.
Background technique
Currently, the user terminals such as cell phone, tablet computer and personal computer (Personal Computer, PC) Various input methods, such as spelling input method, stroke input method etc. will be installed.In the actual use of input method, user is whole End can also periodically upgrade the corresponding character library of input method, thus the character quantity that character library of enriching constantly includes.It is practicing Middle discovery upgrades the corresponding character library of input method, although the character quantity that the corresponding character library of input method includes can be enriched, But be still difficult to improve the status of the single this embarrassment of character form of character library, to be easily reduced attraction of the character library to user Power.
Summary of the invention
The embodiment of the invention discloses a kind of character processing method based on character library and devices, user terminal, can enrich The character form of character library, to improve character library to the attraction of user.
First aspect of the embodiment of the present invention discloses a kind of character processing method based on character library, comprising:
Target character in the character library is converted into character picture;
Rasterizing is carried out to the character picture, obtains multiple grids;
For grid described in each, the picture of target character described in the character picture subregion of the grid restriction is judged Whether the ratio of the area of region area shared by element and the character picture subregion is more than specified threshold, if it does, determining The grid is effective grid;
Specified morphing effects are loaded in the character picture subregion that effective grid limits, obtain form character figure Piece.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the mesh by the character library Marking-up symbol is converted into before character picture, the method also includes:
Detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input method and the word Library is corresponding;
The candidate characters of the character input instructions match are inquired from the character library, and show the candidate characters;
Any character that detection user chooses from the candidate characters, as the target character in the character library.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the detection user is from the time Any character for choosing in word selection symbol, as after the target character in the character library and the mesh by the character library Marking-up symbol is converted into before character picture, the method also includes:
Detect the character being arranged in the setting menu of a certain input method be converted into form character picture option whether by It chooses, if be checked, executes described the step of target character in the character library is converted into character picture;
If be not checked, whether prompt, which is converted into form character picture option to the character, is chosen, if with Family is converted into form character picture option to the character and chooses, then exports the morphing effects of multiple candidates;
The morphing effects that user specifies from the morphing effects of the multiple candidate are detected, and by the word described in execution Target character in library is converted into the step of character picture.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the method also includes:
Determine the corresponding current character display position of a certain input method;
The form character picture is loaded onto the current character display position.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described to be limited in effective grid The specified morphing effects of load in fixed character picture subregion, obtain form character picture, comprising:
Judge with the presence or absence of adjacent effective grid around effective grid, if it does not, in effective grid The morphing effects of the specified static form of load, obtain form character picture in the character picture subregion of restriction;If it does, The character picture subregion that effective grid and its adjacent effective grid limit is spliced, the splicing of character picture is obtained Region;
Judge whether the area of the character picture splicing regions is greater than specified area, if not, in the character picture The morphing effects of the specified static form of splicing regions load, obtain form character picture;If so, being spelled in the character picture The morphing effects for connecing the specified dynamic-form of region load, obtain form character picture.
Second aspect of the embodiment of the present invention discloses a kind of character processing apparatus based on character library, comprising:
Converting unit, for the target character in the character library to be converted into character picture;
Rasterizing unit obtains multiple grids for carrying out rasterizing to the character picture;
Judging unit judges institute in the character picture subregion of the grid restriction for being directed to each described grid Whether the ratio for stating the area of region area shared by the pixel of target character and the character picture subregion is more than specified threshold, If it does, determining that the grid is effective grid;
Effect loading unit, for loading specified form effect in the character picture subregion that effective grid limits Fruit obtains form character picture.
As an alternative embodiment, the character processing apparatus also wraps in second aspect of the embodiment of the present invention It includes:
Instruction detection unit, for the converting unit by the target character in the character library be converted into character picture it Before, detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input method is opposite with the character library It answers;
Query display unit for inquiring the candidate characters of the character input instructions match from the character library, and is shown Show the candidate characters;
Character machining unit, any character chosen from the candidate characters for detecting user, as the character library In target character.
As an alternative embodiment, the character processing apparatus also wraps in second aspect of the embodiment of the present invention It includes:
Option detection unit, any for being chosen from the candidate characters in character machining unit detection user Character detects the character being arranged in the setting menu of a certain input method and turns after the target character in the character library It changes whether form character picture option is checked into, if be checked, triggers the word described in the converting unit execution Target character in library is converted into the step of character picture;If be not checked, triggering prompt unit starting;
The prompt unit is chosen, such as whether prompt to be converted into form character picture option to the character Fruit user is converted into form character picture option to the character and chooses, then exports the morphing effects of multiple candidates;
Morphing effects detection unit, the form effect specified from the morphing effects of the multiple candidate for detecting user Fruit, and trigger described in the converting unit execution the step of target character in the character library is converted into character picture.
As an alternative embodiment, the character processing apparatus also wraps in second aspect of the embodiment of the present invention It includes:
Form character picture loading unit, for determining the corresponding current character display position of a certain input method;With And the form character picture is loaded onto the current character display position.
As an alternative embodiment, the effect loading unit is specific in second aspect of the embodiment of the present invention For judging with the presence or absence of adjacent effective grid around effective grid, if it does not, being limited in effective grid Character picture subregion in the specified static form of load morphing effects, obtain form character picture;If it does, by institute It states the character picture subregion that effective grid and its adjacent effective grid limit to be spliced, obtains character picture splice region Domain;And judge whether the area of the character picture splicing regions is greater than specified area, if not, being spelled in the character picture The morphing effects for connecing the specified static form of region load, obtain form character picture;If so, splicing in the character picture The morphing effects of the specified dynamic-form of region load, obtain form character picture.
The third aspect of the embodiment of the present invention discloses a kind of user terminal, including institute disclosed in second aspect of the embodiment of the present invention State the 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, it on this basis can be right Character picture carries out rasterizing, obtains multiple grids;Further, when target in the character picture subregion for judging grid restriction When the ratio of the area of region area shared by the pixel of character and the character picture subregion is more than specified threshold, grid can be determined Lattice are effective grid, and load specified morphing effects in the character picture subregion that effective grid limits, so as to obtain Obtain form character picture.Implement the embodiment of the present invention, the character form of character library can be enriched, keep the external manifestation of character more beautiful It sees, so as to improve character library to the attraction of user, input method corresponding with character library further can be improved to user's Attraction promotes user's viscosity of input method corresponding with character library.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of character processing method based on character library disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another character processing method based on character library disclosed by the embodiments of the present invention;
Fig. 3 is the process schematic that a kind of character disclosed by the embodiments of the present invention is converted into form character picture;
Fig. 4 is the flow diagram of another character processing method based on character library disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structural schematic diagram of character processing apparatus based on character library disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another character processing apparatus based on character library disclosed by the embodiments of the present invention;
Fig. 7 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of character processing method based on character library and devices, user terminal, can enrich The character form of character library, to improve character library to the attraction of user.Attached drawing is combined below to be described in detail.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of process signal of character processing method based on character library disclosed by the embodiments of the present invention Figure.As shown in Figure 1, this 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, tablet computer and PC, these users Terminal usually can all be equipped with various input methods, and each output method can correspond to respective character library.
In one embodiment, user terminal can be in the case where user actively triggers, by the target character in character library It is converted into character picture.For example, user can choose a certain character from the corresponding character library of some input method, user terminal can Using the character of choosing user as target character and it is converted into character picture.
In another embodiment, user terminal can also active the target character in character library is converted into character figure Piece.For example, after user terminal newly installs some input method, it can be by each of the corresponding character library of input method word Fu Jun is as target character and is converted into character picture.In another example user terminal to the corresponding character library of some input method into After row upgrading, the character increased newly after which being upgraded as target character and is converted into character picture.
In the embodiment of the present invention, target character may include Chinese character, pinyin character and various input method symbols, the present invention Embodiment is not construed as limiting.
In the embodiment of the present invention, user terminal can turn picture tool (such as long microblogging tool) in Background scheduling character will Target character is converted into character picture.
102, user terminal carries out rasterizing to the character picture, obtains multiple grids.
In the embodiment of the present invention, user terminal can carry out rasterizing to the character picture according to preset lattice dimensions, Obtain multiple grids.For example, it is 10 pixels that preset lattice dimensions, which can be raster width, and grid height is 10 pixels. It should be noted that raster width and grid height can be adjusted according to actual needs, the embodiment of the present invention is not made specifically It limits.
103, user terminal is directed to each grid, judges target character in the character picture subregion of grid restriction Whether the ratio of the area of region area shared by pixel and the character picture subregion is more than specified threshold, if it does, determining The grid is effective grid;, whereas if being less than, determine that the grid is invalid grid.
In the embodiment of the present invention, when the picture of target character in the character picture subregion that user terminal judges grid restriction When the ratio of the area of region area shared by element and the character picture subregion is more than specified threshold, it is believed that the grid limits Character picture subregion in valid pixel ratio be more than specified threshold, at this time user terminal can determine the grid be effective grid Lattice.Wherein, specified threshold can be adjusted according to demand, such as specified threshold can be 50%, and the embodiment of the present invention is not made It limits.
104, user terminal loads specified morphing effects in the character picture subregion that effective grid limits, and obtains shape State character picture.
In one embodiment, user terminal can add in the character picture subregion that each effective grid limits Specified morphing effects are carried, form character picture is obtained.Wherein, morphing effects can be the morphing effects of static form, can also To be the morphing effects of dynamic-form.For example, the morphing effects of static form may include flower, fruit etc.;And dynamic shape The morphing effects of formula may include animation.
In another embodiment, user terminal loads specified shape in the character picture subregion that effective grid limits State effect, obtaining form character picture can be with are as follows:
User terminal judges with the presence or absence of adjacent effective grid around effective grid, if it does not, effective at this The morphing effects of the specified static form of load, obtain form character picture in the character picture subregion that grid limits;If In the presence of the character picture subregion that effective grid and its adjacent effective grid limit is spliced, character picture is obtained Splicing regions;And judge whether the area of the character picture splicing regions is greater than specified area (such as 100 elemental areas), If not, obtaining form character picture in the morphing effects of the specified static form of character picture splicing regions load;If It is, in the morphing effects of the specified dynamic-form of character picture splicing regions load, to obtain form character picture.
Wherein, implement this mode, adjacent effective grid can be not present in the embodiment of the present invention around effective grid Lattice, or there are adjacent effective grids around effective grid, but effective grid and its adjacent effective grid limit Fixed character picture sub-region stitching at the areas of character picture splicing regions be less than specified area when, limited in effective grid The morphing effects for the static form specified in fixed character picture subregion or in character picture splicing regions load, so as to To show the morphing effects of character significantly.
Wherein, implement this mode, the embodiment of the present invention can around effective grid there are adjacent effective grid, And the character picture sub-region stitching that effective grid and its adjacent effective grid limit at character picture splicing regions Area when being greater than specified area, can splice in the character picture subregion that effective grid limits or in the character picture The morphing effects of the specified dynamic-form of region load, so as to more lively, the more capable morphing effects for three-dimensionally showing character.
Wherein, implement method described in Fig. 1, the character form of character library can be enriched, make the external manifestation of character more Input method corresponding with character library further can be improved to user so as to improve character library to the attraction of user in beauty Attraction, promote user's viscosity of corresponding with character library input method.
Embodiment two
Referring to Fig. 2, the process that Fig. 2 is another character processing method based on character library disclosed by the embodiments of the present invention is shown It is intended to.In the method depicted in fig. 2, user terminal can be in the case where user actively triggers, by the target word in character library Symbol is converted into form character picture.As shown in Fig. 2, this method may comprise steps of:
201, user terminal detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input Method is corresponding with character library.
For example, user terminal can detecte user and be instructed by the character input that spelling input method inputs, wherein should Character input instruction may include phonetic " wang ".
202, user terminal inquires the candidate characters of the character input instructions match from the character library, and shows candidate word Symbol.
For example, user terminal can be from the corresponding character library of spelling input method, and inquiring character input instruction includes The candidate characters such as phonetic " wang " matched " king ", " past ", " net ", " object for appreciation " and " object for appreciation ".
203, any character that user terminal detection user chooses from candidate characters, as the target character in character library.
For example, character " king " is chosen from candidate characters such as " kings ", " toward ", " net ", " object for appreciation " and " object for appreciation " as user When, user terminal can detecte the character that user chooses from candidate characters such as " kings ", " toward ", " net ", " object for appreciation " and " object for appreciation " " king ", and by 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 the character picture, obtains multiple grids.
In the embodiment of the present invention, user terminal can carry out rasterizing to the character picture according to preset lattice dimensions, Obtain multiple grids.For example, it is 10 pixels that preset lattice dimensions, which can be raster width, and grid height is 10 pixels. It should be noted that raster width and grid height can be adjusted according to actual needs, the embodiment of the present invention is not made specifically It limits.
206, user terminal is directed to each grid, judges target character in the character picture subregion of grid restriction Whether the ratio of the area of region area shared by pixel and the character picture subregion is more than specified threshold, if it does, determining The grid is effective grid;, whereas if being less than, determine that the grid is invalid grid.
In the embodiment of the present invention, when the picture of target character in the character picture subregion that user terminal judges grid restriction When the ratio of the area of region area shared by element and the character picture subregion is more than specified threshold, it is believed that the grid limits Character picture subregion in valid pixel ratio be more than specified threshold, at this time user terminal can determine the grid be effective grid Lattice.Wherein, specified threshold can be adjusted according to demand, such as specified threshold can be 50%, and the embodiment of the present invention is not made It limits.
207, user terminal loads specified morphing effects in the character picture subregion that effective grid limits, and obtains shape State character picture.
In another embodiment, user terminal loads specified shape in the character picture subregion that effective grid limits State effect, obtaining form character picture can be with are as follows:
User terminal judges with the presence or absence of adjacent effective grid around effective grid, if it does not, effective at this The morphing effects of the specified static form of load, obtain form character picture in the character picture subregion that grid limits;If In the presence of the character picture subregion that effective grid and its adjacent effective grid limit is spliced, character picture is obtained Splicing regions;And judge whether the area of the character picture splicing regions is greater than specified area (such as 100 elemental areas), If not, obtaining form character picture in the morphing effects of the specified static form of character picture splicing regions load;If It is, in the morphing effects of the specified dynamic-form of character picture splicing regions load, to obtain form character picture.
Wherein, implement this mode, adjacent effective grid can be not present in the embodiment of the present invention around effective grid Lattice, or there are adjacent effective grids around effective grid, but effective grid and its adjacent effective grid limit Fixed character picture sub-region stitching at the areas of character picture splicing regions be less than specified area when, limited in effective grid The morphing effects for the static form specified in fixed character picture subregion or in character picture splicing regions load, so as to To show the morphing effects of character significantly.
Wherein, implement this mode, the embodiment of the present invention can around effective grid there are adjacent effective grid, And the character picture sub-region stitching that effective grid and its adjacent effective grid limit at character picture splicing regions Area when being greater than specified area, can splice in the character picture subregion that effective grid limits or in the character picture The morphing effects of the specified dynamic-form of region load, so as to more lively, the more capable morphing effects for three-dimensionally showing character.
It is the process that a kind of character disclosed by the embodiments of the present invention is converted into form character picture also referring to Fig. 3, Fig. 3 Schematic diagram.As shown in figure 3, after the target character " king " in character library is converted into character picture by user terminal, user terminal Rasterizing is carried out to the character picture, obtains multiple grids;Further, user terminal is directed to each grid, judges the grid The area of region area shared by the pixel of target character and the character picture subregion in the character picture subregion that lattice limit Whether ratio is more than specified threshold, if it does, determining that the grid is effective grid;And user terminal can be in effective grid The specified morphing effects of load in the character picture subregion that lattice limit, obtain form character picture.
208, user terminal determines the corresponding current character display position of a certain input method.
209, form character picture is loaded onto the current character display position by user terminal.
Wherein, implement method described in Fig. 2, the character form of character library can be enriched, make the external manifestation of character more Input method corresponding with character library further can be improved to user so as to improve character library to the attraction of user in beauty Attraction, promote user's viscosity of corresponding with character library input method.
Embodiment three
Referring to Fig. 4, the process that Fig. 4 is another character processing method based on character library disclosed by the embodiments of the present invention is shown It is intended to.In the method described in Fig. 4, user terminal can be in the case where user be actively triggered, by the target word in character library Symbol is converted into form character picture.As shown in figure 4, this method may comprise steps of:
401, user terminal detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input Method is corresponding with character library.
For example, user terminal can detecte user and be instructed by the character input that spelling input method inputs, wherein should Character input instruction may include phonetic " wang ".
402, user terminal inquires the candidate characters of the character input instructions match from the character library, and shows candidate word Symbol.
For example, user terminal can be from the corresponding character library of spelling input method, and inquiring character input instruction includes The candidate characters such as phonetic " wang " matched " king ", " past ", " net ", " object for appreciation " and " object for appreciation ".
403, any character that user terminal detection user chooses from candidate characters, as the target character in character library.
For example, character " king " is chosen from candidate characters such as " kings ", " toward ", " net ", " object for appreciation " and " object for appreciation " as user When, user terminal can detecte the character that user chooses from candidate characters such as " kings ", " toward ", " net ", " object for appreciation " and " object for appreciation " " king ", and by character " king " as the target character in character library.
404, user terminal detects the character being arranged in the setting menu of a certain input method and is converted into form character picture Whether option is checked, if be checked, executes step 407~step 412;If be not checked, step 405~step is executed 412。
405, whether user terminal prompt is converted into form character picture option to the character and chooses, if user Form character picture option is converted into the character to choose, then exports the morphing effects of multiple candidates.
406, user terminal detects the morphing effects that 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 the character picture, obtains multiple grids.
In the embodiment of the present invention, user terminal can carry out rasterizing to the character picture according to preset lattice dimensions, Obtain multiple grids.For example, it is 10 pixels that preset lattice dimensions, which can be raster width, and grid height is 10 pixels. It should be noted that raster width and grid height can be adjusted according to actual needs, the embodiment of the present invention is not made specifically It limits.
409, user terminal is directed to each grid, judges target character in the character picture subregion of grid restriction Whether the ratio of the area of region area shared by pixel and the character picture subregion is more than specified threshold, if it does, determining The grid is effective grid;, whereas if being less than, determine that the grid is invalid grid.
In the embodiment of the present invention, when the picture of target character in the character picture subregion that user terminal judges grid restriction When the ratio of the area of region area shared by element and the character picture subregion is more than specified threshold, it is believed that the grid limits Character picture subregion in valid pixel ratio be more than specified threshold, at this time user terminal can determine the grid be effective grid Lattice.Wherein, specified threshold can be adjusted according to demand, such as specified threshold can be 50%, and the embodiment of the present invention is not made It limits.
410, user terminal loads specified morphing effects in the character picture subregion that effective grid limits, and obtains shape State character picture.
In another embodiment, user terminal loads specified shape in the character picture subregion that effective grid limits State effect, obtaining form character picture can be with are as follows:
User terminal judges with the presence or absence of adjacent effective grid around effective grid, if it does not, effective at this The morphing effects of the specified static form of load, obtain form character picture in the character picture subregion that grid limits;If In the presence of the character picture subregion that effective grid and its adjacent effective grid limit is spliced, character picture is obtained Splicing regions;And judge whether the area of the character picture splicing regions is greater than specified area (such as 100 elemental areas), If not, obtaining form character picture in the morphing effects of the specified static form of character picture splicing regions load;If It is, in the morphing effects of the specified dynamic-form of character picture splicing regions load, to obtain form character picture.
Wherein, implement this mode, adjacent effective grid can be not present in the embodiment of the present invention around effective grid Lattice, or there are adjacent effective grids around effective grid, but effective grid and its adjacent effective grid limit Fixed character picture sub-region stitching at the areas of character picture splicing regions be less than specified area when, limited in effective grid The morphing effects for the static form specified in fixed character picture subregion or in character picture splicing regions load, so as to To show the morphing effects of character significantly.
Wherein, implement this mode, the embodiment of the present invention can around effective grid there are adjacent effective grid, And the character picture sub-region stitching that effective grid and its adjacent effective grid limit at character picture splicing regions Area when being greater than specified area, can splice in the character picture subregion that effective grid limits or in the character picture The morphing effects of the specified dynamic-form of region load, so as to more lively, the more capable morphing effects for three-dimensionally showing character.
411, user terminal determines the corresponding current character display position of a certain input method.
412, form character picture is loaded onto the current character display position by user terminal.
Wherein, implement method described in Fig. 4, the character form of character library can be enriched, make the external manifestation of character more Input method corresponding with character library further can be improved to user so as to improve character library to the attraction of user in beauty Attraction, promote user's viscosity of corresponding with character library input method.
Example IV
Referring to Fig. 5, Fig. 5 is a kind of structural representation of character processing apparatus based on character library disclosed by the embodiments of the present invention Figure.As shown in figure 5, the character processing apparatus based on character library may include:
Converting unit 501, for the target character in character library to be converted into character picture;
Rasterizing unit 502 obtains multiple grids for carrying out rasterizing to character picture;
Judging unit 503 judges target word in the character picture subregion of grid restriction for being directed to each grid Whether the ratio of the area of region area shared by the pixel of symbol and the character picture subregion is more than specified threshold, if it does, Determine that the grid is effective grid;
Effect loading unit 504, for loading specified form effect in the character picture subregion that effective grid limits Fruit obtains form character picture.
In the embodiment of the present invention, converting unit 501 can turn picture tool (such as long microblogging tool) in Background scheduling character Target character is converted into character picture.
In the embodiment of the present invention, rasterizing unit 502 can carry out grid to the character picture according to preset lattice dimensions It formats, obtains multiple grids.For example, it is 10 pixels, grid height 10 that preset lattice dimensions, which can be raster width, Pixel.It should be noted that raster width and grid height can be adjusted according to actual needs, the embodiment of the present invention is not made It is specific to limit.
In one embodiment, effect loading unit 504 can be in the character picture sub-district that each effective grid limits Specified morphing effects are loaded in domain, obtain form character picture.Wherein, morphing effects can be the form effect of static form Fruit is also possible to the morphing effects of dynamic-form.For example, the morphing effects of static form may include flower, fruit etc.;And The morphing effects of dynamic-form may include animation.
In another embodiment, effect loading unit 504 loads in the character picture subregion that effective grid limits Specified morphing effects, obtaining form character picture can be with are as follows:
Effect loading unit 504 judges around effective grid with the presence or absence of adjacent effective grid, if it does not, The morphing effects of the specified static form of load, obtain form character figure in the character picture subregion that effective grid limits Piece;If it does, the character picture subregion that effective grid and its adjacent effective grid limit is spliced, word is obtained Accord with picture splicing regions;And judge whether the area of the character picture splicing regions is greater than specified area (such as 100 pixels Area), if not, obtaining form character figure in the morphing effects of the specified static form of character picture splicing regions load Piece;If so, obtaining form character picture in the morphing effects of the specified dynamic-form of character picture splicing regions load.
Wherein, implement this mode, adjacent effective grid can be not present in the embodiment of the present invention around effective grid Lattice, or there are adjacent effective grids around effective grid, but effective grid and its adjacent effective grid limit Fixed character picture sub-region stitching at the areas of character picture splicing regions be less than specified area when, limited in effective grid The morphing effects for the static form specified in fixed character picture subregion or in character picture splicing regions load, so as to To show the morphing effects of character significantly.
Wherein, implement this mode, the embodiment of the present invention can around effective grid there are adjacent effective grid, And the character picture sub-region stitching that effective grid and its adjacent effective grid limit at character picture splicing regions Area when being greater than specified area, can splice in the character picture subregion that effective grid limits or in the character picture The morphing effects of the specified dynamic-form of region load, so as to more lively, the more capable morphing effects for three-dimensionally showing character.
Wherein, implement the character processing apparatus based on character library described in Fig. 5, the character form of character library can be enriched, made The external manifestation of character is more beautiful, so as to improve character library to the attraction of user, further can be improved and character library Corresponding input method promotes user's viscosity of input method corresponding with character library to the attraction of user.
Embodiment five
Referring to Fig. 6, the structure that Fig. 6 is another character processing apparatus based on character library disclosed by the embodiments of the present invention is shown It is intended to.Wherein, the character processing apparatus shown in fig. 6 based on character library is the character processing apparatus based on character library as shown in Figure 5 It optimizes.Compared with the character processing apparatus shown in fig. 5 based on character library, the character shown in fig. 6 based on character library Processing unit can also include:
Instruction detection unit 505, for converting unit 501 by the target character in character library be converted into character picture it Before, detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input method is corresponding with the character library;
Query display unit 506 for inquiring the candidate characters of the character input instructions match from the character library, and is shown Candidate characters;
Character machining unit 507, any character chosen from candidate characters for detecting user, as in the character library Target character.
For example, instruction detection unit 505 can detecte user and be instructed by the character input that spelling input method inputs, Wherein, character input instruction may include phonetic " wang ";Query display unit 506 can be from the corresponding word of spelling input method In library, phonetic " wang " matched " king ", " past ", " net ", " object for appreciation " and " object for appreciation " waiting that character input instruction includes is inquired Word selection symbol;When user chooses character " king " from candidate characters such as " kings ", " toward ", " net ", " object for appreciation " and " object for appreciation ", character machining Unit 507 can detecte the character " king " that user chooses from candidate characters such as " kings ", " toward ", " net ", " object for appreciation " and " object for appreciation ", and By character " king " as the target character in character library.
As an alternative embodiment, character processing apparatus shown in fig. 6 can also include:
Option detection unit 508, for detecting any word that user chooses from candidate characters in character machining unit 507 Symbol detects the character conversion forming being arranged in the setting menu of a certain input method after the target character in the character library Whether state character picture option is checked, if be checked, triggering converting unit 501, which executes, turns the target character in the character library The step of changing character picture into;If be not checked, triggering prompt unit 509 starts;
Prompt unit 509 is chosen for whether prompt to be converted into form character picture option to the character, if with Family is converted into form character picture option to the character and chooses, then exports the morphing effects of multiple candidates;
Morphing effects detection unit 510, the morphing effects specified from the morphing effects of multiple candidates for detecting user, And trigger the step of target character in the character library is converted into character picture by the execution of converting unit 501.
In the embodiment of the present invention, when user, which is converted into form character picture option to the character, to be chosen, illustrate to use Family is defaulted when using some input method to input character, and form character picture is converted characters to.
As an alternative embodiment, character processing apparatus shown in fig. 6 can also include:
Form character picture loading unit 511, for determining the corresponding current character display position of a certain input method, with And the form character picture is loaded onto current character display position.
Wherein, the character form of character library can be enriched by implementing character processing apparatus described in Fig. 6, make the external table of character It is now more beautiful, so as to improve character library to the attraction of user, input method corresponding with character library further can be improved To the attraction of user, user's viscosity of input method corresponding with character library is promoted.
Embodiment six
Referring to Fig. 7, Fig. 7 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention.As shown in fig. 7, The user terminal may include the character processing apparatus based on character library that example IV or embodiment five describe.Wherein, implement Fig. 7 Described user terminal can enrich the character form of character library, keep the external manifestation of character more beautiful, so as to improve Input method corresponding with character library further can be improved to the attraction of user, promotion and word to the attraction of user in character library User's viscosity of the corresponding input method in library.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage 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), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can For carrying or any other computer-readable medium of storing data.
A kind of character processing method and device based on character library disclosed by the embodiments of the present invention, user terminal are carried out above It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (9)

1. a kind of character processing method based on character library characterized by comprising
Target character in the character library is converted into character picture;
Rasterizing is carried out to the character picture, obtains multiple grids;
For grid described in each, the pixel institute of target character described in the character picture subregion of the grid restriction is judged Whether the ratio for accounting for the area of region area and the character picture subregion is more than specified threshold, if it does, described in determining Grid is effective grid;
Specified morphing effects are loaded in the character picture subregion that effective grid limits, obtain form character picture;
It is described to load specified morphing effects in the character picture subregion that effective grid limits, obtain form character figure Piece, comprising:
Judge with the presence or absence of adjacent effective grid around effective grid, if it does not, being limited in effective grid Character picture subregion in the specified static form of load morphing effects, obtain form character picture;If it does, by institute It states the character picture subregion that effective grid and its adjacent effective grid limit to be spliced, obtains character picture splice region Domain;
Judge whether the area of the character picture splicing regions is greater than specified area, if not, splicing in the character picture The morphing effects of the specified static form of region load, obtain form character picture;If so, in character picture splice region The morphing effects of the specified dynamic-form of domain load, obtain form character picture.
2. character processing method according to claim 1, which is characterized in that the target character by the character library turns Before changing character picture into, the method also includes:
Detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input method and the character library phase It is corresponding;
The candidate characters of the character input instructions match are inquired from the character library, and show the candidate characters;
Any character that detection user chooses from the candidate characters, as the target character in the character library.
3. character processing method according to claim 2, which is characterized in that the detection user is from the candidate characters Choose any character, as after the target character in the character library and the target character by the character library turn Before changing character picture into, the method also includes:
It detects the character being arranged in the setting menu of a certain input method and is converted into whether form character picture option is checked, If be checked, execute described the step of target character in the character library is converted into character picture;
If be not checked, whether prompt, which is converted into form character picture option to the character, is chosen, if user couple The character is converted into form character picture option and is chosen, then exports the morphing effects of multiple candidates;
The morphing effects that user specifies from the morphing effects of the multiple candidate are detected, and will be in the character library described in execution Target character the step of being converted into character picture.
4. character processing method according to claim 3, which is characterized in that the method also includes:
Determine the corresponding current character display position of a certain input method;
The form character picture is loaded onto the current character display position.
5. a kind of character processing apparatus based on character library characterized by comprising
Converting unit, for the target character in the character library to be converted into character picture;
Rasterizing unit obtains multiple grids for carrying out rasterizing to the character picture;
Judging unit judges mesh described in the character picture subregion of the grid restriction for being directed to each described grid Whether the ratio of the area of region area shared by the pixel of marking-up symbol and the character picture subregion is more than specified threshold, if It is more than to determine that the grid is effective grid;
Effect loading unit, for loading specified morphing effects in the character picture subregion that effective grid limits, Obtain form character picture;
The effect loading unit is specifically used for judging with the presence or absence of adjacent effective grid around effective grid, if not In the presence of loading the morphing effects of specified static form in the character picture subregion that the effective grid limits, obtain shape State character picture;If it does, the character picture subregion that effective grid and its adjacent effective grid limit is carried out Splicing obtains character picture splicing regions;And judge whether the area of the character picture splicing regions is greater than specified area, If not, obtaining form character picture in the morphing effects of the specified static form of character picture splicing regions load;Such as Fruit is, in the morphing effects of the specified dynamic-form of character picture splicing regions load, to obtain form character picture.
6. character processing apparatus according to claim 5, which is characterized in that further include:
Instruction detection unit, for before the target character in the character library is converted into character picture by the converting unit, Detection user is instructed by the character input that a certain input method inputs;Wherein, a certain input method is corresponding with the character library;
Query display unit for inquiring the candidate characters of the character input instructions match from the character library, and shows institute State candidate characters;
Character machining unit, any character chosen from the candidate characters for detecting user, as in the character library Target character.
7. character processing apparatus according to claim 6, which is characterized in that further include:
Option detection unit, any word for being chosen from the candidate characters in character machining unit detection user Symbol detects the character conversion being arranged in the setting menu of a certain input method after the target character in the character library Whether it is checked at form character picture option, if be checked, triggers the character library described in the converting unit execution In target character the step of being converted into character picture;If be not checked, triggering prompt unit starting;
The prompt unit is chosen for whether prompt to be converted into form character picture option to the character, if with Family is converted into form character picture option to the character and chooses, then exports the morphing effects of multiple candidates;
Morphing effects detection unit, the morphing effects specified from the morphing effects of the multiple candidate for detecting user, and It triggers described in the converting unit execution the step of target character in the character library is converted into character picture.
8. character processing apparatus according to claim 7, which is characterized in that further include:
Form character picture loading unit, for determining the corresponding current character display position of a certain input method;And it will The form character picture is loaded onto the current character display position.
9. a kind of user terminal, which is characterized in that at the character described in claim 5~8 any one based on character library Manage device.
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 CN106249910A (en) 2016-12-21
CN106249910B true 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)

Families Citing this family (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
如何制作由字符组成的图片?;垂天翼;《软件》;20031105(第11期);第42页

Also Published As

Publication number Publication date
CN106249910A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
US9922260B2 (en) Scrapped information providing method and apparatus
WO2020019458A1 (en) Page switching method of hybrid application, framework, computer device and storage medium
CN103778211B (en) The language switching method and device of game of mobile terminal software
US11341706B2 (en) Virtual scene display method and apparatus, and storage medium
CN109324857B (en) User guide implementation method, device and storage medium
EP2987064A1 (en) Deferred placement prompt
CN112558954A (en) Information extraction method, device, medium and electronic equipment combining RPA and AI
CN104915186B (en) A kind of method and apparatus making the page
EP4319123A1 (en) Image processing method, apparatus and device, storage medium, and computer program product
TW201826109A (en) Method and apparatus for page presentation
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
WO2017211174A1 (en) Page management method and device
CN106249910B (en) A kind of character processing method and device, user terminal based on character library
KR102605545B1 (en) Methods and apparatus, devices, storage media and program products for adjusting the position of virtual buttons
CN115080016A (en) Extended function implementation method, device, equipment and medium based on UE editor
CN108491232B (en) Method and system for loading control on voice conversation platform
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
CN111399926A (en) Method and device for downloading starting program
CN111399836B (en) Method and device for modifying page attribute
CN110018863A (en) A kind of mobile terminal text display method, storage medium, equipment and system
CN113672757A (en) Audio playing method and device
CN110955473B (en) Method and device for displaying loading prompt information
CN105138380A (en) Method and device for starting Linux system
CN108733444A (en) A kind of method for refreshing of the page, device, storage medium and mobile terminal
CN112817508B (en) Method, device and equipment for managing gesture control instruction of resource material

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