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

Typesetting and rendering method and system for graphic-text mixed content

A technology for rendering systems and content, applied in the network field, can solve the problems of inflexible modification and adjustment, the memory cannot be released immediately, and no intervention and adjustment can be carried out, so as to achieve a simple and clear code structure, easy modification and maintenance, and reduced waiting time. Effect

Active Publication Date: 2017-05-17
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above solution still has the following deficiencies: (1) Low memory efficiency: the UIWebView view control is relatively large, and its own operation will consume more memory resources, and when the UIWebView view control is destroyed, the memory it occupies cannot be immediately released
(2) The typesetting efficiency is low and the modification and adjustment after typesetting are inflexible: the typesetting method of the content displayed by UIWebView must be set through HTML CSS style before typesetting, and the typesetting process is automatically carried out by UIWebView, and no intervention or adjustment is allowed , the adjustment after typesetting must be implemented by executing JavaScript
[0005] Of course, the memory efficiency of the above solution is also low: because all the text is typeset and rendered at one time, if the text is long, the view area used to contain the text will be large, which will take up a lot of memory resources; if the text There are a lot of pictures in the file, which will also take up a lot of memory resources. In severe cases, the application software will exit due to memory exhaustion.

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
  • Typesetting and rendering method and system for graphic-text mixed content
  • Typesetting and rendering method and system for graphic-text mixed content

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] In order to further explain the technical means and effects of the present invention to achieve the intended purpose of the invention, the specific implementation of the typesetting and rendering method and system for mixed graphic and text content proposed according to the present invention will be described below in conjunction with the accompanying drawings and preferred embodiments , structure, feature and effect thereof, detailed description is as follows.

[0015] figure 1 Shown is a schematic flowchart of a typesetting and rendering method for graphic-text mixed content, which is used in the software operating system IOS of the handheld device developed by Apple Inc. Such as figure 1 As shown, the method includes:

[0016] Step S 101: The server parses the content in HTML format obtained from the content source, divides the text content into paragraphs and stores it as an array, and each array item in the array corresponds to a text paragraph. At the same time...

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 method and a system for typesetting and rendering image-text mixed content and aims at improving memory utilization by typesetting and rendering in a fragmenting mode. The method comprises the step of fragmenting text content and storing the text content as an array by using parsed content of a server, fragmenting image content and marking as an image type, inserting the image type into a corresponding position of the array and storing corresponding image data; requesting content data from the server by application software; sending the corresponding content array to the application software by the server; typesetting and rendering fragmentations in the content array by the application software, typesetting the fragmentation by using Core Text when a fragmentation is a text paragraph, taking the paragraph as one item of a form and adding the paragraph into UITableView to render; and taking a default image as a placeholder when the fragmentation is an image, taking the fault image as one item of the form, adding the fault image to the UITableView to render, requesting image data in the content from the server, and replacing the fault image by using a received image after receiving the image data.

Description

technical field [0001] The present invention relates to network technology, and in particular to a method and system for using UITableView and CoreText in an IOS system to perform slice typesetting and rendering of graphic-text mixed content. Background technique [0002] An existing typesetting and rendering implementation scheme for graphic-text mixed content is that the server converts the text information containing picture links into a specific CSS (Cascading Style Sheets, Cascading Style Sheet) style HTML-formatted webpage suitable for display on smart terminals. stored on the server. The user uses the application software of the terminal to request the server, and after obtaining the content in HTML format, the application software transfers the content to the view control UIWebView for displaying web page content in the IOS system (the software operating system for handheld devices developed by Apple). UIWebView will automatically typeset and render text. If the ap...

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): G06F17/25H04L29/08G06F40/189
Inventor 余佳
Owner TENCENT TECH (SHENZHEN) CO LTD