# US 2013/0298010 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 2013/0298010 A1
- Document ID: US20130298010A1
- Status: Published application
- Kind: A1
- Application number: 13/784,623
- Filed: 2013-03-04
- Published: 2013-11-07
- Earliest claimed: 2007-05-29
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Corporation
- Inventors: Justin E. Rogers; Markus W. Mielke
- Web page: https://patentgrep.com/patent/US20130298010A1

## 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 comprising:
extracting a portion of style information from a source of style information, the portion of style information extracted corresponding to content that is identified for copying from a document; and
storing the portion of style information that is extracted with the identified content in a clipboard store.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the source of style information is external to the document from which the content is identified.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein the source of style information is inline in the document with the identified content.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein the portion of style information that is extracted omits at least some style information included in the source of style information.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein the portion of style information that is extracted is determined to affect how the identified content is to be presented and style information that is not extracted is determined not to affect how the identified content is to be presented.

### Claim 6 (depends on 1)

The method as recited in claim 1, further comprising determining which of the style information included in the source of style information to extract.

### Claim 7 (depends on 1)

The method as recited in claim 1, further comprising rewriting the portion of style information that is extracted to reduce an amount of style information that is to be pasted with the identified content into a target document.

### Claim 8 (depends on 7)

The method as recited in claim 7, wherein the rewritten style information preserves styling that is to be applied to the identified content according to the portion of style information that is extracted.

### Claim 9 (depends on 1)

The method as recited in claim 1, further comprising causing the identified content to be pasted in a target document, the pasted content being styled according to the portion of the style information that is extracted.

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein the document from which the content is identified for copying is remote from the target document.

### Claim 11

A system comprising:
one or more processors; and
computer-readable media comprising instructions that are executable by the one or more processors to implement a user interface that is operable to:
present source content in a first portion of the user interface, the source content comprising part of a source document;
present markup and style information that corresponds to an identified portion of the source content in a second portion of the user interface responsive to identification of the portion of source content from the first portion of the user interface; and
receive a user input to paste the identified portion of source content into target content, the identified portion of source content pasted with the corresponding markup and style information applied, the corresponding style information including style information that is external to the source document.

### Claim 12 (depends on 11)

The system as recited in claim 11, wherein the user interface is further operable to receive a user selection of markup and style information from the second portion of the user interface, the user selection causing the user interface to emphasize corresponding portions of the source content in the first portion of the user interface.

### Claim 13 (depends on 12)

The system as recited in claim 12, wherein the user interface is further operable to receive an additional user selection of different markup and style information from the second portion of the user interface, the additional user selection causing the user interface to emphasize different portions of the source content in the first portion of the user interface that correspond to the different markup and style information.

### Claim 14 (depends on 11)

The system as recited in claim 11, wherein the user interface is further operable to receive input to copy the source content presented in the first portion to a clipboard store.

### Claim 15 (depends on 11)

The system as recited in claim 11, wherein the user interface is further operable to receive input to copy the markup and style information presented in the second portion of the user interface to a clipboard store.

### Claim 16 (depends on 11)

The system as recited in claim 11, wherein the user interface is further operable to receive a command that activates display of the second portion of the user interface in which the markup and style information are presented.

### Claim 17 (depends on 11)

The system as recited in claim 11, wherein the user interface is further operable to employ an information extraction module that is configured to extract the style information corresponding to the identified portion of source content from the source document and from sources external to the source document.

### Claim 18 (depends on 11)

The system as recited in claim 11, wherein the style information that is external to the source document comprises Cascading Style Sheet (CSS) information.

### Claim 19

One or more computer-readable storage media comprising instructions that are executable by a computing device to perform operations comprising:
receiving an identification of a portion of content in a source document to be copied, the content in the source document corresponding to underlying style information;
responsive to a determination that the identified portion of content corresponds, in part, to underlying style information external to the source document, extracting the underlying style information that is external to the source document from one or more external sources; and
storing the identified portion of content in a clipboard store with the underlying style information, including the underlying style information extracted from the one or more external sources.

### Claim 20 (depends on 19)

The one or more computer-readable storage media as recited in claim 19, wherein the operations further comprise causing the identified portion of content to be pasted in a target document to visually resemble the identified portion of content as it appears in the source document.
