CN102945113A - Method for replacing character by input method and client - Google Patents

Method for replacing character by input method and client Download PDF

Info

Publication number
CN102945113A
CN102945113A CN2012103889901A CN201210388990A CN102945113A CN 102945113 A CN102945113 A CN 102945113A CN 2012103889901 A CN2012103889901 A CN 2012103889901A CN 201210388990 A CN201210388990 A CN 201210388990A CN 102945113 A CN102945113 A CN 102945113A
Authority
CN
China
Prior art keywords
character
replaced
input
input method
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103889901A
Other languages
Chinese (zh)
Other versions
CN102945113B (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.)
Shanghai Liangming Technology Development Co Ltd
Original Assignee
Shanghai Liangming Technology Development 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 Shanghai Liangming Technology Development Co Ltd filed Critical Shanghai Liangming Technology Development Co Ltd
Priority to CN201210388990.1A priority Critical patent/CN102945113B/en
Publication of CN102945113A publication Critical patent/CN102945113A/en
Application granted granted Critical
Publication of CN102945113B publication Critical patent/CN102945113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for replacing a character by an input method and a client and belongs to the technical field of communication. The method comprises the following steps: acquiring a character to be replaced and acquiring an attribute of the character; judging whether an attribute of a current character string input by an input method tool is consistent with the attribute of the character to be replaced or not; and if no, after regulating the character string input by the input method tool to ensure the character string to have the same attribute with the character to be replaced, loading the character string into the position of the character to be replaced to carry out replacement operation or outputting the regulated character string serving as a candidate item by a candidate item list. Due to the utilization of the method, when character contents are replaced, the attribute of the character string input by the input method tool is converted into an attribute which is the same with that of the character to be replaced and then the converted attributed is output; the defect that in an existing input method tool, character input states need to be repeatedly and manually switched is overcome; the character replacement efficiency is improved; and the user experience of a user is more excellent.

Description

