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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


