[go: up one dir, main page]

CN104778156B - Text input method, text input device and electronic equipment - Google Patents

Text input method, text input device and electronic equipment Download PDF

Info

Publication number
CN104778156B
CN104778156B CN201410014527.XA CN201410014527A CN104778156B CN 104778156 B CN104778156 B CN 104778156B CN 201410014527 A CN201410014527 A CN 201410014527A CN 104778156 B CN104778156 B CN 104778156B
Authority
CN
China
Prior art keywords
text
pasted
matching item
document
matching
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
CN201410014527.XA
Other languages
Chinese (zh)
Other versions
CN104778156A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410014527.XA priority Critical patent/CN104778156B/en
Publication of CN104778156A publication Critical patent/CN104778156A/en
Application granted granted Critical
Publication of CN104778156B publication Critical patent/CN104778156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a text input method, a text input device and electronic equipment.

Description

Text input method, text input device and electronic equipment
Technical Field
The invention belongs to the technical field of text processing of electronic equipment, and particularly relates to a text input method, a text input device and electronic equipment.
Background
Electronic devices nowadays have higher and higher intelligent degree, and users can edit texts to reduce the workload of manual input when inputting texts, such as performing a cut-paste operation or a copy-paste operation.
However, the text input mode of the electronic equipment is still single at present. How to enrich the text input mode of the electronic device is a problem to be considered by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a text input method, an input device and an electronic device, so as to solve the problem of single text input operation in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
the invention discloses a text input method, which is applied to an electronic device with a display screen, and comprises the following steps:
monitoring input operation in the process of text input of a first document;
under the condition of acquiring a text to be pasted, acquiring a matching item of the text to be pasted, wherein the matching item is related to the text to be pasted;
when a first operation is received, the matching item is pasted at the current text input position of the first document.
Preferably, in the method, obtaining the matching item of the text to be pasted includes: determining a language environment of the first document; under the condition that the language of the text to be pasted is different from the language environment of the first document, translating the text to be pasted into the language same as the voice environment; and determining the translated text as a matching item of the text to be pasted.
Preferably, in the method, obtaining the matching item of the text to be pasted includes: performing syntactic analysis on the text to be pasted, and determining a subject of the text to be pasted; searching auxiliary information related to the subject; and determining the searched auxiliary information as a matching item of the text to be pasted.
Preferably, in the method, when a plurality of matching items are obtained, after obtaining the matching item of the text to be pasted, the method further includes: displaying the acquired multiple matching items in a display area of the first document; correspondingly, the first operation comprises a matching item selection operation and a matching item input operation; the pasting the matching item at the current text input position of the first document comprises: selecting at least one of a plurality of matching items in response to the matching item selection operation; and pasting the selected at least one matching item at the current text input position of the first document in response to the matching item input operation.
Preferably, in the method, in the case that the text to be pasted is acquired, when a second operation is received, the text to be pasted is pasted at the current text input position of the first document.
On the other hand, the invention also discloses a text input device, which is applied to an electronic device with a display screen, and the text input device comprises:
the operation monitoring unit is used for monitoring input operation in the process of text input of the first document;
the matching item acquiring unit is used for acquiring a matching item of the text to be pasted under the condition of acquiring the text to be pasted, wherein the matching item is related to the text to be pasted;
the first control unit is used for pasting the matching item to the current text input position of the first document when receiving a first operation.
Preferably, in the text input device, the matching item acquiring unit includes a first matching item acquiring module; the first matching item acquisition module is used for determining the language environment of the first document, translating the text to be pasted into the language same as the voice environment under the condition that the language of the text to be pasted is different from the language environment of the first document, and determining the translated text as the matching item of the text to be pasted.
Preferably, in the text input device, the matching item acquiring unit includes a second matching item acquiring module; the second matching item acquisition module is used for carrying out syntactic analysis on the text to be pasted, determining the subject of the text to be pasted, searching for auxiliary information related to the subject, and determining the searched auxiliary information as a matching item of the text to be pasted.
Preferably, the text input device further includes a second control unit, where the second control unit is configured to display the acquired multiple matching items in a display area of the first document when the matching item acquisition unit acquires the multiple matching items; correspondingly, the first operation comprises a matching item selection operation and a matching item input operation; the first control unit comprises a first control module and a second control module, the first control module is used for responding to the matching item selection operation to select at least one of the multiple matching items, and the second control module is used for responding to the matching item input operation to paste the selected at least one matching item at the current text input position of the first document.
Preferably, the text input device further includes a third control unit, and the third control unit pastes the text to be pasted to the current text input position of the first document when receiving a second operation in a case where the text to be pasted is acquired.
On the other hand, the invention also discloses electronic equipment which comprises a display screen and any one of the text input devices.
Therefore, the beneficial effects of the invention are as follows: according to the text input method, the text input device and the electronic equipment, in the process of inputting the text of the first document, when the text to be pasted is obtained, the matching item related to the text to be pasted is obtained, and then when the first operation is received, the obtained matching item is pasted at the current text input position of the first document.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a text input method disclosed in the present invention;
FIG. 2 is a flow chart of another text entry method disclosed herein;
FIG. 3 is a flow chart of another text entry method disclosed herein;
FIG. 4 is a flow chart of another text entry method disclosed herein;
FIG. 5 is a schematic structural diagram of a text input device according to the present disclosure;
fig. 6 is a schematic structural diagram of another text input device disclosed in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a text input method, which aims to solve the problem of single text input operation in the prior art. The text input method disclosed by the invention is applied to electronic equipment with a display screen, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer and a desktop computer.
Referring to fig. 1, fig. 1 is a flowchart of a text input method disclosed in the present invention. The method comprises the following steps:
step S11: and monitoring input operation during the text input process of the first document.
In the operation process of the electronic equipment, even if a plurality of documents are displayed on the display screen of the electronic equipment at the same time, only one document can be in a text input state, and other documents are only in a displayed state. Taking a computer as an example: a word document and a PPT document are displayed in the display screen at the same time, the cursor can only stay in one of the two documents or stay on the desktop of the system, and only the document where the cursor stays is in a text input state. In the present invention, a document in a text input state is denoted as a first document.
During the process of text input of the first document, the input operation executed by a user is monitored. The input operations performed by the user include: the method comprises the steps that a user inputs characters on a first document through a keyboard or a virtual keyboard of the electronic equipment; selecting a character or a character string in the first document; subsequent operations performed on the selected character or character string of the first document, such as copy operations, cut operations, and font adjustment operations; and acquiring the operation of the text to be pasted, wherein the text to be pasted can be selected from the first document or other documents. It should be noted here that the document from which the text to be pasted is derived may be the first document, another document stored and opened in the electronic device, or another document opened through a browser.
Step S12: and under the condition of acquiring the text to be pasted, acquiring a matching item of the text to be pasted.
And after the text to be pasted is obtained, obtaining a matching item of the text to be pasted, wherein the matching item is related to the text to be pasted. In implementation, the matching item may be a text for explaining the text to be pasted, and may be a translation of the text to be pasted.
Step S13: when the first operation is received, the matching item is pasted at the current text input position of the first document.
After the matching item is acquired, whether a first operation of a user is received or not is judged, wherein the first operation is used for indicating that the acquired matching item is pasted at the current text input position of the first document. In an implementation, when the electronic device has a physical keyboard or a virtual keyboard, the first operation may be an operation of continuously clicking a certain physical key or a certain virtual key multiple times in a short time, may be an operation of clicking a certain physical key combination or a certain virtual key combination, and may be an operation of clicking a preset hot key. When the electronic device has a gesture control function, the first operation may be an operation of executing a preset control gesture. When the electronic device supports the voice control function, the first operation may also be a preset voice operation. Upon determining that the first operation is received, the electronic device pastes the matching item at a current text entry location of the first document. The current text input position of the first document refers to the position where a cursor in the electronic device is currently located.
According to the text input method disclosed by the invention, in the process of inputting the text of the first document, when the text to be pasted is obtained, the matching item related to the text to be pasted is obtained, and then when the first operation is received, the obtained matching item is pasted at the current text input position of the first document.
Referring to fig. 2, fig. 2 is a flow chart of another text input method disclosed in the present invention. The method comprises the following steps:
step S21: and monitoring input operation during the text input process of the first document.
Step S22: and determining the language environment of the first document under the condition of acquiring the text to be pasted.
After the user obtains the text to be pasted through a cutting operation or a copying operation, the language environment of the first document is determined according to the existing algorithm. In implementation, the language environment of the first document may be determined according to a sentence in the first document where the current text input position is located, or the language environment of the first document may be determined according to a natural sentence in the first document located before the current text input position, or the language environment of the first document may be determined according to a natural segment in the first document where the current text input position is located.
Step S23: and in the case that the language of the text to be pasted is different from the language environment of the first document, translating the text to be pasted into the same language as the language environment.
In the case that it is determined that the text to be pasted is to be translated, if translation software is built in the electronic device, the translation software may be started in the background, and then the translation software is controlled to translate the text to be pasted. If the electronic equipment is not provided with the translation software, the text to be pasted can be translated into the same language as the language environment by utilizing a translation tool on the Internet.
Step S24: and determining the translated text as a matching item of the text to be pasted.
Step S25: when the first operation is received, the matching item is pasted at the current text input position of the first document.
According to the text input method disclosed by the invention in the figure 2, after the text to be pasted is obtained, if the language of the text to be pasted is different from the language environment of the first document, the text to be pasted is translated to obtain the text which is the same as the language environment of the first document, and then when a first operation is received, the translated text is pasted at the current text input position of the first document. According to the method disclosed by the invention, when the electronic equipment acquires the text different from the language environment of the first document, the electronic equipment automatically translates the text into the text which is the same as the language environment of the first document, and pastes the translated text into the first document in response to the first operation of the user, so that the user operation is simplified.
Referring to fig. 3, fig. 3 is a flow chart of another text input method disclosed in the present invention. The method comprises the following steps:
step S31: and monitoring input operation during the text input process of the first document.
Step S32: and under the condition of acquiring the text to be pasted, performing syntactic analysis on the text to be pasted, and determining the subject of the text to be pasted.
The conventional syntax analyzer can perform syntax analysis on a natural sentence to determine a subject in the natural sentence. When the text to be pasted only contains one natural sentence, the subject of the natural sentence is used as the subject of the text to be pasted. When the text to be pasted contains a plurality of natural sentences, the subjects in the natural sentences are respectively determined, and then the subjects of the natural sentences are used as the subjects of the text to be pasted. That is, the subject of the text to be pasted is at least one.
Step S33: auxiliary information related to the subject is searched.
After the subject of the text to be pasted is determined, relevant auxiliary information can be searched for on a file stored in the electronic device or on the internet, wherein the auxiliary information is information for explaining the subject of the text to be pasted. In practice, the auxiliary information may be a text explaining the subject, a multimedia file explaining the subject, or a hyperlink pointing to the text or multimedia file explaining the subject.
The process of searching for auxiliary information is described with reference to an example:
after the subject of the text to be pasted is determined to be 'A', the electronic equipment searches for the file containing 'A' in the file stored in the electronic equipment, then performs syntax analysis on each statement containing 'A' by using a syntax analyzer, and searches for the statements meeting preset syntax rules, wherein the syntax rules are used for judging whether a certain statement is the statement explaining the subject, and the statements meeting the preset syntax rules are auxiliary information of the text to be pasted.
Alternatively, the electronic device searches on the internet through a search server using the subject "a" as a keyword to obtain a corresponding document or video file.
Preferably, the electronic device may search at a specific website through the search server to obtain the related information. It should be noted that, because resources on the internet are massive, and often tens of thousands of pieces of information are retrieved based on one keyword, after the electronic device retrieves the information by using the search server, the retrieved information is screened according to a preset rule. For example: screening by using the browsing times of the retrieved information to obtain one or a preset number of information with the browsing times in the front; when the text to be pasted includes a plurality of subjects, the other subjects may be used as keywords, and a secondary search may be performed on the searched information to obtain information with the highest degree of correlation with all subjects.
Step S34: and determining the searched auxiliary information as a matching item of the text to be pasted.
When the text to be pasted includes a plurality of subjects, the found auxiliary information is also a plurality of, that is, the matching items of the text to be pasted are a plurality of. When the text to be pasted only includes one subject, the auxiliary information found may be one or more.
Step S35: when the first operation is received, the matching item is pasted at the current text input position of the first document.
After the matching item is acquired, whether a first operation of a user is received or not is judged, wherein the first operation is used for indicating that the acquired matching item is pasted at the current text input position of the first document. After determining that the first operation by the user is received, the matching item determined at step S34 is pasted at the current text input position of the first document.
According to the text input method disclosed in the figure 3, after the text to be pasted is obtained, the text to be pasted is analyzed in a syntactic manner to determine the subject of the text to be pasted, then the auxiliary information related to the subject is searched, and when a first operation is received, the obtained auxiliary information is pasted at the current text input position of the first document. According to the method disclosed by the invention, when the electronic equipment acquires the text to be pasted, auxiliary information related to a subject in the text to be pasted is automatically searched, and the acquired auxiliary information is pasted in the first document in response to the first operation of the user, so that the manual searching by the user is not needed, and the user operation is simplified.
It should be noted that, in the text input method shown in fig. 3 of the present invention, if a plurality of matching items are determined in step S34, all of the matching items may be pasted at the current text input position of the first document when step S35 is performed. Since multiple matching items occupy a large display space, a subsequent user may only retain some of the multiple matching items and delete other matching items. In order to further simplify the user operation, the invention further improves the text input method disclosed above. This is explained below with reference to fig. 4.
Referring to fig. 4, fig. 4 is a flow chart of another text input method disclosed in the present invention. The method comprises the following steps:
step S41: and monitoring input operation during the text input process of the first document.
Step S42: and under the condition of acquiring the text to be pasted, performing syntactic analysis on the text to be pasted, and determining the subject of the text to be pasted.
Step S43: auxiliary information related to the subject is searched.
Step S44: and determining the searched auxiliary information as a matching item of the text to be pasted.
Step S45: and displaying the acquired multiple matching items in a display area of the first document.
After the step S44 is executed, if a plurality of auxiliary information are found, the found plurality of matching items are displayed in the display area of the first document, so that the user can view all the matching items on the display screen of the electronic device. It should be noted here that each matching item may be displayed in its entirety, and when the characters of the matching item are many, only a part of the matching item may be displayed.
Step S46: at least one of the plurality of matching items is selected in response to a matching item selection operation.
Step S47: and pasting the selected at least one matching item at the current text input position of the first document in response to the matching item input operation.
The first operation performed by the user includes a matching item selection operation and a matching item input operation. Wherein the matching item selecting operation is used for selecting at least one matching item from the plurality of matching items, and the matching item inputting operation is used for pasting the selected matching item on the current text input position of the first document. The user selects at least one matching item from the plurality of matching items by executing matching item selection operation, the selected matching item is used as a matching item to be pasted, and then the user executes matching item input operation again so as to paste the matching item to be pasted at the current text input position of the first document. For the electronic equipment, in the process of displaying the plurality of matching items, a matching item selection operation performed by a user is received to select at least one of the plurality of matching items, and then a matching item input operation performed by the user is received to paste the selected at least one matching item at the current text input position of the first document.
When the display screen of the electronic device is a touch screen, the matching item selecting operation may be an operation in which the user clicks or double clicks the display area of the matching item through the operation body. That is, the user selects the matching item to be pasted by clicking the display area of the matching item, and if the user wants to paste a plurality of matching items, the user sequentially clicks the display areas of the matching items.
When the electronic device has a voice control function, the matching item selection operation may also be a corresponding voice operation, for example: the user speaks a sentence comprising "paste" and at least one "match identification" to select one or more matches, which may be the order in which the matches are in all presented matches. In order to facilitate the user to know the sequence of the matching items, the electronic device may further display the serial numbers of the sequence of the matching items in the process of displaying the acquired matching items in the display area of the first document.
When the electronic device is provided with a keyboard, the matching item selection operation may also be an operation in which the user clicks a hot key corresponding to the matching item. For example: and each matching item corresponds to different hot keys according to the display sequence of the matching item, and the user selects the matching item to be pasted by clicking the corresponding hot key.
The matching item input operation may be a key operation, a virtual key operation, a gesture operation, or a voice operation, but is not limited thereto.
In the text input method disclosed in fig. 4 of the present invention, in a case where a plurality of matching items of a text to be pasted are determined, the acquired plurality of matching items are displayed in a display area of a first document, then one or more of the plurality of matching items are selected in response to a matching item selection operation performed by a user, and the selected matching item is pasted at a current text input position of the first document after the user performs a matching item input operation. Compared with the text input method shown in fig. 3, the text input method shown in fig. 4 only pastes the matching items selected by the user in the first document, so that the situation that all the matching items are pasted and then manually deleted by the user is avoided, and the user operation is further simplified.
In each text input method disclosed above, the method further includes the following steps when the text to be pasted is obtained: and when the second operation is received, pasting the text to be pasted on the current text input position of the first document.
After the electronic equipment acquires the text to be pasted, if a second operation executed by the user is received first, the electronic equipment pastes the text to be pasted at the current text input position of the first document in response to the second operation, and then if the first operation executed by the user is received, the electronic equipment pastes the matching item of the text to be pasted at the current text input position of the first document.
After the electronic equipment acquires the text to be pasted, if a first operation executed by a user is received first, the electronic equipment pastes a matching item of the text to be pasted at the current text input position of the first document in response to the first operation, and then if a second operation executed by the user is received, the electronic equipment pastes the text to be pasted at the current text input position of the first document.
The invention discloses a text input method applied to electronic equipment, and correspondingly, the invention also discloses a text input device applied to the electronic equipment so as to realize the method. The text input method disclosed by the invention is applied to electronic equipment with a display screen, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer and a desktop computer.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a text input device disclosed in the present invention. The text input device includes an operation monitoring unit 100, a matching item acquisition unit 200, and a first control unit 300.
Wherein:
the operation monitoring unit 100 is used for monitoring input operation in the process of text input of the first document. During the process of text input of the first document, the input operation executed by a user is monitored. The input operations performed by the user include: the method comprises the steps that a user inputs characters on a first document through a keyboard or a virtual keyboard of the electronic equipment; selecting a character or a character string in the first document; subsequent operations performed on the selected character or character string of the first document, such as copy operations, cut operations, and font adjustment operations; and acquiring the operation of the text to be pasted, wherein the text to be pasted can be selected from the first document or other documents. It should be noted here that the document from which the text to be pasted is derived may be the first document, another document stored and opened in the electronic device, or another document opened through a browser.
The matching item obtaining unit 200 is configured to obtain a matching item of the text to be pasted under the condition that the text to be pasted is obtained, where the matching item is related to the text to be pasted. And after the text to be pasted is obtained, obtaining a matching item of the text to be pasted, wherein the matching item is related to the text to be pasted. In implementation, the matching item may be a text for explaining the text to be pasted, and may be a translation of the text to be pasted.
A first control unit 300 for pasting the matching item at a current text input position of the first document upon receiving the first operation. After the matching item is acquired, whether a first operation of a user is received or not is judged, wherein the first operation is used for indicating that the acquired matching item is pasted at the current text input position of the first document. In an implementation, when the electronic device has a physical keyboard or a virtual keyboard, the first operation may be an operation of continuously clicking a certain physical key or a certain virtual key multiple times in a short time, may be an operation of clicking a certain physical key combination or a certain virtual key combination, and may be an operation of clicking a preset hot key. When the electronic device has a gesture control function, the first operation may be an operation of executing a preset control gesture. When the electronic device supports the voice control function, the first operation may also be a preset voice operation. Upon determining that the first operation is received, the electronic device pastes the matching item at a current text entry location of the first document. The current text input position of the first document refers to the position where a cursor in the electronic device is currently located.
According to the text input device disclosed by the invention, in the process of inputting the text of the first document, when the text to be pasted is obtained, the matching item related to the text to be pasted is obtained, and then when the first operation is received, the obtained matching item is pasted at the current text input position of the first document.
In implementation, the matching item acquisition unit 200 has various structures. The following description will be made separately.
The matching item acquisition unit 200 includes a first matching item acquisition module. The first matching item acquisition module is used for determining the language environment of the first document, translating the text to be pasted into the language same as the voice environment under the condition that the language of the text to be pasted is different from the language environment of the first document, and determining the translated text as the matching item of the text to be pasted.
The matching item acquisition unit 200 includes a second matching item acquisition module. The second matching item acquisition module is used for performing syntactic analysis on the text to be pasted, determining the subject of the text to be pasted, searching for auxiliary information related to the subject, and determining the searched auxiliary information as a matching item of the text to be pasted.
When the matching item acquisition unit 200 includes the second matching item acquisition module, the text input apparatus shown in fig. 5 may be further structurally modified. This will be explained with reference to fig. 6.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another text input device disclosed in the present invention. The text input device includes an operation monitoring unit 100, a matching item acquisition unit 200, a first control unit 300, and a second control unit 400.
Wherein:
the operation monitoring unit 100 is used for monitoring input operation in the process of text input of the first document.
The matching item obtaining unit 200 includes a second matching item obtaining module 201, where the second matching item obtaining module is configured to perform syntactic analysis on the text to be pasted, determine a subject of the text to be pasted, search for auxiliary information related to the subject, and determine that the searched auxiliary information is a matching item of the text to be pasted.
The second control unit 400 is configured to display the acquired plurality of matching items in the display area of the first document when the matching item acquisition unit 200 acquires the plurality of matching items.
The first control unit 300 includes a first control module 301 and a second control module 302. Wherein, the first control module 301 is used for selecting at least one of the plurality of matching items in response to a matching item selection operation input by a user, and the second control module 302 is used for pasting the selected at least one matching item at a current text input position of the first document in response to the matching item input operation input by the user.
Based on the text input device shown in fig. 6 of the present invention, only the matching item selected by the user is pasted in the first document, thereby avoiding the situation that all matching items are pasted and then manually deleted by the user, and further simplifying the user operation.
In each of the text input devices disclosed above in the present invention, a third control unit may be further provided, which, in a case where the text to be pasted is acquired, pastes the text to be pasted to the current text input position of the first document when the second operation is received. By providing the third control unit in the text input device, the user can paste both the text to be pasted and the matching item of the text to be pasted in the first document.
The invention also discloses an electronic device which comprises a display screen and any one of the text input devices disclosed by the invention. The electronic equipment disclosed by the invention enriches the text input modes and improves the user experience.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1. A text input method is applied to an electronic device with a display screen, and is characterized by comprising the following steps:
monitoring input operation executed by a user in the process of text input of a first document; the input operation is used for acquiring a text to be pasted; the input operation includes: the method comprises the steps that a user inputs characters on a first document through a keyboard or a virtual keyboard of the electronic equipment; selecting a character or a character string in the first document; a copy operation, a cut operation or a font adjustment operation performed for the selected character or character string of the first document;
under the condition that a text to be pasted is obtained, obtaining a matching item of the text to be pasted, wherein the matching item is related to the text to be pasted, and the matching item comprises a text for explaining the text to be pasted or a translation of the text to be pasted; the text to be pasted includes information explaining the subject of the text to be pasted; the translation of the text to be pasted comprises the text which is the same as the text in the first document language environment;
when a first operation is received, pasting the matching item at the current text input position of the first document;
under the condition that a text to be pasted is obtained, when a second operation is received, pasting the text to be pasted at the current text input position of the first document;
the acquiring the matching item of the text to be pasted comprises the following steps:
determining a language environment of the first document;
under the condition that the language of the text to be pasted is different from the language environment of the first document, translating the text to be pasted into the language same as the language environment;
determining the translated text as a matching item of the text to be pasted; or the like, or, alternatively,
the acquiring the matching item of the text to be pasted comprises the following steps:
performing syntactic analysis on the text to be pasted, and determining a subject of the text to be pasted;
searching auxiliary information related to the subject;
and determining the searched auxiliary information as a matching item of the text to be pasted.
2. The method according to claim 1, wherein when a plurality of matching items are obtained, after obtaining the matching item of the text to be pasted, the method further comprises: displaying the acquired multiple matching items in a display area of the first document;
correspondingly, the first operation comprises a matching item selection operation and a matching item input operation;
the pasting the matching item at the current text input position of the first document comprises: selecting at least one of a plurality of matching items in response to the matching item selection operation; and pasting the selected at least one matching item at the current text input position of the first document in response to the matching item input operation.
3. A text input device applied to an electronic device with a display screen, the device comprising:
the operation monitoring unit is used for monitoring input operation executed by a user in the process of text input of the first document; the input operation is used for acquiring a text to be pasted; the input operation includes: the method comprises the steps that a user inputs characters on a first document through a keyboard or a virtual keyboard of the electronic equipment; selecting a character or a character string in the first document; a copy operation, a cut operation or a font adjustment operation performed for the selected character or character string of the first document;
the matching item acquiring unit is used for acquiring a matching item of the text to be pasted under the condition of acquiring the text to be pasted, wherein the matching item is related to the text to be pasted, and the matching item comprises a text for explaining the text to be pasted or a translation of the text to be pasted; the text to be pasted includes information explaining the subject of the text to be pasted; the translation of the text to be pasted comprises the text which is the same as the text in the first document language environment;
the first control unit is used for pasting the matching item at the current text input position of the first document when a first operation is received;
the third control unit is used for pasting the text to be pasted to the current text input position of the first document when receiving a second operation under the condition that the text to be pasted is obtained;
the matching item acquisition unit comprises a first matching item acquisition module;
the first matching item acquisition module is used for determining the language environment of the first document, translating the text to be pasted into the language same as the language environment under the condition that the language of the text to be pasted is different from the language environment of the first document, and determining the translated text as the matching item of the text to be pasted; or the like, or, alternatively,
the matching item acquisition unit comprises a second matching item acquisition module;
the second matching item acquisition module is used for carrying out syntactic analysis on the text to be pasted, determining the subject of the text to be pasted, searching for auxiliary information related to the subject, and determining the searched auxiliary information as a matching item of the text to be pasted.
4. The text input apparatus according to claim 3, further comprising a second control unit configured to display the acquired plurality of matching items in a display area of the first document when the matching item acquisition unit acquires the plurality of matching items;
correspondingly, the first operation comprises a matching item selection operation and a matching item input operation;
the first control unit comprises a first control module and a second control module, the first control module is used for responding to the matching item selection operation to select at least one of the multiple matching items, and the second control module is used for responding to the matching item input operation to paste the selected at least one matching item at the current text input position of the first document.
5. An electronic device comprising a display, characterized in that the electronic device further comprises a text input device as claimed in claim 3 or 4.
CN201410014527.XA 2014-01-13 2014-01-13 Text input method, text input device and electronic equipment Active CN104778156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410014527.XA CN104778156B (en) 2014-01-13 2014-01-13 Text input method, text input device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410014527.XA CN104778156B (en) 2014-01-13 2014-01-13 Text input method, text input device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104778156A CN104778156A (en) 2015-07-15
CN104778156B true CN104778156B (en) 2021-03-19

