CN105740239A - Translation method and system of character on webpage - Google Patents

Translation method and system of character on webpage Download PDF

Info

Publication number
CN105740239A
CN105740239A CN201610068883.9A CN201610068883A CN105740239A CN 105740239 A CN105740239 A CN 105740239A CN 201610068883 A CN201610068883 A CN 201610068883A CN 105740239 A CN105740239 A CN 105740239A
Authority
CN
China
Prior art keywords
translation
content
webpage
client
word
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
Application number
CN201610068883.9A
Other languages
Chinese (zh)
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.)
Mandarin Technology (beijing) Co Ltd
Original Assignee
Mandarin Technology (beijing) 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 Mandarin Technology (beijing) Co Ltd filed Critical Mandarin Technology (beijing) Co Ltd
Priority to CN201610068883.9A priority Critical patent/CN105740239A/en
Publication of CN105740239A publication Critical patent/CN105740239A/en
Pending legal-status Critical Current

Links

Classifications

    • 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)
  • 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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a translation method and system of a character on a webpage, relates to the technical field of machine translation, and solves the technical problem that word-selection translation can not be carried out on a webpage. The technical scheme comprises the following steps: analyzing webpage contents on a client side, transmitting the analyzed text contents to a translation system on a server side, translating transmitted characters by the translation system, transmitting a translation result back to the client side, and displaying on the webpage.

Description

The interpretation method of word and system on a kind of webpage
Technical field
The present invention relates to machine translation mothod field, particularly to the interpretation method of word on a kind of webpage and system.
Background technology
Along with the expanded range browsing webpage of people, unavoidably sometimes meet some foreign languages oneself being ignorant of.This is accomplished by unacquainted several words or one section of word are translated, and just can be well understood by reading content, and this just draws word technology in the urgent need to webpage.Traditional translation software needs to download an installation kit, needs to install and enable to draw word function, and a stroke word function can only use in a document, for instance Office software after download.But can not use in webpage.
Check some technology of present web page translation, it is all that then the label substance one to webpage passes back to client with multiple servers that is transmitted, thus can produce the mutual of troublesome client and service end, cause that translation speed is slow, and the most of the time has been used in the data transmission of client and service end, when network speed is bad, user experience can be very poor.Translate the page when client translating web page is bigger and may postpone appearance, thus have bad Consumer's Experience.Solve the slow-footed problem of web page translation.Traditional technological means is to obtain the content of text of text class labels whole in webpage, far call machine translation one by one, so there is a problem in that in translation process needs frequently and translating server is mutual, mutual number of times is more many, the time translated is more late, and overall translation is that speed is more slow.
Summary of the invention
The present invention is to solve the technical problem of word translation can not be drawn in webpage.
In order to solve the problems referred to above, the invention provides the interpretation method of word on a kind of webpage, in client analyzing web page content, word content after parsing is sent to the translation system of server end, the character transmitted is translated by translation system, translation result sends back client and shows on webpage.
Present invention also offers the translation system of word on a kind of webpage, including client and server end, described client includes one and resolves and transport module, for in client analyzing web page content, word content after parsing is sent to the translation system of server end, the character transmitted is translated by translation system, translation result sends back client and shows on webpage.
Technical scheme achieves interpretation method and the system of word on a kind of webpage, makes user just can see translation result at the former page, translates, without pasting to copy to, stroke word function achieving page end, save valuable time for user in translation tool.
Accompanying drawing explanation
The interpretation method schematic flow sheet of word on a kind of webpage of Fig. 1;
Fig. 2 draws word interpretation method schematic flow sheet;
Fig. 3 web page translation method flow schematic diagram;
The translation system schematic diagram of word on a kind of webpage of Fig. 4.
Detailed description of the invention
Below in conjunction with drawings and Examples, technical scheme is described in detail.
If it should be noted that do not conflict, the embodiment of the present invention and each feature in embodiment can be combined with each other, all within protection scope of the present invention.Although it addition, illustrate logical order in flow charts, but in some cases, it is possible to perform shown or described step with the order being different from herein.
Embodiment one, the interpretation method of word on a kind of webpage, as shown in Figure 1, including: in client analyzing web page content, content after resolving is sent to server end translation system, and the character transmitted is translated by translation system, translation result sends back client and shows on webpage.Translation result may be displayed on the limit of the web page contents needing translation.The technical program, user chooses passage when browsing webpage, can carry out the translation of correspondence.
Embodiment two, the interpretation method of word on a kind of webpage, as shown in Figure 2, including: on the basis of embodiment one, described before client analyzing web page content, by choosing one section of text or several word, utilize JavaScript to obtain the word content needing translation drawing in selected ci poem.
Particularly as follows: first user browses webpage, producing to draw word action, namely mouse chooses one section of text.The content needing translation that user draws in selected ci poem is sent to translation system to utilize JavaScript (a kind of script) to obtain.Secondly, the character transmitted is translated and produces translation result by translation system.Finally, translation result is sent to user's browsing pages and is shown to user.
User can be made directly stroke word translation of local for the word or paragraph needing translation at current page, so can save user and open the time of other translation tools, duplication, stickup.What make that user uses is convenient.Increase the Experience Degree of user.
Embodiment three, the interpretation method of word on a kind of webpage, as it is shown on figure 3, include:
On the basis of embodiment one, described before client analyzing web page content, entirely select whole webpage, afterwards all the elements are resolved, to wherein need the content of text numbered list storage of translation, the content of list storage after parsing is sent to the translation system of server end, when translation amount is bigger, to list packet transaction.
The text that be there is a need to translation is stored into a list, is once transferred to service end, once passes back after having translated, reduce and server interaction number of times.When client translation amount is bigger, translating web page is carried out packet transaction, a part for a transmission list, reduces the interaction times of client and service end, bigger optimization Consumer's Experience as far as possible.
The technical program is intended to the network service number of times reducing web page translation plug-in unit client and server end and reduces unnecessary translation content, to reach to accelerate the purpose of web page translation bulk velocity.Such as Webpage has 100 texts needing translation, and traditional Translation Strategy adopts far call machine translation one by one, takes translation result and replaces the corresponding text of the page again.Assume that network service once needs 100 milliseconds, traditional translation needs 100 milliseconds and is multiplied by 100 communication, could translate equal to 10 seconds, pass through DOM, after parsing, the list directly transmitting 100 texts that be there is a need to translation only communicates once, and 100 milliseconds just can return translation result, fast 100 times than traditional approach.Described DOM is the DOM Document Object Model (DocumentObjectModel, hereinafter referred to as DOM) of webpage.
More excellent, described all the elements are resolved time, reject the content that need not translate.Webpage DOM resolves, and extracts all texts needing translation demonstrated.Reject the content of text of unwanted translation, for instance programming code, be not displayed to the content of text etc. of user.Technical scheme reduces unnecessary translation content, it it is the content that need not translate existed in a webpage, the content that such as programming code part need not be translated often, it is not illustrated in the content in the page also without translation in addition with some, by rejecting the content that this part need not be translated, the translation pressure of translating server can be reduced, also can accelerate the page translation speed of entirety.
More excellent, after client receives the list after translation, replace the content on webpage according to numbering.
Concretely comprise the following steps:
1, user browses webpage, namely opens any one outer web page text with browser and browses.
2, open web page translation plug-in unit, click translation button.
3, after clicking translation button, all the elements of the page currently browsed can be resolved by the plug-in card program run in client.
4, the content wherein needing the text-type of translation is all stored into a list.
5, network service, it would be desirable to the text list of translation is transferred to the service end of browser plug-in.
6, service end is called and is translated storehouse machine translation to needing all texts in the text list translated to translate one by one.
7, network service, is transferred to the client of web page translation plug-in unit by the list after translation.
8, after web page translation plug-in unit client receives the text list after translation, the text of original list is replaced so that the Web evolution that user currently browses becomes the webpage after translation.
Described translation plug-in has parsing and transfer function, and the translation plug-in in the parsing of the present invention and transport module is light especially, directly can install in browser application shop, it is not necessary to downloads and installs.Just can enable after installation and draw word function, it is achieved that stroke word function of page end.
The technical program is by the DOM technology resolved, weed out part (the such as programming code need not translated in webpage, the page does not appear in the content etc. in interface), decrease the total amount of translation, simultaneously, all translation contents are given the service end of translation to reduce the interaction times with service end as an overall transfer by utilization, reach the purpose that entirety translation is accelerated.
Embodiment four, the translation system of word on a kind of webpage, as shown in Figure 4, including: include client and server end, described client includes one and resolves and transport module, in client analyzing web page content, the content after parsing being sent to the translation module of server end, the character transmitted is translated by translation module, translation result sends back client and shows on webpage.Described parsing and transport module include having the translation plug-in resolved with transfer function.
Described before client analyzing web page content, by choosing one section of text or several word, utilize JavaScript to obtain the word content needing translation drawing in selected ci poem.
Described before client analyzing web page content, entirely select whole webpage, afterwards all the elements are resolved, to wherein need the content of text numbered list storage of translation, the content of list storage after parsing is sent to the translation module of server end, when translation amount is bigger, to list packet transaction.
Described all the elements are resolved time, reject the content that need not translate.
After client receives the list after translation, replace the content on webpage according to numbering.
The basic one_to_one corresponding of System and method for content, with specific reference to embodiment one to three.
The technical program utilizes where user draws the technical scheme where word just can be translated, and facilitates user to translate, and increases the good experience of user.Improve the duplication of old stuff, open web page translation system, paste, the method that the multi-step such as translation is consuming time.
In order to reduce the interaction times of client and service end, present invention achieves the technical scheme that webpage entirety transmits, accelerate translation speed technology.The technical program can once transmit the info web of client and carry out translation process in service end, then the information after overall return process.Reach once the effect of mutual overall translation.
One of ordinary skill in the art will appreciate that all or part of step in said method can be carried out instruction related hardware by program and complete, described program can be stored in computer-readable recording medium, such as read only memory, disk or CD etc..Alternatively, all or part of step of above-described embodiment can also use one or more integrated circuit to realize.Correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes.The present invention is not restricted to the combination of the hardware and software of any particular form.
Certainly; the present invention also can have other various embodiments; when without departing substantially from present invention spirit and essence thereof; those of ordinary skill in the art are when can make various corresponding change and deformation according to the present invention, but these change accordingly and deform the scope of the claims that all should belong to the present invention.

Claims (10)

1. the interpretation method of word on a webpage, it is characterized in that, in client analyzing web page content, the content after resolving is sent to server end translation system, the character transmitted is translated by translation system, translation result sends back client and shows on webpage.
2. interpretation method as claimed in claim 1, it is characterised in that described before client analyzing web page content, by choosing one section of text or several word, utilizes JavaScript to obtain the word content needing translation drawing in selected ci poem.
3. interpretation method as claimed in claim 1, it is characterized in that, described before client analyzing web page content, entirely select whole webpage, afterwards all the elements are resolved, will wherein need the content of text numbered list storage of translation, the content of list storage after parsing is sent to the translation system of server end, when translation amount is bigger, to list packet transaction.
4. interpretation method as claimed in claim 3, it is characterised in that described all the elements are resolved time, the content that rejecting need not be translated.
5. interpretation method as claimed in claim 3, it is characterised in that after client receives the list after translation, replace the content on webpage according to numbering.
6. the translation system of word on a webpage, it is characterized in that, including client and server end, described client includes one and resolves and transport module, for in client analyzing web page content, content after parsing is sent to the translation module of server end, and the character transmitted is translated by translation module, translation result sends back client and shows on webpage.
7. translation system as claimed in claim 6, it is characterised in that described before client analyzing web page content, by choosing one section of text or several word, utilizes JavaScript to obtain the word content needing translation drawing in selected ci poem.
8. translation system as claimed in claim 6, it is characterized in that, described before client analyzing web page content, entirely select whole webpage, afterwards all the elements are resolved, will wherein need the content of text numbered list storage of translation, the content of list storage after parsing is sent to the translation module of server end, when translation amount is bigger, to list packet transaction.
9. translation system as claimed in claim 8, it is characterised in that described all the elements are resolved time, the content that rejecting need not be translated.
10. translation system as claimed in claim 8, it is characterised in that after client receives the list after translation, replace the content on webpage according to numbering.
CN201610068883.9A 2016-02-01 2016-02-01 Translation method and system of character on webpage Pending CN105740239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610068883.9A CN105740239A (en) 2016-02-01 2016-02-01 Translation method and system of character on webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610068883.9A CN105740239A (en) 2016-02-01 2016-02-01 Translation method and system of character on webpage

Publications (1)

Publication Number Publication Date
CN105740239A true CN105740239A (en) 2016-07-06

Family

ID=56242036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610068883.9A Pending CN105740239A (en) 2016-02-01 2016-02-01 Translation method and system of character on webpage

Country Status (1)