Method and the client of character being replaced by input method
Technical field
The invention belongs to communication technical field.
Background technology
Along with popularizing of the electronic products such as computing machine, smart mobile phone, people use the chance of electronic document more and more.In actual applications, when people inputted the electronic document content by input method, inevitably at this moment some wrong character content of input just need to replace the character content of mistake, are revised as correct content.In addition, in the process that document content is checked, proofreaies and correct, also often need to replace some inappropriate characters.
When by existing input method instrument the character content in the document being replaced; often can run into this situation; character to be replaced is capitalization; and the input state of input method instrument is lowercase input state or Chinese pinyin input state; just need first replacing again behind the input state of the input state upper of input method in this case; replace complete after; when if next character to be replaced is Chinese; need again the input state of input method instrument is converted to the input in Chinese state; the user is replacing character content in the process of correction like this; constantly the input state in the input method instrument is manually switched with regard to needing; operating process is loaded down with trivial details; inefficiency makes user's experience not good.
Summary of the invention
The object of the invention is to, a kind of method and client of character being replaced by input method is provided.Utilize the present invention, when character content is replaced, export after will converting the attribute identical with character to be replaced to by the string attribute of input method instrument input, improved the efficient of character replacement, make user's experience better.
Technical scheme provided by the invention comprises:
A kind of method of character being replaced by input method, the method may further comprise the steps:
Step 1 gathers character to be replaced, obtains this characters' property;
Step 2 judges whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced, if not, then enters next step;
Step 3 will be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, and the character string after perhaps will adjusting is exported by candidate list as candidate item.
Preferably, described character to be replaced is letter, and its characters' property is the upper case or lower case attribute of letter.
Preferably, be in the uppercase situation at character to be replaced, if the character attibute of inputting by current input method instrument is lowercase, then the character attibute with this input method instrument input is adjusted into capitalization; In the situation that character to be replaced is lowercase, if the character attibute of inputting by current input method instrument is capitalization, then the character attibute with this input method instrument input is adjusted into lowercase.
Preferably, in the situation that current input method instrument is for including character string and candidate list, the substitute mode of corresponding character to be replaced or candidate item type comprise following one:
In the situation that character to be replaced is single upper case letter, gather the user by the initial of input method instrument input of character string, this initial is adjusted into capitalization, aforesaid character to be replaced is directly exported and replaced to the character string after adjusting;
In the situation that character to be replaced is single upper case letter, gather the user by the initial of input method instrument input of character string, this initial is adjusted into capitalization, the character string after adjusting is exported as the first candidate item in the candidate list;
In the situation that character to be replaced is single lowercase, gather the user by the initial of input method instrument input of character string, this initial is adjusted into lowercase, aforesaid character to be replaced is directly exported and replaced to the character string after adjusting;
In the situation that character to be replaced is single lowercase, gather the user by the initial of input method instrument input of character string, this initial is adjusted into lowercase, the character string after adjusting is exported as the first candidate item in the candidate list.
Preferably, comprise two or more characters at character to be replaced, and in the situation of this character by letter and/or numeral composition, the substitute mode of corresponding character to be replaced or candidate item type comprise following one:
Gather the user by the character string of input method instrument input, judge that whether and between the character to be replaced the character in institute's input of character string consists of corresponding relation, if, after then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced;
Gather the user by the character string of input method instrument input, judge that whether and between the character to be replaced the character in institute's input of character string consists of corresponding relation, if, then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, and the character string after adjusting is exported as the first candidate item in the candidate list.
Preferably, the character in judging institute's input of character string then is considered as consisting of corresponding relation if meet following condition whether and when consisting of corresponding relation between the character to be replaced:
Initial character in the character to be replaced and the initial character in institute's input of character string sort respectively as order, in the position with same row numerical sequence, if character to be replaced is letter, then corresponding character is similarly letter in the character string, if character to be replaced is numeral, then corresponding character is similarly numeral in the character string.
Preferably, be the first language character at character to be replaced, the input state of current input method instrument is in the situation of second language character, the input state of second language character in the input method instrument is converted to the input state of first language character.
The present invention also provides a kind of client of character being replaced by input method, and this client comprises:
The character attibute acquiring unit is used for gathering character to be replaced, obtains this characters' property;
The character attibute judging unit links to each other with aforementioned character attibute acquiring unit, is used for judging whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced;
The character information replacement unit, link to each other with aforementioned character attibute judging unit, be used in aforementioned character attibute judgment unit judges result when being no, to be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, the character string after perhaps will adjusting is exported by candidate list as candidate item.
Preferably, the character to be replaced that described character attibute acquiring unit gathers is letter, and the character attibute of obtaining is letter capitalization attribute or alphabetical small letter attribute.
Preferably, when the character string after described character information replacement unit will be adjusted is exported by candidate list as candidate item, the character string after adjusting is exported as first candidate item.
Preferably, described character information replacement unit comprises following construction module:
The corresponding relation determination module, be used for by sorting respectively take the initial character of character to be replaced and the initial character in institute's input of character string as order, in the position with same row numerical sequence, when if corresponding character is letter or is numeral in character to be replaced and the character string, determine to consist of corresponding relation between character in institute's input of character string and the character to be replaced;
The character information replacement module, link to each other with aforementioned corresponding relation determination module, when being used between the character of determining institute's input of character string and character to be replaced, consisting of corresponding relation, after the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced; Perhaps, the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, and the character string after adjusting is exported as the first candidate item in the candidate list.
Preferably, described character information replacement unit also comprises following construction module:
The input state modular converter, being used at character to be replaced is the first language character, the input state of current input method instrument is in the situation of second language character, the input state of second language character in the input method instrument is converted to the input state of first language character.
Compared with prior art, beneficial effect of the present invention is as follows:
Determine the character that the user is to be replaced, if the attribute of the character string of current input method instrument input and characters' property to be replaced are not simultaneously, after will being adjusted into the attribute identical with character to be replaced by the character string of input method instrument input, directly output is carried out replacement operation or is exported in candidate list.So that the user when character is replaced, does not need the input state of input method instrument is carried out the manual switchover operation, can directly export the character style identical with character attibute to be replaced, make the replacement process of character easier, improved input efficiency.
Description of drawings
A kind of method flow diagram by input method character replaced of Fig. 1 for providing in the embodiment of the invention one;
Fig. 1-1 is for being adjusted into the initial of input of character string in the embodiment of the invention one behind the capitalization schematic diagram as first candidate item output;
Fig. 1-2 is the schematic diagram that in the embodiment of the invention one input of character string is adjusted into behind the attribute identical with character to be replaced as first candidate item output;
A kind of method flow diagram by input method character replaced of Fig. 2 for providing in the embodiment of the invention two;
A kind of client schematic diagram by input method character replaced of Fig. 3 for providing in the embodiment of the invention three.
Embodiment
Below in conjunction with the drawings and specific embodiments embodiment of the present invention are described in detail.
Method of character being replaced by input method of the present invention can be applied in the input method system of the various language such as Chinese, English, Japanese, Korean.Because the application of the present invention in the input method system of above-mentioned different language all is similar, therefore for convenience of description, the below only the present invention is applied in Chinese and English situation describes.
Referring to Fig. 1, this figure is a kind of method flow diagram of character being replaced by input method that provides in the embodiment of the invention one, and concrete steps are as described below.
S11 gathers character to be replaced, obtains this characters' property;
When monitoring the user and choose character by cursor or touch point, utilize the System hook function to catch the user for the triggering message of input system, if when capturing triggering message to character, determine that then the user carries out replacement operation to the character of choosing.The character of choosing namely is character to be replaced.
Described character to be replaced can be letter, such as English alphabet, Greek alphabet etc.When character to be replaced was letter, then characters' property was the upper case or lower case attribute of letter.
Described character to be replaced can also be numeral, such as arabic numeral, Roman number etc.When character to be replaced was numeral, then characters' property was numeric type.
S12 judges whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced, if not, then enters next step;
Utilize relevant api function to obtain the input state of current input method instrument, for example, input state is English state or Chinese language state, and the character of inputting when English state is capitalization or lowercase.As user during by current input method instrument input of character string, obtain the attribute of institute's input of character string according to the input state of input method instrument, and attribute and the characters' property to be replaced of institute's input of character string compared, if both are consistent, then directly carry out input operation by the input method instrument, if both are inconsistent, then enter next step.For example, character to be replaced is English capitalization, if the input state of current input method instrument is input in Chinese state or for English lowercase input state, can judge that then the attribute of institute's input of character string and characters' property to be replaced are inconsistent.
S13 will be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, and the character string after perhaps will adjusting is exported by candidate list as candidate item.
Be in the uppercase situation at character to be replaced, if be lowercase by the character attibute of current input method instrument input, then the character attibute with this input method instrument input is adjusted into capitalization; In the situation that character to be replaced is lowercase, if the character attibute of inputting by current input method instrument is capitalization, then the character attibute with this input method instrument input is adjusted into lowercase.For example, character to be replaced is capitalization " A ", the user wishes this letter replaced with " B ", if the character that this moment, current input method instrument was inputted is lowercase, then the lowercase input state with this input method is adjusted into the capitalization input state, make the user not need the input method instrument is carried out the switching of capital and small letter, can directly letter " A " be replaced with " B ".
In the situation that current input method instrument is for including character string and candidate list, the substitute mode of corresponding character to be replaced or candidate item type adopt following one of them mode:
Mode 1 in the situation that character to be replaced is single upper case letter, gathers the user by the initial of input method instrument input of character string, and this initial is adjusted into capitalization, and aforesaid character to be replaced is directly exported and replaced to the character string after adjusting.For example, character to be replaced is capitalization " D ", if the input state of current input method instrument is the input in Chinese state, if the user inputs character string is " ca ", then gather the initial " c " of institute's input of character string, after this initial was adjusted into capitalization " C ", described letter to be replaced " D " is directly exported and replaced to the character string " Ca " after will adjusting again.If the character string that the user inputs only is a letter " c ", directly export and replace described letter to be replaced " D " after then this letter being adjusted into capitalization " C ".
Mode 2 in the situation that character to be replaced is single upper case letter, gathers the user by the initial of input method instrument input of character string, and this initial is adjusted into capitalization, and the character string after adjusting is exported as the first candidate item in the candidate list.Referring to Fig. 1-1, this figure has showed that the initial with input of character string is adjusted into behind the capitalization schematic diagram as first candidate item output, as shown in the figure, interface of input method 100 is the Chinese pinyin input state of current input method instrument, and this interface of input method comprises character string input field 110 and candidate list hurdle 120.For example, user's wish replaces with capitalization " C " with capitalization to be replaced " D ", can directly carry out the character string input by interface of input method, when collecting character string that the user inputs for " c " in character string input field 110, output display capitalization " C " in the first candidate item 121 on candidate list hurdle 120 then, the user namely realizes capitalization to be replaced " D " is replaced with capitalization " C " by choosing first candidate item.
Mode 3 in the situation that character to be replaced is single lowercase, gathers the user by the initial of input method instrument input of character string, and this initial is adjusted into lowercase, and aforesaid character to be replaced is directly exported and replaced to the character string after adjusting.When being the Chinese pinyin input state for current input method instrument, the character string of inputting is lowercase, in this case, described character to be replaced directly can be exported and replaced to the character string of inputting.
Mode 4 in the situation that character to be replaced is single lowercase, gathers the user by the initial of input method instrument input of character string, and this initial is adjusted into lowercase, and the character string after adjusting is exported as the first candidate item in the candidate list.When being the Chinese pinyin input state for current input method instrument, the character string of inputting is lowercase, in this case, the character string of inputting directly can be exported as the first candidate item in the candidate list.
Described character to be replaced can also be numeral, such as arabic numeral, Roman number etc.For example, numeral to be replaced is Roman number " II ", wish replaces with " IV " with this numeral, and this moment, the numeral by current input method input was arabic numeral, and the arabic numeral of so then the user being inputted by the input method instrument are exported after directly being converted to corresponding Roman number.Conversion for numeral, owing to may not support the input of other numeric type in the existing input method system, for example, the user can't be directly by input method instrument input Roman number " II ", this situation, can be stored in the input method system setting up the mapping relations table between the different numeric types, the input method instrument can be changed numeric type by reading the mapping relations table.
Comprise two or more characters at character to be replaced, and in the situation of this character by letter and/or numeral composition, the mode of one of them below the substitute mode of corresponding character to be replaced or candidate item type adopt:
Mode 1, gather the user by the character string of input method instrument input, judge that whether and between the character to be replaced the character in institute's input of character string consists of corresponding relation, if, after then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced;
Mode 2, gather the user by the character string of input method instrument input, judge that whether and between the character to be replaced the character in institute's input of character string consists of corresponding relation, if, then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, and the character string after adjusting is exported as the first candidate item in the candidate list.
Character in judging institute's input of character string then is considered as consisting of corresponding relation if meet following condition whether and when consisting of corresponding relation between the character to be replaced:
Initial character in the character to be replaced and the initial character in institute's input of character string sort respectively as order, in the position with same row numerical sequence, if character to be replaced is letter, then corresponding character is similarly letter in the character string, if character to be replaced is numeral, then corresponding character is similarly numeral in the character string.
When judging whether to consist of corresponding relation, at first, initial character in initial character to be replaced and the institute's input of character string is compared, if both are all letter or numeral, then do not consist of corresponding relation, if both are all letter or number, then carry out the comparison of second letter, until last character of character to be replaced is when more complete, if all characters of character to be replaced all with input of character string in the character of corresponding sorting position when being all letter or number, determine that then the character in character to be replaced and the input of character string consists of corresponding relation.For example, character to be replaced is " AB3 ", the character string of inputting is " bc5 ", when judging whether both consist of corresponding relation, at first treating the first character " A " of substitute character and the first character " b " of input of character string compares, after judging that both are letter, respectively second character, the 3rd character are compared again successively, because second character " B " and " c " are letter, the 3rd character " 3 " and " 5 " are numeral, and therefore the character string " bc5 " of character to be replaced " AB3 " and input consists of corresponding relation.
When consisting of corresponding relation between the character in judging institute's input of character string and the character to be replaced, then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced.Described identical attribute refers to alphabetical capitalization attribute and small letter attribute for letter, refer to identical numeric type attribute for numeral.For example, user's wish replaces with " B II " with character to be replaced " A I ", when if the character string that the user inputs by current input method instrument is " b2 ", consist of corresponding relation between character string " b2 " through judging input and the character to be replaced " A I ", so then " b2 " is adjusted into the attribute identical with character to be replaced " A I ", namely is adjusted into " B II " rear directly output and replaces " A I ".Be the situation that comprises character string and candidate list for current input method instrument, also can the character that the character string of inputting is corresponding be adjusted into the attribute identical with character to be replaced after, as the first candidate item output in the candidate list.Referring to Fig. 1-2, this figure has showed input of character string has been adjusted into behind the attribute identical with character to be replaced schematic diagram as first candidate item output, as shown in the figure, interface of input method 100 is the Chinese pinyin input state of current input method instrument, this interface of input method comprises character string input field 110 and candidate list hurdle 120, for example user's wish replaces with " Cd2 " with character to be replaced " Ab1 ", when collecting the user in character string input field 110 during input character " cd2 ", after then " cd2 " being adjusted into " Cd2 ", output display in the first candidate item 121 on candidate list hurdle 120, the user namely realizes character to be replaced " Ab2 " is replaced with the operation of " Cd2 " by choosing first candidate item.
In the described method of the present embodiment, when character to be replaced is letter or number, capital and small letter attribute or numeric type attribute according to letter, after the character of inputting in the current input method instrument is adjusted into the attribute identical with letter or number to be replaced, treat again substitute character and carry out replacement operation, so that in the character replacement process, can automatically switch the character that the input method instrument is inputted according to character attibute to be replaced, avoid user's manual switchover operation, thereby improved the efficient of character replacement.
Referring to Fig. 2, this figure is a kind of method flow diagram of character being replaced by input method that provides in the embodiment of the invention two, and concrete steps are as described below.
S21 gathers character to be replaced, obtains the first language attribute of this character;
When the user chooses target character, and when starting input system and carrying out the character input, illustrate that namely the target character that the user chooses is character to be replaced.Gather the character to be replaced that the user chooses, obtain the literal type of this character, as the first language attribute.For example, the character to be replaced that the user chooses is the Chinese text type, then with the first language attribute of Chinese text type as character to be replaced.
S22 obtains the input state of current input method instrument, if be the first language attribute by the character of current input method instrument input, then enters step S23, if input character is the second language attribute, then carries out step S24;
Utilize relevant api function to obtain the input state of current input method instrument.Perhaps, also can carry out sectional drawing to the icon of input method instrument or the floating frame of input method instrument by the screenshot capture mode, according to the input state of sectional drawing acquisition of information input method instrument.For example, in the floating frame of search dog input method instrument, under the input in Chinese state, show character " in ", under the english input state, show character " English ", by this floating frame is carried out sectional drawing, then judge the character style that represents input state in the sectional drawing information, can obtain the input state of this input method instrument.
According to the input state of current input method instrument, judge that whether the character inputted by this input method instrument is the first language attribute in the abovementioned steps, if then enter step S23, if not, then input character is the second language attribute, enters step S24.
S23, the character string of inputting by current input method instrument is carried out the replacement operation of character;
For example, the first language attribute of the character to be replaced that obtains among the step S21 is Chinese, if the input state of current input method instrument is Chinese, then the character by the input of input method instrument is the first language attribute, in this case, then directly treat substitute character according to the character string of current input method instrument input and carry out replacement operation.
S24, the input state of second language character in the current input method instrument is converted to the input state of first language character after, carry out the replacement operation of character according to the character string of inputting.
For example, the first language attribute of the character to be replaced that obtains among the step S21 is Chinese, if the input state of current input method instrument is English, then the character by this input method instrument input is the second language attribute, in this case, after then the english input state of current input method instrument being converted to Chinese language state, treating substitute character according to the character string of inputting again and carry out replacement operation.
In the described method of the present embodiment, the language form of inputting when language form and the current input method instrument of character to be replaced is not simultaneously, then the input language type of input method instrument is converted to first identical with character language form to be replaced after, the character of inputting according to the input method instrument again carries out replacement operation, thereby avoid the user to the manual switchover operation of input method instrument, improved input efficiency.
In conjunction with previously described embodiment of the method for character being replaced by input method, the present invention also provides supporting client.
Referring to Fig. 3, this figure is a kind of client schematic diagram of character being replaced by input method that provides in the embodiment of the invention three, and this client comprises:
Character attibute acquiring unit 310 is used for gathering character to be replaced, obtains this characters' property;
Character attibute judging unit 320 links to each other with aforementioned character attibute acquiring unit 310, is used for judging whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced;
Character information replacement unit 330, link to each other with aforementioned character attibute judging unit 320, be used at aforementioned character attibute judging unit 320 when the determination result is NO, to be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, the character string after perhaps will adjusting is exported by candidate list as candidate item.
Wherein, character information replacement unit 330 comprises following construction module:
Corresponding relation determination module 331, be used for by sorting respectively take the initial character of character to be replaced and the initial character in institute's input of character string as order, in the position with same row numerical sequence, when if corresponding character is letter or is numeral in character to be replaced and the character string, determine to consist of corresponding relation between character in institute's input of character string and the character to be replaced;
Character information replacement module 332, link to each other with aforementioned corresponding relation determination module 331, when being used between the character of determining institute's input of character string and character to be replaced, consisting of corresponding relation, after the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced; Perhaps, the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, and the character string after adjusting is exported as the first candidate item in the candidate list.
Described character information replacement unit 330 also comprises following construction module:
Input state modular converter 333, being used at character to be replaced is the first language character, the input state of current input method instrument is in the situation of second language character, the input state of second language character in the input method instrument is converted to the input state of first language character.
In the described client of the present embodiment, when the user carried out replacement operation to the character of having inputted, character attibute acquiring unit 310 gathered character to be replaced, and obtains this characters' property; Then, character attibute judging unit 320 judges whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced; If judged result is inconsistent, then character information replacement unit 330 will be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, and the character string after perhaps will adjusting is exported by candidate list as candidate item.When character to be replaced is two or more letters and/or numeral, by consisting of corresponding relation between the character in corresponding relation determination module 331 definite institute input of character string and the character to be replaced, if formation corresponding relation, after then being adjusted into the attribute identical with character to be replaced by character information replacement module 332 character that the character string of inputting is corresponding, directly export and replace aforesaid character to be replaced; Perhaps, the character string after adjusting is exported as the first candidate item in the candidate list.When character to be replaced is language form, if the language form of current input method instrument input and the language form of character to be replaced are not simultaneously, the language form of then by input state modular converter 333 the input method instrument being inputted is converted to the language form identical with character to be replaced.
More than be the description of this invention and non-limiting, based on other embodiment of inventive concept, all among protection scope of the present invention.

