For inputting the method and apparatus of Chinese character
Technical field
The embodiments of the present invention relate to input method, more specifically, relate to the method and apparatus for inputting Chinese character.
Background technology
Along with the development of input method technology, propose multiple based on phonetic (such as, spelling, double-spelling Chinese character input method) and the input method of Chinese character based on stroke (such as, five-stroke input method) at present.These input method of Chinese character can input single Chinese character one by one, by combining the input character corresponding with multiple individual Chinese character, can also input word or common-use words in a simplified manner.The daily communication developing into people of input method of Chinese character provides many facilities, and have also appeared the input method (such as, hand-writing input method etc.) being suitable for particular types of devices.Along with the development of the portable electric appts such as such as intelligent terminal, the volume of electronic equipment is more and more less, and along with the development trend of electronic equipment progressively miniaturization, also proposed the many input method of Chinese character being suitable for carrying out inputting on size-constrained electronic equipment.
Although there is input methods at present, but when using these input methods (such as, spelling input method) when inputting single Chinese character, owing to there is a large amount of phonetically similar words in Chinese character, thus user has to select the target of desired input from the unisonance Chinese character of a large amount of candidate.For the Chinese character of some pronunciation, may there are tens of even up to a hundred phonetically similar words, now user must be operated by roll or page turning etc. and browse candidate Chinese character one by one, then could select and input.
For some target characters, there is a large amount of phonetically similar words although it should be noted that, but when this target characters and other Chinese characters are combined into word, then in the candidate's word list sorted by frequency of utilization, the target characters expecting input can be found easily.Such as, user expects input target characters " force ", and as input Pinyin " wu ", may present dozens of candidate Chinese character, the target characters of now searching expectation from numerous candidate Chinese character may be the work of wasting time and energy.But, when user inputs phonetic " wuzhuang " of word " arms ", then only may there is a few word candidate item.Thus, a lot of user can select first to input " arms ", then re-uses rollback button and deletes " dress " to reach the object of input simple target Chinese character " force ".Existing spelling input method can also support the initial consonant only inputting target word, and such as user only can input " wz " can find target word " arms " in candidate's word list.
Although said method greatly reduces by the mode of input word the operation such as rolling, page turning carried out from numerous candidate item between selecting period, but this method increasing the step of deleting from word and not needing Chinese character, this brings extra burden to user operation.
Summary of the invention
Thus, expect to develop and a kind ofly can support user in mode more simply and easily to input the technical scheme of Chinese character.On the one hand, expect that this technical scheme can reduce the quantity of candidate item by input word; On the other hand, be also desirably in which (which) Chinese character indicating during input corresponds to the input character sequence of word and expect in input word, instead of delete irrelevant contents again after the whole word of input.
In an embodiment of the invention, providing a kind of method for inputting Chinese character, comprising: the sequence receiving the input character corresponding with a word from user; Identify the input gesture of the input character corresponding with at least one Chinese character in word; And in response to detecting that the pressing of input gesture exceedes predetermined threshold, provide the candidate item corresponding with at least one Chinese character.
In an embodiment of the invention, in response to detecting that the pressing of input gesture exceedes predetermined threshold, the candidate item corresponding with at least one Chinese character is provided to comprise following at least any one: in response to detecting that the compressing time inputting gesture exceedes schedule time threshold value, to provide candidate item; And in response to detecting that the pressing dynamics of input gesture exceedes predetermined dynamics threshold value, provide candidate item.
In an embodiment of the invention, comprise further: selected in response to the candidate item corresponding with at least one Chinese character, input at least one Chinese character.
In an embodiment of the invention, providing a kind of device for inputting Chinese character, comprising: receiver module, be configured for the sequence received from the input character corresponding with a word of user; Identification module, is configured for the input gesture identifying the input character corresponding with at least one Chinese character in word; And module is provided, be configured in response to detecting that the pressing of input gesture exceedes predetermined threshold, the candidate item corresponding with at least one Chinese character is provided.
In an embodiment of the invention, provide module to comprise following at least any one: first detection module, be configured in response to detecting that the compressing time of input gesture exceedes schedule time threshold value, candidate item is provided; And second detection module, be configured in response to detecting that the pressing dynamics of input gesture exceedes predetermined dynamics threshold value, candidate item is provided.
In an embodiment of the invention, comprise further: select module, be configured for and selected in response to the candidate item corresponding with at least one Chinese character, input at least one Chinese character.
In an embodiment of the invention, provide a kind of device for inputting Chinese character, comprise: at least one processor and at least one storer comprising computer program code, wherein at least one storer and computer program code are configured for and utilize at least one processor to make device: the sequence receiving the input character corresponding with a word from user; Identify the input gesture of the input character corresponding with at least one Chinese character in word; And in response to detecting that the pressing of input gesture exceedes predetermined threshold, provide the candidate item corresponding with at least one Chinese character.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: in response to detecting that the compressing time of input gesture exceedes schedule time threshold value, provide candidate item; And in response to detecting that the pressing dynamics of input gesture exceedes predetermined dynamics threshold value, provide candidate item.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: selected in response to the candidate item corresponding with at least one Chinese character, input at least one Chinese character.
In an embodiment of the invention, provide a kind of computer-readable recording medium of stored program instruction, programmed instruction makes at least one processor perform as either method above.
Adopt the technical scheme of each embodiment of the present invention, greatly can simplify the complexity of input Chinese character, that is, the utilization input word relevant to expecting Chinese character can be realized to reduce the quantity of candidate item, and from word, select desired Chinese character by simple operations.
Accompanying drawing explanation
By reference to the accompanying drawings and with reference to following detailed description, the feature of each embodiment of the present invention, advantage and other aspects will become more obvious, show some embodiments of the present invention by way of example, and not by way of limitation at this.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the block diagram of the exemplary computer system being suitable for realizing embodiment of the present invention;
Fig. 2 diagrammatically illustrates the schematic diagram of the method for inputting Chinese character according to a solution;
Fig. 3 diagrammatically illustrates the process flow diagram of the method for inputting Chinese character according to one embodiment of the present invention;
Fig. 4 A and Fig. 4 B diagrammatically illustrates the schematic diagram of the method for providing Chinese character candidate item according to embodiment of the present invention respectively;
Fig. 5 A, Fig. 5 B and Fig. 5 C diagrammatically illustrate respectively according to embodiment of the present invention, based on the schematic diagram providing the method for Chinese character candidate item of all-phonetic input method, double-spelling Chinese character input method and five-stroke input method; And
Fig. 6 diagrammatically illustrates the block diagram of the device for inputting Chinese character according to one embodiment of the present invention.
Embodiment
Below with reference to accompanying drawings preferred implementation of the present disclosure is described in more detail.Although show preferred implementation of the present disclosure in accompanying drawing, but should be appreciated that, the disclosure can be realized in a variety of manners and not should limit by the embodiment of setting forth here.On the contrary, provide these embodiments to be to make the disclosure more thorough and complete, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
Person of ordinary skill in the field knows, the present invention can be implemented as system, method or computer program.Therefore, the disclosure can be implemented as following form, that is: can be completely hardware, also can be software (comprising firmware, resident software, microcode etc.) completely, can also be the form that hardware and software combines, be commonly referred to as " circuit ", " module " or " system " herein.In addition, in certain embodiments, the present invention can also be embodied as the form of the computer program in one or more computer-readable medium, comprises computer-readable program code in this computer-readable medium.
The combination in any of one or more computer-readable medium can be adopted.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium such as may be-but not limited to-the system of electricity, magnetic, optical, electrical magnetic, infrared ray or semiconductor, device or device, or combination above arbitrarily.The example more specifically (non exhaustive list) of computer-readable recording medium comprises: the combination with the electrical connection of one or more wire, portable computer diskette, hard disk, random access memory (RAM), ROM (read-only memory) (ROM), erasable type programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact disk ROM (read-only memory) (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate.In this document, computer-readable recording medium can be any comprising or stored program tangible medium, and this program can be used by instruction execution system, device or device or be combined with it.
The data-signal that computer-readable signal media can comprise in a base band or propagate as a carrier wave part, wherein carries computer-readable program code.The data-signal of this propagation can adopt various ways, comprises the combination of---but being not limited to---electromagnetic signal, light signal or above-mentioned any appropriate.Computer-readable signal media can also be any computer-readable medium beyond computer-readable recording medium, and this computer-readable medium can send, propagates or transmit the program for being used by instruction execution system, device or device or be combined with it.
The program code that computer-readable medium comprises can with any suitable medium transmission, comprises that---but being not limited to---is wireless, electric wire, optical cable, RF etc., or the combination of above-mentioned any appropriate.
The computer program code operated for performing the present invention can be write with one or more programming languages or its combination, described programming language comprises object oriented program language-such as Java, Smalltalk, C++, also comprises conventional process type programming language-such as " C " language or similar programming language.Program code can fully perform on the user computer, partly perform on the user computer, as one, independently software package performs, partly part performs on the remote computer or performs on remote computer or server completely on the user computer.In the situation relating to remote computer, remote computer can by the network of any kind---comprise LAN (Local Area Network) (LAN) or wide area network (WAN)-be connected to subscriber computer, or, outer computer (such as utilizing ISP to pass through Internet connection) can be connected to.
Below with reference to the process flow diagram of the method for the embodiment of the present invention, device (system) and computer program and/or block diagram, the present invention is described.Should be appreciated that the combination of each square frame in each square frame of process flow diagram and/or block diagram and process flow diagram and/or block diagram, can be realized by computer program instructions.These computer program instructions can be supplied to the processor of multi-purpose computer, special purpose computer or other programmable data treating apparatus, thus produce a kind of machine, these computer program instructions are performed by computing machine or other programmable data treating apparatus, create the device of the function/operation specified in the square frame in realization flow figure and/or block diagram.
Also can these computer program instructions be stored in the computer-readable medium that computing machine or other programmable data treating apparatus can be made to work in a specific way, like this, the instruction be stored in computer-readable medium just produces the manufacture (manufacture) of the command device (instruction means) of the function/operation specified in a square frame comprising in realization flow figure and/or block diagram.
Also can computer program instructions be loaded on computing machine, other programmable data treating apparatus or other equipment, make to perform sequence of operations step on computing machine, other programmable data treating apparatus or other equipment, to produce computer implemented process, thus make the instruction performed on the computer or other programmable apparatus can provide the process of the function/operation specified in the square frame in realization flow figure and/or block diagram.
Fig. 1 shows the block diagram of the exemplary computer system/server 12 be suitable for for realizing embodiment of the present invention.The computer system/server 12 of Fig. 1 display is only an example, should not bring any restriction to the function of the embodiment of the present invention and usable range.
As shown in Figure 1, computer system/server 12 shows with the form of universal computing device.The assembly of computer system/server 12 can include but not limited to: one or more processor or processing unit 16, system storage 28, connects the bus 18 of different system assembly (comprising system storage 28 and processing unit 16).
Bus 18 represent in a few class bus structure one or more, comprise memory bus or Memory Controller, peripheral bus, AGP, processor or use any bus-structured local bus in multiple bus structure.For example, these architectures include but not limited to industry standard architecture (ISA) bus, MCA (MAC) bus, enhancement mode isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Computer system/server 12 typically comprises various computing systems computer-readable recording medium.These media can be any usable mediums can accessed by computer system/server 12, comprise volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can comprise the computer system-readable medium of volatile memory form, such as random access memory (RAM) 30 and/or cache memory 32.Computer system/server 12 may further include that other are removable/immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 may be used for reading and writing immovable, non-volatile magnetic media (Fig. 1 does not show, and is commonly referred to " hard disk drive ").Although not shown in Fig. 1, the disc driver that removable non-volatile magnetic disk (such as " floppy disk ") is read and write can be provided for, and to the CD drive that removable anonvolatile optical disk (such as CD-ROM, DVD-ROM or other light media) is read and write.In these cases, each driver can be connected with bus 18 by one or more data media interfaces.Storer 28 can comprise at least one program product, and this program product has one group of (such as at least one) program module, and these program modules are configured to the function performing various embodiments of the present invention.
There is the program/utility 40 of one group of (at least one) program module 42, can be stored in such as storer 28, such program module 42 comprises---but being not limited to---operating system, one or more application program, other program modules and routine data, may comprise the realization of network environment in each or certain combination in these examples.Function in program module 42 embodiment that execution is described in the invention usually and/or method.
Computer system/server 12 also can communicate with one or more external unit 14 (such as keyboard, sensing equipment, display 24 etc.), also can make with one or more devices communicating that user can be mutual with this computer system/server 12, and/or communicate with any equipment (such as network interface card, modulator-demodular unit etc.) making this computer system/server 12 can carry out communicating with other computing equipments one or more.This communication can be passed through I/O (I/O) interface 22 and carry out.Further, computer system/server 12 can also such as, be communicated by network adapter 20 and one or more network (such as LAN (Local Area Network) (LAN), wide area network (WAN) and/or public network, the Internet).As shown in the figure, network adapter 20 is by bus 18 other module communications with computer system/server 12.Be understood that, although not shown, other hardware and/or software module can be used in conjunction with computer system/server 12, include but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc.
It should be noted that in Fig. 1 the block diagram that show schematically only and can realize computer system/server 12 of the present invention, those skilled in the art can also adopt other portable computing device to realize each embodiment of the present invention.And should be noted that, each embodiment not restricted passage hardware keyboards of the present invention (such as, the keyboard of conventional computer or the keypad of such as intelligent terminal) or soft keyboard (dummy keyboard that can accept user's input such as, touch-screen display drawn) inputs.
Should also be noted that, in the context of the present invention, " input gesture " is made a general reference under the domination of user the input operation realizing computing equipment of the present invention, such as can comprise the pressing operation of user's finger for button in hardware keyboards, user can also be comprised with the pressing operation of finger (mouse, stylus or other indication equipment) for button in dummy keyboard.
Fig. 2 diagrammatically illustrates signal Figure 200 of the method for inputting Chinese character according to a solution.The user interface that the touch-screen display of intelligent terminal illustrates is schematically illustrated in Fig. 2.After user inputs the phonetic " wu " of target characters " force ", the candidate item of 210 place's displays corresponding to phonetic in the user interface, as " room, nothing, five ... ".Due to the limited size of the display of intelligent terminal, be thus also provided with at the end place of candidate item 210 and launch button 230, user can by clicking the candidate item launched button 230 and show the expansion as shown in interface 240.User can select the target characters " force " expected to complete input operation in interface 240.
Show schematically only schematic diagram during the comparatively conventional Chinese character of input one above, when user expects to input comparatively uncommon word, the lower thus user of the frequency of utilization due to this rarely used word may must carry out the Chinese character that repeatedly page turning just can find expectation in candidate item.Such as, when user expects to input " Wang " word in " evil spirits ", complexity is well imagined.
In order to solve above-mentioned deficiency, the invention provides a kind of method for inputting Chinese character, the method comprises: the sequence receiving the input character corresponding with a word from user; Identify the input gesture of the input character corresponding with at least one Chinese character in word; And in response to detecting that the pressing of input gesture exceedes predetermined threshold, provide the candidate item corresponding with at least one Chinese character.
Particularly, Fig. 3 diagrammatically illustrates the process flow diagram 300 of the method for inputting Chinese character according to one embodiment of the present invention.In step s 302, the sequence of the input character corresponding with a word from user is received.The object of this step is the word being comprised the target characters expecting input by input, reduces the quantity of the candidate item comprising the target characters expecting input.Such as, the dozens of phonetically similar word of pronunciation for " wu " may be presented when user uses spelling input method to input " wu ", and when user uses spelling input method to input " wuzhuang "/" wz " (the initial consonant acronym of wuzhuang), then only can present the candidate item that a few phonetic is " wuzhuang "/" wz ", this can greatly reduce the quantity of the candidate item comprising expectation target Chinese character.
In step s 304, the input gesture of the input character corresponding with at least one Chinese character in word is identified.In this embodiment, do not need extra input to be used to specify to expect input which/the selection operation of which Chinese character, but can by selection operation being dissolved into itself in the gesture of the sequence of user's input input character corresponding with word.
Generally, user carrys out (such as can comprise hard button and soft-key button) sequence of input character by the pressing button corresponding with input character, such as, the kind of the input method that can use according to user identifies the input gesture of the input character corresponding with each Chinese character in word.Particularly, when (namely user uses the initial of the initial consonant of spelling input method input word " arms " supporting initial consonant combination, " wz ") time, can identify the gesture corresponding with two Chinese characters " force " and " dress " is the action pressing " w " and " z " respectively.Again such as, when user uses all-phonetic input method to have input character string " wuzhuang ", can identify the gesture corresponding with two Chinese characters " force " and " dress " is the action pressing " wu " and " zhuang " respectively.
In step S306, in response to detecting that the pressing of input gesture exceedes predetermined threshold, provide the candidate item corresponding with at least one Chinese character.Continue example above, when to have have identified the gesture corresponding with " force " and " dress " be in step s 304 the action pressing " w " and " z " respectively, can judge whether the pressing of these two actions exceedes predetermined threshold.And then, when detecting that the pressing of input gesture exceedes predetermined threshold, the candidate item corresponding with at least one Chinese character can be provided.Particularly, when finding to exceed predetermined threshold for the pressing of button " w ", then the candidate item corresponding with Chinese character " force " can be provided.That is, when without the need to carrying out extra selection operation from word " arms ", the candidate item of target characters " force " can be obtained.
Hereinafter, the concrete meaning of input gesture will be described in detail.Although it should be noted that input gesture general reference presses the action of certain button, but when user presses same key, time and the dynamics of user's pressing keys during action can be different.Such as, the time that button is pressed in conventional input process may be only 0.1 second, and compressing time may more than 0 when button " is pressed " for a long time.5 seconds.Thus, the time that button is pressed can be the feature that evaluation inputs the one side of the pressing of gesture.
On the other hand, current a lot of input equipments, with force feedback function, such as, by arranging pressure sensor device in the button place of hard manual or the surface of touch-screen, can detect the dynamics pushed button of user.In addition, for the touch-screen not possessing pressure sensor device, such as, can also press the larger then finger of the dynamics principle larger with touch screen surface contact area based on user, estimate the dynamics of pressing simply.
In an embodiment of the invention, in response to detecting that the pressing of input gesture exceedes predetermined threshold, the candidate item corresponding with at least one Chinese character is provided to comprise following at least any one: in response to detecting that the compressing time inputting gesture exceedes schedule time threshold value, to provide candidate item; And in response to detecting that the pressing dynamics of input gesture exceedes predetermined dynamics threshold value, provide candidate item.
Specifically, in the embodiment of relatively compressing time, schedule time threshold value can be set to 0.5 seconds.Or this threshold value can also be set to other empirical values by those skilled in the art, can also try one's best while can either distinguishing input gesture do not affect the input speed of user.Continue example above, suppose that user is 0 in the time of list entries " wz " period pressing " w ".6 seconds and the time pressing " z " are 0.1 second, then can know user and expect to input first Chinese character " force " in word " arms ", the candidate item corresponding with target characters " force " thus can be provided.For the sake of simplicity, represent that the pressing of input gesture exceedes predetermined threshold by with " length is pressed " hereinafter.It should be noted that, although hereinafter describe the technical scheme of each embodiment of the present invention as a specific example with " length is pressed ", be similar to " length is pressed ", user can also define suitable threshold value for pressing dynamics and realize other embodiments of the present invention, does not repeat them here.
In an embodiment of the invention, for simplicity, user will be not corresponding with expecting the Chinese character that input whole input characters carry out " long by " and/or " firmly pressing ", but only can apply larger compressing time/dynamics to the initial character in the input of character string corresponding with target characters.Thus, in an embodiment of the invention, identify that the input gesture of the input character corresponding with at least one Chinese character in word comprises: the input gesture identifying the initial character of the input character corresponding with at least one Chinese character.
Such as, when user uses spelling mode to input the phonetic " wuzhuang " of word " arms ", and when wishing input Chinese character " force ", only " w " can be pressed the long period.Input relative to above-mentioned user, " w " that only need to detect in input character sequence " wuzhuang " is long pressed and can provides Chinese character candidate item " force ".In addition, each embodiment of the present invention does not limit and once inputs how many Chinese characters, such as, when user corresponds to phonetic " cmwl " of " evil spirits " with spelling input method input, can be long pressed in response to " m " and " 1 " and present Chinese character candidate item " evil spirit demons and monsters ".
In an embodiment of the invention, in response to detecting that the pressing of input gesture exceedes predetermined threshold, the candidate item corresponding with at least one Chinese character is provided to comprise following at least one item further: the candidate item corresponding with word shows the candidate item corresponding with at least one Chinese character separately; And the candidate item corresponding with at least one Chinese character is highlighted in the candidate item corresponding with word.Particularly, Fig. 4 A and Fig. 4 B diagrammatically illustrates schematic diagram 400A and 400B of the method for providing Chinese character candidate item according to embodiment of the present invention respectively.
See Fig. 4 A, illustrated therein is the schematic diagram 400A that the candidate item corresponding with word shows the candidate item corresponding with at least one Chinese character separately.Particularly, when the sequence " wz " adopting spelling input method input corresponding with word " arms ", and when " w " is long pressed: such as marking the candidate item that in the row shown in 430A, display is corresponding with word, and such as marking in the row shown in 420A first Chinese character shown in each word.In addition see Fig. 4 B, illustrated therein is the schematic diagram 400B highlighting the candidate item corresponding with at least one Chinese character in the candidate item corresponding with word.When inputting gesture and being same as above, such as marking the candidate item that in the row shown in 430B, display is corresponding with word, and in the candidate item of each word, highlighting the candidate item of Chinese character.
Although it should be noted that the candidate item highlighting Chinese character in figure 4b with underscore and big font, the concrete form highlighted is not confined to this in embodiments of the present invention.But those skilled in the art can change, to highlight the candidate item of Chinese character in word candidate item in one or more in color, font, font size, underscore, background colour etc.
In an embodiment of the invention, comprise further: in response to detecting that the pressing of input gesture exceedes predetermined threshold, in the sequence of input character, highlight the input character corresponding with at least one Chinese character.In order to the state (whether being long pressed) making user can understand the input gesture corresponding with each Chinese character at any time, can also input gesture meet long according to condition time, in the sequence of input character, highlight the input character be long pressed.Such as in schematic diagram shown in Fig. 4 B, represent that the sequence of input character is " wz " and wherein " w " is long pressed.
In an embodiment of the invention, comprise further: in response to detecting that the pressing of input gesture exceedes predetermined threshold, prompting user inputs next character.Particularly, with the sense of hearing or visual manner prompting user, the condition of " long by " in order to notifying that the current input gesture of user meets, can inform that user can input next character.Such as, when user expects list entries " wz ", and can prompt tone be provided after pressing " w " for a long time, next character " z " can be inputted after user hears prompt tone.
In an embodiment of the invention, comprise further: selected in response to the candidate item corresponding with at least one Chinese character, input at least one Chinese character.User can select the candidate item of Chinese character in different ways: such as in touch-screen, and user can directly use finger or stylus to select the Chinese character expected; In the computing equipment of routine, user can use the input equipment such as mouse or trace ball to input the Chinese character of expectation.Or, can also be as shown in Figure 4 A, in each candidate item (comprising the word candidate item shown in 430A and the Chinese character candidate item as shown in 420A place row) place's display shortcut sequence number, such as, can define and select the sequence number shown in 430A to be the word of 1 when user presses shortcut " 1 ", select the sequence number shown in 420A to be the Chinese character of 1 when user presses shortcut " shift+1 ".Further, those skilled in the art can also define other modes to select the Chinese character expecting input, such as, can give tacit consent to the Chinese character that in input Chinese character candidate item, ranking is the highest, etc.
In an embodiment of the invention, word is associated according to following arbitrary input method with the sequence of input character: all-phonetic input method, double-spelling Chinese character input method and five-stroke input method.It should be noted that the method for input Chinese character of the present invention is a kind of method for accelerating to input Chinese character (one or more), the method can combine with existing various Chinese character input method.
Particularly, Fig. 5 A, Fig. 5 B and Fig. 5 C diagrammatically illustrate respectively according to embodiment of the present invention, based on schematic diagram 500A, 500B and 500C of providing the method for Chinese character candidate item of all-phonetic input method, double-spelling Chinese character input method and five-stroke input method.Although only diagrammatically illustrate the concrete example realized based on three kinds of input methods in instructions, it will be understood by those skilled in the art that technical scheme of the present invention can also be used for other input methods, input method, stroke input method etc. that such as sound shape combines.
It should be noted that, various spelling input method has been proposed in prior art, and a lot of spelling input method can support when inputting word only to input each word in word initial consonant part or for certain (some) word input initial consonant part in word for other words input spelling phonetic, etc.Fig. 5 A diagrammatically illustrates the example using all-phonetic input method, supposes that user expects to input second Chinese character " Te " in word " perturbed ".As shown in Figure 5A, input character for " mentally disturbed " is " t " (only inputting initial consonant), and be long pressed for " te " (spelling) and second input character " t " for the input character of " Te ", then now in word " perturbed ", highlight Chinese character candidate item " Te ".Then, according to various modes as described above, can be selected in response to candidate item " Te ", inputted this Chinese character.
Double-spelling Chinese character input method refers to the Pinyin coding method adopting a letter (or symbol) to replace respectively the initial consonant of Chinese character and simple or compound vowel of a Chinese syllable.Suppose to replace initial consonant " zh " with character " a " in certain double-spelling Chinese character input method and user expects to input second Chinese character " continent " in word " Asia ".Now, user can be long by " a " based on double-spelling Chinese character input method list entries " ya ", inputs Chinese character " continent " (as shown in the candidate item of first in Fig. 5 B).
Fig. 5 C diagrammatically illustrates the example using five-stroke input method, supposes that user expects to input second Chinese character " earnestly " in " London ".When using five-stroke input method input " earnestly ", corresponding input character sequence is " ybty ", now user by inputting " London " and growing by the input character " y " corresponding with " earnestly " or " b ", can input " earnestly " (as shown in the candidate item of the 3rd in Fig. 5 C).
Fig. 6 diagrammatically illustrates the block diagram 600 of the device for inputting Chinese character according to one embodiment of the present invention.In this embodiment, providing a kind of device for inputting Chinese character, comprising: receiver module 610, be configured for the sequence received from the input character corresponding with a word of user; Identification module 620, is configured for the input gesture identifying the input character corresponding with at least one Chinese character in word; And module 630 is provided, be configured in response to detecting that the pressing of input gesture exceedes predetermined threshold, the candidate item corresponding with at least one Chinese character is provided.
In an embodiment of the invention, provide module 610 to comprise following at least any one: first detection module, the compressing time be configured in response to input gesture exceedes schedule time threshold value, provides candidate item; And second detection module, the pressing dynamics be configured in response to input gesture exceedes predetermined dynamics threshold value, provides candidate item.
In an embodiment of the invention, identification module 620 comprises: the first identification module, is configured for the input gesture of the initial character identifying the input character corresponding with at least one Chinese character.
In an embodiment of the invention, provide module 630 to comprise following at least one item further: first provides module, be configured for the candidate item corresponding with word and show the candidate item corresponding with at least one Chinese character separately; And second provides module, be configured for and highlight the candidate item corresponding with at least one Chinese character in the candidate item corresponding with word.
In an embodiment of the invention, comprise further: input character display module, being configured in response to detecting that the pressing of input gesture exceedes predetermined threshold, in the sequence of input character, highlighting the input character corresponding with at least one Chinese character.
In an embodiment of the invention, comprise further: reminding module, be configured in response to detecting that the pressing of input gesture exceedes predetermined threshold, prompting user inputs next character.
In an embodiment of the invention, comprise further: select module, be configured for and selected in response to the candidate item corresponding with at least one Chinese character, input at least one Chinese character.
In an embodiment of the invention, word is associated according to following arbitrary input method with the sequence of input character: all-phonetic input method, double-spelling Chinese character input method and five-stroke input method.
In an embodiment of the invention, provide a kind of device for inputting Chinese character, comprise: at least one processor and at least one storer comprising computer program code, wherein at least one storer and computer program code are configured for and utilize at least one processor to make device: the sequence receiving the input character corresponding with a word from user; Identify the input gesture of the input character corresponding with at least one Chinese character in word; And in response to detecting that the pressing of input gesture exceedes predetermined threshold, provide the candidate item corresponding with at least one Chinese character.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: the compressing time in response to input gesture exceedes schedule time threshold value, provides candidate item; And exceed predetermined dynamics threshold value in response to the pressing dynamics of input gesture, candidate item is provided.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: the input gesture identifying the initial character of the input character corresponding with at least one Chinese character.
In an embodiment of the invention, at least one storer and computer program code are configured at least any one in utilizing at least one processor to make device execution following further: the candidate item corresponding with word shows the candidate item corresponding with at least one Chinese character separately; And the candidate item corresponding with at least one Chinese character is highlighted in the candidate item corresponding with word.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: in response to detecting that the pressing of input gesture exceedes predetermined threshold, in the sequence of input character, highlight the input character corresponding with at least one Chinese character.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: in response to detecting that the pressing of input gesture exceedes predetermined threshold, prompting user inputs next character.
In an embodiment of the invention, at least one storer and computer program code are configured for further and utilize at least one processor to make device: selected in response to the candidate item corresponding with at least one Chinese character, input at least one Chinese character.
In an embodiment of the invention, word is associated according to following arbitrary input method with the sequence of input character: all-phonetic input method, double-spelling Chinese character input method and five-stroke input method.
In an embodiment of the invention, provide a kind of computer-readable recording medium of stored program instruction, programmed instruction makes at least one processor execution either method as described above.
Process flow diagram in accompanying drawing and block diagram show system according to multiple embodiment of the present invention, the architectural framework in the cards of method and computer program product, function and operation.In this, each square frame in process flow diagram or block diagram can represent a part for module, program segment or a code, and a part for described module, program segment or code comprises one or more executable instruction for realizing the logic function specified.Also it should be noted that at some as in the realization of replacing, the function marked in square frame also can be different from occurring in sequence of marking in accompanying drawing.Such as, in fact two continuous print square frames can perform substantially concurrently, and they also can perform by contrary river pagination sometimes, and this determines according to involved function.Also it should be noted that, the combination of the square frame in each square frame in block diagram and/or process flow diagram and block diagram and/or process flow diagram, can realize by the special hardware based system of the function put rules into practice or operation, or can realize with the combination of specialized hardware and computer instruction.
Be described above the embodiments of the present invention, above-mentioned explanation is exemplary, and non-exclusive, and be also not limited to disclosed each embodiment.When not departing from the scope and spirit of illustrated each embodiment, many modifications and changes are all apparent for those skilled in the art.The selection of term used herein, is intended to explain best the principle of each embodiment, practical application or the technological improvement to the technology in market, or makes other those of ordinary skill of the art can understand each embodiment disclosed herein.