[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107179837B - Input method and device - Google Patents

Input method and device Download PDF

Info

Publication number
CN107179837B
CN107179837B CN201710329382.6A CN201710329382A CN107179837B CN 107179837 B CN107179837 B CN 107179837B CN 201710329382 A CN201710329382 A CN 201710329382A CN 107179837 B CN107179837 B CN 107179837B
Authority
CN
China
Prior art keywords
content
language
input
translation
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710329382.6A
Other languages
Chinese (zh)
Other versions
CN107179837A (en
Inventor
杜佳男
李英俊
吕小磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710329382.6A priority Critical patent/CN107179837B/en
Publication of CN107179837A publication Critical patent/CN107179837A/en
Application granted granted Critical
Publication of CN107179837B publication Critical patent/CN107179837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to an input method and device. The method comprises the following steps: under the condition that the terminal equipment is in a translation mode, if it is detected that a user inputs first content by adopting a first language, determining translation content of a second language corresponding to the first content to obtain second content; displaying the second content in an input option bar; in a case where it is detected that the user selects the second content, the second content is input. The input method and the input device are beneficial to a user to acquire and input the translation content of the second language corresponding to the first content, the user does not need to adopt software translation or online translation, the operation is simple and convenient, the time is saved, and the use experience of the user can be improved.

Description

Input method and device
Technical Field
The present disclosure relates to the field of input technologies, and in particular, to an input method and device.
Background
In the related art, a user may input contents of various languages, such as chinese, english, or japanese, in an electronic device. In the case that a user is unfamiliar with a certain language, translation software is needed for translation. For example, when a user is unfamiliar with english to input english, translation software is required to translate the content to be input into english, and then input the translated english content, or copy and paste the translated english content. By adopting the input method, the process is complicated and the time consumption is long, and the use experience of the user is poor.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an input method and apparatus.
According to a first aspect of embodiments of the present disclosure, there is provided an input method, including:
under the condition that the terminal equipment is in a translation mode, if it is detected that a user inputs first content by adopting a first language, determining translation content of a second language corresponding to the first content to obtain second content;
displaying the second content in an input option bar;
in a case where it is detected that the user selects the second content, the second content is input.
In a possible implementation manner, determining a translated content of a second language corresponding to the first content to obtain a second content includes:
and locally translating the first content into the second language at the terminal equipment to obtain the second content.
In a possible implementation manner, determining a translated content of a second language corresponding to the first content to obtain a second content includes:
sending request information to a server, wherein the request information is used for requesting the server to translate the first content into the second language;
and receiving the second content returned by the server according to the request information.
In a possible implementation manner, before determining the translated content of the second language corresponding to the first content, the method further includes:
and setting the second language corresponding to the translation mode.
According to a second aspect of the embodiments of the present disclosure, there is provided an input device including:
the terminal device comprises an acquisition module, a translation module and a translation module, wherein the acquisition module is used for determining translation content of a second language corresponding to first content to obtain the second content if detecting that a user inputs the first content by adopting the first language under the condition that the terminal device is in a translation mode;
a display module for displaying the second content in an input option bar;
an input module, configured to input the second content when it is detected that the user selects the second content.
In one possible implementation manner, the obtaining module includes:
and the translation submodule is used for locally translating the first content into the second language at the terminal equipment to obtain the second content.
In one possible implementation manner, the obtaining module includes:
the sending submodule is used for sending request information to a server, wherein the request information is used for requesting the server to translate the first content into the second language;
and the receiving submodule is used for receiving the second content returned by the server according to the request information.
In one possible implementation, the apparatus further includes:
and the setting module is used for setting the second language corresponding to the translation mode before determining the translation content of the second language corresponding to the first content.
According to a third aspect of the embodiments of the present disclosure, there is provided an input device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the terminal equipment is in a translation mode, if it is detected that a user inputs first content by adopting a first language, determining translation content of a second language corresponding to the first content to obtain second content;
displaying the second content in an input option bar;
in a case where it is detected that the user selects the second content, the second content is input.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the input method and device, under the condition that the terminal device is in the translation mode, the second content is obtained by determining the translation content of the second language corresponding to the first content input by the user through the first language, the second content is displayed in the input option bar, and the second content is input under the condition that the user is detected to select the second content, so that the user can obtain and input the translation content of the second language corresponding to the first content, the user does not need to adopt software translation or online translation, the operation is simple and convenient, the time is saved, and the use experience of the user can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating an input method according to an exemplary embodiment.
FIG. 2 is a diagram illustrating a setup interface in an input method according to an exemplary embodiment.
FIG. 3 is a schematic diagram illustrating an input interface in an input method according to an exemplary embodiment.
FIG. 4 is another schematic diagram illustrating an input interface in an input method according to an exemplary embodiment.
FIG. 5 is an exemplary flow chart illustrating an input method according to an exemplary embodiment.
FIG. 6 is another exemplary flow chart illustrating an input method according to an exemplary embodiment.
FIG. 7 is another exemplary flow chart illustrating an input method according to an exemplary embodiment.
FIG. 8 is a block diagram illustrating an input device according to an exemplary embodiment.
FIG. 9 is an exemplary block diagram of an input device shown in accordance with one exemplary embodiment.
FIG. 10 is a block diagram illustrating an input device 800 according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
FIG. 1 is a flow chart illustrating an input method according to an exemplary embodiment. The method can be applied to a terminal device with an input function, such as a smart phone, a tablet computer or a computer, and is not limited herein. As shown in fig. 1, the input method includes the following steps.
In step S101, when the terminal device is in the translation mode, if it is detected that the user inputs the first content in the first language, the translation content in the second language corresponding to the first content is determined, and the second content is obtained.
The terminal device being in the translation mode may refer to setting the terminal device to the translation mode, and may also refer to setting an application installed in the terminal device to the translation mode, which is not limited herein. For example, an input method application installed in the terminal device is set to a translation mode.
It should be noted that, as will be understood by those skilled in the art, there are various ways in the related art to implement setting the terminal device to the translation mode. FIG. 2 is a diagram illustrating a setup interface in an input method according to an exemplary embodiment. For example, as shown in fig. 2, a first translation mode control may be added to the terminal device, and the terminal device may be set to the translation mode when the first translation mode control is turned on. For another example, a shortcut key may be set in the terminal device, so that the user can quickly set the terminal device in the translation mode according to the input requirement.
It should be noted that, as will be understood by those skilled in the art, there are various ways in the related art to implement setting the application installed in the terminal device into the translation mode. For example, the second translation mode control may be displayed upon detecting that the user has launched the input method application, and the input method application may be set to translation mode with the second translation mode control open. For another example, the third translation mode control may be displayed when it is detected that the user inputs the first content in the first language through the input method application, and the input method application may be set to the translation mode when the third translation mode control is turned on.
Wherein the first language and the second language may be any two different languages. For example, the first language and the second language may be chinese and english, respectively, or the first language and the second language may be english and japanese, respectively, without limitation.
As an example of this embodiment, when the terminal device is in the translation mode, if it is detected that the user inputs the first content in the first language, the translation content in the second language corresponding to the first content is determined, and a second content is obtained. For example, the translated content in the second language having the highest semantic matching degree with the first content may be used as the second content.
As another example of this embodiment, when the terminal device is in the translation mode, if it is detected that the user inputs the first content in the first language, the translation content in the second language corresponding to the first content is determined, and N second contents are obtained, where N is an integer greater than 1. For example, the translated content in the second language with the semantic matching degree with the first content ranked N top may be taken as the second content. Wherein N may be a preset value.
For example, the first language is chinese, the second language is english, the english translation contents corresponding to the first content "road" may include "highway", "motorway", and "road" 3, and "highway" and "motorway" ranked 2-bit higher than the semantic matching degree of the first content "road" may be used as the second content.
In step S102, the second content is displayed in the input option bar.
The input options bar may be an area listing one or more input contents to be selected. FIG. 3 is a schematic diagram illustrating an input interface in an input method according to an exemplary embodiment. FIG. 4 is another schematic diagram illustrating an input interface in an input method according to an exemplary embodiment. As shown in fig. 3 and 4, the area 31 may be a display area corresponding to the input option bar, and the area 32 may be an input area corresponding to the input content. The user can select and click on the input content in area 31, and the selected input content is entered and displayed in area 32.
In step S103, in a case where it is detected that the user selects the second content, the second content is input.
It should be noted that, as will be understood by those skilled in the art, there are various ways in the related art to select an input content from a plurality of input contents to be selected, and the selection is not limited herein.
As an example of this embodiment, in a case where the terminal device is in the translation mode, if it is detected that the user inputs the first content "hello" in chinese (for example, by using a pinyin input method), the english translation content corresponding to the first content "hello" is determined, and the second content "hello" is obtained. As shown in fig. 3, the first content "hello" and the second content "hello" are displayed in the input option bar. In the case where it is detected that the user clicks "hello" with the keyboard 2 or clicks with the mouse, the second content "hello" is input and displayed in the area 32.
As another example of the embodiment, in a case where the terminal device is in the translation mode, if it is detected that the user inputs the first content "road" in chinese (for example, by using a pinyin input method), the translated content in english corresponding to the first content "road" is determined, and the second content "highway" and "motorway" are obtained. As shown in fig. 4, the first content "road" and the second contents "highway" and "motorway" are displayed in the input option bar. In the case where it is detected that the user clicks 3 with the keyboard or clicks "motorway" with the mouse, the second content "motorway" is input and displayed in the area 32.
It should be noted that the present embodiment does not limit the display manner of the first content and the second content, and for example, the first content and the second content may be displayed simultaneously, or only the second content may be displayed without displaying the first content. The present embodiment also does not limit the display order of the first content and the second content, and for example, the first content and the second content may be displayed in the order, or the second content and the first content may be displayed in the order.
The input method of the embodiment is beneficial to the user to acquire and input the translation content of the second language corresponding to the first content, the user does not need to adopt software translation or online translation, the operation is simple and convenient, the time is saved, and the use experience of the user can be improved.
FIG. 5 is an exemplary flow chart illustrating an input method according to an exemplary embodiment. As shown in fig. 5, the input method includes the following steps.
In step S500, a second language corresponding to the translation mode is set.
The second language may be a preset language, or may be determined according to an input requirement of a user, which is not limited herein.
For example, the terminal device may prompt the user whether to set the terminal device to translation mode and display a plurality of selectable second languages in the event that the user is detected to use the input method application. And when the user determines to set the terminal equipment into the translation mode and selects the second language, translating the first content input by the user in the first language into the second language to obtain the second content.
For another example, the terminal device may prompt the user whether to translate the first content and display a plurality of selectable second languages in a case where it is detected that the user inputs the first content in the first language. When the user determines to translate the first content and selects a certain second language, the first content input by the user is translated into the second language to obtain the second content.
For another example, determining the second language according to the input requirements of the user may include: acquiring the current input document content of a user, and setting the third language as the second language corresponding to the translation mode under the condition that the document content contains the third content input by adopting the third language. For example, the document content currently input by the user is acquired, and when it is detected that the document content includes a third content "English" input in English, the second language corresponding to the translation mode is set to English.
It should be noted that the present embodiment does not limit the order between setting the second language corresponding to the translation mode and setting the terminal device to the translation mode. For example, the second language corresponding to the translation mode may be set first, and then the terminal device may be set to the translation mode. Or the terminal device may be set to the translation mode first, and then the second language corresponding to the translation mode is set.
In step S501, when the terminal device is in the translation mode, if it is detected that the user inputs the first content in the first language, the translation content in the second language corresponding to the first content is determined, and the second content is obtained.
The description of this step can be found in step S101.
In step S502, the second content is displayed in the input option bar.
The description of this step can be found in step S102.
In step S503, in the case where it is detected that the user selects the second content, the second content is input.
The description of this step can be found in step S103.
FIG. 6 is another exemplary flow chart illustrating an input method according to an exemplary embodiment. As shown in fig. 6, the input method includes the following steps.
In step S601, when the terminal device is in the translation mode, if it is detected that the user inputs the first content in the first language, the first content is translated into the second language locally at the terminal device, so as to obtain the second content.
As an example of the present embodiment, a function of language translation may be added to the operating system of the terminal device. For example, the translation program may be installed in the terminal device.
For example, under the condition that the terminal device is in a translation mode, whether the user inputs the first content in the first language or not can be detected in real time, if the fact that the user inputs the first content in the Chinese language is detected, the terminal device calls a local translation program to translate the first content 'hello' into English, and the second content 'hello' is obtained.
In step S602, the second content is displayed in the input option bar.
The description of this step can be found in step S102.
In step S603, in a case where it is detected that the user selects the second content, the second content is input.
The description of this step can be found in step S103.
In the example, the application of the input method is not influenced by the network state of the terminal equipment, the operation is simple and convenient, the time is saved, and the use experience of the user is improved.
FIG. 7 is another exemplary flow chart illustrating an input method according to an exemplary embodiment. As shown in fig. 7, the input method includes the following steps.
In step S700, when the terminal device is in the translation mode, if it is detected that the user inputs the first content in the first language, request information for requesting the server to translate the first content into the second language is sent to the server.
In step S701, the second content returned by the server according to the request information is received.
For example, when the terminal device is in the translation mode, it may be detected in real time whether the user inputs the first content in the first language, and if it is detected that the user inputs the first content in chinese, the way is wide, the terminal device sends request information for translating the first content, the way is wide, into english to the server. After receiving the request message, the server translates the first content "this way is very wide" into english, and obtains and returns the second content "the road is wide" to the terminal device.
In step S702, the second content is displayed in the input option bar.
The description of this step can be found in step S102.
In step S703, in the case where it is detected that the user selects the second content, the second content is input.
The description of this step can be found in step S103.
In this example, the input method is applicable to determining the translation content of the second language corresponding to the first content by fully utilizing the network resource, and when the first content is a sentence or a paragraph, the translation content has a good translation effect, so that the application range is expanded, the operation is simple and convenient, the time is saved, and the use experience of the user is improved.
FIG. 8 is a block diagram illustrating an input device according to an exemplary embodiment. Referring to fig. 8, the apparatus includes an acquisition module 11, a display module 13, and an input module 15.
The obtaining module 11 is configured to, when the terminal device is in a translation mode, determine a translation content of a second language corresponding to a first content if it is detected that a user inputs the first content in the first language, and obtain the second content; the display module 13 is configured to display the second content in an input option bar; the input module 15 is configured to input the second content in case that it is detected that the user selects the second content.
FIG. 9 is an exemplary block diagram of an input device shown in accordance with one exemplary embodiment. Referring to fig. 9:
in one possible implementation, the obtaining module 11 includes a translation sub-module 111. The translation sub-module 111 is configured to translate the first content into the second language locally at the terminal device, resulting in the second content.
In a possible implementation manner, the obtaining module 11 includes a sending sub-module 113 and a receiving sub-module 115.
The sending submodule 113 is configured to send request information to a server, wherein the request information is used for requesting the server to translate the first content into the second language; the receiving submodule 115 is configured to receive the second content returned by the server according to the request information.
In a possible implementation, the apparatus further comprises a setting module 10. The setting module is configured to set a second language corresponding to a translation mode before determining a translation content of the second language corresponding to the first content.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The input device of the embodiment is beneficial to the user to acquire and input the translation content of the second language corresponding to the first content, the user does not need to adopt software translation or online translation, the operation is simple and convenient, the time is saved, and the use experience of the user can be improved.
FIG. 10 is a block diagram illustrating an input device 800 according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile 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 disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating 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 a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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 800 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. An input method, comprising:
under the condition that the terminal equipment is in a translation mode, if it is detected that a user inputs first content by adopting a first language, determining translation content of a second language corresponding to the first content to obtain second content;
displaying the second content in an input option bar;
in a case where it is detected that the user selects the second content, inputting the second content;
the method further comprises the following steps:
acquiring the current input document content of a user, and setting a third language as a second language corresponding to a translation mode under the condition that the document content is detected to contain the third content input by adopting the third language;
before determining the translated content of the second language corresponding to the first content, the method further includes:
and setting the second language corresponding to the translation mode.
2. The input method according to claim 1, wherein determining translated content in a second language corresponding to the first content to obtain second content comprises:
and locally translating the first content into the second language at the terminal equipment to obtain the second content.
3. The input method according to claim 1, wherein determining translated content in a second language corresponding to the first content to obtain second content comprises:
sending request information to a server, wherein the request information is used for requesting the server to translate the first content into the second language;
and receiving the second content returned by the server according to the request information.
4. An input device, comprising:
the terminal device comprises an acquisition module, a translation module and a translation module, wherein the acquisition module is used for determining translation content of a second language corresponding to first content to obtain the second content if detecting that a user inputs the first content by adopting the first language under the condition that the terminal device is in a translation mode;
a display module for displaying the second content in an input option bar;
the input module is used for inputting the second content under the condition that the user is detected to select the second content;
the obtaining module is further configured to obtain a document content currently input by a user, and set a third language as a second language corresponding to the translation mode when it is detected that the document content includes a third content input in the third language;
the device further comprises:
and the setting module is used for setting the second language corresponding to the translation mode before determining the translation content of the second language corresponding to the first content.
5. The input device of claim 4, wherein the obtaining module comprises:
and the translation submodule is used for locally translating the first content into the second language at the terminal equipment to obtain the second content.
6. The input device of claim 4, wherein the obtaining module comprises:
the sending submodule is used for sending request information to a server, wherein the request information is used for requesting the server to translate the first content into the second language;
and the receiving submodule is used for receiving the second content returned by the server according to the request information.
7. An input device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the terminal equipment is in a translation mode, if it is detected that a user inputs first content by adopting a first language, determining translation content of a second language corresponding to the first content to obtain second content;
displaying the second content in an input option bar;
in a case where it is detected that the user selects the second content, inputting the second content;
the processor is further configured to acquire document content currently input by a user, and set a third language to a second language corresponding to a translation mode when detecting that the document content contains third content input in the third language;
before determining the translation content of the second language corresponding to the first content, the method further includes:
and setting the second language corresponding to the translation mode.
8. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any one of claims 1 to 3.
CN201710329382.6A 2017-05-11 2017-05-11 Input method and device Active CN107179837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710329382.6A CN107179837B (en) 2017-05-11 2017-05-11 Input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710329382.6A CN107179837B (en) 2017-05-11 2017-05-11 Input method and device

Publications (2)

Publication Number Publication Date
CN107179837A CN107179837A (en) 2017-09-19
CN107179837B true CN107179837B (en) 2020-11-06

Family

ID=59832554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710329382.6A Active CN107179837B (en) 2017-05-11 2017-05-11 Input method and device

Country Status (1)

Country Link
CN (1) CN107179837B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861637A (en) * 2017-10-31 2018-03-30 北京小米移动软件有限公司 Character input method, device and computer-readable recording medium
CN109032377A (en) * 2018-07-12 2018-12-18 广州三星通信技术研究有限公司 The method and apparatus of output input method candidate word for electric terminal
CN109360549B (en) * 2018-11-12 2023-07-18 北京搜狗科技发展有限公司 Data processing method, wearable device and device for data processing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299210A (en) * 2008-06-30 2008-11-05 宇龙计算机通信科技(深圳)有限公司 Input method system and terminal equipment using the same
CN101430681A (en) * 2008-12-12 2009-05-13 刘一博 Input method embedded with translation function
CN105512112A (en) * 2015-12-01 2016-04-20 百度在线网络技术(北京)有限公司 Translation providing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473276B2 (en) * 2008-02-19 2013-06-25 Google Inc. Universal language input
US20090287471A1 (en) * 2008-05-16 2009-11-19 Bennett James D Support for international search terms - translate as you search
JP5915326B2 (en) * 2012-03-29 2016-05-11 富士通株式会社 Machine translation apparatus, machine translation method, and machine translation program
CN104424180B (en) * 2013-09-09 2017-11-07 佳能株式会社 Text entry method and equipment
CN105718448B (en) * 2016-01-13 2019-03-19 北京新美互通科技有限公司 The method and apparatus that a kind of pair of input character carries out automatic translation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299210A (en) * 2008-06-30 2008-11-05 宇龙计算机通信科技(深圳)有限公司 Input method system and terminal equipment using the same
CN101430681A (en) * 2008-12-12 2009-05-13 刘一博 Input method embedded with translation function
CN105512112A (en) * 2015-12-01 2016-04-20 百度在线网络技术(北京)有限公司 Translation providing method and device

Also Published As

Publication number Publication date
CN107179837A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
CN107153541B (en) Browsing interaction processing method and device
CN109600303B (en) Content sharing method and device and storage medium
JP6464261B2 (en) Method and apparatus for displaying response extensions
CN106372204A (en) Push message processing method and device
CN106201734B (en) File sharing method and device
CN106126025B (en) Interactive method and device for copying and pasting
CN105426094B (en) Information pasting method and device
CN105786944B (en) Method and device for processing automatic page turning of browser
CN104317402A (en) Description information display method and device and electronic equipment
CN112269556A (en) Information display method, device, system, equipment, server and storage medium
CN106095236A (en) The method and device of arranging desktop icons
CN106354504A (en) Message display method and device thereof
CN106504295B (en) Method and device for rendering picture
CN107179837B (en) Input method and device
EP3770763B1 (en) Method and device for presenting information on a terminal
US20160349947A1 (en) Method and device for sending message
CN106506808B (en) Method and device for prompting communication message
CN105487799A (en) Content conversion method and device
CN107390929A (en) Control method, device and the storage medium of touch-control system
CN107832112B (en) Wallpaper setting method and device
CN104933107A (en) Searching method of push message and searching device of push message
CN106126104B (en) Keyboard simulation method and device
CN111092971A (en) Display method and device for displaying
US20170316039A1 (en) Information acquisition method, device and system
CN110457084B (en) Loading method and device

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