Claims (12)

1. method of character being replaced by input method, it is characterized in that: the method may further comprise the steps,
Step 1 gathers character to be replaced, obtains this characters' property;
Step 2 judges whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced, if not, then enters next step;
Step 3 will be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, and the character string after perhaps will adjusting is exported by candidate list as candidate item.
2. a kind of method of character being replaced by input method according to claim 1 is characterized in that: described character to be replaced is letter, and its characters' property be alphabetical upper case or lower case attribute.
3. a kind of method of character being replaced by input method according to claim 2, it is characterized in that: be in the uppercase situation at character to be replaced, if the character attibute by current input method instrument input is lowercase, then the character attibute with this input method instrument input is adjusted into capitalization; In the situation that character to be replaced is lowercase, if the character attibute of inputting by current input method instrument is capitalization, then the character attibute with this input method instrument input is adjusted into lowercase.
4. a kind of method of character being replaced by input method according to claim 2, it is characterized in that: in the situation that current input method instrument is for including character string and candidate list, substitute mode or the candidate item type of corresponding character to be replaced comprise following one
In the situation that character to be replaced is single upper case letter, gather the user by the initial of input method instrument input of character string, this initial is adjusted into capitalization, aforesaid character to be replaced is directly exported and replaced to the character string after adjusting;
In the situation that character to be replaced is single upper case letter, gather the user by the initial of input method instrument input of character string, this initial is adjusted into capitalization, the character string after adjusting is exported as the first candidate item in the candidate list;
In the situation that character to be replaced is single lowercase, gather the user by the initial of input method instrument input of character string, this initial is adjusted into lowercase, aforesaid character to be replaced is directly exported and replaced to the character string after adjusting;
In the situation that character to be replaced is single lowercase, gather the user by the initial of input method instrument input of character string, this initial is adjusted into lowercase, the character string after adjusting is exported as the first candidate item in the candidate list.
5. a kind of method of character being replaced by input method according to claim 1, it is characterized in that: comprise two or more characters at character to be replaced, and in the situation of this character by letter and/or numeral composition, substitute mode or the candidate item type of corresponding character to be replaced comprise following one
Gather the user by the character string of input method instrument input, judge that whether and between the character to be replaced the character in institute's input of character string consists of corresponding relation, if, after then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced;
Gather the user by the character string of input method instrument input, judge that whether and between the character to be replaced the character in institute's input of character string consists of corresponding relation, if, then the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, and the character string after adjusting is exported as the first candidate item in the candidate list.
6. a kind of method of character being replaced by input method according to claim 5, it is characterized in that: whether the character in judging institute's input of character string is and when consisting of corresponding relation between the character to be replaced, then be considered as consisting of corresponding relation if meet following condition
Initial character in the character to be replaced and the initial character in institute's input of character string sort respectively as order, in the position with same row numerical sequence, if character to be replaced is letter, then corresponding character is similarly letter in the character string, if character to be replaced is numeral, then corresponding character is similarly numeral in the character string.
7. a kind of method of character being replaced by input method according to claim 1, it is characterized in that: be the first language character at character to be replaced, the input state of current input method instrument is in the situation of second language character, the input state of second language character in the input method instrument is converted to the input state of first language character.
8. client of character being replaced by input method is characterized in that this client comprises:
The character attibute acquiring unit is used for gathering character to be replaced, obtains this characters' property;
The character attibute judging unit links to each other with aforementioned character attibute acquiring unit, is used for judging whether the attribute of current input method instrument input of character string is consistent with aforementioned characters' property to be replaced;
The character information replacement unit, link to each other with aforementioned character attibute judging unit, be used in aforementioned character attibute judgment unit judges result when being no, to be adjusted into by the character string of input method instrument input and be written into character position to be replaced behind the attribute identical with character to be replaced and carry out replacement operation, the character string after perhaps will adjusting is exported by candidate list as candidate item.
9. a kind of client of character being replaced by input method according to claim 8 is characterized in that: the character to be replaced that described character attibute acquiring unit gathers is letter, and the character attibute of obtaining is letter capitalization attribute or alphabetical small letter attribute.
10. a kind of client of character being replaced by input method according to claim 8, it is characterized in that: when the character string after described character information replacement unit will be adjusted is exported by candidate list as candidate item, the character string after adjusting is exported as first candidate item.
11. a kind of client of character being replaced by input method according to claim 8 is characterized in that: described character information replacement unit comprises following construction module,
The corresponding relation determination module, be used for by sorting respectively take the initial character of character to be replaced and the initial character in institute's input of character string as order, in the position with same row numerical sequence, when if corresponding character is letter or is numeral in character to be replaced and the character string, determine to consist of corresponding relation between character in institute's input of character string and the character to be replaced;
The character information replacement module, link to each other with aforementioned corresponding relation determination module, when being used between the character of determining institute's input of character string and character to be replaced, consisting of corresponding relation, after the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced; Perhaps, the character that the character string of inputting is corresponding is adjusted into the attribute identical with character to be replaced, and the character string after adjusting is exported as the first candidate item in the candidate list.
12. a kind of client of character being replaced by input method according to claim 8 is characterized in that: described character information replacement unit comprises following construction module,
The input state modular converter, being used at character to be replaced is the first language character, the input state of current input method instrument is in the situation of second language character, the input state of second language character in the input method instrument is converted to the input state of first language character.
CN201210388990.1A 2012-10-12 2012-10-12 Method character being replaced by input method and client Active CN102945113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210388990.1A CN102945113B (en) 2012-10-12 2012-10-12 Method character being replaced by input method and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210388990.1A CN102945113B (en) 2012-10-12 2012-10-12 Method character being replaced by input method and client