Family

ID=53619630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410014527.XA Active CN104778156B (en) 2014-01-13 2014-01-13 Text input method, text input device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104778156B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102748A (en) * 2017-05-22 2017-08-29 北京百度网讯科技有限公司 Methods and input methods for entering words

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW336299B (en) * 1997-06-05 1998-07-11 Inventec Corp Method of match processing by combining language analysis in an electronic dictionary
CN101548280A (en) * 2006-10-02 2009-09-30 谷歌公司 Displaying original text in a user interface with translated text

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7475390B2 (en) * 2004-01-12 2009-01-06 International Business Machines Corporation System and method for automatic natural language translation during information transfer
CN101539910A (en) * 2009-01-15 2009-09-23 传神联合(北京)信息技术有限公司 A sentence taking method for computer aided translation and system thereof
KR20130004654A (en) * 2011-07-04 2013-01-14 삼성전자주식회사 Method and device for editing text in wireless terminal
CN103123566B (en) * 2011-11-21 2016-03-30 联想(北京)有限公司 Electronic equipment and character input method thereof
CN103246446B (en) * 2012-02-13 2017-12-29 联想(北京)有限公司 Multimedia input method and electronic equipment
CN102662935A (en) * 2012-04-08 2012-09-12 北京语智云帆科技有限公司 Interactive machine translation method and machine translation system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW336299B (en) * 1997-06-05 1998-07-11 Inventec Corp Method of match processing by combining language analysis in an electronic dictionary
CN101548280A (en) * 2006-10-02 2009-09-30 谷歌公司 Displaying original text in a user interface with translated text

