Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and the nearly shape of technical solution in the embodiment of the present invention understands, is 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 method and terminal for inputting character, the character shape with user's input can be improved
The input speed of the approximate nearly shape character of shape.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of method for inputting character disclosed by the embodiments of the present invention.Such as Fig. 1 institute
Show, the method for the input character may comprise steps of.
S101, the character for obtaining the character of user's input and showing the input.
In the embodiment of the present invention, the terminal of input method application may include smart phone, tablet computer, palm PC etc.
Equipment with character input function.
In the embodiment of the present invention, when the character of user's input can be terminal and be in editing mode, inputted by input method
The characters such as number, English alphabet, Chinese character or symbol.
For example, user can open input method, for example input method is switched to English in the editing interface of mobile phone
Alphabetical input state is chosen and the English alphabet inputted is needed such as to choose English alphabet a, letter a is then shown in edit box.
S102, it displays the prompt box, at least one nearly shape corresponding with the character of the input is shown in the prompting frame
Character.
In the embodiment of the present invention, user can before executing step S101, preset it is corresponding with some character extremely
A few nearly shape character.Nearly shape character refers to that nearly shape character can be and input character from character closer to each other is seen in shape
The approximate Greek character of shape, Latin symbols, number, English alphabet, Chinese character, punctuation mark etc..For example Greece's word can be set
Female α is the nearly shape character of English alphabet a, after user passes through input method inputting English letter a, will pop up prompting frame, is mentioning
Show and shows pre-set nearly shape character α corresponding with the character of input in frame.
It should be noted that if when above there are two nearly shape characters corresponding with the character of some input, then in prompting frame
It is middle all to be shown in all nearly shape characters corresponding with the character of the input, for the ease of inputting nearly shape word, optional
In embodiment, when showing at least two nearly shape characters corresponding with the character of input in prompting frame, at least two nearly shape words
Symbol is arranged successively according to the degree of approximation sequence from high to low of the character with input.Certainly, can also according to selected number come
It puts in order, it may be assumed that in an alternate embodiment of the invention, when the nearly shape word corresponding with the character of input of display at least two in prompting frame
Fu Shi, at least two nearly shape characters are arranged successively according to the sequence of selected frequency from high to low.It should be noted that one
Mapping table can be set in a little optional embodiments, by some character and it is pre-set it is corresponding with the character at least one closely
The corresponding relationship of shape character saves in the mapping table.When inputting character, obtained by searching for mapping table corresponding with the character
Nearly shape character.
It should be noted that in some alternative embodiments, if being not provided in advance corresponding with some input character
When nearly shape character, when inputting the character, using the character of input as image, obtained from character library by image recognition and the character
Matched nearly shape character, and matched nearly shape character is shown in prompting frame.Further, it is inputted if being saved by mapping table
Character and nearly shape character between relationship, then by some character and pre-set at least one nearly shape corresponding with the character
Corresponding relationship between character saves in the mapping table;And by some character being not provided in advance and pass through image recognition from word
The corresponding relationship between character approximate with the character match obtained in library also saves in the mapping table.
S103, selection operation of the user at least one the nearly shape character shown in prompting frame is obtained.
For example it obtains user and one character is chosen in prompting frame by touch screen.
S104, the nearly shape character that user chooses, and the nearly shape word chosen with the user are determined according to the selection operation
The character of symbol replacement user's input.
For example, if user inputs a in edit box, prompting frame is popped up, according to presetting, if setting is close with a
The character of shape then shows α if α in prompting frame, if user chooses the α in prompting frame, α is the nearly shape word that user chooses
Symbol, then with a in α replacement edit box.Character α is inputted in edit box to realize.
Method described in Fig. 1 can input the character shape inputted with user approximately nearly shape character quickly, accelerate
The input speed of spcial character, the user experience is improved.
Referring to Fig. 2, Fig. 2 is the flow chart of the method for another input character disclosed by the embodiments of the present invention.Such as Fig. 2 institute
Show, which may comprise steps of.
S201, at least one nearly shape character corresponding with character to be entered is preset.
S202, the character for obtaining the character of user's input and showing the input.
S203, it displays the prompt box, at least one nearly shape corresponding with the character of the input is shown in the prompting frame
Character.
S204, selection operation of the user at least one the nearly shape character shown in the prompting frame is obtained.
S205, the nearly shape character that user chooses, and the nearly shape word chosen with the user are determined according to the selection operation
The character of symbol replacement user's input.
Compared to Figure 1, the step of presetting at least one nearly shape character corresponding with character to be entered is increased, other
Each step is identical as Fig. 1.
Method described in Fig. 2 pre-sets nearly shape character corresponding with the character of input, includes needing in nearly shape character
Some to be inputted spcial characters first input some character that can be inputted by input method corresponding with spcial character, then
The spcial character in prompting frame is chosen, finally with the correspondence character of the spcial character replacement input of selection, is selected to realize
Spcial character input.The present embodiment accelerates the input speed of spcial character, just using the relevance of shape between character
In memory, the user experience is improved.
Referring to Fig. 3, Fig. 3 is the flow chart of the method for another input character disclosed by the embodiments of the present invention.Such as Fig. 3 institute
Show, which may comprise steps of.
S301, the character for obtaining the character of user's input and showing the input;
S302, using the character of input as image, obtained from character library by image recognition with the nearly shape word of the character match
Symbol, and matched nearly shape character is shown in prompting frame.
S303, user is obtained to the selection operation of at least one the nearly shape character shown in the prompting frame
S304, the nearly shape character that user chooses, and the nearly shape word chosen with the user are determined according to the selection operation
The character of symbol replacement user's input.
Difference with input method shown in Fig. 2 is, in the present embodiment, is not previously set corresponding with input character close
Shape character, after user inputs character, the present embodiment obtained from character library using the character inputted as image, by image recognition with
The nearly shape character of the character match of the input, and matched nearly shape character is shown in prompting frame.For example, if not setting in advance
Nearly shape character corresponding with a is set, after user inputs a in edit box, using a as image, is matched with the character in character library,
Specifically, using the character in character library as image, image recognition, the figure of the nearly shape of lookup image corresponding with a are carried out with the image of a
Picture, the corresponding character of image of the nearly shape found are exactly the nearly shape character for inputting character a, such as α.
It should be noted that in some alternative embodiments, mapping table can be set, by some character and preset
At least one nearly shape character corresponding with the character between corresponding relationship save in the mapping table;And it will not set in advance
Some character set with by image recognition from the corresponding relationship between the character approximate with the character match obtained in character library
Also it saves in the mapping table.It is subsequent when inputting the character again, it can be obtained by by searching for mapping table corresponding with the character
Nearly shape character.
Input method described in Fig. 3 accelerates the input speed of spcial character using the relevance of shape between character,
Convenient for memory, the user experience is improved.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention, which executes input
Method.As shown in figure 4, the terminal 400 may include:
Acquiring unit 410, for obtaining the character of user's input, and acquisition user at least one shown in prompting frame
The selection operation of a nearly shape character determines the nearly shape character that user chooses according to selection operation;
Display unit 420, the character for inputting user are displayed on the screen, and according to the selection operation of user,
With the character of nearly shape character replacement user's input of selection in screen;
Prompt unit 430 shows at least one character with input for displaying the prompt box in screen in prompting frame
Corresponding nearly shape character.
In the embodiment of the present invention, terminal may include that smart phone, tablet computer, palm PC etc. have character input function
The equipment of energy.
In the embodiment of the present invention, acquiring unit 410, for when terminal is in editing mode, obtaining user in edit box
In by input method input character, then display unit 420 shows the character that user input in edit box, prompt
Unit 430 displays the prompt box in screen, at least one nearly shape character corresponding with the character of input is shown in prompting frame.It obtains
Unit 410 is taken further to obtain selection operation of the user at least one the nearly shape character shown in prompting frame, according to selection
Operate the nearly shape character for determining that user chooses;Last display unit carries out what character replacement user inputted in screen with selection
Character is specifically replaced user in edit box by the character that input method inputs with the nearly shape character that user selects.It realizes
The input of the nearly shape character.
It should be noted that in optional example in real time, prompt unit 430 is also used to prompt for the ease of searching
When showing at least two nearly shape characters corresponding with the character of input in frame, at least two nearly shape characters are according to the character with input
Degree of approximation sequence from high to low be arranged successively.In an alternate embodiment of the invention, prompt unit 430 can be used for mention
Show that at least two nearly shape character is according to selected when showing at least two nearly shape characters corresponding with the character of input in frame
Frequency sequence from high to low be arranged successively.
Terminal described in Fig. 4 accelerates the input speed of spcial character, is convenient for using the relevance of shape between character
Memory, the user experience is improved.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention, as shown in figure 5, should
Terminal 500 may include:
Acquiring unit 510, for obtaining the character of user's input, and acquisition user at least one shown in prompting frame
The selection operation of a nearly shape character determines the nearly shape character that user chooses according to selection operation;Display unit 520, for that will use
The character of family input is displayed on the screen;And the selection operation according to user, it is replaced in screen with the nearly shape character of selection
The character of user's input;Prompt unit 530 shows at least one and institute for displaying the prompt box in screen in prompting frame
State the corresponding nearly shape character of character of input.Setting unit 540, for be pre-set at some character it is corresponding at least one into
Line character.
For example, acquiring unit 510 obtains the following operation of user: obtaining operation of the user in editing interface, beats
Input method is opened, for example input method is switched to English alphabet input state, chooses and the English alphabet inputted is needed such as to choose English
Text mother a.
According to pre-set at least one the nearly shape character corresponding with some character of setting unit 540.For example it can set
The nearly shape character that alpha is English alphabet a is set, after user passes through input method inputting English letter a, display unit
520 will pop up prompting frame, and pre-set nearly shape character α corresponding with the character of input is shown in prompting frame.
Prompt unit 530, specifically for being displayed the prompt box in screen when receiving some character of user's input,
It include the pre-set all nearly shape characters corresponding with the character of setting unit 540 in prompting frame, so that user is according to mentioning
Show the display of frame, chooses the nearly shape character for needing to input.
In an alternate embodiment of the invention, setting unit 530 can be also used for setting mapping table, set by some character and in advance
The corresponding relationship at least one the nearly shape character corresponding with the character set saves in the mapping table.Prompt unit 530 is according to reflecting
The nearly shape character corresponding with input character saved in firing table, shows all nearly shape characters corresponding with the character in prompting frame.
Terminal described in Fig. 5 accelerates the input speed of spcial character, is convenient for using the relevance of shape between character
Memory, the user experience is improved.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention, as shown in fig. 6, should
Terminal 600 may include: acquiring unit 610, for obtaining the character of user's input, and obtain user to showing in prompting frame
At least one nearly shape character selection operation, according to selection operation determine user choose nearly shape character;Display unit 620,
Character for inputting user is displayed on the screen;And the selection operation according to user, with the selection in screen
The character of nearly shape character replacement user's input;Prompt unit 630 is shown in prompting frame for displaying the prompt box in screen
At least one nearly shape character corresponding with the character of the input.Setting unit 640, it is corresponding with some character for presetting
At least one nearly shape character;Recognition unit 650, if for being not provided with nearly shape character corresponding with some character in advance, when
When inputting the character, then using the character of input as image, obtained from character library by image recognition and the nearly shape of the character match
Character.Character library is the set of all characters saved in terminal.Prompt unit 630, be also used to obtain recognition unit 650 with
All nearly shape characters of the character match are shown in prompting frame, so that display of the user according to prompting frame, chooses the close of needs
Shape character.In an alternate embodiment of the invention, setting unit 640 are also used to that mapping table is arranged, by some character and it is pre-set with
The corresponding relationship of at least one corresponding nearly shape character of the character saves in the mapping table;And by be not provided in advance some
Character is also stored in by image recognition from the corresponding relationship between the character approximate with the character match obtained in character library
In mapping table.The character of input can be at least one of English alphabet, Chinese character, number, common symbol, with input character pair
The nearly shape character answered is passing through in character library by the pre-set nearly shape character of setting unit 640 or by recognition unit 650
The nearly shape character with the character match that image recognition is obtained from character library.Nearly shape character can be English alphabet, Chinese character, number
At least one of word, common symbol, Greek character, Latin symbols.
Terminal described in Fig. 6 accelerates the input speed of spcial character, is convenient for using the relevance of shape between character
Memory, the user experience is improved.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention, as shown in fig. 7, should
Terminal 700 may include: at least one processor 710, such as CPU;Further include: at least one input unit 730, at least one
Output device 740, memory 750 and at least one communication bus 720.Wherein, communication bus 720 is for realizing these groups
Connection communication between part.Input unit 730 may include Trackpad, can be used for receiving the character of user's input, output dress
Setting 740 may include display screen, for showing the character of user's input;If user presets and saves in memory 750
At least one nearly shape character corresponding with input character, then output device 740 is also used to display the prompt box, and shows in prompting frame
Show at least one nearly shape character corresponding with the character of input.If user is not previously set and input character corresponding at least one
A nearly shape character, then the character of processor 710 is obtained using input unit 730 user input as image, by image recognition from
It is stored in the nearly shape character obtained in the character library in memory 750 with the character match of input.Then will acquire with input
The nearly shape character of character match is shown by output unit 740 by prompting frame.It should be noted that processor 750 is also used to set up
The corresponding relationship of some character and pre-set at least one nearly shape character corresponding with the character is stored in and reflects by mapping table
In firing table;And by some character being not provided in advance with by image recognition obtained from character library with the character match
Corresponding relationship between approximate character also saves in the mapping table.Input unit 730 further obtains user in prompting frame
The selection operation of at least one nearly shape character of display determines the nearly shape character that user chooses according to the selection operation;This is close
Shape character is the character for needing to input.The character for nearly shape character replacement user's input that output unit 740 is chosen according to user.It deposits
Reservoir 750 can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), such as
At least one magnetic disk storage.Memory 750 optionally can also be that at least one is located remotely from the storage of aforementioned processor 710
Device.Character library and mapping table wherein can be stored in memory 750, by some character and pre-set corresponding with the character
The corresponding relationship of at least one nearly shape character saves in the mapping table, and close with input character by what is obtained by image recognition
The character of shape also saves in the mapping table.Processor 710 can call the program code stored in memory 750, for execute with
Lower operation: whether the input character that detection input unit 730 obtains preserves corresponding nearly shape character in the mapping table, such as
Fruit is that nearly shape character corresponding with the character is then read from mapping table;If not, the character to input is handled, by this
Character is inputted as image, is compared by the corresponding image of character saved in image recognition and character library, is obtained and input
The nearly shape character of the corresponding image approximate of character, and be saved in mapping table, while being sent to output device 740, in prompting frame
In show.
It should be noted that in an alternate embodiment of the invention, when the character pair of display at least two and input in prompting frame
When the nearly shape character answered, at least two nearly shape characters are successively arranged according to the degree of approximation sequence from high to low of the character with input
Column.In an alternate embodiment of the invention, at least two nearly shape characters can also be according to the sequence of selected frequency from high to low successively
Arrangement
The terminal of the present embodiment accelerates the input speed of spcial character, is convenient for using the relevance of shape between character
Memory, the user experience is improved.
It should be noted that in the above-described embodiments, all emphasizing particularly on different fields to the description of each embodiment, in some embodiment
The part being not described in, reference can be made to the related descriptions of other embodiments.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related movement and unit are not necessarily of the invention
Necessary to embodiment.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment terminal can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.