CN104765727A - Text translation method and device - Google Patents
Text translation method and device Download PDFInfo
- Publication number
- CN104765727A CN104765727A CN201410004372.1A CN201410004372A CN104765727A CN 104765727 A CN104765727 A CN 104765727A CN 201410004372 A CN201410004372 A CN 201410004372A CN 104765727 A CN104765727 A CN 104765727A
- Authority
- CN
- China
- Prior art keywords
- translation
- user
- text message
- word
- target language
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use 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)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Machine Translation (AREA)
Abstract
The invention discloses a text translation method and device. The method comprises the steps: after a translation service at a terminal is started, capturing a suspended touch control event on a touch screen at the terminal and acquiring text information in a suspended touch control area; translating the text information into a preset target language and displaying the translation result. By means of the technical scheme provided by the invention, the text translation for users can be facilitated greatly and the users' operation efficiency is improved.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of text translation method and device.
Background technology
Along with the development of touch-screen, suspension touch control technology (Floating Touch) is touch screen terminal, particularly a kind of brand-new technology mode of touch-screen mobile phone.Allow user use when mobile phone and just can complete mobile phone operation without the need to touching screen, finger and screen ensure that the distance of about 15mm just can obtain the operation of similar mouse on mobile phone, only finger need be hovered conveniently on screen touch-screen can be allowed to perceive and in mobile phone application, make the operation of correspondence.
Language Translation engine (Translate Engine) is the technical enabler supporting multilingual word, phrase and the sentence off-lines such as China and British, day, moral, method or online intertranslation.Current intelligent terminal does not also have a kind of ability of in mode very efficiently, text shown by touch-screen being carried out to target language translation, the practice common at present uses third party's independently translation software, could obtain translation result by after the many more manipulations of interface.
Summary of the invention
In order to solve the problem of carrying out text translation complex operation in prior art in touch screen terminal, propose a kind of text translation method and device.
The invention provides a kind of text translation method, comprising: after the translation service starting terminal, catch the suspension touch control event on terminal touch screen, obtain the text message in suspension touch control region; Text message is translated as the target language pre-set, and translation result is shown.
Preferably, text message is translated as the target language pre-set specifically to comprise: text message is sent to translation engine; Text message, according to the target language type pre-set, is translated into target language by translation engine, and returns translation result.
Preferably, the text message obtained in suspension touch control region specifically comprises: according to the setting of user, obtains word, phrase or sentence in floating touch area.
Preferably, according to the setting of user, word, phrase or the sentence obtained in floating touch area specifically comprises: if user is set to acquisition word, then obtain the word that the central point of the floating touch area of distance is nearest; If user is set to acquisition common phrases, then obtains all or part of content and be in a common phrases in floating touch area; If user is set to acquisition sentence, then obtain the sentence comprising the word nearest apart from the central point of floating touch area.
Preferably, determined whether as common phrases by the common phrases database in query translation engine.
Present invention also offers a kind of text translation device, comprising: trapping module, for after the translation service starting terminal, catch the suspension touch control event on terminal touch screen, obtain the text message in suspension touch control region; Translation module, for text message being translated as the target language pre-set, and shows translation result.
Preferably, translation module specifically comprises: send submodule, for text message is sent to translation engine; Translation engine, for according to the target language type pre-set, translates into target language by text message, and returns translation result.
Preferably, trapping module specifically for: according to the setting of user, obtain word, phrase or the sentence in floating touch area.
Preferably, trapping module specifically for: if user is set to acquisition word, then obtain the word that the central point of the floating touch area of distance is nearest; If user is set to acquisition common phrases, then obtains all or part of content and be in a common phrases in floating touch area; If user is set to acquisition sentence, then obtain the sentence comprising the word nearest apart from the central point of floating touch area.
Preferably, trapping module specifically for: determined whether as common phrases by the common phrases database in query translation engine.
Beneficial effect of the present invention is as follows:
Translated by translation engine by the text message that obtains in suspension touch control region, solve the problem of carrying out text translation complex operation in prior art in touch screen terminal, user greatly can be facilitated to carry out text translation, improve the efficiency of user operation.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the process flow diagram of the text translation method of the embodiment of the present invention;
Fig. 2 is the structural representation of the text translation device of the embodiment of the present invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In order to solve the problem of carrying out text translation complex operation in prior art in touch screen terminal, the invention provides a kind of text translation method based on suspension touch control technology, and based on the application of the method or service, be user-friendly to, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, do not limit the present invention.
Embodiment of the method
According to embodiments of the invention, provide a kind of text translation method, Fig. 1 is the process flow diagram of the text translation method of the embodiment of the present invention, and as shown in Figure 1, the text translation method according to the embodiment of the present invention comprises following process:
Step 101, after the translation service starting terminal, catches the suspension touch control event on terminal touch screen, obtains the text message in suspension touch control region;
In embodiments of the present invention, the suspension touch control event of catching on touch-screen refers to: when after this translation application of startup or service, system is at backstage persistent surveillance user behavior, when operation tool to be suspended in the distance of about about 15mm above screen by user, and stop certain hour and (give tacit consent to about 1 second, this time span user is reconfigurable), namely think that this event is suspension touch control event, enter the flow process of text translation.The operation tool that user uses can be finger, felt pen and other similar equipment.
The above-mentioned text translation flow process that enters refers to the text message obtaining this suspension touch control event respective user institute touch area, and these text messages are sent to translation engine.
In embodiments of the present invention, the capacity of text message can be a word, a common phrases or a complete sentence, allows user's configuration.
If 1 user is set to acquisition word, then obtain the word that the central point of the floating touch area of distance is nearest; If 2 users are set to acquisition common phrases, then obtain all or part of content and be in a common phrases in floating touch area; Wherein, can be determined whether as common phrases by the common phrases database in query translation engine; If 3 users are set to acquisition sentence, then obtain the sentence comprising the word nearest apart from the central point of floating touch area.
Step 102, is translated as the target language pre-set, and is shown by translation result by text message.
In a step 102, text message is translated as the target language pre-set specifically to comprise: text message is sent to translation engine; Text message, according to the target language type pre-set, is translated into target language by translation engine, and translation result is turned back to translation service.
In a step 102, after text message sends to translation engine, the text message received, according to the target language pre-set, is translated into the text message of target language by translation engine, and returns to translation application or service.Wherein, the target language pre-set, is defaulted as English, and user can be arranged voluntarily, supports that China and British, day, moral, method etc. are multilingual.After translation application or service receive the text message of target language, be illustrated on screen by certain form, checked for user.The form of wherein showing can be a POP frame or other form facilitating user to check.Wherein be illustrated in the POP frame on screen, user can manual-lock, also supports automatically to close after a certain time.
Below the technique scheme of the embodiment of the present invention is described in detail.
Step one: touch-screen catches the suspension touch control event of user, the track of this user's suspension touch control of software frame layer is reported by hardware layer, by software frame layer process generation hover events when suspension touch control event rests on one region time-out (Timeout) time, and the region of subsidiary hover events place screen, send to software application layer.
Step 2: software application layer receives this event finds this region later UI control by the region of hover events place screen, and get shown relevant textual information (being similar to the effect that some amplifier application software obtain text) by this UI control.
Step 3: user needs the target language arranging translation before this function of use, otherwise is the target language of acquiescence.The text message got is passed to translation engine by software application layer, and accessed text message is translated into target language by translation engine, and translation result comprises dictionary translation, text translation and network lexical or textual analysis etc.
Step 4: translation result text is turned back to software application layer by translation engine, is presented in translation result on mobile phone screen to user by POP frame or other forms by software application layer.
Be illustrated for SMS module below: special translating purpose language is set to English by user, finger is hovered over received a note (Chinese short message, content is: " how do you do? ") the about 15mm distance in top local certain hour (such as 1 second) after, eject a translation result POP frame, the content of display is: " How are you ".
In sum, by means of the technical scheme of the embodiment of the present invention, translated by translation engine by the text message that obtains in suspension touch control region, solve the problem of carrying out text translation complex operation in prior art in touch screen terminal, user greatly can be facilitated to carry out text translation, improve the efficiency of user operation.
Device embodiment
According to embodiments of the invention, provide a kind of text translation device, Fig. 2 is the structural representation of the text translation device of the embodiment of the present invention, as shown in Figure 2, text translation device according to the embodiment of the present invention comprises: trapping module 20 and translation module 22, be described in detail the modules of the embodiment of the present invention below.
Trapping module 20, for after the translation service starting terminal, catches the suspension touch control event on terminal touch screen, obtains the text message in suspension touch control region;
Trapping module 20 specifically for: according to the setting of user, obtain word, phrase or the sentence in floating touch area.
Particularly, if user is set to acquisition word, then obtain the word that the central point of the floating touch area of distance is nearest; If user is set to acquisition common phrases, then obtains all or part of content and be in a common phrases in floating touch area; If user is set to acquisition sentence, then obtain the sentence comprising the word nearest apart from the central point of floating touch area.
Trapping module 20 can be determined whether as common phrases by the common phrases database in query translation engine.
Translation module 22, for text message being translated as the target language pre-set, and shows translation result.
Translation module 22 specifically comprises: send submodule, for text message is sent to translation engine; Translation engine, for according to the target language type pre-set, translates into target language by text message, and translation result is turned back to translation service.
In sum, by means of the technical scheme of the embodiment of the present invention, translated by translation engine by the text message that obtains in suspension touch control region, solve the problem of carrying out text translation complex operation in prior art in touch screen terminal, user greatly can be facilitated to carry out text translation, improve the efficiency of user operation.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a text translation method, is characterized in that, comprising:
After the translation service starting terminal, catch the suspension touch control event on terminal touch screen, obtain the text message in suspension touch control region;
Described text message is translated as the target language pre-set, and translation result is shown.
2. the method for claim 1, is characterized in that, described text message is translated as the target language pre-set and specifically comprises:
Described text message is sent to translation engine;
Described text message, according to the target language type pre-set, is translated into target language, and is returned translation result by described translation engine.
3. the method for claim 1, is characterized in that, the text message obtained in suspension touch control region specifically comprises:
According to the setting of user, obtain word, phrase or the sentence in described floating touch area.
4. method as claimed in claim 3, it is characterized in that, according to the setting of user, word, phrase or the sentence obtained in described floating touch area specifically comprises:
If user is set to acquisition word, then obtain a word nearest apart from the central point of described floating touch area;
If user is set to acquisition common phrases, then obtains all or part of content and be in a common phrases in described floating touch area;
If user is set to acquisition sentence, then obtain the sentence comprising the word nearest apart from the central point of described floating touch area.
5. method as claimed in claim 4, be is characterized in that, determined whether as common phrases by the common phrases database in query translation engine.
6. a text translation device, is characterized in that,
Trapping module, for after the translation service starting terminal, catches the suspension touch control event on terminal touch screen, obtains the text message in suspension touch control region;
Translation module, for described text message being translated as the target language pre-set, and shows translation result.
7. device as claimed in claim 6, it is characterized in that, described translation module specifically comprises:
Send submodule, for described text message is sent to translation engine;
Described translation engine, for according to the target language type pre-set, translates into target language by described text message, and returns translation result.
8. device as claimed in claim 6, is characterized in that, described trapping module specifically for: according to the setting of user, obtain word, phrase or the sentence in described floating touch area.
9. device as claimed in claim 8, is characterized in that, described trapping module specifically for:
If user is set to acquisition word, then obtain a word nearest apart from the central point of described floating touch area;
If user is set to acquisition common phrases, then obtains all or part of content and be in a common phrases in described floating touch area;
If user is set to acquisition sentence, then obtain the sentence comprising the word nearest apart from the central point of described floating touch area.
10. device as claimed in claim 9, is characterized in that, described trapping module specifically for: determined whether as common phrases by the common phrases database in query translation engine.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410004372.1A CN104765727A (en) | 2014-01-06 | 2014-01-06 | Text translation method and device |
PCT/CN2014/074898 WO2015100871A1 (en) | 2014-01-06 | 2014-04-08 | Text translation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410004372.1A CN104765727A (en) | 2014-01-06 | 2014-01-06 | Text translation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104765727A true CN104765727A (en) | 2015-07-08 |
Family
ID=53493074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410004372.1A Pending CN104765727A (en) | 2014-01-06 | 2014-01-06 | Text translation method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104765727A (en) |
WO (1) | WO2015100871A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201277A (en) * | 2016-06-27 | 2016-12-07 | 乐视控股(北京)有限公司 | Chosen content is carried out the method for languages conversion, device and intelligent mobile terminal |
CN107273365A (en) * | 2017-05-17 | 2017-10-20 | 百度在线网络技术(北京)有限公司 | Display methods, device and the computer equipment of content distribution |
CN109145893A (en) * | 2017-06-19 | 2019-01-04 | 北京搜狗科技发展有限公司 | A kind of method, apparatus and equipment identifying object to be translated |
CN112905093A (en) * | 2021-03-10 | 2021-06-04 | Oppo广东移动通信有限公司 | Content display method, content display device, storage medium and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101526949A (en) * | 2009-03-31 | 2009-09-09 | 魏新成 | Operating method of desktop selected column after selecting text string by dragging and dropping left key of mouse |
CN102073746A (en) * | 2011-02-15 | 2011-05-25 | 魏新成 | Method for displaying microsearch result webpages in microwindow through microsearch operation |
US20120056830A1 (en) * | 2010-09-07 | 2012-03-08 | Seiji Suzuki | Information Processing Apparatus, Program, and Control Method |
WO2012115627A1 (en) * | 2011-02-22 | 2012-08-30 | Hewlett-Packard Development Company, L.P. | Control area for facilitating user input |
CN102707885A (en) * | 2012-05-02 | 2012-10-03 | 华为终端有限公司 | Operation method of touch screen and terminal |
CN102841746A (en) * | 2012-07-11 | 2012-12-26 | 广东欧珀移动通信有限公司 | Mobile phone webpage interaction method |
CN102905041A (en) * | 2011-07-29 | 2013-01-30 | 京瓷办公信息系统株式会社 | Operation apparatus, image forming apparatus, display control method |
CN102981764A (en) * | 2012-11-19 | 2013-03-20 | 北京三星通信技术研究有限公司 | Touch operation processing method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI450159B (en) * | 2012-03-02 | 2014-08-21 | Pixart Imaging Inc | Optical touch device, passive touch system and its input detection method |
CN202748770U (en) * | 2012-04-19 | 2013-02-20 | 潘晓雷 | Mobile terminal for regulating screen touch input range in self-adaptive mode |
-
2014
- 2014-01-06 CN CN201410004372.1A patent/CN104765727A/en active Pending
- 2014-04-08 WO PCT/CN2014/074898 patent/WO2015100871A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101526949A (en) * | 2009-03-31 | 2009-09-09 | 魏新成 | Operating method of desktop selected column after selecting text string by dragging and dropping left key of mouse |
US20120056830A1 (en) * | 2010-09-07 | 2012-03-08 | Seiji Suzuki | Information Processing Apparatus, Program, and Control Method |
CN102073746A (en) * | 2011-02-15 | 2011-05-25 | 魏新成 | Method for displaying microsearch result webpages in microwindow through microsearch operation |
WO2012115627A1 (en) * | 2011-02-22 | 2012-08-30 | Hewlett-Packard Development Company, L.P. | Control area for facilitating user input |
CN102905041A (en) * | 2011-07-29 | 2013-01-30 | 京瓷办公信息系统株式会社 | Operation apparatus, image forming apparatus, display control method |
CN102707885A (en) * | 2012-05-02 | 2012-10-03 | 华为终端有限公司 | Operation method of touch screen and terminal |
CN102841746A (en) * | 2012-07-11 | 2012-12-26 | 广东欧珀移动通信有限公司 | Mobile phone webpage interaction method |
CN102981764A (en) * | 2012-11-19 | 2013-03-20 | 北京三星通信技术研究有限公司 | Touch operation processing method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201277A (en) * | 2016-06-27 | 2016-12-07 | 乐视控股(北京)有限公司 | Chosen content is carried out the method for languages conversion, device and intelligent mobile terminal |
CN107273365A (en) * | 2017-05-17 | 2017-10-20 | 百度在线网络技术(北京)有限公司 | Display methods, device and the computer equipment of content distribution |
CN109145893A (en) * | 2017-06-19 | 2019-01-04 | 北京搜狗科技发展有限公司 | A kind of method, apparatus and equipment identifying object to be translated |
CN112905093A (en) * | 2021-03-10 | 2021-06-04 | Oppo广东移动通信有限公司 | Content display method, content display device, storage medium and electronic equipment |
WO2022188545A1 (en) * | 2021-03-10 | 2022-09-15 | Oppo广东移动通信有限公司 | Content display method and apparatus, storage medium, and electronic device |
CN112905093B (en) * | 2021-03-10 | 2022-11-15 | Oppo广东移动通信有限公司 | Content display method, content display device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2015100871A1 (en) | 2015-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10671813B2 (en) | Performing actions based on determined intent of messages | |
US9959340B2 (en) | Semantic lexicon-based input method editor | |
CN104123940A (en) | Voice control system and method based on intelligent home system | |
KR20160124182A (en) | Method and apparatus for grouping contacts | |
CN104919522A (en) | Distributed NLU/NLP | |
CN111753064B (en) | Man-machine interaction method and device | |
CN103699389A (en) | Linux kernel module relation extracting method based on compiling options | |
CN105786930A (en) | Touch interaction based search method and apparatus | |
CN105794155B (en) | Method, device and equipment for displaying message | |
CN103049571A (en) | Method and device for indexing menus on basis of speech recognition, and terminal comprising device | |
CN108268438B (en) | Page content extraction method and device and client | |
JP2015509625A (en) | Method and apparatus for text retrieval on a touch terminal | |
CN110941708B (en) | Intelligent question and answer library establishing method, intelligent question and answer method and device and computer equipment | |
CN104765727A (en) | Text translation method and device | |
CN105278970A (en) | Data processing method, device and terminal | |
CN103838713A (en) | Semantics analyzing method based on regular expression | |
CN104363349A (en) | Short message processing method and portable terminal using same | |
US10217455B2 (en) | Linguistic model database for linguistic recognition, linguistic recognition device and linguistic recognition method, and linguistic recognition system | |
CN103678706A (en) | Picture recognition method, system, equipment and device based on screenshot information | |
CN113051389B (en) | Knowledge pushing method and device | |
WO2016155643A1 (en) | Input-based candidate word display method and device | |
CN105302857A (en) | Method and equipment providing contact person information | |
US10291766B2 (en) | Information processing method and apparatus | |
CN102779178A (en) | Method for ordering by utilizing voice search on ipad tablet personal computer | |
CN104268195A (en) | Method and device for processing local resources in terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150708 |