Also Published As

Publication number Publication date
CN104778156A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
US8745051B2 (en) Resource locator suggestions from input character sequence
CN109190049B (en) Keyword recommendation method, system, electronic device and computer readable medium
EP3309691A1 (en) Search recommendation method and apparatus, device, and computer storage medium
US20120078979A1 (en) Method for advanced patent search and analysis
JP2018504727A (en) Reference document recommendation method and apparatus
US8930360B2 (en) System and method for online handwriting recognition in web queries
CN103488465B (en) Functional configuration recommends method and system
US20180218076A1 (en) Information obtaining method and apparatus
CN105243058B (en) A kind of web page contents interpretation method and electronic equipment
JP6211543B2 (en) Method and apparatus for text retrieval on a touch terminal
JP2015532753A (en) Character input method, system and apparatus
JP5025808B1 (en) Information processing apparatus and information processing program
CN106708885A (en) Method and device for achieving searching
EP3255566A1 (en) Text retrieval method and apparatus
JP5185891B2 (en) Content providing apparatus, content providing method, and content providing program
CN106919593B (en) A search method and device
CN119692478A (en) Information generation method, information interaction method, device, electronic device and medium
CN104778156B (en) Text input method, text input device and electronic equipment
US10628493B2 (en) Method and system for generating search query suggestions
RU2632126C1 (en) Method and system of providing contextual information
JP6235632B2 (en) Real-time writing support device
JP2018112806A (en) Image associating apparatus, image database, image retrieval apparatus, image retrieval system and program
JP5791668B2 (en) Information processing apparatus, method, and computer program
KR101072254B1 (en) Method and apparatus for providing an online dictionary service
JP5468576B2 (en) Translation apparatus, translation method, and translation program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant