Unlock instant, AI-driven research and patent intelligence for your innovation.

Webpage text translation method and system, terminal and medium

A translation system and text technology, applied in the field of computer-aided translation, can solve problems such as overflow of translated text and chaotic layout of web interface, and achieve the effect of improving standardization, good applicability, and improving reading experience

Pending Publication Date: 2021-08-10
杭州轻寻科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a method, system, terminal and medium for translating webpage text, which is used to solve the overflow of translated text in existing webpage translation methods, resulting in The layout of the web interface is confusing and other issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Webpage text translation method and system, terminal and medium
  • Webpage text translation method and system, terminal and medium
  • Webpage text translation method and system, terminal and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] see figure 1 , is a schematic flow chart of the steps in Embodiment 1 of the web page text translation method provided by the present invention.

[0028] Such as figure 1 As shown, the method includes the following steps:

[0029] S100, acquiring the webpage to be translated, and extracting the text to be translated in the webpage;

[0030] Specifically, the user end traverses each text node in the webpage to be translated based on the webpage script language program, and extracts the text to be translated from each text node.

[0031] It should be noted that the extracting the text to be translated in each text node in the webpage includes but not limited to the text to be translated in all the text nodes in the webpage, or the text to be translated in the text node selected based on the selected instruction. Translate text.

[0032] S200. Send the text to be translated to a server, so that the server translates the text to be translated into target texts respectiv...

Embodiment 2

[0050] Embodiment 2 of the present invention provides another method for translating webpage text, which is used for real-time translation of webpages containing dynamic text.

[0051] In this embodiment, on the basis of the method described in Embodiment 1, the web page text translation method also includes repeatedly executing the monitoring process, and the monitoring process includes the following steps:

[0052] S100', according to the preset monitoring frequency, monitor whether there is a web page event change in the current web page, and if so, extract the text to be translated associated with the changed web page event after the change;

[0053] Specifically, the client traverses the current webpage to be translated based on the scripting language program, and monitors whether there is a webpage event change in the webpage according to the preset monitoring frequency; for example, monitors whether the DOMNodeInserted event is triggered; when it detects that the webpage...

Embodiment 3

[0061] Embodiment 3 of the present invention provides a web page text translation system for translating text in web pages. It should be noted that, in this embodiment, the webpage text translation system is used to execute the method steps in the embodiment shown in Embodiment 1 of the present invention. For the convenience of description, only the steps related to the embodiment of the present invention are shown. For the part where the specific technical details are not disclosed, please refer to the embodiment shown in Embodiment 1 of the present invention.

[0062] refer to figure 2 , which is a structural schematic diagram of the webpage text translation system provided by the present invention in this embodiment; as figure 2 As shown, the web page text translation system 3 includes: a first extraction module 31 , a translation module 32 , a replacement module 33 and a display module 34 .

[0063] The first extracting module 31 is configured to acquire the webpage t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a webpage text translation method and system, a terminal and a computer storage medium, and the method comprises the steps: extracting a to-be-translated text in a to-be-translated webpage, obtaining a corresponding target text based on the to-be-translated text, matching the target text with the corresponding to-be-translated text, and replacing the target text with the corresponding to-be-translated text; detecting whether an overflow text exists in the target text, and if yes, hiding the overflow text; and in response to a display instruction, displaying the overflow text corresponding to the display instruction. Not only can the webpage text be quickly translated, but also the problem of disordered text typesetting after translation is solved, the standardization and the neatness of webpage typesetting after translation are ensured, and the reading experience of the translated text is improved.

Description

technical field [0001] The present invention relates to the field of computer-aided translation, in particular to a web page text translation method, system, terminal and computer storage medium. Background technique [0002] With the vigorous development of Internet technology and network applications, online translation has been used more and more by virtue of its fast and time-saving advantages. [0003] However, the currently commonly used web page translation methods often only translate the text information in the web page, without taking into account the display of the translated text on the web page and the layout style of the page. The translated text exceeds the display range of the original text on the webpage, etc., which leads to confusion in the display of the translated webpage text information; or adopts another set of style processing rules for the translated text and rearranges it before displaying it. However, this This processing method often needs to ad...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/40
CPCG06F40/40
Inventor 曾波
Owner 杭州轻寻科技有限公司