# US 2008/0301560 A1 · Retaining Style Information when Copying Content

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

- Number: US 2008/0301560 A1
- Document ID: US20080301560A1
- Status: Published application
- Kind: A1
- Application number: 11/754,662
- Filed: 2007-05-29
- Published: 2008-12-04
- Earliest claimed: 2007-05-29
- Assignees: Microsoft Corporation
- Inventors: Justin E. Rogers; Markus Mielke
- Web page: https://patentgrep.com/patent/US20080301560A1

## CPC

- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- 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/166: Editing, e.g. inserting or deleting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An illustrative implementation is described for copying an identified portion of source content along with style information associated with the portion. The implementation allows the identified portion to be pasted into target content. By virtue of the extraction and retention of style information, the identified portion that is pasted into the target content visually resembles the identified portion as it appears in the source content. The implementation can identify relevant style information to be preserved based on a contextual analysis of style information applied to the source content. In one illustrative case, some of the style information may be revealed by parts of the content that are not directly demarcated by the identified portion.

## Claims

### Claim 1

A method for copying a portion of source content, comprising:
receiving a selection that identifies a portion of source content to be copied, to provide an identified portion, wherein the source content is expressed by corresponding markup information;
identifying markup information associated with the identified portion, to provide identified markup information;
identifying style information associated with the identified portion, to provide identified style information, at least part of the identified style information not being directly demarcated by the identified portion; and
storing the identified markup information and the identified style information in a store.

### Claim 2 (depends on 1)

The method of claim 1, wherein the receiving of the selection comprises receiving a user's selection of the identified portion within a graphical presentation of the source content.

### Claim 3 (depends on 1)

The method of claim 1, wherein the receiving of the selection comprises receiving a user's selection of the identified portion within a presentation of markup information associated with the source content.

### Claim 4 (depends on 1)

The method of claim 1, wherein the identifying of style information comprises identifying at least one node associated with the source content that is not directly demarcated by the identified portion, and extracting style information associated with said at least one node.

### Claim 5 (depends on 4)

The method of claim 4, wherein said at least one node corresponds to a node that has a parent-type or ancestor-type relationship with respect to the identified portion.

### Claim 6 (depends on 4)

The method of claim 4, wherein said at least one node corresponds to a node that does not have a parent-type or ancestor-type relationship with respect to the identified portion.

### Claim 7 (depends on 1)

The method of claim 1, wherein the identifying of style information comprises extracting style information that is inline with respect to the corresponding markup information associated with the source content.

### Claim 8 (depends on 1)

The method of claim 1, wherein the identifying of style information comprises extracting style information from an external source with respect to the corresponding markup information associated with the source content.

### Claim 9 (depends on 1)

The method of claim 1, wherein the identifying of style information comprises determining one or more style rules associated with the source content that apply to the identified portion.

### Claim 10 (depends on 9)

The method of claim 9, wherein the identifying of style information comprises restructuring markup information corresponding to the source content so that at least one of said style rules continues to apply to the identified portion.

### Claim 11 (depends on 9)

The method of claim 9, wherein the identifying of style information comprises restructuring at least one of said style rules to provide a restructured style rule, so that the restructured style rule applies to the identified portion.

### Claim 12 (depends on 1)

The method of claim 1, wherein the corresponding markup information is HyperText Markup Language (HTML) information.

### Claim 13 (depends on 1)

The method of claim 1, wherein the identified style information is Cascading Style Sheets (CSS) information.

### Claim 14 (depends on 1)

The method of claim 1, wherein the store is a clipboard store.

### Claim 15 (depends on 1)

The method of claim 1, further comprising pasting the identified portion into target content.

### Claim 16 (depends on 15)

The method of claim 15, wherein the pasting comprises:
merging the identified markup information with markup information associated with the target content, to provided merged markup information;
merging the identified style information with style information associated with the target content, to provide merged style information; and
rendering the target content including the identified portion based on the merged markup information and the merged style information.

### Claim 17 (depends on 16)

One or more machine-readable media containing machine-readable instructions for implementing the method of claim 16.

### Claim 18 (depends on 16)

One or more computing devices, comprising:
one or more processors; and
memory to store computer-executable instructions that, when executed by the one or more processors, perform the method of claim 16.

### Claim 19

A method for pasting an identified portion into target content, comprising:
retrieving identified markup information from a store, the identified markup information being extracted from source content and being associated with the identified portion;
retrieving identified style information from the store, the identified style information being extracted from the source content and being associated with the identified portion;
merging the identified markup information with markup information associated with the target content, to provided merged markup information;
merging the identified style information with style information associated with the target content, to provide merged style information; and
rendering the target content including the identified portion based on the merged markup information and the merged style information.

### Claim 20

A copy module for use in an electronic data processing apparatus for copying a portion of source content, comprising:
a portion selection module for receiving a selection that identifies a portion of source content to be copied, to provide an identified portion, wherein the source content is expressed by corresponding markup information; and
an information extraction module for identifying style information associated with the identified portion, to provide identified style information, at least part of the identified style information not being directly demarcated by the identified portion.
