CN110399045B - Input method and device - Google Patents
Input method and device Download PDFInfo
- Publication number
- CN110399045B CN110399045B CN201810380344.8A CN201810380344A CN110399045B CN 110399045 B CN110399045 B CN 110399045B CN 201810380344 A CN201810380344 A CN 201810380344A CN 110399045 B CN110399045 B CN 110399045B
- Authority
- CN
- China
- Prior art keywords
- candidate
- language type
- candidate item
- target language
- conversion result
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000006243 chemical reaction Methods 0.000 claims abstract description 170
- 230000000875 corresponding effect Effects 0.000 claims description 46
- 230000002596 correlated effect Effects 0.000 claims description 4
- 238000012545 processing Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000003825 pressing Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000010079 rubber tapping Methods 0.000 description 2
- 241001465805 Nymphalidae Species 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0236—Character input methods using selection techniques to select from displayed items
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
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)
Abstract
The embodiment of the invention provides an input method and device, wherein the method comprises the following steps: receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area; receiving a first trigger operation, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type; the target language type is different from the first language type; and converting the candidate item to obtain a candidate item conversion result expressed in the target language type. The embodiment of the invention can effectively reduce the complicated operation of the user and improve the input efficiency of the user.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an input method and device.
Background
When a user applies using an input method, a default language type, such as a chinese font, is typically set, and the input method provides candidates corresponding to the default language type. If a user wants to input contents of other languages in the process of inputting Chinese, the user needs to switch the current language type applied by the input method from Chinese to the target language before inputting. After the user finishes inputting the target language, the user switches back to Chinese for continuous input. This results in that when the user needs to insert a language of another language into the common language, the switching operation needs to be repeatedly performed, which reduces the input efficiency. The existing input method has the defects of complicated operation and low user input efficiency during language switching.
Disclosure of Invention
The embodiment of the invention provides an input method and device, aiming at solving the technical problems of complex operation and low input efficiency when different language types are switched for input in the prior art.
Therefore, the embodiment of the invention provides the following technical scheme:
In a first aspect, an embodiment of the present invention provides an input method, including: receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area; receiving a first trigger operation, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type; the target language type is different from the first language type; and converting the candidate item to obtain a candidate item conversion result expressed in the target language type.
In a second aspect, an embodiment of the present invention provides an input device, including: a candidate display unit for receiving a user input, and displaying candidates corresponding to the user input and represented in a first language type in a candidate display area; the target language type determining unit is used for receiving a first trigger operation and determining a target language type corresponding to the first trigger operation according to the corresponding relation between the preset trigger operation and the target language type; the target language type is different from the first language type; and the conversion unit is used for converting the candidate items to obtain candidate item conversion results expressed in the target language types.
In a third aspect, embodiments of the present invention provide an apparatus for input comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for: receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area; receiving a first trigger operation, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type; the target language type is different from the first language type; and converting the candidate item to obtain a candidate item conversion result expressed in the target language type.
In a fourth aspect, embodiments of the present invention provide a machine-readable medium having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform the input method as described in the first aspect.
The input method and the input device provided by the embodiment of the invention can receive the user input and display the candidate items which correspond to the user input and are represented by the first language type in the candidate item display area. Responding to a first trigger operation, determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type, and converting the candidate item to obtain a candidate item conversion result expressed by the target language type. In the embodiment of the invention, the candidate conversion result expressed by the target language type can be obtained in response to the triggering operation of the user, and the user can directly operate to screen-output the candidate conversion result, so that the complicated operation of the user is reduced, and the input efficiency of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
FIG. 1 is a flow chart of an input method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an input device according to an embodiment of the invention;
FIG. 3 is a block diagram of an input device, according to an example embodiment;
Fig. 4 is a block diagram of a server shown according to an example embodiment.
Detailed Description
The embodiment of the invention provides an input method and device, which can reduce complicated operation when switching input of different language types, effectively improve input efficiency and improve user experience.
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
An input method according to an exemplary embodiment of the present invention will be described with reference to fig. 1.
It should be noted that, in the embodiment of the present invention, the default language type applied by the input method is exemplified as chinese. In the present embodiment, the term "candidate display area" generally refers to an area technical term for presenting candidate input words. The term "character onscreen area" generally refers to an area of the onscreen where a user selected candidate input word, such as an input box, is output. The technical term "code string editing area" generally refers to an area for displaying a code string input by a user. The technical term "voice edit area" generally refers to an area for providing voice input edits.
Referring to fig. 1, a flowchart of an input method according to an embodiment of the present invention is provided. As shown in fig. 1, may include:
S101, receiving user input, and displaying candidates which correspond to the user input and are expressed in a first language type in a candidate display area.
Wherein the user input may be a coded string of user input. For example, user input encoding string "xiexie" is received and user input encoding string "xiexie" may be presented in the encoding string editing area. The manner of inputting the code string by the user may be keyboard input, handwriting input or other input manners, which are not limited herein. In some embodiments, the user input may also be a user's voice input, and the input device is configured to receive the voice input and display candidates corresponding to the user's voice input.
The first language type is a language type currently set by a user, such as a Chinese simplified body. The language types may include language types, font types, or family types, among others. By way of example, the language type may be a Chinese type, such as Chinese, english, korean, and the like. The language type may also be a font type, such as chinese simplified, chinese traditional, and the like. The language types may also be types of language systems, such as the Tibetan, indobby, altai, and the like. For example, the language types commonly used by the user may include chinese simplified, chinese traditional, korean, english, etc. Upon receiving user input, one or more candidates represented in a default language type may be displayed in the candidate display area. For example, a user uses an input method to input, uses a common language to input, such as pinyin input under a pinyin input method, then uses the input method to perform corresponding candidate conversion, and performs candidate error correction, ordering frequency modulation, association, and the like, thereby providing corresponding candidates for the user to use. For example, when the user inputs the coded string "xiexie" when the user currently sets the language type to chinese, the input method application may display candidates "thank you", "rest", "write", "crab", "shoe", etc. expressed in chinese simplified form in the candidate display area.
S102, receiving a first trigger operation, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type.
In specific implementation, a corresponding relationship between the trigger operation and the target language type can be set. In one embodiment, a correspondence between the strength of the trigger operation and the target language type may be set. For example, tapping the corresponding chinese simplified form, tapping the corresponding chinese traditional form, and pressing the corresponding korean. In another embodiment, a correspondence of a gesture triggering an operation to a target language type may be set. For example, slide left for chinese simplified, slide right for chinese traditional, slide up for korean, etc. Of course, the correspondence between the trigger operation and the target language type may be other manners, which are not limited herein.
In specific implementation, the user can select a single candidate item through a first trigger operation, and a conversion result of the single candidate item is obtained. The user can also select a plurality of candidates through the first triggering operation, and conversion results of the plurality of candidates are obtained.
In some embodiments, the converting the candidate to obtain a candidate conversion result expressed in the target language type includes: when the first triggering operation meets a first preset condition, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; and when the first triggering operation meets a second preset condition, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed in the target language type.
In some embodiments, the first triggering operation meeting a first preset condition includes: the duration time of the first triggering operation is a first preset time interval; the first triggering operation meeting the second preset condition comprises the following steps: the duration of the first triggering operation is a second preset time interval. For example, when the user lightly presses a candidate item and continues for 1S, it is determined that the candidate item meets a first preset condition, and at this time, a single candidate item corresponding to the lightly pressed operation is converted to obtain a conversion result of a traditional Chinese character. For another example, if the user continuously lightly presses the candidate item, and the duration is 3S, it is determined that the candidate item meets the second preset condition, and at this time, the plurality of candidate items displayed in the item display area are converted, so as to obtain a plurality of candidate item conversion results represented by traditional Chinese. The first preset time interval and the second preset time interval may be set according to needs, and are not limited herein.
In other embodiments, the first triggering operation meeting a first preset condition includes: the operation area of the first triggering operation is a first area; the first triggering operation meeting the second preset condition comprises the following steps: the operation area of the first triggering operation is a second area. For example, if the region of the first triggering operation of the user is a certain candidate of the candidate display region, it is determined that the first preset condition is met, and the candidate is converted to obtain a conversion result. If the region of the first triggering operation of the user is other regions, such as a space key, all the candidate items are converted, and a plurality of conversion results are obtained. The range of the first region and the range of the second region may be set in advance, and are not limited herein.
In still other embodiments, the first triggering operation satisfying a first preset condition includes: the operation force of the first triggering operation is a first preset force interval; the first triggering operation meeting the second preset condition comprises the following steps: the operation force of the first triggering operation is a second preset force interval. For example, if the operation strength of the leftward sliding operation of the user is 1N, determining that the leftward sliding operation meets a first preset condition, and converting a single candidate corresponding to the leftward sliding operation; and if the operation strength of the leftward sliding operation of the user is 5N, determining that the leftward sliding operation meets a second preset condition, and converting a plurality of candidates displayed in the candidate display area. Of course, the foregoing is illustrative only and is not to be construed as limiting the application.
It should be noted that, the setting of the correspondence between the first trigger operation and the target language type should be distinguished from the setting that the first trigger operation satisfies the first preset condition, so that the input application can execute corresponding judgment and operation.
S103, converting the candidate items to obtain candidate item conversion results expressed in the target language types.
Specifically, the input method application identifies different trigger operations of the user, and converts the candidate item into a target language type corresponding to the corresponding trigger operation based on the corresponding relation between the different preset trigger operations and the target language type. Further, the input method application may also display the candidate conversion result. Specifically, the displaying the candidate conversion result includes: displaying the candidate conversion result in a candidate display area; or displaying the candidate conversion result in a character screen area. For example, the input method application may directly screen the candidate conversion result represented by the target language type to the input box, or may display the candidate conversion result in the candidate display area for the user to select.
Displaying the candidate conversion result in the candidate display area includes: the original candidate is replaced with the candidate conversion result in the candidate display area at the display position of the original candidate. For example, when the candidate conversion result is displayed, the display may be replaced at the position of the original candidate, that is, the user candidate conversion result may replace the original candidate. In some implementations, annotations of candidate conversion results may also be obtained; the displaying the candidate conversion result in the candidate display area includes: and displaying the annotation in association with the candidate conversion result. For example, the user may set whether to show a common language annotation. For example, after converting the candidate item "thank you" into Korean, it is displayed as[ Thank you ], facilitate user identification.
In other embodiments, when the candidate conversion result is displayed, the original candidate may be displayed in association with the candidate conversion result in the candidate display area. For example, the original candidate may still be displayed in the candidate display area, and a target candidate conversion result display area may be added below the original candidate to display the candidate conversion result. Of course, other manners of display are possible and are not limited herein.
It should be noted that, one candidate may correspond to multiple expressions under the target language type, and multiple candidate conversion results may be generated. And when the candidate conversion results are multiple, sorting the multiple candidate conversion results according to the above input of the character screen area and the word frequency or the word type of the candidate conversion results to obtain the candidate conversion result ranked first. The displaying the candidate conversion result comprises: and displaying the candidate conversion result arranged in the first position. For example, when the target language type is english, there are multiple candidate conversion results of "Thanks", "Thank you", "Thanks a lot", etc. corresponding to the chinese candidate; corresponding to the Chinese candidate item, a plurality of candidate item conversion results such as "purples", "aim", "objective", "goal" and the like can be ranked according to word types, word frequencies, contexts and the like at this time, and the candidate item conversion results ranked in the front are obtained. When displaying the candidate conversion result, only the top N bits, for example, the first candidate conversion result may be displayed.
In order to facilitate a clearer understanding of embodiments of the present invention in a specific context, a specific example will be described below. It should be noted that this specific example is only for the purpose of making the present invention more clearly known to those skilled in the art, but the embodiments of the present invention are not limited to this specific example.
For example, assume that the user defines the common language as: chinese simplified (default), chinese traditional, korean, and sets the correspondence of trigger operations to target language types: if the corresponding Chinese simplified body is tapped, the corresponding Chinese traditional body is tapped, and the corresponding Korean is tapped again. Several possible implementations are presented below:
(1) When the user lightly touches the candidate item, the Chinese simplified body of the candidate item is directly displayed;
(2) When the user lightly presses the candidate item, the Chinese traditional of the candidate item is directly displayed;
(3) When the user presses the candidate again, directly screening the Korean translation of the candidate;
(4) When the user continuously lightly presses the candidate display area, converting all the candidates in the candidate display area into corresponding Chinese traditional forms for the user to select;
(5) When the user continuously re-presses the candidate display area, all the candidates in the candidate display area are converted into corresponding Korean for the user to select.
For example, taking the input of "thank you" as an example, when the user inputs "xiexie", the input method application displays the chinese simplified candidates "thank you", "che you", "write", "crab", "shoe-on-shoe". If the user intends to screen the Chinese simplified "thank you", the user lightly touches the candidate "thank you"; if the user intends to screen the complex body "thank you", the user can screen the "thank you" by lightly pressing the "thank you" candidate; if the user intends to convert the candidate into traditional Chinese and select the traditional Chinese, the candidate boxes are continuously pressed lightly, so that the display results of the various candidates of the traditional Chinese can be displayed, such as 'thank you', 'che you', 'write', 'crab', 'shoe'. If the user intends to screen Korean "thank you", then the user presses the "thank you" candidate again to screenIf the user intends to convert all candidates into Korean, the Korean conversion result of all candidates can be presented by continuously re-pressing the operation of the candidate box, for example
According to the input method provided by the invention, the corresponding relation between the trigger operation and the target language type can be set, the user can obtain candidate item conversion results of different language types through different trigger operations, so that the input requirement of the target language can be realized, the operations such as keyboard switching are not needed, and the user can conveniently and rapidly use multilingual input.
Referring to fig. 2, a schematic diagram of an input device according to an embodiment of the invention is provided.
An input device 200, comprising:
A candidate display unit 201, configured to receive a user input, and display, in a candidate display area, candidates corresponding to the user input and represented in a first language type. The specific implementation of the candidate display unit 201 may be implemented with reference to step 101 of the embodiment shown in fig. 1.
A target language type determining unit 202, configured to receive a first trigger operation, and determine a target language type corresponding to the first trigger operation according to a preset correspondence between the trigger operation and the target language type; the target language type is different from the first language type. Wherein, the specific implementation of the target language type determining unit 202 may be implemented with reference to step 102 of the embodiment shown in fig. 1.
And a conversion unit 203, configured to convert the candidate to obtain a candidate conversion result represented by the target language type. The specific implementation of the conversion unit 203 may be implemented with reference to step 103 in the embodiment shown in fig. 1.
In some embodiments, the converting specifically includes:
The first conversion unit is used for determining one candidate item associated with the first trigger operation when the first trigger operation meets a first preset condition, converting the candidate item and obtaining a candidate item conversion result expressed by a target language type;
And the second conversion unit is used for converting the plurality of candidates displayed in the candidate display area when the first triggering operation meets a second preset condition, so as to obtain a plurality of candidate conversion results expressed in the target language type.
In some embodiments, the first conversion unit is specifically configured to: and when the duration of the first triggering operation is a first preset time interval, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type.
In some embodiments, the second conversion unit is specifically configured to: and when the duration of the first triggering operation is a second preset time interval, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed by the target language type.
In some embodiments, the first conversion unit is specifically configured to: and when the operation area of the first trigger operation is the first area, determining a candidate item associated with the first trigger operation, and converting the candidate item to obtain a candidate item conversion result expressed by the target language type.
In some embodiments, the second conversion unit is specifically configured to: and when the operation area of the first triggering operation is a second area, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed in the target language type.
In some embodiments, the first conversion unit is specifically configured to: when the operation strength of the first trigger operation is a first preset strength interval, determining a candidate item associated with the first trigger operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type.
In some embodiments, the second conversion unit is specifically configured to: when the operation intensity of the first triggering operation is a second preset intensity interval, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed by the target language type.
In some embodiments, the apparatus further comprises:
and the display unit is used for displaying the candidate conversion result.
In some embodiments, the display unit includes:
the on-screen display unit is used for displaying the candidate item conversion result in the character on-screen area; or alternatively
And the candidate item display unit is used for displaying the candidate item conversion result in a candidate item display area.
In some embodiments, the candidate display unit is specifically configured to:
Replacing the original candidate item with the candidate item conversion result in the candidate item display area at the display position of the original candidate item; or the original candidate item and the candidate item conversion result are displayed in a candidate item display area in a correlated mode.
In some embodiments, the apparatus further comprises:
an annotation obtaining unit for obtaining an annotation of the candidate conversion result;
the candidate display unit is specifically configured to: and displaying the annotation in association with the candidate conversion result.
In some embodiments, the apparatus further comprises:
the sorting unit is used for sorting the plurality of candidate conversion results according to the above input of the character screen area, the word frequency or the word type of the candidate conversion results when the candidate conversion results are a plurality of, and obtaining the candidate conversion result ranked at the first position;
the display unit is specifically configured to:
and displaying the candidate conversion result arranged in the first position.
The arrangement of each unit or module of the apparatus of the present invention may be implemented by referring to the method shown in fig. 1, which is not described herein.
Referring to fig. 3, a block diagram for an input device is shown according to an exemplary embodiment. Referring to fig. 3, a block diagram for an input device is shown according to an exemplary embodiment. For example, apparatus 300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 3, apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power supply component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the apparatus 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interactions between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
Memory 304 is configured to store various types of data to support operations at device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 304 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 306 provides power to the various components of the device 300. The power supply components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
The multimedia component 308 includes a screen between the device 300 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 300 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the device 300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 further comprises a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 314 includes one or more sensors for providing status assessment of various aspects of the apparatus 300. For example, the sensor assembly 314 may detect the on/off state of the device 300, the relative positioning of the components, such as the display and keypad of the apparatus 300, the sensor assembly 314 may also detect a change in position of the apparatus 300 or one component of the apparatus 300, the presence or absence of user contact with the apparatus 300, the orientation or acceleration/deceleration of the apparatus 300, and a change in temperature of the apparatus 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate communication between the apparatus 300 and other devices, either wired or wireless. The device 300 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication part 314 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 314 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
Specifically, an embodiment of the present invention provides an input device 300, including a memory 304, and one or more programs, wherein the one or more programs are stored in the memory 304 and configured to be executed by the one or more processors 320, the one or more programs comprising instructions for: receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area; receiving a first trigger operation, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type; the target language type is different from the first language type; and converting the candidate item to obtain a candidate item conversion result expressed in the target language type.
Further, the processor 320 is specifically configured to execute the one or more programs including instructions for: when the first triggering operation meets a first preset condition, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; and when the first triggering operation meets a second preset condition, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed in the target language type.
Further, the processor 320 is specifically configured to execute the one or more programs including instructions for: when the duration of the first triggering operation is a first preset time interval, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; when the duration of the first triggering operation is a second preset time interval, converting a plurality of candidates displayed in a candidate display area to obtain a plurality of candidate conversion results expressed by a target language type; or when the operation area of the first trigger operation is the first area, determining a candidate item associated with the first trigger operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; when the operation area of the first triggering operation is a second area, converting a plurality of candidates displayed in a candidate display area to obtain a plurality of candidate conversion results expressed in a target language type; or when the operation strength of the first triggering operation is a first preset strength interval, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; when the operation intensity of the first triggering operation is a second preset intensity interval, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed by the target language type.
Further, the processor 320 is specifically configured to execute the one or more programs including instructions for: displaying the candidate conversion result: displaying the candidate conversion result in a candidate display area; or displaying the candidate conversion result in a character screen area.
Further, the processor 320 is specifically configured to execute the one or more programs including instructions for: replacing the original candidate item with the candidate item conversion result in the candidate item display area at the display position of the original candidate item; or the original candidate item and the candidate item conversion result are displayed in a candidate item display area in a correlated mode.
Further, the processor 320 is specifically configured to execute the one or more programs including instructions for: obtaining comments of candidate conversion results; and displaying the annotation in association with the candidate conversion result.
Further, the processor 320 is specifically configured to execute the one or more programs including instructions for: when the candidate conversion results are multiple, sorting the multiple candidate conversion results according to the above input of the character screen area and the word frequency or the word type of the candidate conversion results to obtain the first candidate conversion result; and displaying the candidate conversion result arranged in the first position.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 304, including instructions executable by processor 320 of apparatus 300 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A machine-readable medium, for example, the machine-readable medium may be a non-transitory computer-readable storage medium, which when executed by a processor of an apparatus (terminal or server) causes the apparatus to perform an input method, the method comprising: receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area; receiving a first trigger operation, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between the preset trigger operation and the target language type; the target language type is different from the first language type; and converting the candidate item to obtain a candidate item conversion result expressed in the target language type.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 300 may vary considerably in configuration or performance and may include one or more central processing units (central processing units, CPUs) 322 (e.g., one or more processors) and memory 332, one or more storage mediums 330 (e.g., one or more mass storage devices) that store applications 342 or data 344. Wherein the memory 332 and the storage medium 330 may be transitory or persistent. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 322 may be configured to communicate with the storage medium 330 and execute a series of instruction operations in the storage medium 330 on the server 300.
The server 300 may also include one or more power supplies 326, one or more wired or wireless network interfaces 330, one or more input/output interfaces 338, one or more keyboards 336, and/or one or more operating systems 341, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden. The foregoing is merely illustrative of the embodiments of this invention and it will be appreciated by those skilled in the art that variations and modifications may be made without departing from the principles of the invention, and it is intended to cover all modifications and variations as fall within the scope of the invention.
Claims (19)
1. An input method, comprising:
Receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area;
Receiving a first trigger operation aiming at the candidate item, and determining a target language type corresponding to the first trigger operation according to a corresponding relation between a preset trigger operation and the target language type; different triggering operations correspond to different target language types; the target language type is different from the first language type;
when the first triggering operation meets a first preset condition, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type;
and when the first triggering operation meets a second preset condition, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed in the target language type.
2. The method according to claim 1, characterized in that:
the first triggering operation meeting a first preset condition includes: the duration time of the first triggering operation is a first preset time interval;
The first triggering operation meeting the second preset condition comprises the following steps: the duration time of the first triggering operation is a second preset time interval;
Or alternatively
The first triggering operation meeting a first preset condition includes: the operation area of the first triggering operation is a first area;
The first triggering operation meeting the second preset condition comprises the following steps: the operation area of the first triggering operation is a second area;
Or alternatively
The first triggering operation meeting a first preset condition includes: the operation force of the first triggering operation is a first preset force interval;
the first triggering operation meeting the second preset condition comprises the following steps: the operation force of the first triggering operation is a second preset force interval.
3. The method according to claim 1, wherein the method further comprises:
Displaying the candidate conversion result;
wherein the displaying the candidate conversion result includes:
Displaying the candidate conversion result in a candidate display area; or alternatively
And displaying the candidate conversion result in a character screen area.
4. The method of claim 3, wherein the displaying the candidate conversion results in a candidate display area comprises:
replacing the original candidate item with the candidate item conversion result in the candidate item display area at the display position of the original candidate item; or alternatively
And displaying the original candidate and the candidate conversion result in a candidate display area in an associated mode.
5. A method according to claim 3, characterized in that the method further comprises:
obtaining comments of candidate conversion results;
the displaying the candidate conversion result in the candidate display area includes:
And displaying the annotation in association with the candidate conversion result.
6. A method according to claim 3, characterized in that the method further comprises:
When the candidate conversion results are multiple, sorting the multiple candidate conversion results according to the above input of the character screen area and the word frequency or the word type of the candidate conversion results to obtain the first candidate conversion result;
the displaying the candidate conversion result comprises:
and displaying the candidate conversion result arranged in the first position.
7. An input device, comprising:
a candidate display unit for receiving a user input, and displaying candidates corresponding to the user input and represented in a first language type in a candidate display area;
the target language type determining unit is used for receiving a first trigger operation aiming at the candidate item, determining a target language type corresponding to the first trigger operation according to the corresponding relation between the preset trigger operation and the target language type, and enabling different trigger operations to correspond to different target language types; the target language type is different from the first language type;
the conversion unit is used for converting the candidate items to obtain candidate item conversion results expressed in the target language types;
The conversion unit specifically includes:
The first conversion unit is used for determining one candidate item associated with the first trigger operation when the first trigger operation meets a first preset condition, converting the candidate item and obtaining a candidate item conversion result expressed by a target language type;
And the second conversion unit is used for converting the plurality of candidates displayed in the candidate display area when the first triggering operation meets a second preset condition, so as to obtain a plurality of candidate conversion results expressed in the target language type.
8. The apparatus according to claim 7, wherein:
The first conversion unit is specifically configured to: when the duration of the first triggering operation is a first preset time interval, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type;
the second conversion unit is specifically configured to: when the duration of the first triggering operation is a second preset time interval, converting a plurality of candidates displayed in a candidate display area to obtain a plurality of candidate conversion results expressed by a target language type;
Or alternatively
The first conversion unit is specifically configured to: when the operation area of the first trigger operation is a first area, determining a candidate item associated with the first trigger operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type;
the second conversion unit is specifically configured to: when the operation area of the first triggering operation is a second area, converting a plurality of candidates displayed in a candidate display area to obtain a plurality of candidate conversion results expressed in a target language type;
Or alternatively
The first conversion unit is specifically configured to: when the operation strength of the first trigger operation is a first preset strength interval, determining a candidate item associated with the first trigger operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type.
9. The apparatus of claim 7, wherein the apparatus further comprises:
The display unit is used for displaying the candidate conversion result;
The display unit includes:
the on-screen display unit is used for displaying the candidate item conversion result in the character on-screen area; or alternatively
And the candidate item display unit is used for displaying the candidate item conversion result in a candidate item display area.
10. The apparatus according to claim 9, wherein the candidate display unit is specifically configured to:
Replacing the original candidate item with the candidate item conversion result in the candidate item display area at the display position of the original candidate item; or the original candidate item and the candidate item conversion result are displayed in a candidate item display area in a correlated mode.
11. The apparatus of claim 9, wherein the apparatus further comprises:
an annotation obtaining unit for obtaining an annotation of the candidate conversion result;
the candidate display unit is specifically configured to: and displaying the annotation in association with the candidate conversion result.
12. The apparatus of claim 9, wherein the apparatus further comprises:
the sorting unit is used for sorting the plurality of candidate conversion results according to the above input of the character screen area, the word frequency or the word type of the candidate conversion results when the candidate conversion results are a plurality of, and obtaining the candidate conversion result ranked at the first position;
the display unit is specifically configured to:
and displaying the candidate conversion result arranged in the first position.
13. An apparatus for input comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
Receiving user input, and displaying candidates which correspond to the user input and are represented by a first language type in a candidate display area;
Receiving a first trigger operation aiming at the candidate item, and determining a target language type corresponding to the first trigger operation according to the corresponding relation between the preset trigger operation and the target language type, wherein different trigger operations correspond to different target language types; the target language type is different from the first language type;
When the first triggering operation meets a first preset condition, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; and when the first triggering operation meets a second preset condition, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed in the target language type.
14. The apparatus of claim 13, wherein the processor is further specifically configured to execute the one or more programs comprising instructions for:
When the duration of the first triggering operation is a first preset time interval, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; when the duration of the first triggering operation is a second preset time interval, converting a plurality of candidates displayed in a candidate display area to obtain a plurality of candidate conversion results expressed by a target language type;
Or alternatively
When the operation area of the first trigger operation is a first area, determining a candidate item associated with the first trigger operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; when the operation area of the first triggering operation is a second area, converting a plurality of candidates displayed in a candidate display area to obtain a plurality of candidate conversion results expressed in a target language type;
Or alternatively
When the operation strength of the first triggering operation is a first preset strength interval, determining a candidate item associated with the first triggering operation, and converting the candidate item to obtain a candidate item conversion result expressed by a target language type; when the operation intensity of the first triggering operation is a second preset intensity interval, converting a plurality of candidates displayed in the candidate display area to obtain a plurality of candidate conversion results expressed by the target language type.
15. The apparatus of claim 13, wherein the processor is further specifically configured to execute the one or more programs comprising instructions for:
displaying the candidate conversion result: displaying the candidate conversion result in a candidate display area; or displaying the candidate conversion result in a character screen area.
16. The apparatus of claim 15, wherein the processor is further specifically configured to execute the one or more programs comprising instructions for:
Replacing the original candidate item with the candidate item conversion result in the candidate item display area at the display position of the original candidate item; or the original candidate item and the candidate item conversion result are displayed in a candidate item display area in a correlated mode.
17. The apparatus of claim 15, wherein the processor is further specifically configured to execute the one or more programs comprising instructions for:
Obtaining comments of candidate conversion results; and displaying the annotation in association with the candidate conversion result.
18. The apparatus of claim 15, wherein the processor is further specifically configured to execute the one or more programs comprising instructions for:
When the candidate conversion results are multiple, sorting the multiple candidate conversion results according to the above input of the character screen area and the word frequency or the word type of the candidate conversion results to obtain the first candidate conversion result; and displaying the candidate conversion result arranged in the first position.
19. A machine readable medium having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform the input method of one or more of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810380344.8A CN110399045B (en) | 2018-04-25 | 2018-04-25 | Input method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810380344.8A CN110399045B (en) | 2018-04-25 | 2018-04-25 | Input method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110399045A CN110399045A (en) | 2019-11-01 |
CN110399045B true CN110399045B (en) | 2024-08-09 |
Family
ID=68319921
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810380344.8A Active CN110399045B (en) | 2018-04-25 | 2018-04-25 | Input method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110399045B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986022A (en) * | 2021-10-26 | 2022-01-28 | 北京百度网讯科技有限公司 | Display method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566882A (en) * | 2009-06-02 | 2009-10-28 | 腾讯科技(深圳)有限公司 | Text input system and text input method |
CN107037965A (en) * | 2016-02-04 | 2017-08-11 | 北京搜狗科技发展有限公司 | A kind of information displaying method based on input, device and mobile terminal |
CN107037888A (en) * | 2016-02-03 | 2017-08-11 | 北京搜狗科技发展有限公司 | A kind of input method, device and the device for input |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0380361A (en) * | 1989-08-24 | 1991-04-05 | Fuji Xerox Co Ltd | Document processor |
CN102193643B (en) * | 2010-03-15 | 2014-07-02 | 北京搜狗科技发展有限公司 | Word input method and input method system having translation function |
CN102981693B (en) * | 2011-09-07 | 2015-11-25 | 汉王科技股份有限公司 | A kind of multilingual hand-written inputting method and device |
CN103019590A (en) * | 2012-11-26 | 2013-04-03 | 上海量明科技发展有限公司 | Method, client side and system for inputting handwriting characters and character strings |
CN103645851B (en) * | 2013-10-28 | 2018-04-13 | 北京三星通信技术研究有限公司 | The method and system of input content on the electronic equipment with touch-screen |
US20170270092A1 (en) * | 2014-11-25 | 2017-09-21 | Nuance Communications, Inc. | System and method for predictive text entry using n-gram language model |
CN106855748A (en) * | 2015-12-08 | 2017-06-16 | 阿里巴巴集团控股有限公司 | A kind of data inputting method, device and intelligent terminal |
CN107861637A (en) * | 2017-10-31 | 2018-03-30 | 北京小米移动软件有限公司 | Character input method, device and computer-readable recording medium |
-
2018
- 2018-04-25 CN CN201810380344.8A patent/CN110399045B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566882A (en) * | 2009-06-02 | 2009-10-28 | 腾讯科技(深圳)有限公司 | Text input system and text input method |
CN107037888A (en) * | 2016-02-03 | 2017-08-11 | 北京搜狗科技发展有限公司 | A kind of input method, device and the device for input |
CN107037965A (en) * | 2016-02-04 | 2017-08-11 | 北京搜狗科技发展有限公司 | A kind of information displaying method based on input, device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110399045A (en) | 2019-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10296201B2 (en) | Method and apparatus for text selection | |
CN107688399B (en) | Input method and device and input device | |
CN111198620B (en) | Method, device and equipment for presenting input candidate items | |
CN108829686B (en) | Translation information display method, device, equipment and storage medium | |
CN108803891B (en) | Information display method and device, electronic equipment and storage medium | |
CN109388810A (en) | A kind of data processing method, device and the device for data processing | |
CN107665046B (en) | Input method and device and input device | |
CN108803892B (en) | Method and device for calling third party application program in input method | |
CN109725736B (en) | Candidate sorting method and device and electronic equipment | |
CN107977089B (en) | Input method and device and input device | |
CN110795014B (en) | Data processing method and device and data processing device | |
CN112068764B (en) | Language switching method and device for language switching | |
CN105487799A (en) | Content conversion method and device | |
CN107340881B (en) | Input method and electronic equipment | |
CN110399045B (en) | Input method and device | |
CN106020694B (en) | Electronic equipment, and method and device for dynamically adjusting selected area | |
CN111679746A (en) | Input method and device and electronic equipment | |
CN109558016B (en) | Input method and device | |
CN111092971A (en) | Display method and device for displaying | |
CN111258691B (en) | Input method interface processing method, device and medium | |
CN109388328B (en) | Input method, device and medium | |
CN107024998B (en) | Input method, input device and input device | |
CN107765884B (en) | Sliding input method and device and electronic equipment | |
CN112905023A (en) | Input error correction method and device for input error correction | |
CN112148132A (en) | Information setting method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |