WO2014048153A1 - Method and device for correcting input error and terminal - Google Patents
Method and device for correcting input error and terminal Download PDFInfo
- Publication number
- WO2014048153A1 WO2014048153A1 PCT/CN2013/078637 CN2013078637W WO2014048153A1 WO 2014048153 A1 WO2014048153 A1 WO 2014048153A1 CN 2013078637 W CN2013078637 W CN 2013078637W WO 2014048153 A1 WO2014048153 A1 WO 2014048153A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- character
- terminal
- update
- input
- current input
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03545—Pens or stylus
Definitions
- the present invention relates to communication technologies, and more particularly to a method, apparatus and terminal for correcting input errors. Background technique
- touch screen terminals such as smart touch screen mobile phones/tablets represented by the iPhone.
- the terminal using the touch screen is a terminal that does not have a physical keyboard, and the user can perform an input operation through a virtual keyboard displayed on the screen.
- the virtual keyboard is generally small, and the distance between the buttons is very close, which is prone to input errors.
- the character that the user wants to input is H, but the character G that is closer to H is often mistakenly entered.
- the user needs to delete the character G and re-enter H, which reduces the user's input speed, and also There is no guarantee that the character H can be accurately input when the user re-enters, and there is a possibility that the character G or other characters closer to H are input again, which brings inconvenience to the user. Summary of the invention
- the present invention provides a method, apparatus and terminal for correcting input errors to solve the defect of low input efficiency caused by repeated input errors of users in the prior art.
- a first aspect of the present invention provides a method of correcting an input error, comprising:
- the current input character is obtained, and the notification of the winter end tilt includes the tilt direction of the winter end;
- the notification of the terminal tilting further includes a time and a tilt angle at which the terminal is kept tilted.
- the method further includes: determining a time when the terminal is kept tilted Whether it is in a preset time interval, and determining whether the tilt angle is in a preset angle interval;
- obtaining updated characters according to the tilt direction of the terminal includes:
- An update character is obtained in the key ⁇ according to the tilt direction of the terminal and the position of the current input character.
- the tilting direction of the winter end of the residence and the position of the current character acquiring the updated character in the key comprises: according to the tilt direction of the terminal And obtaining the candidate character in the key table according to the position of the current input character;
- the acquiring, by the character adjacent to the current input character, the updated character includes:
- the current input character and each of the adjacent characters are combined as a combination to be detected according to an input sequence; when the result is YES, the adjacent combinations of the to-be-detected combination are to be formed.
- the character is used as the update character.
- the method further includes:
- the replacing the current input character with the update character includes: The current input character is replaced with the one updated character.
- a second aspect of the present invention provides an apparatus for correcting an input error, including:
- a first obtaining unit configured to acquire a current yoga character after receiving the notification of the terminal tilt, and the notification of the end tilt includes the tilt direction of the winter end;
- a second acquiring unit configured to acquire an update character according to the tilt direction of the terminal
- a replacement unit configured to replace the current input character with the update character.
- the notification of the terminal tilting further includes a time and a tilt angle at which the terminal remains tilted; the device further includes a determining unit, wherein the determining unit is configured to:
- the first obtaining unit is specifically configured to perform an operation of acquiring a current input character when the determining unit determines that the time when the terminal is kept tilted is in the preset time interval, and the tilt angle is in a preset angle interval .
- the second obtaining unit includes:
- an ear position subunit wherein the key for the rooting takes the position of the current input character; and the updated character subunit is obtained, according to the tilt direction of the terminal and the position of the current input character Xie Luzhong gets updated characters.
- the obtaining the update character subunit is used to:
- the obtaining the update character subunit is used to:
- the method further includes:
- a returning unit configured to: when the plurality of updated characters have a plurality of updated characters, display the plurality of updated characters to enable a user to select one of the plurality of updated characters; the replacing unit is specifically used to The current input character is replaced with the one updated character.
- a third aspect of the present invention provides a terminal comprising the apparatus for correcting an input error as described in any one of the preceding claims.
- the method, device and terminal for correcting input errors provided by the present invention can replace the incorrectly input characters by selecting an update character by using a tilt terminal when the user finds that the input character is wrong, so that the user can be manually deleted. Incorrectly entered characters and avoiding user input errors again, the operation is simple, and the input efficiency is improved.
- BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
- FIG. 1 is a flow chart of a method for correcting an input error according to an embodiment of the present invention
- FIG. 2 is a flow chart showing a method for correcting an input error according to another embodiment of the present invention
- FIG. 3 is a schematic diagram of a method for correcting an input error according to another embodiment of the present invention
- FIG. 4 is a schematic structural diagram of an apparatus for correcting an input error according to still another embodiment of the present invention
- FIG. 5 is a schematic structural diagram of an apparatus for correcting an input error according to still another embodiment of the present invention.
- This embodiment provides a method of correcting an input error, which is applicable to all terminals employing a touch screen.
- the executor of the method for correcting an input error of this embodiment is a device for correcting an input error, and the device for correcting the input error is integrated in the terminal.
- 1 is a flow chart showing a method of correcting an input error according to the embodiment, and the embodiment includes:
- Step 101 After receiving the notification of the tilt of the iJ terminal, obtain the current input character, and the tilt direction of the notification packet # ⁇ winter end of the terminal tilt.
- the notification of the received terminal tilt can be sent by the gravity sensing device in the terminal, and the gravity sensing device can determine whether the terminal is tilted or tilted.
- the device sends a terminal tilt to the device that corrects the input error.
- the notification the terminal tilts the notification in the direction of the tilt of the winter end.
- the current input character is the character that the user is currently typing through the virtual keyboard. When the user finds a mistaken character, it can take the tweeting of the winter end to enter the next step to correct the input i Wu.
- step 102 an update character is obtained according to the tilt direction of the terminal.
- the update character is the character used to replace the 4 Wu input character.
- the device for correcting the input error can obtain the update character in many ways, for example, the update character can be automatically determined by the direction in which the terminal is tilted; or when there are multiple update characters according to the direction in which the terminal is tilted, the virtual t disk can be determined.
- the plurality of update characters are highlighted (for example, in the form of highlighting or ⁇ ife), and the user selects one of the plurality of updated characters from the updated characters, wherein a virtual confirmation button may be provided for the convenience of the user, and the user may Simply press the virtual confirmation button to select the update character.
- a virtual confirmation button may be provided for the convenience of the user, and the user may Simply press the virtual confirmation button to select the update character.
- Step 103 Replace the current input character with the update character.
- the device that corrects the input error replaces the current input character with the updated character, that is, the character that the user originally intended to input replaces the character that the user erroneously inputs, and the correct operation of the input error is completed.
- the method for correcting an input error provided by this embodiment, when the user finds that the input character is wrong, You can use the tilt terminal to select the update character to replace the wrong input character. This can prevent the user from manually deleting the incorrectly entered characters and avoiding the user inputting the error again.
- the operation is simple and the input efficiency is improved.
- This embodiment provides a method for correcting an input error based on the first embodiment.
- FIG. 1 is a schematic flowchart of a method for correcting an input error according to the embodiment.
- the embodiment includes: Step 201: Receive a notification of a tilt of the terminal, and the notification of the tilt of the terminal includes a tilt direction of the terminal, a time when the terminal is tilted, and a tilt angle.
- Step 202 Determine whether the time that the terminal keeps tilting is in a preset time interval, and determine whether the tilt angle is in a preset angle interval.
- the terminal keeps tilting time in a preset time interval, and the tilt angle is in a preset angle interval, performing The operation of step 203, otherwise the operation is stopped.
- One embodiment of the present invention determines whether the terminal keeps the tilt time in the preset time interval, and determines whether the tilt angle of the terminal is in the preset angle interval. When the determination result is yes, the operation of step 203 is performed. In this embodiment, the time at which the terminal is kept tilted and the tilt angle can be judged by the gravity sensing device.
- the preset time interval and the preset angle interval of the embodiment may be set according to actual needs.
- the preset time interval may be [30, 40], [30, 50], [40, 60], [50 , 70], [30, + ⁇ ) and [50, + ⁇ ), etc., where the unit of the value in the interval is milliseconds
- the preset angle interval may be [30, 40], [30, 50], [40, 60], [40, 70], etc., where the unit of the value in the interval is degree (°).
- the terminal can be easily tilted. For example, when you are in the car or when you are in the terminal, you want to change your angle and rest. According to statistics, the non-user intentional terminal tilt is not large, and the duration may be shorter or longer.
- the preset time interval is set for the terminal tilt time, and the preset angle interval is set for the angle, only when the time is in the preset time interval and the angle is in the preset angle interval. Subsequent operations to correct the method of entering the error.
- the terminal is tilted to mean that the terminal is tilted in one direction.
- Step 203 The position of the character is currently input according to the preset key position, and the updated character is obtained in the key according to the tilt direction of the terminal and the position of the currently input character.
- the key table is a list including the positions of the buttons, such as the relative positions of the keyboards.
- a two-dimensional array can be used to set the key table. The first dimension is "fe ⁇ the number of rows on the 4 ⁇ disc, the second dimension is the number of columns on the keyboard, and the stored value corresponds.
- the character of the location The specific implementation manner may be that the position of each surrounding character is marked in the key, and then the corresponding character is searched by the character position, and the description is no longer performed.
- obtaining the update character in the key according to the tilt direction of the terminal and the position of the current character may include:
- the candidate character is obtained in the key table according to the tilt direction of the terminal and the position of the currently input character.
- the character adjacent to the current input character is obtained as an update character.
- characters adjacent to the currently input character may be updated characters. It can be understood that, in practical applications, according to the time of the terminal tilting, the adjacent characters of the characters adjacent to the current input character may also be used as the update character.
- Figure 3 is a partial schematic view of the QWERTY keyboard. Specifically, as shown in FIG. 3, it is assumed that the current input character of the input of Wu is H, and when the correct character that the user actually needs to enter is G, the terminal is tilted to the left side, and the gravity sensing device detects the direction of the terminal tilt.
- the device that triggers the correction input Wu finds from the key record that the character adjacent to the left side of H is G, and G is used as the update character.
- the gravity sensing device detects the direction in which the terminal is tilted, and the device that triggers the correction of the input i Wu finds the right adjacent to the right.
- the character is I, then I is used as the update character.
- the correct character that the user actually needs to input is Y
- the terminal is tilted to the upper left
- the gravity sensing device detects the tilt of the terminal
- the device that triggers the correction input 4t Wu finds the character Y on the left side of the H from the key. Use Y as the update character.
- the current input character and each adjacent character are combined as a combination to be detected according to the input order; If yes, the adjacent characters that make up the combination to be detected are used as update characters.
- the user is presented with multiple update characters to enable the user to select one update character from the plurality of update characters, so that the current input characters can be replaced with the An update character.
- the gravity sensing device detects that the terminal is tilted downward, and the device that triggers the correction of the input error obtains two adjacent characters located above the H from the key table. It is B and N.
- the device for correcting the error takes both B and N as update characters, and presents the user with a plurality of update characters, the update character list including B. with. Since there are only two characters for the user to select at this time, the spacing between B and N can be set larger to avoid user selection errors.
- Step 204 Replace the current input character with the update character.
- the update character can be used to replace the current input character; when the device that corrects the input error obtains multiple update characters, the user can return a list of updated characters, from which the user An update character is selected; the plurality of update characters can also be highlighted on the virtual keyboard, and an update character is selected by the user; the device for correcting the input error replaces the current input character with an update character selected by the user according to the user's selection.
- the method for correcting an input error it is first intelligently judged whether the user wants to replace the input character when the terminal is tilted, and intelligently determines the actual character that the user wants to input by correcting the input error device, and can not only omit the user's operation, and give the user It brings great convenience, and can avoid the user to input incorrect characters again, which improves the input efficiency.
- the present embodiment provides an apparatus for correcting an input error for performing the method of correcting an input error of the first embodiment.
- This method of correcting input errors is integrated in the terminal.
- the apparatus for correcting an input error includes a first acquisition unit 301, a second acquisition unit 302, and a replacement unit 303.
- the first obtaining unit 301 is connected to the second obtaining unit 302, and is configured to obtain the current input character after the notification of the tilting of the winter end, and the tilting direction of the terminal end is notified by the terminal tilting; the second obtaining unit 302 Connected to the first obtaining unit 301 and the replacing unit 303, respectively, for acquiring updated characters according to the tilt direction of the terminal; the replacing unit 303 is configured to replace the current input characters with the updated characters.
- the method for correcting the input device is the same as that of the first embodiment. Specifically, the method of the first obtaining unit 301 is the same as the step 101 in the first embodiment, and the second acquiring unit 302 is configured. The method is the same as the step 102 in the first embodiment, and the replacement unit 303 is the same as the step 103 in the first embodiment, and details are not described herein again.
- the device for correcting an input error provided by the embodiment, when the user finds that the input character is wrong, the user can select the update character to replace the incorrectly input character by using the tilt terminal, thereby preventing the user from manually deleting the incorrectly input character and avoiding the user input again. Errors, simple operation, and improved input efficiency.
- the present embodiment provides an apparatus for correcting an input error for performing the method of correcting an input error of the second embodiment based on the third embodiment.
- FIG. 5 is a schematic structural diagram of an apparatus for correcting an input error according to the embodiment.
- the apparatus for correcting an input error includes a first acquiring unit 301, a second acquiring unit 302, and a replacement as shown in the third embodiment.
- the unit 303 is the same as the third embodiment, and is not described here.
- the notification of the terminal tilting further includes a time and a tilt angle at which the terminal is kept tilted.
- the device for correcting the input error further includes a determining unit 401, which is coupled to the first acquiring unit 301. The connection is used to determine whether the time when the terminal remains tilted is in a preset time interval, and whether the tilt angle is in the preset angle interval.
- the first obtaining unit 301 is specifically configured to determine, at the determining unit 401, the time when the terminal remains tilted in the preset time interval, and determine whether the tilt angle is in the preset angle interval. More specifically, the first obtaining unit 301 is configured to perform an operation of acquiring the current input character when the determining unit 401 determines that the time when the terminal remains tilted is in the preset time interval, and the tilt angle is in the preset angle interval.
- the second obtaining unit 302 includes an acquiring location sub-unit 402 and an obtaining update character sub-unit 403.
- the acquiring location sub-unit 402 is connected to the first obtaining unit 301 and the acquiring updated character sub-unit 403, respectively.
- the obtaining update character sub-unit 403 may be respectively connected with the obtained standing sub-unit 402 and the replacing unit 303, and configured to be in accordance with the tilt direction of the terminal and the position of the currently input character. Get updated characters in the bit table.
- the obtaining update character sub-unit 403 is specifically configured to obtain a candidate character in the key table according to the tilt direction of the terminal and the position of the currently input character. When the number of characters to be selected is multiple, obtain the adjacent neighbor adjacent to the current input character. The character is used as an update character.
- get update character subunit 403 is used to:
- the current input character and each adjacent character are combined as the combination to be detected according to the input order; if YES, the adjacent characters constituting the combination to be detected are used as the update character.
- the device for correcting the input error further includes a returning unit 404, and the returning unit 404 may be respectively connected to the acquired update character sub-unit 403 and the replacing unit 303, and configured to display the user to the user when there are multiple updated characters.
- the character is updated to cause the user to select an update character from the plurality of update characters; at this time, the replacement unit 303 may be specifically configured to replace the current input character with the selected one of the update characters.
- the method for correcting the input error of the embodiment is the same as that of the second embodiment, and will not be further described herein.
- the apparatus for correcting an input error it is first intelligently judged whether the user wants to replace the input character when the terminal is tilted, and intelligently judges the actual character that the user wants to input by correcting the input error device, and can not only omit the user's operation, and give the user It brings great convenience, and can avoid the user to input incorrect characters again, which improves the input efficiency.
- the present invention also provides a terminal comprising the apparatus for correcting an input error as described in any of the above-described Embodiment 3 or Embodiment 4.
- the embodiment provides a terminal, including the apparatus for correcting an input error of any of the above embodiments.
- the terminal of this embodiment includes: at least one processor, and a memory, where the memory is used to store a program that can be executed by the processor, wherein the processor reads the executables in the earphones.
- the executable spear in the order ⁇ " should be used for:
- the current r-in character is obtained, and the tilt direction of the terminal end of the notification packet is tilted;
- the notification of the terminal tilt further includes a time and a tilt angle at which the terminal is kept tilted, and the processor runs the program corresponding to the executable program code to obtain the current input by reading the executable program code stored in the device.
- the processor runs the program corresponding to the executable program code to obtain the current input by reading the executable program code stored in the device.
- the processor runs the program corresponding to the executable program code by using the executable program code stored in the reader, and is configured to: when acquiring the update character according to the tilt direction of the terminal, specifically: according to the preset key
- the bit table obtains the position of the currently input character
- the update character is obtained in the key according to the tilt direction of the terminal and the position of the currently input character.
- the processor runs a program corresponding to the executable program by reading the executable program code stored in the device, and is configured to obtain the update character in the key table according to the tilt direction and the position of the current character.
- it can be: Obtaining a candidate character in the key table according to the tilt direction of the terminal and the position of the currently input character;
- the candidate character is one
- the character adjacent to the currently input character is obtained as the update character.
- the processor runs the program corresponding to the executable program code by using the executable program code stored in the reader, and is used to obtain a character adjacent to the currently input character as the update character, which may be specifically:
- the current input character and each adjacent character are combined as the combination to be detected according to the input order; if YES, the adjacent characters constituting the combination to be detected are used as the update character.
- the processor can also run the test sequence corresponding to the executable program by reading the executable program code stored in the memory, for:
- the user When there are multiple update characters, the user is presented with a plurality of update characters to enable the user to select one update character from the plurality of update characters;
- the program corresponding to the executable program ⁇ can be: The character is replaced with an update character.
- the user when the user finds that the input character is wrong, the user can select the update character to replace the incorrectly input character by using the tilt terminal, thereby preventing the user from manually deleting the incorrectly input character and avoiding the user inputting the error again.
- the order is single and the input efficiency is improved.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
Description
纠正输入错误的方法、 装置与终端 本申请要求 2012年 9月 26 曰递交的申请号为 201210362761. 2、 发明名 称为 "糾正输入错误的方法、 装置与终端" 的中国专利申请的优先权, 其全 部内容通过引用结合在本申请中。 技术领域 Method, device and terminal for correcting input errors This application claims that the application number submitted on September 26, 2012 is 201210362761. 2. The priority of the invention is "Chinese Patent Application for Correcting Input Errors, Devices and Terminals". The entire contents are incorporated herein by reference. Technical field
本发明涉及通信技术, 尤其涉及一种纠正输入错误的方法、 装置与终 端。 背景技术 The present invention relates to communication technologies, and more particularly to a method, apparatus and terminal for correcting input errors. Background technique
随着移动终端技术的飞速发展, 采用触摸屏的终端, 例如以 iPhone为代 表的智能触摸屏手机 /平板电脑日益普及。 With the rapid development of mobile terminal technology, touch screen terminals, such as smart touch screen mobile phones/tablets represented by the iPhone, are increasingly popular.
采用触摸屏的终端为不具有物理键盘的终端, 用户可通过屏幕上显示的 虚拟键盘进行输入操作。 但由于屏幕尺寸有限, 虚拟键盘一般较小, 按键之 间的距离非常近, 容易发生输入错误的现象。 以 QWERTY键盘为例, 用户 想要输入的字符为 H, 但是经常会错误的输入了离 H较近的字符 G, 用户需 要将字符 G删除并重新输入 H, 降低了用户的输入速度, 并且也不能保证用 户重新输入时能够准确输入字符 H,存在再次输入字符 G或其他离 H较近的 字符的可能, 给用户带来不便。 发明内容 The terminal using the touch screen is a terminal that does not have a physical keyboard, and the user can perform an input operation through a virtual keyboard displayed on the screen. However, due to the limited screen size, the virtual keyboard is generally small, and the distance between the buttons is very close, which is prone to input errors. Taking the QWERTY keyboard as an example, the character that the user wants to input is H, but the character G that is closer to H is often mistakenly entered. The user needs to delete the character G and re-enter H, which reduces the user's input speed, and also There is no guarantee that the character H can be accurately input when the user re-enters, and there is a possibility that the character G or other characters closer to H are input again, which brings inconvenience to the user. Summary of the invention
本发明提供一种糾正输入错误的方法、 装置与终端, 以解决现有技术 中用户重复输入错误造成的输入效率低的缺陷。 The present invention provides a method, apparatus and terminal for correcting input errors to solve the defect of low input efficiency caused by repeated input errors of users in the prior art.
本发明第一个方面提供一种糾正输入错误的方法, 包括: A first aspect of the present invention provides a method of correcting an input error, comprising:
在接^ ^终端倾斜的通知后, 获取当前 入字符, 所 冬端倾斜的通知包括所 冬端的倾斜方向; After receiving the notification of the terminal tilt, the current input character is obtained, and the notification of the winter end tilt includes the tilt direction of the winter end;
根据所述终端的倾斜方向获取更新字符; 将所述当前输入字符替换为所述更新字符。 Obtaining an update character according to the tilt direction of the terminal; The current input character is replaced with the update character.
在第一种可能的实现方式中, 根据第一方面, 所述终端倾斜的通知还 包括终端保持倾斜的时间和倾斜角度,在获取当前输入字符之前,还包括: 判断所述终端保持倾斜的时间是否处于预设时间区间, 以及判断所述 倾斜角度是否处于预设角度区间; In a first possible implementation manner, according to the first aspect, the notification of the terminal tilting further includes a time and a tilt angle at which the terminal is kept tilted. Before acquiring the current input character, the method further includes: determining a time when the terminal is kept tilted Whether it is in a preset time interval, and determining whether the tilt angle is in a preset angle interval;
当所述终端保持倾斜的时间在所述预设时间区间, 且所述倾斜角度处 于预设角度区间时, 执行获取当前输入字符的操作。 When the time at which the terminal remains tilted is within the preset time interval, and the tilt angle is at the preset angle interval, an operation of acquiring the current input character is performed.
在第二种可能的实现方式中, 结合第一方面或第一种可能的实现方 式, 根据所述终端的倾斜方向获取更新字符包括: In a second possible implementation, in combination with the first aspect or the first possible implementation manner, obtaining updated characters according to the tilt direction of the terminal includes:
根据预设的键位表获取所述当前输入字符的位置; Obtaining a position of the current input character according to a preset key table;
根据所述终端的倾斜方向和所述当前输入字符的位置在所述键^ 中获取更新 字符。 An update character is obtained in the key ^ according to the tilt direction of the terminal and the position of the current input character.
在第三种可能的实现方式中, 结合第二种可能的实现方式, 所述 居 所 冬端的倾斜方向和所述当前字符的位置在所述键 中获取更新字符包括: 根据所述终端的倾斜方向和所述当前输入字符的位置在键位表中获取 待选字符; In a third possible implementation manner, in combination with the second possible implementation manner, the tilting direction of the winter end of the residence and the position of the current character acquiring the updated character in the key comprises: according to the tilt direction of the terminal And obtaining the candidate character in the key table according to the position of the current input character;
当所述待选字符有多个时, 获取与所述当前输入字符相邻的字符作为 所述更新字符。 When there are multiple characters to be selected, a character adjacent to the current input character is obtained as the update character.
在第四种可能的实现方式中, 结合第三种可能的实现方式, 所述获取 与所述当前输入字符相邻的字符作为所述更新字符包括: In a fourth possible implementation, in combination with the third possible implementation manner, the acquiring, by the character adjacent to the current input character, the updated character includes:
获取与所述当前输入字符相邻的字符; Obtaining a character adjacent to the current input character;
当所述相邻的字符有多个时, 按照输入顺序将所述当前输入字符和各 所述相邻字符组合作为待检测组合; 断结果为是时, 将组成所述待检测组合的相邻的字符作为所述更新字符。 When there are multiple adjacent characters, the current input character and each of the adjacent characters are combined as a combination to be detected according to an input sequence; when the result is YES, the adjacent combinations of the to-be-detected combination are to be formed. The character is used as the update character.
在第五种可能的实现方式中, 结合第三种可能的实现方式或第四种可 能实现的方式, 还包括: In a fifth possible implementation manner, in combination with the third possible implementation manner or the fourth possible implementation manner, the method further includes:
当所述更新字符有多个时, 向用户展示所述多个更新字符以使用户从 所述多个更新字符中选择一个更新字符; When there are multiple update characters, presenting the plurality of update characters to the user to select a update character from the plurality of update characters;
所述将所述当前输入字符替换为所述更新字符包括: 将所述当前输入字符替换为所述一个更新字符。 The replacing the current input character with the update character includes: The current input character is replaced with the one updated character.
本发明第二方面提供一种纠正输入错误的装置, 包括: A second aspect of the present invention provides an apparatus for correcting an input error, including:
第一获取单元, 用于在接^ ^终端倾斜的通知后, 获取当前瑜入字符, 端倾斜的通知包括所述冬端的倾斜方向; a first obtaining unit, configured to acquire a current yoga character after receiving the notification of the terminal tilt, and the notification of the end tilt includes the tilt direction of the winter end;
第二获取单元, 用于根据所述终端的倾斜方向获取更新字符; a second acquiring unit, configured to acquire an update character according to the tilt direction of the terminal;
替换单元, 用于将所述当前输入字符替换为所述更新字符。 And a replacement unit, configured to replace the current input character with the update character.
在第一种可能的实现方式中, 根据第二方面, 所述终端倾斜的通知还 包括终端保持倾斜的时间和倾斜角度; 所述装置还包括判断单元, 所述判断 单元用于: In a first possible implementation, according to the second aspect, the notification of the terminal tilting further includes a time and a tilt angle at which the terminal remains tilted; the device further includes a determining unit, wherein the determining unit is configured to:
判断所述终端保持倾斜的时间是否处于预设时间区间, 以及判断所述 倾斜角度是否处于预设角度区间; Determining whether the time when the terminal remains tilted is in a preset time interval, and determining whether the tilt angle is in a preset angle interval;
所述第一获取单元, 具体用于在所述判断单元判断所述终端保持倾斜 的时间在所述预设时间区间, 且所述倾斜角度处于预设角度区间时, 执行 获取当前输入字符的操作。 The first obtaining unit is specifically configured to perform an operation of acquiring a current input character when the determining unit determines that the time when the terminal is kept tilted is in the preset time interval, and the tilt angle is in a preset angle interval .
在第二种可能的实现方式中, 结合第二方面或第一种可能的实现方 式, 所述第二获取单元包括: In a second possible implementation manner, in combination with the second aspect or the first possible implementation manner, the second obtaining unit includes:
获耳又位置子单元, 用于根 设的键 ^¾取所述当前输入字符的位置; 获取更新字符子单元, 用于根据所述终端的倾斜方向和所述当前输入字符的位 置在所述谢錄中获取更新字符。 And an ear position subunit, wherein the key for the rooting takes the position of the current input character; and the updated character subunit is obtained, according to the tilt direction of the terminal and the position of the current input character Xie Luzhong gets updated characters.
在第三种可能的实现方式中, 结合第二种可能的实现方式, 所述获取 更新字符子单元 用于: In a third possible implementation manner, in combination with the second possible implementation manner, the obtaining the update character subunit is used to:
根据所述终端的倾斜方向和所述当前输入字符的位置在键位表中获取 待选字符; Obtaining a candidate character in the key table according to the tilt direction of the terminal and the position of the current input character;
当所述待选字符有多个时, 获取与所述当前输入字符相邻的字符作为 所述更新字符。 When there are multiple characters to be selected, a character adjacent to the current input character is obtained as the update character.
在第四种可能的实现方式中, 结合第三种可能的实现方式, 所述获取 更新字符子单元 用于: In a fourth possible implementation, in combination with the third possible implementation, the obtaining the update character subunit is used to:
根据所述终端的倾斜方向和所述当前输入字符的位置在键位表中获取 待选字符; Obtaining a candidate character in the key table according to the tilt direction of the terminal and the position of the current input character;
当所述待选字符有多个时, 获取与所述当前输入字符相邻的字符; 当所述相邻的字符有多个时, 按照输入顺序将所述当前输入字符和各 所述相邻字符组合作为待检测组合; Obtaining a character adjacent to the current input character when there are multiple characters to be selected; When there are multiple adjacent characters, the current input character and each of the adjacent characters are combined as a combination to be detected according to an input sequence;
判断预设的字词库或预设的字符組合是否存在所述待检测组合, 当判 断结果为是时, 将组成所述待检测组合的相邻的字符作为所述更新字符。 Determining whether the preset word library or the preset character combination has the combination to be detected, and when the judgment result is YES, the adjacent characters constituting the combination to be detected are used as the update character.
在第五种可能的实现方式中, 结合第三种可能的实现方式或笫四种可 能实现的方式, 还包括: In a fifth possible implementation manner, in combination with the third possible implementation manner or the four possible implementation manners, the method further includes:
返回单元, 用于当所述更新字符有多个时, 向用户展示所述多个更新字 符以使用户从所述多个更新字符中选择一个更新字符; 所述替换单元, 具 体用于将所述当前输入字符替换为所述一个更新字符。 a returning unit, configured to: when the plurality of updated characters have a plurality of updated characters, display the plurality of updated characters to enable a user to select one of the plurality of updated characters; the replacing unit is specifically used to The current input character is replaced with the one updated character.
本发明第三方面提供一种终端, 包括如上任一项所述的纠正输入错 i吴的装 置。 A third aspect of the present invention provides a terminal comprising the apparatus for correcting an input error as described in any one of the preceding claims.
由上述技术方案可知, 本发明提供的纠正输入错误的方法、 装置与终 端, 当用户发现输入字符错误时, 可采用倾斜终端的方式选择更新字符来 替换错误输入的字符, 这样可以避免用户手动删除错误输入的字符以及避 免用户再次输入错误, 操作简单, 且提高输入效率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。 It can be seen from the above technical solution that the method, device and terminal for correcting input errors provided by the present invention can replace the incorrectly input characters by selecting an update character by using a tilt terminal when the user finds that the input character is wrong, so that the user can be manually deleted. Incorrectly entered characters and avoiding user input errors again, the operation is simple, and the input efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为根据本发明一实施例的纠正输入错误的方法的流程示意图; 图 2为根据本发明另一实施例的糾正输入错误的方法的流程示意图; 图 3为根据本发明另一实施例的 QWERTY键盘的部分示意图; 图 4为根据本发明又一实施例的纠正输入错误的装置的结构示意图; 图 5为根据本发明再一实施例的纠正输入错误的装置的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。 1 is a flow chart of a method for correcting an input error according to an embodiment of the present invention; FIG. 2 is a flow chart showing a method for correcting an input error according to another embodiment of the present invention; FIG. 3 is a schematic diagram of a method for correcting an input error according to another embodiment of the present invention; FIG. 4 is a schematic structural diagram of an apparatus for correcting an input error according to still another embodiment of the present invention; and FIG. 5 is a schematic structural diagram of an apparatus for correcting an input error according to still another embodiment of the present invention. detailed description The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一 Embodiment 1
本实施例提供一种纠正输入错误的方法, 其适用于所有采用触摸屏的 终端。 本实施例的纠正输入错误的方法的执行主体为纠正输入错误的装 置, 该纠正输入错误的装置集成于终端中。 This embodiment provides a method of correcting an input error, which is applicable to all terminals employing a touch screen. The executor of the method for correcting an input error of this embodiment is a device for correcting an input error, and the device for correcting the input error is integrated in the terminal.
图 1为根据本实施例的纠正输入错误的方法流程示意图, 该实施例包 括: 1 is a flow chart showing a method of correcting an input error according to the embodiment, and the embodiment includes:
步骤 101, 在接^ iJ终端倾斜的通知后, 获取当前输入字符, 终端倾斜的通知 包# ^冬端的倾斜方向。 Step 101: After receiving the notification of the tilt of the iJ terminal, obtain the current input character, and the tilt direction of the notification packet #^ winter end of the terminal tilt.
接收的终端倾斜的通知可以由终端内的重力感应装置发送, 重力感应装置可以 判断终端是否倾斜以及倾斜方向, 当重力感应装置判断出终端发生倾斜时, 向纠正 输入错 i吴的装置发送终端倾斜的通知, 该终端倾斜的通知中包 冬端的倾斜方向。 当前输入字符即用户当前通过虚拟键盘输入的字符。 当用户发现误 入字符时, 即 可采取倾^ έ冬端的 , 以进^ "后续步骤纠正输入 i吴。 The notification of the received terminal tilt can be sent by the gravity sensing device in the terminal, and the gravity sensing device can determine whether the terminal is tilted or tilted. When the gravity sensing device determines that the terminal is tilted, the device sends a terminal tilt to the device that corrects the input error. The notification, the terminal tilts the notification in the direction of the tilt of the winter end. The current input character is the character that the user is currently typing through the virtual keyboard. When the user finds a mistaken character, it can take the tweeting of the winter end to enter the next step to correct the input i Wu.
步據 102, 根据终端的倾斜方向获取更新字符。 According to step 102, an update character is obtained according to the tilt direction of the terminal.
更新字符为用来替换 4 吴输入字符的字符。 纠正输入错 i吴的装置可通过很多种 方式来获取更新字符, 例如可通过终端倾斜的方向来自动确定更新字符; 也可以在 根据终端倾斜的方向确定有多个更新字符时, 在虚拟 t盘上突出显示(例如以高亮 或 ^ife的形式)该多个更新字符, 由用户从该多个更新字符中选择一个更新字符, 其中, 为了方便用户选择, 还可以提供虛拟确认键, 用户可以直接按该虚拟确认键 即可选择更新字符。 当然还有其它很多种获取更新字符的方式, 在此不再赞述。 The update character is the character used to replace the 4 Wu input character. The device for correcting the input error can obtain the update character in many ways, for example, the update character can be automatically determined by the direction in which the terminal is tilted; or when there are multiple update characters according to the direction in which the terminal is tilted, the virtual t disk can be determined. The plurality of update characters are highlighted (for example, in the form of highlighting or ^ife), and the user selects one of the plurality of updated characters from the updated characters, wherein a virtual confirmation button may be provided for the convenience of the user, and the user may Simply press the virtual confirmation button to select the update character. Of course, there are many other ways to get updated characters, so I won't comment here.
步骤 103, 将当前输入字符替换为更新字符。 Step 103: Replace the current input character with the update character.
当获取到更新字符时, 糾正输入错误的装置就釆用该更新字符替换当 前输入字符, 即采用用户原本想要输入的字符替换用户错误输入的字符, 完成输入错误的糾正操作。 When the updated character is obtained, the device that corrects the input error replaces the current input character with the updated character, that is, the character that the user originally intended to input replaces the character that the user erroneously inputs, and the correct operation of the input error is completed.
本实施例提供的糾正输入错误的方法, 当用户发现输入字符错误时, 可采用倾斜终端的方式选择更新字符来替换错误输入的字符, 这样可以避 免用户手动删除错误输入的字符以及避免用户再次输入错误, 操作简单, 且提高输入效率。 The method for correcting an input error provided by this embodiment, when the user finds that the input character is wrong, You can use the tilt terminal to select the update character to replace the wrong input character. This can prevent the user from manually deleting the incorrectly entered characters and avoiding the user inputting the error again. The operation is simple and the input efficiency is improved.
实施例二 Embodiment 2
本实施例基于实施例一提供一种纠正输入错误的方法。 This embodiment provides a method for correcting an input error based on the first embodiment.
图 1根据本实施例的纠正输入错误的方法流程示意图,该实施例包括: 步骤 201 , 接收终端倾斜的通知, 终端倾斜的通知包括终端的倾斜方 向, 终端保持倾斜的时间和倾斜角度。 FIG. 1 is a schematic flowchart of a method for correcting an input error according to the embodiment. The embodiment includes: Step 201: Receive a notification of a tilt of the terminal, and the notification of the tilt of the terminal includes a tilt direction of the terminal, a time when the terminal is tilted, and a tilt angle.
步骤 202 , 判断终端保持倾斜的时间是否处于预设时间区间, 以及判 断倾斜角度是否处于预设角度区间, 当终端保持倾斜的时间在预设时间区 间, 且倾斜角度处于预设角度区间时, 执行步骤 203的操作, 否则停止操 作。 Step 202: Determine whether the time that the terminal keeps tilting is in a preset time interval, and determine whether the tilt angle is in a preset angle interval. When the terminal keeps tilting time in a preset time interval, and the tilt angle is in a preset angle interval, performing The operation of step 203, otherwise the operation is stopped.
本发明一个实施例判断终端保持倾斜时间是否处于预设时间区间, 以 及判断终端倾斜的角度是否处于预设角度区间, 当判断结果为是时, 再执 行步骤 203的操作。 本实施例中, 判断终端保持倾斜的时间和倾斜角度均 可以通过重力感应装置来判断。 One embodiment of the present invention determines whether the terminal keeps the tilt time in the preset time interval, and determines whether the tilt angle of the terminal is in the preset angle interval. When the determination result is yes, the operation of step 203 is performed. In this embodiment, the time at which the terminal is kept tilted and the tilt angle can be judged by the gravity sensing device.
本实施例的预设时间区间和预设角度区间均可根据实际需要进行设 定, 例如, 预设时间区间可以是 [30,40], [30,50] , [40,60] , [50,70] , [30,+ ∞)和[50,+∞)等, 其中,区间中数值的单位是毫秒; 预设角度区间可以是 [30,40] , [30,50] , [40,60] , [40,70]等, 其中, 区间中数值的单位是度(° )。 在实际生活中, 终端很容易被倾斜, 例如在车上时或者用户在手持终端时 想换个角度休息一下, 都有可能发生终端倾斜。 根据统计, 非用户故意的 终端倾斜, 其角度并不大, 持续时间有可能较短, 也可能较长。 为了减少 纠正输入错误的装置发生误判断的情况, 为终端倾斜时间预设时间区间, 为角度设定预设角度区间, 只有当时间处于预设时间区间且角度处于预设 角度区间时, 才进行后续糾正输入错误的方法的操作。 当然, 也可以根据 实际需要仅对保持倾斜的时间或倾斜角度进行判断, 具体不再赘述。 The preset time interval and the preset angle interval of the embodiment may be set according to actual needs. For example, the preset time interval may be [30, 40], [30, 50], [40, 60], [50 , 70], [30, + ∞) and [50, +∞), etc., where the unit of the value in the interval is milliseconds; the preset angle interval may be [30, 40], [30, 50], [40, 60], [40, 70], etc., where the unit of the value in the interval is degree (°). In real life, the terminal can be easily tilted. For example, when you are in the car or when you are in the terminal, you want to change your angle and rest. According to statistics, the non-user intentional terminal tilt is not large, and the duration may be shorter or longer. In order to reduce the misjudgment of the device that corrects the input error, the preset time interval is set for the terminal tilt time, and the preset angle interval is set for the angle, only when the time is in the preset time interval and the angle is in the preset angle interval. Subsequent operations to correct the method of entering the error. Of course, it is also possible to judge only the time or the tilt angle to be tilted according to actual needs, and details are not described herein.
需要指出的是, 终端保持倾斜指的是终端向一个方向倾斜。 It should be noted that the terminal is tilted to mean that the terminal is tilted in one direction.
步骤 203, 根据预设的键位 又当前输入字符的位置,并根据终端的倾斜方 向和当前输入字符的位置在键 中获取更新字符。 键位表为包括各按健位置的列表,例如各键盘的相对位置。例如,对于 QWERTY 键盘, 可以采用二维数组方式来设置键位表, 第一维为《fe ^在 4ί盘上的行数, 第二 维为按键在键盘上的列数, 存储的值为对应位置的字符。 具体实现方式可以是在键 中标出每个 周围的字符位置, 再通过字符位置查找相应的字符, 不再 资述。 Step 203: The position of the character is currently input according to the preset key position, and the updated character is obtained in the key according to the tilt direction of the terminal and the position of the currently input character. The key table is a list including the positions of the buttons, such as the relative positions of the keyboards. For example, for a QWERTY keyboard, a two-dimensional array can be used to set the key table. The first dimension is "fe ^ the number of rows on the 4 ο disc, the second dimension is the number of columns on the keyboard, and the stored value corresponds. The character of the location. The specific implementation manner may be that the position of each surrounding character is marked in the key, and then the corresponding character is searched by the character position, and the description is no longer performed.
本步骤中, 根据终端倾斜方向和当前字符的位置在键 中获取更新字符具 体可包括: In this step, obtaining the update character in the key according to the tilt direction of the terminal and the position of the current character may include:
根据终端倾斜方向和当前输入字符的位置在键位表中获取待选字符, 当待选字符有多个时, 获取与当前输入字符相邻的字符作为更新字符。 The candidate character is obtained in the key table according to the tilt direction of the terminal and the position of the currently input character. When there are multiple characters to be selected, the character adjacent to the current input character is obtained as an update character.
由于实际生活中, 用户输入 4 吴字符一^ ^发生在由于虚拟 之间的距离较 近, 造成 4 吴输入。 这样, 用户想要输入的正确字符通常是 4 i吴输入字符的相邻位 置, 例如相邻字符的左方、 左上方、 左下方、 右方、 右上方、 右下方、 上方或下方 所^ 的字符。 因此' 为了提高获取更新字符的效率, 本实施例中可以以当前输入 字符相邻的字符为更新字符。 可以理解的是, 在实际应用中, 根据终端倾斜的时间 的不同, 也可以以当前输入字符相邻的字符的相邻字符作为更新字符。 Due to the actual life, the user input 4 wu characters ^ ^ ^ occurs due to the closer distance between the virtual, resulting in 4 wu input. Thus, the correct character that the user wants to input is usually the adjacent position of the input character, such as the left side, the upper left side, the lower left side, the right side, the upper right side, the lower right side, the upper side or the lower side of the adjacent character. character. Therefore, in order to improve the efficiency of obtaining updated characters, in this embodiment, characters adjacent to the currently input character may be updated characters. It can be understood that, in practical applications, according to the time of the terminal tilting, the adjacent characters of the characters adjacent to the current input character may also be used as the update character.
图 3为 QWERTY键盘的部分示意图。 具体地, 如图 3所示, 假设 4 吴输入的 当前输入字符为 H, 当用户实际需 4入的正确字符为 G时,就将终端向左侧倾斜, 重力感应装置检测到终端倾斜的方向, 触发糾正输入 吴的装置从键錄中找出 H 左边相邻的字符为 G, 则将 G作为更新字符。 同理, 当用户实际需要 Γ入的正确字 符为 I时,就将终端向右侧倾斜,重力感应装置检测到终端倾斜的方向,触发纠正输 入 i吴的装置从键 中找出 Η右边相邻的字符为 I, 则将 I作为更新字符。 同样, 当用户实际需要输入的正确字符为 Y时, 就将终端向左上倾斜, 重力感应装置检测 到终端倾斜的方法, 触发纠正输入 4t吴的装置从键 中找出 H左上的字符 Y, 则 将 Y作为更新字符。 包括: Figure 3 is a partial schematic view of the QWERTY keyboard. Specifically, as shown in FIG. 3, it is assumed that the current input character of the input of Wu is H, and when the correct character that the user actually needs to enter is G, the terminal is tilted to the left side, and the gravity sensing device detects the direction of the terminal tilt. The device that triggers the correction input Wu finds from the key record that the character adjacent to the left side of H is G, and G is used as the update character. Similarly, when the user actually needs to insert the correct character as I, the terminal is tilted to the right, the gravity sensing device detects the direction in which the terminal is tilted, and the device that triggers the correction of the input i Wu finds the right adjacent to the right. The character is I, then I is used as the update character. Similarly, when the correct character that the user actually needs to input is Y, the terminal is tilted to the upper left, the gravity sensing device detects the tilt of the terminal, and the device that triggers the correction input 4t Wu finds the character Y on the left side of the H from the key. Use Y as the update character. Includes:
获取与当前输入字符相邻的字符; Get the character adjacent to the current input character;
当相邻的字符有多个时, 按照输入顺序将当前输入字符和各相邻字符 组合作为待检测组合; 果为是时, 将组成待检测组合的相邻的字符作为更新字符。 When there are multiple adjacent characters, the current input character and each adjacent character are combined as a combination to be detected according to the input order; If yes, the adjacent characters that make up the combination to be detected are used as update characters.
由于某些重力感应装置对终端倾斜方向的感应不是特别灵敏, 可能仅 能感知上、 下、 左和右四个方向。 以图 3举例来说, 当终端的当前输入字 符为 H时, 重力感应装置检测到终端向上倾斜, 则触发纠正输入错误的装 置从键位表中获取到位于 H上方的两个相邻字符分別是丫和11。 此时, 可以根据预设的字词库判断是否存在 HY以及 HU的这两个待检测组合, 在中文全拼输入法的状态下, 不存在 HY这样的待检测组合, 则纠正输入 错误的装置可以智能判断出更新字符应该是 U。 Since some gravity sensing devices are not particularly sensitive to the sensing of the tilt direction of the terminal, only the four directions of up, down, left and right may be perceived. For example, in FIG. 3, when the current input character of the terminal is H, the gravity sensing device detects that the terminal is tilted upward, and the device that triggers the correction of the input error obtains two adjacent characters located above the H from the key table. It is 丫 and 11. At this time, it is possible to determine whether there are two combinations of HY and HU to be detected according to the preset word library, and in the state of the Chinese full spell input method, there is no such combination to be detected as HY, and the device for correcting the input error is corrected. It can be intelligently judged that the update character should be U.
实际运用中, 还存在一种情况, 即更新字符存在多个, 此时向用户展 示多个更新字符以使用户从多个更新字符中选择一个更新字符, 这样就可 以将当前输入字符替换为该一个更新字符。 以图 3举例来说, 终端的当前 输入字符为 H时, 重力感应装置检测到终端向下倾斜, 则触发纠正输入错 误的装置从键位表中获取到位于 H上方的两个相邻字符分别是 B和 N。假 设在英文输入法的状态下, 同时存在 HB和 HN这两种待检测组合, 则糾 正错误的装置将 B和 N均作为更新字符, 并向用户展示多个更新字符, 该更新字符列表包括 B和 。 由于此时仅有两个字符供用户选择, 可以将 B和 N的间距设置得较大, 以避免用户选择错误。 In actual use, there is also a case where there are multiple update characters. At this time, the user is presented with multiple update characters to enable the user to select one update character from the plurality of update characters, so that the current input characters can be replaced with the An update character. For example, when the current input character of the terminal is H, the gravity sensing device detects that the terminal is tilted downward, and the device that triggers the correction of the input error obtains two adjacent characters located above the H from the key table. It is B and N. It is assumed that in the state of the English input method, there are two combinations of HB and HN to be detected at the same time, the device for correcting the error takes both B and N as update characters, and presents the user with a plurality of update characters, the update character list including B. with. Since there are only two characters for the user to select at this time, the spacing between B and N can be set larger to avoid user selection errors.
步骤 204 , 将当前输入字符替换为更新字符。 Step 204: Replace the current input character with the update character.
当纠正输入错误的装置仅获取到一个更新字符时, 可以自行采用该更 新字符替换当前输入字符; 当纠正输入错误的装置获取到多个更新字符 时, 可以向用户返回更新字符列表, 由用户从中选择一个更新字符; 也可 以在虚拟键盘上突出显示该多个更新字符, 由用户从中选择一个更新字 符; 糾正输入错误的装置根据用户的选择将当前输入字符替换为用户选择 的一个更新字符。 When the device that corrects the input error only obtains an update character, the update character can be used to replace the current input character; when the device that corrects the input error obtains multiple update characters, the user can return a list of updated characters, from which the user An update character is selected; the plurality of update characters can also be highlighted on the virtual keyboard, and an update character is selected by the user; the device for correcting the input error replaces the current input character with an update character selected by the user according to the user's selection.
根据本实施例的纠正输入错误的方法, 先智能判断终端倾斜时用户是 否想要替换输入字符, 并通过纠正输入错误的装置智能判断用户想要输入 的实际字符不仅可以省略用户的操作, 给用户带来极大的方便, 而且能够 尽量避免用户再次输入错误的字符, 提高了输入效率。 According to the method for correcting an input error according to the embodiment, it is first intelligently judged whether the user wants to replace the input character when the terminal is tilted, and intelligently determines the actual character that the user wants to input by correcting the input error device, and can not only omit the user's operation, and give the user It brings great convenience, and can avoid the user to input incorrect characters again, which improves the input efficiency.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: OM ( ead-Only Memory, 只读存储器)、 RAM ( Random Access Memory, 随机存储器) 、 磁碟或者光盘等各种可以存储 程序代码的介质。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions, and the foregoing program may be stored in a computer. In the readable storage medium, when the program is executed, the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: OM (ead-Only Memory), RAM (Random Access Memory) A variety of media that can store program code, such as a disk or a disc.
实施例三 Embodiment 3
本实施例提供一种纠正输入错误的装置, 用于执行实施例一的糾正输 入错误的方法。 该糾正输入错误的方法集成于终端中。 The present embodiment provides an apparatus for correcting an input error for performing the method of correcting an input error of the first embodiment. This method of correcting input errors is integrated in the terminal.
图 4为根据本实施例的纠正输入错误的装置的结构示意图, 如图 4所 示, 该糾正输入错误的装置包括第一获取单元 301、 第二获取单元 302和 替换单元 303。 4 is a schematic structural diagram of an apparatus for correcting an input error according to the present embodiment. As shown in FIG. 4, the apparatus for correcting an input error includes a first acquisition unit 301, a second acquisition unit 302, and a replacement unit 303.
其中, 第一获取单元 301与第二获取单元 302连接, 用于在接 ^ϋ^ΐΐ冬端 倾斜的通知后, 获取当前输入字符, 终端倾斜的通知包 ϋ端的倾斜方向; 第二获 取单元 302分别与第一获取单元 301和替换单元 303连接, 用于根据终端的倾斜方 向获取更新字符; 替换单元 303用于将当前输入字符替换为更新字符。 The first obtaining unit 301 is connected to the second obtaining unit 302, and is configured to obtain the current input character after the notification of the tilting of the winter end, and the tilting direction of the terminal end is notified by the terminal tilting; the second obtaining unit 302 Connected to the first obtaining unit 301 and the replacing unit 303, respectively, for acquiring updated characters according to the tilt direction of the terminal; the replacing unit 303 is configured to replace the current input characters with the updated characters.
该纠正输入错 i吴的装置的具 喿作方式与实施例一一致, 具体的, 第一获取单 元 301的搡怍方式与实施例一中的步骤 101一致, 第二获取单元 302的喿作方式与 实施例一中的步骤 102一致, 替换单元 303与实施例一中的步骤 103一致, 在此不 再赘述。 The method for correcting the input device is the same as that of the first embodiment. Specifically, the method of the first obtaining unit 301 is the same as the step 101 in the first embodiment, and the second acquiring unit 302 is configured. The method is the same as the step 102 in the first embodiment, and the replacement unit 303 is the same as the step 103 in the first embodiment, and details are not described herein again.
本实施例提供的纠正输入错误的装置, 当用户发现输入字符错误时, 可采用倾斜终端的方式选择更新字符来替换错误输入的字符, 这样可以避 免用户手动删除错误输入的字符以及避免用户再次输入错误, 操作简单, 且提高输入效率。 The device for correcting an input error provided by the embodiment, when the user finds that the input character is wrong, the user can select the update character to replace the incorrectly input character by using the tilt terminal, thereby preventing the user from manually deleting the incorrectly input character and avoiding the user input again. Errors, simple operation, and improved input efficiency.
实施例四 Embodiment 4
本实施例基于实施例三提供一种糾正输入错误的装置, 用于执行实施 例二的纠正输入错误的方法。 The present embodiment provides an apparatus for correcting an input error for performing the method of correcting an input error of the second embodiment based on the third embodiment.
图 5为根据本实施例的纠正输入错误的装置的结构示意图, 如图 5所 示, 该纠正输入错误的装置包括如实施例三所示的第一获取单元 301、 第 二获取单元 302和替换单元 303, 具体连接关系与实施例三一致, 在此不 再贅述。 本实施例中, 终端倾斜的通知还包括终端保持倾斜的时间和倾斜 角度,该纠正输入错误的装置还包括判断单元 401 ,其与第一获取单元 301 连接, 用于判断终端保持倾斜的时间是否处于预设时间区间, 以及判断倾 斜角度是否处于预设角度区间。 FIG. 5 is a schematic structural diagram of an apparatus for correcting an input error according to the embodiment. As shown in FIG. 5, the apparatus for correcting an input error includes a first acquiring unit 301, a second acquiring unit 302, and a replacement as shown in the third embodiment. The unit 303 is the same as the third embodiment, and is not described here. In this embodiment, the notification of the terminal tilting further includes a time and a tilt angle at which the terminal is kept tilted. The device for correcting the input error further includes a determining unit 401, which is coupled to the first acquiring unit 301. The connection is used to determine whether the time when the terminal remains tilted is in a preset time interval, and whether the tilt angle is in the preset angle interval.
第一获取单元 301具体用于在判断单元 401判断终端保持倾斜的时间 在预设时间区间,以及判断倾斜角度是否处于预设角度区间。更为具体地, 第一获取单元 301用于在判断单元 401判断终端保持倾斜的时间在预设时 间区间,且倾斜角度处于预设角度区间时,执行获取当前输入字符的操作。 The first obtaining unit 301 is specifically configured to determine, at the determining unit 401, the time when the terminal remains tilted in the preset time interval, and determine whether the tilt angle is in the preset angle interval. More specifically, the first obtaining unit 301 is configured to perform an operation of acquiring the current input character when the determining unit 401 determines that the time when the terminal remains tilted is in the preset time interval, and the tilt angle is in the preset angle interval.
其中, 第二获取单元 302包括获取位置子单元 402和获取更新字符子 单元 403 , 获取位置子单元 402分别与第一获取单元 301、 获取更新字符 子单元 403连接,该获取位置子单元 402用于根据预设的键位表获取当前输入 字符的位置; 获取更新字符子单元 403可以分别与获 立置子单元 402和替换单元 303连接, 用于根据终端的倾斜方向和当前输入字符的位置在键位表中获取更新字 符。 The second obtaining unit 302 includes an acquiring location sub-unit 402 and an obtaining update character sub-unit 403. The acquiring location sub-unit 402 is connected to the first obtaining unit 301 and the acquiring updated character sub-unit 403, respectively. Acquiring the position of the current input character according to the preset key table; the obtaining update character sub-unit 403 may be respectively connected with the obtained standing sub-unit 402 and the replacing unit 303, and configured to be in accordance with the tilt direction of the terminal and the position of the currently input character. Get updated characters in the bit table.
该获取更新字符子单元 403具体用于根据终端的倾斜方向和当前输入字符 的位置在键位表中获取待选字符, 当待选字符为多个时, 获取与当前输入 字符相邻的相邻字符作为更新字符。 The obtaining update character sub-unit 403 is specifically configured to obtain a candidate character in the key table according to the tilt direction of the terminal and the position of the currently input character. When the number of characters to be selected is multiple, obtain the adjacent neighbor adjacent to the current input character. The character is used as an update character.
更为具体地, 该获取更新字符子单元 403用于: More specifically, the get update character subunit 403 is used to:
根据终端的倾斜方向和当前输入字符的位置在键位表中获取待选字 符; Obtaining a candidate character in the key table according to the tilt direction of the terminal and the position of the currently input character;
当待选字符有多个时, 获取与当前输入字符相邻的字符; When there are multiple characters to be selected, obtain characters adjacent to the currently input character;
当相邻的字符有多个时, 按照输入顺序将当前输入字符和各相邻字符 组合作为待检测组合; 果为是时, 将组成待检测组合的相邻的字符作为更新字符。 When there are multiple adjacent characters, the current input character and each adjacent character are combined as the combination to be detected according to the input order; if YES, the adjacent characters constituting the combination to be detected are used as the update character.
可选地,该纠正输入错误的装置还包括返回单元 404 ,该返回单元 404 可以分別与获取更新字符子单元 403和替换单元 303连接, 用于当更新字 符有多个时, 向用户展示多个更新字符以使用户从多个更新字符中选择一 个更新字符; 此时, 替换单元 303可以具体用于将当前输入字符替换为该选 择的一个更新字符。 Optionally, the device for correcting the input error further includes a returning unit 404, and the returning unit 404 may be respectively connected to the acquired update character sub-unit 403 and the replacing unit 303, and configured to display the user to the user when there are multiple updated characters. The character is updated to cause the user to select an update character from the plurality of update characters; at this time, the replacement unit 303 may be specifically configured to replace the current input character with the selected one of the update characters.
本实施例的纠正输入错误的装置的具 乘怍方式与实施例二一致, 在此不再赞 述。 根据本实施例的糾正输入错误的装置, 先智能判断终端倾斜时用户是 否想要替换输入字符, 并通过纠正输入错误的装置智能判断用户想要输入 的实际字符不仅可以省略用户的操作, 给用户带来极大的方便, 而且能够 尽量避免用户再次输入错误的字符, 提高了输入效率。 The method for correcting the input error of the embodiment is the same as that of the second embodiment, and will not be further described herein. According to the apparatus for correcting an input error according to the embodiment, it is first intelligently judged whether the user wants to replace the input character when the terminal is tilted, and intelligently judges the actual character that the user wants to input by correcting the input error device, and can not only omit the user's operation, and give the user It brings great convenience, and can avoid the user to input incorrect characters again, which improves the input efficiency.
本发明还提供一种终端, 包括上述实施例三或实施例四任一实施例所 描述的纠正输入错误的装置。 The present invention also provides a terminal comprising the apparatus for correcting an input error as described in any of the above-described Embodiment 3 or Embodiment 4.
实施例五 Embodiment 5
本实施例提供一种终端, 包括上述任一实施例的糾正输入错误的装 置。 The embodiment provides a terminal, including the apparatus for correcting an input error of any of the above embodiments.
本实施例的终端包括: 至少一个处理器, 以及存储器, 存储器用于存储可 4丸行 程序^ ^马, 其中, 处理器通过读耳^渚器中 诸的可执 4 呈序^马^行与可执行 矛呈序 ^^马 ^"应的 以用于: The terminal of this embodiment includes: at least one processor, and a memory, where the memory is used to store a program that can be executed by the processor, wherein the processor reads the executables in the earphones. With the executable spear in the order ^^马^" should be used for:
在接^ ^终端倾斜的通知后, 获取当前 r入字符, 终端倾斜的通知包 ϋ端的 倾斜方向; After the notification of the terminal tilting, the current r-in character is obtained, and the tilt direction of the terminal end of the notification packet is tilted;
根据终端的倾斜方向获取更新字符; Obtain an update character according to the tilt direction of the terminal;
将当前输入字符替换为更新字符。 Replace the current input character with the update character.
可选地, 所述终端倾斜的通知还包括终端保持倾斜的时间和倾斜角 度, 处理器通过读取^诸器中存储的可执行程序代码来运行与可执行程序代码对 应的程序执行获取当前输入字符之前, 还可以用于: Optionally, the notification of the terminal tilt further includes a time and a tilt angle at which the terminal is kept tilted, and the processor runs the program corresponding to the executable program code to obtain the current input by reading the executable program code stored in the device. Before the character, it can also be used to:
判断终端保持倾斜的时间是否处于预设时间区间, 以及判断倾斜角度 是否处于预设角度区间; Determining whether the time at which the terminal remains tilted is within a preset time interval, and determining whether the tilt angle is within a preset angle interval;
当终端保持倾斜的时间在预设时间区间,且倾斜角度处于预设角度区 间时, 执行获取当前输入字符的操作。 When the terminal is tilted for a preset time interval and the tilt angle is within the preset angle interval, an operation of acquiring the current input character is performed.
可选地, 处理器通过读取 者器中存储的可执行程序代码来运行与可执行程 序代码对应的程序, 用于根据终端的倾斜方向获取更新字符时, 可具体为: 根据预设的键位表获取当前输入字符的位置; Optionally, the processor runs the program corresponding to the executable program code by using the executable program code stored in the reader, and is configured to: when acquiring the update character according to the tilt direction of the terminal, specifically: according to the preset key The bit table obtains the position of the currently input character;
根据终端的倾斜方向和当前输入字符的位置在键 中获取更新字符。 The update character is obtained in the key according to the tilt direction of the terminal and the position of the currently input character.
可选地, 处理器通过读取^ ¾器中存储的可执行程序代码来运行与可执行程 序^ s马对应的程序, 用于根据倾斜方向和当前字符的位置在键位表中获取更新字符 时, 可为: 根据终端的倾斜方向和当前输入字符的位置在键位表中获取待选字 符; Optionally, the processor runs a program corresponding to the executable program by reading the executable program code stored in the device, and is configured to obtain the update character in the key table according to the tilt direction and the position of the current character. When, it can be: Obtaining a candidate character in the key table according to the tilt direction of the terminal and the position of the currently input character;
当待选字符为有个时, 获取与当前输入字符相邻的字符作为更新字 符。 When the candidate character is one, the character adjacent to the currently input character is obtained as the update character.
可选地, 处理器通过读取 器中存储的可执行程序代码来运行与可执行程 序代码对应的程序, 用于获取与当前输入字符相邻的字符作为更新字符时, 具体可为: Optionally, the processor runs the program corresponding to the executable program code by using the executable program code stored in the reader, and is used to obtain a character adjacent to the currently input character as the update character, which may be specifically:
获取与当前输入字符相邻的字符; Get the character adjacent to the current input character;
当相邻的字符为有个时, 按照输入顺序将当前输入字符和各相邻字符 组合作为待检测组合; 果为是时, 将组成待检测组合的相邻的字符作为更新字符。 When there is one adjacent character, the current input character and each adjacent character are combined as the combination to be detected according to the input order; if YES, the adjacent characters constituting the combination to be detected are used as the update character.
可选地, 处理器还可以通过读取存储器中存储的可执行程序代码来运行与 可^^亍程序 ^^马对应的考呈序, 用于: Optionally, the processor can also run the test sequence corresponding to the executable program by reading the executable program code stored in the memory, for:
当更新字符有多个时, 向用户展示多个更新字符以使用户从多个更新 字符中选择一个更新字符; When there are multiple update characters, the user is presented with a plurality of update characters to enable the user to select one update character from the plurality of update characters;
这样, 当处理器通过读耳^ I器中^诸的可执行程序^^马 行与可执行程 序^^对应的程序, 用于将当前输入字符替换为更新字符时, 可为: 将当前输 入字符替换为一个更新字符。 In this way, when the processor replaces the current input character with the update character by reading the executable program in the ear device, the program corresponding to the executable program ^^ can be: The character is replaced with an update character.
本实施例提供的终端, 当用户发现输入字符错误时, 可釆用倾斜终端 的方式选择更新字符来替换错误输入的字符, 这样可以避免用户手动删除 错误输入的字符以及避免用户再次输入错误,操作筒单,且提高输入效率。 In the terminal provided by this embodiment, when the user finds that the input character is wrong, the user can select the update character to replace the incorrectly input character by using the tilt terminal, thereby preventing the user from manually deleting the incorrectly input character and avoiding the user inputting the error again. The order is single and the input efficiency is improved.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的范围。 It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210362761.2A CN102929512B (en) | 2012-09-26 | 2012-09-26 | Method and device for correcting input error, and terminal |
| CN201210362761.2 | 2012-09-26 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014048153A1 true WO2014048153A1 (en) | 2014-04-03 |
Family
ID=47644332
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2013/078637 Ceased WO2014048153A1 (en) | 2012-09-26 | 2013-07-02 | Method and device for correcting input error and terminal |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102929512B (en) |
| WO (1) | WO2014048153A1 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102929512B (en) * | 2012-09-26 | 2015-05-06 | 华为技术有限公司 | Method and device for correcting input error, and terminal |
| CN106020679A (en) * | 2016-04-29 | 2016-10-12 | 深圳市金立通信设备有限公司 | Input control method and terminal |
| CN106125912A (en) * | 2016-06-16 | 2016-11-16 | 深圳市金立通信设备有限公司 | A kind of character manipulation method and terminal |
| CN114817882A (en) * | 2022-06-30 | 2022-07-29 | 南通透灵信息科技有限公司 | Intelligent verification method and system based on data similarity |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7240293B2 (en) * | 2000-05-11 | 2007-07-03 | Robert Bosch Gmbh | Method and device for inputting a sequence of characters |
| CN101788855A (en) * | 2010-03-09 | 2010-07-28 | 华为终端有限公司 | Method, device and communication terminal for obtaining user input information |
| CN102681667A (en) * | 2012-04-24 | 2012-09-19 | 华为终端有限公司 | Text input backspacing method and terminal |
| CN102929512A (en) * | 2012-09-26 | 2013-02-13 | 华为技术有限公司 | Method and device for correcting input error, and terminal |
-
2012
- 2012-09-26 CN CN201210362761.2A patent/CN102929512B/en not_active Expired - Fee Related
-
2013
- 2013-07-02 WO PCT/CN2013/078637 patent/WO2014048153A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7240293B2 (en) * | 2000-05-11 | 2007-07-03 | Robert Bosch Gmbh | Method and device for inputting a sequence of characters |
| CN101788855A (en) * | 2010-03-09 | 2010-07-28 | 华为终端有限公司 | Method, device and communication terminal for obtaining user input information |
| CN102681667A (en) * | 2012-04-24 | 2012-09-19 | 华为终端有限公司 | Text input backspacing method and terminal |
| CN102929512A (en) * | 2012-09-26 | 2013-02-13 | 华为技术有限公司 | Method and device for correcting input error, and terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102929512A (en) | 2013-02-13 |
| CN102929512B (en) | 2015-05-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107466077B (en) | Network switching method and mobile terminal | |
| JP6790259B2 (en) | Methods and terminals to prevent accidental touches | |
| US9244594B2 (en) | Electronic apparatus and method for interacting with application in electronic apparatus | |
| JP5910345B2 (en) | Character input program, information processing apparatus, and character input method | |
| CN105320417B (en) | Page switching method and client | |
| US9836443B2 (en) | Changing text input modes | |
| KR20140148472A (en) | Text select and enter | |
| JP5700511B2 (en) | Mobile terminal, authentication method, and program | |
| US20120221969A1 (en) | Scrollable list navigation using persistent headings | |
| CN103473012A (en) | Screen capturing method, device and terminal equipment | |
| JP5728629B2 (en) | Information processing apparatus, information processing apparatus control method, program, and information storage medium | |
| US20150339052A1 (en) | Method and apparatus for displaying shortcut on mobile terminal and storage medium | |
| CN111507146B (en) | Fingerprint identification device and method | |
| CN103425412A (en) | Input error correction method and device, automatic error correction method and device, and mobile terminal | |
| WO2013143400A1 (en) | Method and device for selecting content | |
| WO2014082406A1 (en) | Screen unlocking method, apparatus, and device | |
| CN109428969A (en) | Edge touch control method, device and the computer readable storage medium of double screen terminal | |
| WO2015062511A1 (en) | Smart television cursor control method and device therefor | |
| WO2014048153A1 (en) | Method and device for correcting input error and terminal | |
| CN107995973A (en) | An information processing method and device | |
| CN106295282B (en) | Method and device for inputting password by fingerprint of mobile terminal | |
| CN106951165A (en) | A kind of word editing method and mobile terminal | |
| US20150207923A1 (en) | Method, terminal and computer storage medium for triggering a communication with a contact | |
| CN112015279B (en) | Key false touch error correction method and device | |
| KR101385625B1 (en) | Method, apparatus, and recording medium for processing touch process |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13842715 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 13842715 Country of ref document: EP Kind code of ref document: A1 |