[go: up one dir, main page]

CN102945113B - Method character being replaced by input method and client - Google Patents

Method character being replaced by input method and client Download PDF

Info

Publication number
CN102945113B
CN102945113B CN201210388990.1A CN201210388990A CN102945113B CN 102945113 B CN102945113 B CN 102945113B CN 201210388990 A CN201210388990 A CN 201210388990A CN 102945113 B CN102945113 B CN 102945113B
Authority
CN
China
Prior art keywords
character
replaced
input method
input
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.)
Active
Application number
CN201210388990.1A
Other languages
Chinese (zh)
Other versions
CN102945113A (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

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention provides a kind of method character being replaced by input method and client, belong to communication technical field.The method includes: gather character to be replaced, obtains this characters' property;Judge that the attribute of current input method instrument input character string is the most consistent with aforementioned characters' property to be replaced;If it is not, be loaded into character position to be replaced after the character string inputted by input method instrument is then adjusted to the attribute identical with character to be replaced to be replaced operation, or the character string after adjusting is exported as candidate item by candidate list.Utilize the present invention, when character content is replaced, export after the string attribute inputted by input method instrument is converted into the attribute identical with character to be replaced, overcome the shortcoming needing frequently to carry out manual switching character input state in existing input method instrument, improve the efficiency that character is replaced, make the experience of user more preferably.

Description

Method character being replaced by input method and client
Technical field
The invention belongs to communication technical field.
Background technology
Along with popularizing of the electronic product such as computer, smart mobile phone, people use electronic document Chance gets more and more.In actual applications, when people are by input method input electronic document content, Can inevitably input the character content of some mistakes, at this moment be accomplished by the character to mistake Appearance is replaced, and is revised as correct content.It addition, document content is checked, school During just, also it is frequently necessary to some inappropriate characters are replaced.
When the character content in document being replaced by existing input method instrument, often Running into this situation, character to be replaced is capitalization, and the input state of input method instrument For lower case input state or Chinese pinyin input state, it is accomplished by first in this case It is replaced again after the input state of the input state upper of input method, has replaced Bi Hou, if next character to be replaced be Chinese, need input method instrument again is defeated Entering State Transferring is input in Chinese state, and such user is being replaced correction to character content During, it is necessary to constantly the input state in input method instrument is manually switched over, operation Process is loaded down with trivial details, inefficiency, and the experience making user is the best.
Summary of the invention
It is an object of the invention to, it is provided that a kind of method character being replaced by input method And client.Utilize the present invention, when character content is replaced, will be by input method work The string attribute of tool input exports after being converted into the attribute identical with character to be replaced, improves The efficiency that character is replaced, makes the experience of user more preferably.
The technical scheme that the present invention provides includes:
A kind of method character being replaced by input method, the method comprises the following steps:
Step 1, gathers character to be replaced, obtains this characters' property;
Step 2, it is judged that the attribute of current input method instrument input character string and aforementioned word to be replaced The attribute of symbol is the most consistent, if it is not, then enter next step;
Step 3, is adjusted to the character string inputted by input method instrument and character phase to be replaced With attribute after be loaded into character position to be replaced and be replaced operation, or the character after adjusting String is exported by candidate list as candidate item.
Preferably, described character to be replaced be letter, its characters' property be letter capitalization or Small letter attribute.
Preferably, in the case of character to be replaced is capitalization, if passing through current input method The character attibute of instrument input is lower case, then the character attibute inputted by this input method instrument It is adjusted to capitalization;In the case of character to be replaced is lower case, if by the most defeated The character attibute entering the input of method instrument is capitalization, then the character inputted by this input method instrument Attribute tuning is lower case.
Preferably, at current input method instrument it is the situation including character string and candidate list Under, the substitute mode of corresponding character to be replaced or candidate item type include following one:
In the case of character to be replaced is single upper case letter, gather user by input method work The initial of tool input character string, is adjusted to capitalization by this initial, the word after adjusting Symbol string directly exports and replaces aforesaid character to be replaced;
In the case of character to be replaced is single upper case letter, gather user by input method work The initial of tool input character string, is adjusted to capitalization by this initial, the word after adjusting Symbol string exports as the first candidate item in candidate list;
In the case of character to be replaced is single lower case, gather user by input method work The initial of tool input character string, is adjusted to lower case by this initial, the word after adjusting Symbol string directly exports and replaces aforesaid character to be replaced;
In the case of character to be replaced is single lower case, gather user by input method work The initial of tool input character string, is adjusted to lower case by this initial, the word after adjusting Symbol string exports as the first candidate item in candidate list.
Preferably, include two or more character at character to be replaced, and this character is equal In the case of being made up of letter and/or numeral, the substitute mode of corresponding character to be replaced or candidate Type includes following one:
Gather the character string that user is inputted by input method instrument, it is determined that in inputted character string Character whether and constitutes corresponding relation, the most then character that will be inputted between character to be replaced After the character that string is corresponding is adjusted to the attribute identical with character to be replaced, before directly exporting and replacing The character to be replaced stated;
Gather the character string that user is inputted by input method instrument, it is determined that in inputted character string Character whether and constitutes corresponding relation, the most then character that will be inputted between character to be replaced The character that string is corresponding is adjusted to the attribute identical with character to be replaced, and the character string after adjusting is made Export for the first candidate item in candidate list.
Preferably, at the character judged in inputted character string structure whether and between character to be replaced Become corresponding relation time, if meeting following condition, be considered as constitute corresponding relation:
With the initial character in character to be replaced and initial character in input character string divide for sequence It is not ranked up, in the position with identical ordering values, if character to be replaced is letter, then Character corresponding in character string is similarly letter, if character to be replaced is numeral, then in character string Corresponding character is similarly numeral.
Preferably, it is first language character at character to be replaced, the input of current input method instrument In the case of state is second language character, by the input of second language character in input method instrument State Transferring is the input state of first language character.
The present invention also provides for a kind of client being replaced character by input method, this client End includes:
Character attibute acquiring unit, for gathering character to be replaced, obtains this characters' property;
Character attibute judging unit, is connected with aforementioned character attibute acquiring unit, works as judgement The attribute of front input method instrument input character string is the most consistent with aforementioned characters' property to be replaced;
Character information replacement unit, is connected with aforementioned character attibute judging unit, for aforementioned When character attibute judging unit judged result is no, the character string that will be inputted by input method instrument It is loaded into character position to be replaced after being adjusted to the attribute identical with character to be replaced and is replaced behaviour Make, or will adjust after character string exported as candidate item by candidate list.
Preferably, the character to be replaced that described character attibute acquiring unit gathers is letter, obtains Character attibute be letter capitalization attribute or lower-case letters attribute.
Preferably, the character string after described character information replacement unit will adjust is led to as candidate item When crossing candidate list output, the character string after adjusting exports as first candidate item.
Preferably, described character information replacement unit includes following construction module:
Corresponding relation determines module, is used for by defeated with the initial character in character to be replaced and institute Entering the initial character in character string is that sequence is ranked up respectively, in the position with identical ordering values Put, if character corresponding in character to be replaced and character string is letter or is numeral, Determine the character in inputted character string and between character to be replaced, constitute corresponding relation;
With aforementioned corresponding relation, character information replacement module, determines that module is connected, for determining When constituting corresponding relation between character and the character to be replaced in inputted character string, will be inputted Character corresponding to character string be adjusted to the attribute identical with character to be replaced after, directly output is also Replace aforesaid character to be replaced;Or, character corresponding for the character string inputted is adjusted to The attribute identical with character to be replaced, the character string after adjusting is as the head in candidate list Individual candidate item exports.
Preferably, described character information replacement unit also includes following construction module:
Input state modular converter, for being first language character at character to be replaced, the most defeated Enter in the case of the input state of method instrument is second language character, by input method instrument second The input state of language character is converted to the input state of first language character.
Compared with prior art, beneficial effects of the present invention is as follows:
Determine the character that user is to be replaced, if the attribute of the character string of current input method instrument input Time different from characters' property to be replaced, the character string inputted by input method instrument is adjusted to After the attribute identical with character to be replaced, directly output is replaced operation or arranges in candidate item Table exports.Make user when character is replaced, it is not necessary to defeated to input method instrument Enter state and carry out manual switching operation, can directly export the word identical with character attibute to be replaced Symbol form, the replacement process making character is easier, improves input efficiency.
Accompanying drawing explanation
Character is replaced by input method by Fig. 1 for the one provided in the embodiment of the present invention one The method flow diagram changed;
Fig. 1-1 is, in the embodiment of the present invention one, the initial of input character string is adjusted to capitalization The schematic diagram exported as first candidate item after letter;
Fig. 1-2 is input character string to be adjusted to and character to be replaced in the embodiment of the present invention one The schematic diagram exported as first candidate item after identical attribute;
Character is replaced by input method by Fig. 2 for the one provided in the embodiment of the present invention two The method flow diagram changed;
Character is replaced by input method by Fig. 3 for the one provided in the embodiment of the present invention three The client schematic diagram changed.
Detailed description of the invention
With detailed description of the invention, embodiment of the present invention are made specifically below in conjunction with the accompanying drawings Bright.
The method being replaced character by input method of the present invention, in can apply to In the input method system of the various language such as literary composition, English, Japanese, Korean.Owing to the present invention is upper It is all similar for stating the application in the input method system of different language, therefore to convenient explanation, The most only the present invention is applied and illustrate at Chinese and English situation.
Seeing Fig. 1, this figure is that the one provided in the embodiment of the present invention one passes through input method to word The method flow diagram that symbol is replaced, comprises the following steps that described.
S11, gathers character to be replaced, obtains this characters' property;
When monitoring user and choosing character by cursor or touch point, utilize System hook function Capture user is for the triggering message of input system, if capturing the triggering message to character Time, it is determined that user is replaced operation to the character chosen.The character chosen i.e. is treated Substitute character.
Described character to be replaced can be letter, such as English alphabet, Greek alphabet etc..When treating When substitute character is letter, then characters' property is the upper case or lower case attribute of letter.
Described character to be replaced can also be numeral, such as Arabic numerals, Roman number etc.. When character to be replaced is numeral, then characters' property is numeric type.
S12, it is judged that the attribute of current input method instrument input character string and aforementioned character to be replaced Attribute whether consistent, if it is not, then enter next step;
Relevant api function is utilized to obtain the input state of current input method instrument, such as, input State is English state or Chinese language state, and the character inputted when English state is capital letter Mother or lower case.When user is by current input method instrument input character string, according to defeated The input state entering method instrument obtains the attribute of inputted character string, and by inputted character string Attribute compares with characters' property to be replaced, if both are consistent, the most directly by input Method instrument carries out input operation, if both are inconsistent, then enters next step.Such as, treat Substitute character is English capitalization, if the input state of current input method instrument is input in Chinese State or be English lower case input state, then can determine whether the attribute of inputted character string Inconsistent with characters' property to be replaced.
S13, is adjusted to identical with character to be replaced by the character string inputted by input method instrument Attribute after be loaded into character position to be replaced and be replaced operation, or the character string after adjusting Exported by candidate list as candidate item.
In the case of character to be replaced is capitalization, if being inputted by current input method instrument Character attibute be lower case, then by this input method instrument input character attibute be adjusted to big Write mother;In the case of character to be replaced is lower case, if by current input method instrument The character attibute of input is capitalization, then the character attibute that this input method instrument inputs adjusted For lower case.Such as, character to be replaced is capitalization " A ", and user wishes this letter Replace with " B ", if the character that now current input method instrument is inputted is lower case, then will The lower case input state of this input method is adjusted to capitalization input state, makes user be not required to Input method instrument is carried out the switching of capital and small letter, directly letter " A " can be replaced with " B ".
In the case of current input method instrument is for including character string and candidate list, corresponding The substitute mode of character to be replaced or the mode of candidate item type employing one of:
Mode 1, in the case of character to be replaced is single upper case letter, gathers user and passes through The initial of input method instrument input character string, is adjusted to capitalization by this initial, will adjust Character string after whole directly exports and replaces aforesaid character to be replaced.Such as, word to be replaced Symbol is capitalization " D ", if the input state of current input method instrument is input in Chinese state, If user inputs character string is " ca ", then gather the initial " c " of inputted character string, After this initial is adjusted to capitalization " C ", then the character string " Ca " after adjusting is straight Connect output and replace described letter to be replaced " D ".If the character string that user is inputted is only one Individual letter " c ", then be adjusted to this letter capitalization " C " and the most directly export and replace institute State letter to be replaced " D ".
Mode 2, in the case of character to be replaced is single upper case letter, gathers user and passes through The initial of input method instrument input character string, is adjusted to capitalization by this initial, will adjust Character string after whole exports as the first candidate item in candidate list.See Fig. 1-1, should Figure illustrates and is adjusted to after capitalization the initial of input character string as first candidate item The schematic diagram of output, as it can be seen, the Chinese that interface of input method 100 is current input method instrument Pinyin Input state, this interface of input method includes character string input field 110 and candidate list hurdle 120.Such as, user is intended to capitalization " D " to be replaced is replaced with capitalization " C ", Directly can carry out character string input by interface of input method, input in character string when collecting user When in hurdle 110, the character string of input is " c ", then in the first time on candidate list hurdle 120 Output display capitalization " C " in option one 21, user is by choosing first candidate item, the most in fact Now capitalization " D " to be replaced is replaced with capitalization " C ".
Mode 3, in the case of character to be replaced is single lower case, gathers user and passes through The initial of input method instrument input character string, is adjusted to lower case by this initial, will adjust Character string after whole directly exports and replaces aforesaid character to be replaced.For current input method work When tool is for Chinese pinyin input state, the character string inputted is lower case, this situation Under, the character string inputted directly can be exported and replaces described character to be replaced.
Mode 4, in the case of character to be replaced is single lower case, gathers user and passes through The initial of input method instrument input character string, is adjusted to lower case by this initial, will adjust Character string after whole exports as the first candidate item in candidate list.For current input method When instrument is Chinese pinyin input state, the character string inputted is lower case, this feelings Under condition, can be defeated directly as the first candidate item in candidate list by the character string inputted Go out.
Described character to be replaced can also be numeral, such as Arabic numerals, Roman number etc.. Such as, numeral to be replaced is Roman number " II ", is intended to replace with " IV ", now this numeral The numeral inputted by current input method is Arabic numerals, then then user is passed through input method The Arabic numerals of instrument input export after being converted directly into corresponding Roman number.For numeral Conversion, owing to existing input method system may not be supported the input of other numeric type, Such as, user cannot directly by input method instrument input Roman number " II ", this situation, Can be stored in setting up mapping relations table between different numeric types in input method system, defeated Enter method instrument and numeric type can be changed by reading mapping relations table.
Include two or more character at character to be replaced, and this character by letter and / or numeral composition in the case of, substitute mode or the candidate item type of corresponding character to be replaced are adopted By the mode of one of:
Mode 1, gathers the character string that user is inputted by input method instrument, it is determined that inputted word Character in symbol string whether and constitutes corresponding relation, the most then by defeated for institute between character to be replaced After character corresponding to the character string that enters is adjusted to the attribute identical with character to be replaced, directly export And replace aforesaid character to be replaced;
Mode 2, gathers the character string that user is inputted by input method instrument, it is determined that inputted word Character in symbol string whether and constitutes corresponding relation, the most then by defeated for institute between character to be replaced Character corresponding to the character string that enters is adjusted to the attribute identical with character to be replaced, after adjusting Character string exports as the first candidate item in candidate list.
The character judged in input character string whether and between character to be replaced composition corresponding During relation, if meeting following condition, be considered as constitute corresponding relation:
With the initial character in character to be replaced and initial character in input character string divide for sequence It is not ranked up, in the position with identical ordering values, if character to be replaced is letter, then Character corresponding in character string is similarly letter, if character to be replaced is numeral, then in character string Corresponding character is similarly numeral.
When judging whether to constitute corresponding relation, first, by initial character to be replaced and being inputted Initial character in character string compares, if both are not to be all letter or numeral, the most not structure Become corresponding relation, if both are all letter or number, then carry out the comparison of second letter, directly When last character to character to be replaced is more complete, if all characters of character to be replaced All with when in input character string, the character of corresponding sorting position is all letter or number, it is determined that treat Character in substitute character and input character string constitutes corresponding relation.Such as, character to be replaced is " AB3 ", the character string inputted is " bc5 ", when whether constituting corresponding relation both judging, First first character " A " and the first character " b " of input character string of substitute character are treated Compare, it is judged that after both are letter, the most respectively to second character, the 3rd Character compares, owing to second character " B " and " c " are letter, and the 3rd character " 3 " and " 5 " are numeral, character the most to be replaced " AB3 " and the character string " bc5 " of input Constitute corresponding relation.
Corresponding relation is constituted between character and the character to be replaced judged in inputted character string Time, then character corresponding for the character string inputted is adjusted to the genus identical with character to be replaced Property.Described identical attribute, refers to capitalization attribute and the small letter attribute of letter for letter, Identical numeric type attribute is referred to for numeral.Such as, user is intended to character to be replaced " A I " replaces with " B II ", if the character string that user is inputted by current input method instrument is Time " b2 ", structure between character string " b2 " and the character to be replaced " A I " through judging input Become corresponding relation, then then " b2 " is adjusted to the genus identical with character to be replaced " A I " Property, i.e. it is adjusted to " B II " and the most directly exports and replace " A I ".For current input method work Tool is the situation including character string and candidate list, also can be corresponding by the character string inputted After character is adjusted to the attribute identical with character to be replaced, as the first time in candidate list Option exports.See Fig. 1-2, the figure shows and input character string is adjusted to and word to be replaced The schematic diagram exported as first candidate item after according with identical attribute, as it can be seen, input method circle Face 100 is the Chinese pinyin input state of current input method instrument, and this interface of input method includes word Symbol string input field 110 and candidate list hurdle 120, such as user are intended to character to be replaced " Ab1 " Replace with " Cd2 ", in character string input field 110, input character " cd2 " when collecting user Time, then after " cd2 " being adjusted to " Cd2 ", the first candidate on candidate list hurdle 120 Output display in item 121, user, by choosing first candidate item, i.e. realizes character to be replaced " Ab2 " replaces with the operation of " Cd2 ".
In method described in the present embodiment, when character to be replaced is letter or number, according to word Female capital and small letter attribute or numeric type attribute, by the character of input in current input method instrument After being adjusted to the attribute identical with letter or number to be replaced, then treat substitute character and be replaced Operation so that in character replacement process, it is possible to according to character attibute to be replaced automatically to input method The character that instrument is inputted switches over, it is to avoid the manual switching operation of user, thus improves The efficiency that character is replaced.
Seeing Fig. 2, this figure is that the one provided in the embodiment of the present invention two passes through input method to word The method flow diagram that symbol is replaced, comprises the following steps that described.
S21, gathers character to be replaced, obtains the first language attribute of this character;
When user chooses target character, and start input system when carrying out character input, i.e. illustrate The target character that user chooses is character to be replaced.Gather the character to be replaced that user chooses, obtain Take the literal type of this character, as first language attribute.Such as, what user chose is to be replaced Character is Chinese text type, then using Chinese text type as the first language of character to be replaced Attribute.
S22, obtains the input state of current input method instrument, if by current input method instrument The character of input is first language attribute, then enter step S23, if input character is the second language Speech attribute, then carry out step S24;
Relevant api function is utilized to obtain the input state of current input method instrument.Or, also may be used By screenshot capture mode, the icon of input method instrument or the floating frame of input method instrument are entered Row sectional drawing, obtains the input state of input method instrument according to shot image information.Such as, search dog input In the floating frame of method instrument, show under input in Chinese state character " in ", English defeated Enter to show under state character " English ", by this floating frame carries out sectional drawing, then judge to cut Figure information represents the character style of input state, the input shape of this input method instrument can be obtained State.
Input state according to current input method instrument, it is judged that inputted by this input method instrument Character whether be the first language attribute in abovementioned steps, if then enter step S23, if No, then input character is second language attribute, enters step S24.
S23, the character string inputted by current input method instrument carries out the replacement operation of character;
Such as, the first language attribute of the character to be replaced obtained in step S21 is Chinese, if The input state of current input method instrument is Chinese, then the character inputted by input method instrument is First language attribute, in this case, then directly according to the character of current input method instrument input String is treated substitute character and is replaced operation.
S24, is converted to first by the input state of second language character in current input method instrument After the input state of language character, carry out the replacement operation of character according to the character string inputted.
Such as, the first language attribute of the character to be replaced obtained in step S21 is Chinese, if The input state of current input method instrument is English, then by the character of this input method instrument input For second language attribute, in this case, then by the English input state of current input method instrument After being converted to Chinese language state, then treat substitute character according to the character string that inputted and be replaced behaviour Make.
In method described in the present embodiment, when language form and the current input method of character to be replaced During the language form difference that instrument is inputted, then the input language type of input method instrument is first turned Be changed to identical with character language type to be replaced after, the character inputted further according to input method instrument It is replaced operation, thus avoids user that the manual switching of input method instrument is operated, improve Input efficiency.
In conjunction with previously described embodiment of the method character being replaced by input method, this Bright additionally provide supporting client.
Seeing Fig. 3, this figure is that the one provided in the embodiment of the present invention three passes through input method to word The client schematic diagram that symbol is replaced, this client includes:
Character attibute acquiring unit 310, for gathering character to be replaced, obtains this character Attribute;
Character attibute judging unit 320, is connected with aforementioned character attibute acquiring unit 310, uses In judging the attribute of current input method instrument input character string and aforementioned characters' property to be replaced The most consistent;
Character information replacement unit 330, is connected with aforementioned character attibute judging unit 320, uses In when aforementioned character attibute judging unit 320 judged result is no, will be by input method instrument The character string of input is loaded into character bit to be replaced after being adjusted to the attribute identical with character to be replaced Put and be replaced operation, or will adjust after character string pass through candidate list as candidate item Output.
Wherein, character information replacement unit 330 includes following construction module:
Corresponding relation determines module 331, for by with the initial character in character to be replaced and Initial character in inputted character string is that sequence is ranked up respectively, has identical ordering values Position, if character corresponding in character to be replaced and character string is letter or is numeral Time, determine the character in inputted character string and between character to be replaced, constitute corresponding relation;
With aforementioned corresponding relation, character information replacement module 332, determines that module 331 is connected, use When in the character in determining inputted character string and constituting corresponding relation between character to be replaced, After character corresponding for the character string inputted is adjusted to the attribute identical with character to be replaced, directly Connect output and replace aforesaid character to be replaced;Or, by word corresponding for the character string that inputted Symbol is adjusted to the attribute identical with character to be replaced, and the character string after adjusting arranges as candidate item First candidate item output in table.
Described character information replacement unit 330 also includes following construction module:
Input state modular converter 333, being used at character to be replaced is first language character, when In the case of the input state of front input method instrument is second language character, by input method instrument The input state of second language character is converted to the input state of first language character.
In client described in the present embodiment, when user is replaced operation to the character inputted Time, character attibute acquiring unit 310 gathers character to be replaced, and obtains this characters' property; Then, character attibute judging unit 320 judges the attribute of current input method instrument input character string The most consistent with aforementioned characters' property to be replaced;If judged result is inconsistent, then character letter The character string inputted by input method instrument is adjusted to and word to be replaced by breath replacement unit 330 It is loaded into character position to be replaced after according with identical attribute and is replaced operation, or after adjusting Character string is exported by candidate list as candidate item.When character to be replaced is two or two When above letter and/or numeral, corresponding relation determine that module 331 determines inputted character Constituting corresponding relation between character and character to be replaced in string, if constituting corresponding relation, then leading to Cross character information replacement module 332 be adjusted to by character corresponding for the character string inputted and treat After the attribute that substitute character is identical, directly export and replace aforesaid character to be replaced;Or, Character string after adjusting exports as the first candidate item in candidate list.When word to be replaced When symbol is for language form, if the language form of current input method instrument input and character to be replaced During language form difference, then by input state modular converter 333, input method instrument is inputted Language form be converted to the language form identical with character to be replaced.
It is above the description of this invention and non-limiting, other embodiment party based on inventive concept Formula, all among protection scope of the present invention.

Claims (10)

1. method character being replaced by input method, it is characterised in that: the method comprises the following steps,
Step 1, gathers character to be replaced, obtains this characters' property;
Step 2, it is judged that the attribute of current input method instrument input character string is the most consistent with aforementioned characters' property to be replaced, if it is not, then enter next step;
Step 3, is loaded into character position to be replaced and is replaced operation after the character string inputted by input method instrument is adjusted to the attribute identical with character to be replaced, or the character string after adjusting is exported as candidate item by candidate list,
Wherein, include two or more character at character to be replaced, and in the case of this character is by letter and/or numeral composition, substitute mode or the candidate item type of corresponding character to be replaced include following one,
Gather the character string that user is inputted by input method instrument, judge that the character in inputted character string whether and constitutes corresponding relation between character to be replaced, if, after then character corresponding for the character string inputted is adjusted to the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced
Gather the character string that user is inputted by input method instrument, judge that the character in inputted character string whether and constitutes corresponding relation between character to be replaced, if, then character corresponding for the character string inputted is adjusted to the attribute identical with character to be replaced, character string after adjusting exports as the first candidate item in candidate list
Wherein, whether and during composition corresponding relation between character to be replaced, if meeting following condition, it is considered as composition corresponding relation at the character judged in input character string,
With the initial character in character to be replaced and initial character in input character string be ranked up respectively for sequence, in the position with identical ordering values, if character to be replaced is letter, then corresponding in character string character is similarly letter, if character to be replaced is numeral, then corresponding in character string character is similarly numeral.
A kind of method character being replaced by input method the most according to claim 1, it is characterised in that: described character to be replaced is letter, and its characters' property is the upper case or lower case attribute of letter.
A kind of method character being replaced by input method the most according to claim 2, it is characterized in that: in the case of character to be replaced is capitalization, if the character attibute inputted by current input method instrument is lower case, then the character attibute that this input method instrument inputs is adjusted to capitalization;In the case of character to be replaced is lower case, if the character attibute inputted by current input method instrument is capitalization, then the character attibute that this input method instrument inputs is adjusted to lower case.
A kind of method character being replaced by input method the most according to claim 2, it is characterized in that: in the case of 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 include following one
In the case of character to be replaced is single upper case letter, gathering user's initial by input method instrument input character string, this initial is adjusted to capitalization, the character string after adjusting directly exports and replaces aforesaid character to be replaced;
In the case of character to be replaced is single upper case letter, gathering user's initial by input method instrument input character string, this initial is adjusted to capitalization, the character string after adjusting exports as the first candidate item in candidate list;
In the case of character to be replaced is single lower case, gathering user's initial by input method instrument input character string, this initial is adjusted to lower case, the character string after adjusting directly exports and replaces aforesaid character to be replaced;
In the case of character to be replaced is single lower case, gathering user's initial by input method instrument input character string, this initial is adjusted to lower case, the character string after adjusting exports as the first candidate item in candidate list.
A kind of method character being replaced by input method the most according to claim 1, it is characterized in that: be first language character at character to be replaced, in the case of the input state of current input method instrument is second language character, the input state of second language character in input method instrument is converted to the input state of first language character.
6. client character being replaced by input method implementing method described in claim 1, it is characterised in that this client includes:
Character attibute acquiring unit, for gathering character to be replaced, obtains this characters' property;
Character attibute judging unit, is connected with aforementioned character attibute acquiring unit, the most consistent with aforementioned characters' property to be replaced for judging the attribute of current input method instrument input character string;
Character information replacement unit, it is connected with aforementioned character attibute judging unit, for when aforementioned character attibute judging unit judged result is no, it is loaded into character position to be replaced after the character string inputted by input method instrument is adjusted to the attribute identical with character to be replaced and is replaced operation, or the character string after adjusting is exported by candidate list as candidate item.
A kind of client character being replaced by input method the most according to claim 6, it is characterised in that: the character to be replaced that described character attibute acquiring unit gathers is letter, and the character attibute of acquisition is letter capitalization attribute or lower-case letters attribute.
A kind of client character being replaced by input method the most according to claim 6, it is characterized in that: described character information replacement unit will adjust after character string as candidate item by candidate list export time, will adjust after character string export as first candidate item.
A kind of client character being replaced by input method the most according to claim 6, it is characterised in that: described character information replacement unit includes following construction module,
Corresponding relation determines module, for by with the initial character in character to be replaced and initial character in input character string be ranked up respectively for sequence, in the position with identical ordering values, if character corresponding in character to be replaced and character string is letter or is numeral, determine the character in inputted character string and between character to be replaced, constitute corresponding relation;
Character information replacement module, determine that module is connected with aforementioned corresponding relation, when for the character in determining inputted character string and constituting corresponding relation between character to be replaced, after character corresponding for the character string inputted is adjusted to the attribute identical with character to be replaced, directly export and replace aforesaid character to be replaced;Or, character corresponding for the character string inputted is adjusted to the attribute identical with character to be replaced, the character string after adjusting exports as the first candidate item in candidate list.
A kind of client character being replaced by input method the most according to claim 6, it is characterised in that: described character information replacement unit includes following construction module,
Input state modular converter, for being first language character at character to be replaced, in the case of the input state of current input method instrument is second language character, is converted to the input state of first language character by the input state of second language character in input method instrument.
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 CN102945113A (en) 2013-02-27
CN102945113B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102166266B1 (en) * 2013-03-13 2020-10-15 삼성전자주식회사 Apparatus and method for changing character in terminal
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
CN109492137B (en) * 2018-09-28 2024-07-16 中国平安人寿保险股份有限公司 Front-end numerical value updating method and device, computer readable storage medium and terminal
CN114721526A (en) * 2020-12-22 2022-07-08 北京搜狗科技发展有限公司 Input method and device and electronic equipment
CN113190125B (en) * 2021-05-06 2025-02-11 维沃移动通信(杭州)有限公司 Input correction method and device

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7277732B2 (en) * 2000-10-13 2007-10-02 Microsoft Corporation Language input system for mobile devices

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN102945113A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
CN102945113B (en) Method character being replaced by input method and client
JP6431119B2 (en) System and method for input assist control by sliding operation in portable terminal equipment
CN103440299B (en) A kind of fast input method of information based on focus context associational word
CN103777774B (en) The word error correction method of terminal installation and input method
KR101846238B1 (en) Chinese character input apparatus and controlling method thereof
KR101394874B1 (en) Device and method implementing for particular function based on writing
CN102662575A (en) Method for modifying text, client and system
CN103123624A (en) Method of confirming head word, device of confirming head word, searching method and device
CN102467319A (en) Handwriting Chinese character input method and system
CN102968453A (en) Film and video searching method for mobile terminal
CN104156161A (en) System and method for carrying out clicking, word capturing and searching on information equipment screen
CN101149806B (en) Method and device for hand writing identification post treatment using context information
CN101419531B (en) Character input method and device in computer
CN103513778A (en) Input method and device for personal names
CN103677634A (en) Method and system for fast inputting common phrases
CN102109960A (en) Fast Chinese-character pinyin input method based on touch sensing device as well as system for realizing same
CN103971679A (en) Linkman voice searching method and device and mobile terminal
CN102207824B (en) Sliding pinyin input method based on touch screen device
CN105897991A (en) Contact person searching method and device and terminal device
CN105843414A (en) Input correction method for input method and input method device
CN104216635B (en) The acquisition methods of upper screen information and device
CN104571584B (en) Character input method and device
CN104598045B (en) Five checker input method
CN106293129B (en) A kind of method that individual Chinese character is inputted in Chinese character coding input method
CN101692245A (en) Method for processing additional searching requirement input in retrieval system conveniently and quickly

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