Publications (2)

Publication Number Publication Date
CN102945113A true CN102945113A (en) 2013-02-27
CN102945113B CN102945113B (en) 2016-08-31

Family

ID=47728063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210388990.1A Active CN102945113B (en) 2012-10-12 2012-10-12 Method character being replaced by input method and client

Country Status (1)

Country Link
CN (1) CN102945113B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678554A (en) * 2013-12-06 2014-03-26 金蝶软件(中国)有限公司 Character substituting method and device
CN104050159A (en) * 2013-03-13 2014-09-17 三星电子株式会社 Apparatus And Method For Case Conversion
CN106886297A (en) * 2017-02-24 2017-06-23 珠海市魅族科技有限公司 Input method optimization method, device and mobile terminal
CN109492137A (en) * 2018-09-28 2019-03-19 中国平安人寿保险股份有限公司 Front end numerical value update method, device and computer readable storage medium, terminal
WO2019075678A1 (en) * 2017-10-18 2019-04-25 深圳市云中飞网络科技有限公司 Information processing method and device, mobile terminal and non-volatile readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1067752A (en) * 1991-06-19 1993-01-06 株式会社日立制作所 The method and apparatus of processing character and the method and apparatus of input character
US20020045463A1 (en) * 2000-10-13 2002-04-18 Zheng Chen Language input system for mobile devices
CN101248407A (en) * 2005-05-27 2008-08-20 索尼爱立信移动通讯股份有限公司 Automatic language selection for text input in messaging context
CN101727199A (en) * 2009-12-21 2010-06-09 中兴通讯股份有限公司 Input method and input equipment
CN102662575A (en) * 2012-03-27 2012-09-12 上海量明科技发展有限公司 Method for modifying text, client and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1067752A (en) * 1991-06-19 1993-01-06 株式会社日立制作所 The method and apparatus of processing character and the method and apparatus of input character
US20020045463A1 (en) * 2000-10-13 2002-04-18 Zheng Chen Language input system for mobile devices
CN101248407A (en) * 2005-05-27 2008-08-20 索尼爱立信移动通讯股份有限公司 Automatic language selection for text input in messaging context
CN101727199A (en) * 2009-12-21 2010-06-09 中兴通讯股份有限公司 Input method and input equipment
CN102662575A (en) * 2012-03-27 2012-09-12 上海量明科技发展有限公司 Method for modifying text, client and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050159A (en) * 2013-03-13 2014-09-17 三星电子株式会社 Apparatus And Method For Case Conversion
US9928219B2 (en) 2013-03-13 2018-03-27 Samsung Electronics Co., Ltd. Apparatus and method for case conversion
CN104050159B (en) * 2013-03-13 2018-09-18 三星电子株式会社 Device and method for capital and small letter conversion
CN103678554A (en) * 2013-12-06 2014-03-26 金蝶软件(中国)有限公司 Character substituting method and device
CN106886297A (en) * 2017-02-24 2017-06-23 珠海市魅族科技有限公司 Input method optimization method, device and mobile terminal
WO2019075678A1 (en) * 2017-10-18 2019-04-25 深圳市云中飞网络科技有限公司 Information processing method and device, mobile terminal and non-volatile readable storage medium
CN109492137A (en) * 2018-09-28 2019-03-19 中国平安人寿保险股份有限公司 Front end numerical value update method, device and computer readable storage medium, terminal