Country Link
CN (1) CN105740239A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552527A (en) * 2020-04-02 2020-08-18 支付宝实验室(新加坡)有限公司 Method, device and system for translating characters in user interface and storage medium
WO2020248849A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Webpage language switching method and apparatus, and terminal device
CN113438542A (en) * 2021-05-28 2021-09-24 北京智慧星光信息技术有限公司 Subtitle real-time translation method, system, electronic equipment and storage medium
CN113536811A (en) * 2021-07-14 2021-10-22 杭州隆埠科技有限公司 Translation method and device for rich text document

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209643A (en) * 2000-01-25 2001-08-03 Joyport Kk Machine translation system, translation server therefor and client therefor
CN103914446A (en) * 2013-01-08 2014-07-09 崴强科技股份有限公司 Translation method and system
CN104021127A (en) * 2013-03-01 2014-09-03 联想(北京)有限公司 Information processing method and electronic device
CN104462074A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for conducting webpage data translation and browser client side
US20150356074A1 (en) * 2014-03-28 2015-12-10 Alibek ISSAEV Machine Translation System and Method
CN105243057A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Method for translating web page contents and electronic device.

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209643A (en) * 2000-01-25 2001-08-03 Joyport Kk Machine translation system, translation server therefor and client therefor
CN103914446A (en) * 2013-01-08 2014-07-09 崴强科技股份有限公司 Translation method and system
CN104021127A (en) * 2013-03-01 2014-09-03 联想(北京)有限公司 Information processing method and electronic device
US20150356074A1 (en) * 2014-03-28 2015-12-10 Alibek ISSAEV Machine Translation System and Method
CN104462074A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for conducting webpage data translation and browser client side
CN105243057A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Method for translating web page contents and electronic device.

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020248849A1 (en) * 2019-06-14 2020-12-17 平安科技(深圳)有限公司 Webpage language switching method and apparatus, and terminal device
CN111552527A (en) * 2020-04-02 2020-08-18 支付宝实验室(新加坡)有限公司 Method, device and system for translating characters in user interface and storage medium
CN113438542A (en) * 2021-05-28 2021-09-24 北京智慧星光信息技术有限公司 Subtitle real-time translation method, system, electronic equipment and storage medium
CN113438542B (en) * 2021-05-28 2022-11-08 北京智慧星光信息技术有限公司 Subtitle real-time translation method, system, electronic equipment and storage medium
CN113536811A (en) * 2021-07-14 2021-10-22 杭州隆埠科技有限公司 Translation method and device for rich text document

Similar Documents

Publication Publication Date Title
Asakawa et al. Transcoding
CN100535900C (en) Method and system for rendering asynchronous portal page
CN105824787B (en) A kind of control method and system of html template dynamic configuration
CN103955364B (en) A kind of front end assemblies method suitable for mobile phone
US7496497B2 (en) Method and system for selecting web site home page by extracting site language cookie stored in an access device to identify directional information item
CN107808010A (en) A kind of pop-up page generation method, device, browser and storage medium
CN100565524C (en) A kind of system, method and browser of preserving web page contents
CN106371844A (en) Method and system for presenting webpage by native user interface assembly
US20010014900A1 (en) Method and system for separating content and layout of formatted objects
US20100205524A1 (en) Extensible stylesheet designs using meta-tag information
CN106293675B (en) System static resource loading method and device
CN103166981A (en) Wireless webpage transcoding method and device
CN105740239A (en) Translation method and system of character on webpage
CN102831190B (en) A kind of method that CML files are browsed in low side devices
US20040268256A1 (en) Program, character inputting and editing method, apparatus and storage medium
CN103383687A (en) Page processing method and device
CN106886551A (en) A kind of method and device of utilization markup language display image
WO2014153457A1 (en) Merging web page style addresses
CN109976840A (en) The method and system of multilingual automatic adaptation are realized under a kind of separation platform based on front and back
CN107545058A (en) A kind of page loading method, server and browser
CN105224544A (en) A kind of data editing method of database and device
CN104090869B (en) A kind of method and translation system for translating the network information
CN106547511A (en) A kind of voice broadcasts method, browser client and the server of reading web page information
CN112417338B (en) Page adaptation method, system and equipment
CN106708506A (en) Method and device for optimizing starting speed of Android applications visually

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100040 Shijingshan District railway building, Beijing, the 16 floor

Applicant after: Chinese translation language through Polytron Technologies Inc

Address before: 100040 Shijingshan District railway building, Beijing, the 16 floor

Applicant before: Mandarin Technology (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706