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

Rapid analyzing method and system for SVG (Scalable Vector Graphics) file

A parsing method and file technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as spending a lot of time and affecting the speed of SVG parser, and achieve the effect of improving parsing speed

Inactive Publication Date: 2012-03-21
ASAT CHINA TECH
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the general application of SVG in the industrial field, the files are relatively complex, with many file nodes and rich file content, so the files themselves are relatively large, and the number of SVG nodes is likely to exceed 10,000. It takes a lot of time to identify the SVG node labels during the parsing process. comparison, making the file size and the number of nodes the biggest problem affecting the speed of the SVG parser

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
  • Rapid analyzing method and system for SVG (Scalable Vector Graphics) file
  • Rapid analyzing method and system for SVG (Scalable Vector Graphics) file
  • Rapid analyzing method and system for SVG (Scalable Vector Graphics) file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe the implementation of the present invention in detail in conjunction with the accompanying drawings.

[0065] The first embodiment of the present invention relates to a method for quickly parsing an SVG file.

[0066] In this embodiment, all node labels in the SVG file need to be associated with an integer in advance, and the correspondence between node labels and integers is formed into a mapping relationship table, such as a hash table. The mapping relationship is that node labels are mapped to integers. In addition, object categories corresponding to different integers are stored in advance, or objects to be created for different integers are preset.

[0067] The specific analysis process is as follows figure 2 shown.

[0068] Step 201: read and parse the SVG file, and go to step 202 when a node label is parsed.

[0069] Step 202: ...

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 rapid analyzing method and system for an SVG (Scalable Vector Graphics) file; as node labels in the SVG file generally are composed of character strings with unfixed lengths, a large number of node labels are needed to be compared and identified in the file analyzing process; and the comparison speed of the character strings is relatively slower so that the identifying speed of the node labels becomes slow. The rapid analyzing method comprises the following steps of: firstly mapping the character strings to simple markers (such as numbers, single characters or 2-bitcharacter strings) by using a mapping technology, directly comparing the simple markers when the node labels of the SVG (Scalable Vector Graphics) file are analyzed, and therefore, the character strings with unfixed lengths are not needed to be compared one by one, AND the comparison speed of the numbers or the single character is higher than that of the character strings with unfixed lengths. Therefore, by adopting the invention, the analyzing speed of the SVG (Scalable Vector Graphics) file can be remarkably increased under the condition that the SVG (Scalable Vector Graphics) file containsa large number of node labels.

Description

technical field [0001] The invention relates to a vector graphic analysis technology, in particular to an SVG file analysis technology. Background technique [0002] The graphics displayed in the computer can generally be divided into two categories - vector graphics and bitmaps. [0003] Vector graphics use straight lines and curves to describe graphics. The elements of these graphics are some points, lines, rectangles, polygons, circles and arcs, etc., which are all calculated by mathematical formulas. For example, a vector graphic of a flower is actually composed of line segments to form an outer frame outline, and the color of the flower is determined by the color of the outer frame and the color enclosed by the outer frame. Because vector graphics can be calculated by formulas, the file size of vector graphics is generally small. The biggest advantage of vector graphics is that it will not be distorted no matter how zoomed in, zoomed out or rotated. [0004] Bitmaps,...

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): G06F17/30
Inventor 林吉俞高宇张晓华
Owner ASAT CHINA TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More