Also Published As

Publication number Publication date
CN102945113B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN102821193B (en) A kind of method of prompt operation file of smart mobile phone and smart mobile phone
JP6126218B2 (en) System and method for input assist control by sliding operation in portable terminal equipment
US20150012862A1 (en) Information processing apparatus and storage medium
CN102945113A (en) Method for replacing character by input method and client
CN103220412B (en) Mobile terminal schedule management method and system
CN105117476A (en) Search method based on network platform
KR102570255B1 (en) Table browsing method in document, device, electronic device and storage medium
CN101276255A (en) Display apparatus and display method of mobile terminal menu
CN101261545A (en) Terminal equipment and its input method
CN101419531B (en) Character input method and device in computer
CN102968453A (en) Film and video searching method for mobile terminal
KR20140039517A (en) Device and method implementing for particular function based on writing
CN103577048A (en) Desktop icon intelligent arranging system and method
CN103778128A (en) List information drawing method and device
CN102902768B (en) File content searching and displaying method and system
CN101764883A (en) Recipient information input method of mobile terminal and system thereof
CN102722323B (en) Method for managing picture tags
CN102937948A (en) Image-text data editing method for mobile terminal
CN103026319B (en) Based on character input method and the device of direction key
CN103929499A (en) Internet of things heterogeneous identification recognition method and system
CN103678406A (en) Method for sorting browser bookmarks and mobile terminal
CN108874285A (en) The display methods and user terminal of handwriting on a kind of user terminal
CN103220389A (en) Intelligent interaction method and intelligent interaction system of communication application and contact list
CN102722315A (en) Method and device for displaying prompt box of mobile terminal
CN103076946B (en) terminal and input prompting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant