# US 2017/0293592 A1 · Dynamically formatting scalable vector graphics

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0293592 A1
- Document ID: US20170293592A1
- Status: Published application
- Kind: A1
- Application number: 15/247,643
- Filed: 2016-08-25
- Published: 2017-10-12
- Earliest claimed: 2016-04-11
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC.
- Inventors: Haitao He; Stephanie Lorraine Horn; Thomas Roland Mignone; Matthew William Kernek; Ancuta Irina Zaharia
- Web page: https://patentgrep.com/patent/US20170293592A1

## CPC

- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 40/134: Hyperlinking
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The Scalable Vector Graphics (SVG) standard defines a way to describe two-dimensional graphics within the extensible markup language (XML) that can be interpreted by multiple programs. The SVG standard, however, lacks native support for several user experience features, such as look and feel settings (e.g., themes) that affect multiple objects within a document. The present disclosure, however, teaches how an SVG object may be made theme-aware and still comply with the SVG standard so that it is portable between files and applications that apply the present disclosure and those that do not. By enabling the dynamic updating of SVG objects, the benefits to the user experience and computer efficiency associated with standardized vector graphics and the document-wide application of look and feel settings can be realized without deviating from the SVG standard.

## Claims

### Claim 1

A method for dynamically formatting scalable vector graphic (SVG) objects based on update notifications of look and feel setting changes in a parent application, comprising:
adding, by a computer, a theme-aware SVG object to a document, the theme-aware SVG object including a display property linked to a look-and-feel property of the document related to a theme of the document;
applying, by the computer, a value of the look-and-feel property to the SVG object as a value for the display property;
listening, by the computer, for an update notification for the value of the look-and-feel property made in the document; and
updating, by the computer, the value for the display property.

### Claim 2 (depends on 1)

The method of claim 1, wherein adding the theme-aware SVG object to the document further comprises:
receiving, by the computer, a theme-unaware SVG object in the document;
receiving, by the computer, a selection of a desired display property of the theme-unaware SVG object;
receiving, by the computer, a selection of a desired look-and-feel property from the document related to the theme for the document; and
linking, by the computer, the desired display property to the desired look-and-feel property.

### Claim 3 (depends on 2)

The method of claim 2, wherein the selection of the desired display property and the selection of the desired look-and-feel property are received from a user.

### Claim 4 (depends on 2)

The method of claim 2, wherein the selection of the desired display property and the selection of the desired look-and-feel property are received from the computer based on a probabilistic analysis of the document and the theme-unaware SVG object.

### Claim 5 (depends on 2)

The method of claim 2, wherein linking the desired display property to the desired look-and-feel property further comprises:
defining, by the computer, in a cascading style sheet (CSS) region of a document object model (DOM) of the theme-unaware SVG object, a class tag, wherein the class tag is interpretable by the document as related to the desired look-and-feel property; and
setting, by the computer, a value in the class tag equal to a value of the desired look- and-feel property.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
removing, by the computer, the desired display property from a definition of a primitive in the DOM; and
adding, by the computer, the class tag to the definition of the primitive.

### Claim 7 (depends on 1)

The method of claim 1, wherein adding the theme-aware SVG object to the document further comprises:
receiving, by the computer, the theme-aware SVG object from a different document having a different set of look-and-feel properties.

### Claim 8 (depends on 1)

The method of claim 1, wherein the update notification that is listened for is generated in response to a user adjusting the value of the look-and-feel property of the document.

### Claim 9 (depends on 8)

The method of claim 8, wherein the user adjusts the value of the look-and-feel property by selecting a new theme for the document.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
receiving, by the computer, a selection of a desired display property for the theme-aware SVG object from a user, wherein the desired display property is linked to the look-and-feel property;
receiving, by the computer, a selection of a value for the display property that is not related a theme of the document; and
unlinking, by the computer, the desired display property from the look-and-feel property by removing the look-and-feel property from a CSS region of a DOM of the theme-aware SVG object and hardcoding the value for the display property in a primitive definition.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
receiving, by the computer, a selection of a desired display property for the theme-aware SVG object from a user, wherein the desired display property is linked to a first look-and-feel property;
receiving, by the computer, a selection of a second look-and-feel property from the user; and
relinking, by the computer, the desired display property from the first look-and-feel property to the second look-and-feel property by removing a class tag associated with the first look-and-feel property from a CSS region of a DOM of the theme-aware SVG object inserting a class tag associated with the second look-and-feel property into the CSS region of the DOM.

### Claim 12

A system for dynamically formatting scalable vector graphic (SVG) objects based on update notifications of look and feel setting changes in a parent application, comprising:
a processing unit; and
a system memory, including instructions, which when executed by the processing unit are operable to provide:
a listener, operable to identify the look and feel setting changes made in the parent application;
a model parser, operable to parse an SVG Document Object Model (DOM) of an SVG object in the parent application to identify display properties of the SVG object; and
a model modifier, operable to modify the SVG DOM in response to the listener identifying a given look and feel setting change that matches a given display property identified by the model parser for the SVG object to enable the SVG object to be theme-aware.

### Claim 13 (depends on 12)

The system of claim 12, wherein the listener is further operable to identify the SVG object based on receiving a selection event notification identifying the SVG object from the parent application.

### Claim 14 (depends on 12)

The system of claim 12, wherein the listener is further operable to identify the SVG object based on receiving an insertion event notification for inserting the SVG object into a document hosted by the parent application.

### Claim 15 (depends on 12)

The system of claim 12, wherein the SVG object is an instance of a master object stored by the parent application.

### Claim 16 (depends on 12)

The system of claim 12, wherein modifying the SVG DOM comprises:
defining a cascading style sheet (CSS) definition within the SVG DOM, including a class reference;
setting the class reference for the given display property to a value of the given look and feel setting change; and
replacing the given display property that matches the given look and feel setting change in the SVG DOM with the class reference.

### Claim 17 (depends on 12)

The system of claim 12, wherein enabling the SVG DOM to be theme-aware preserves an operability of the SVG object to be displayed in an application that does not support themes for SVG objects.

### Claim 18

A computer readable storage device including instructions to enable a computer to dynamically format scalable vector graphic (SVG) objects based on update notifications of look and feel setting changes in a parent application, the instructions comprising:
receiving a theme-unaware SVG object in a document, the theme-unaware SVG object comprising a document object model (DOM) defining a plurality of display properties related to the theme-unaware SVG object;
receiving a selection of a desired display property of the plurality of display properties for the theme unaware-SVG object;
receiving a selection of a given look-and-feel property from the document related to the theme for the document; and
linking the desired display property to the given look-and-feel property to produce a theme-aware SVG object based on the theme-unaware SVG object, wherein a cascading style sheet (CSS) definition is defined in the document that references the given look-and-feel property and the CSS definition is referenced in the DOM.

### Claim 19 (depends on 18)

The computer readable storage device of claim 18, where the instructions further include:
applying a value of the desired look-and-feel property to the theme-aware SVG object as a value for the desired display property;
listening for an update notification for the value of the desired look-and-feel property made in the document; and
updating the value for the desired display property in the CSS definition.

### Claim 20 (depends on 18)

The computer readable storage device of claim 18, wherein the theme-aware SVG object is operable to be displayed in an application that does not support themes for SVG objects, wherein the plurality of display properties determine how the application displays the theme-aware SVG object.
