Method, device, device and storage medium for text typesetting of web pages

A technology for text and web pages, applied in the fields of text typesetting methods, devices, equipment and storage media for web pages, can solve the problems of unreasonable typesetting position of text content, inability to switch text content, and unreasonable typesetting position.

Active Publication Date: 2022-08-05
SHANGHAI INGOT NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, when switching the language type of the text on the webpage, only the language type of the text that can be edited on the webpage is switched, and the language type of the text content in the webpage picture on the webpage cannot be switched. Moreover, the text content of the original language type in the web page picture is not reasonable enough in the typesetting position of the text content of the original language type in the web page picture due to the negligence of the developer when the web page is developed. In some text typesetting areas, the language conversion of these text content will also cause the problem that the typesetting position of the text content after language conversion is unreasonable

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
  • Method, device, device and storage medium for text typesetting of web pages
  • Method, device, device and storage medium for text typesetting of web pages
  • Method, device, device and storage medium for text typesetting of web pages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0064] In one embodiment, calculating the matching degree between the picture object and the converted text content, and determining the converted text content corresponding to the image object according to the matching degree between the image object and the converted text content Text content, including:

[0065] S131, obtaining label information corresponding to the picture object;

[0066] S132, calculating the degree of matching between the label information and each text in the converted text content;

[0067] S133. Associate the text in the converted text content whose matching degree with the label information is greater than a preset matching threshold with the picture object.

[0068] It should be noted that the label information includes the object attribute type of the picture object. For example, if the picture object is a monster character, the label information of the "monster character" is "magic person", wherein the label information of each of the picture ob...

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 discloses a text typesetting method for a web page, comprising: in response to a switching operation of the language type of the web page, extracting text content, image objects and position information of the image objects in the web page pictures of the web page; according to the current language to be switched to Type, convert the text content to the language type to obtain the converted text content; determine the converted text content corresponding to the image object; determine the typesetting area of ​​the converted text content according to the image object and its location information; The text content is typeset in the corresponding typesetting area. The invention also discloses a webpage text typesetting device, equipment and storage medium, which can rearrange the text content of the webpage image by confirming the image object and position information of the image, so that the language type of the text content in the webpage image can be changed. Can be converted and typeset in a reasonable position.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method, device, device and storage medium for text typesetting of web pages. Background technique [0002] In the prior art, a web page contains many pictures, and the pictures contain text content. At present, when the language type of the text on the webpage is switched, only the language type of the editable text on the webpage is switched, and the language type of the text content in the webpage picture on the webpage cannot be switched. Moreover, when the text content of the original language type in the webpage image is developed, due to the negligence of the developer, the layout position of the text content in the original language type in the webpage image is not reasonable enough in the webpage image, so that even in the original In some text typesetting areas, language conversion is performed on these text contents, and the problem of unreasonable typ...

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 Patents(China)
IPC IPC(8): G06F16/957G06T11/60G06F40/109G06F9/451
CPCG06F16/9577G06T11/60G06F40/109G06F9/454
Inventor 徐治钦周桂麟冯嘉妍
Owner SHANGHAI INGOT NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products