# US 2004/0001627 A1 · Writing guide for a free-form document editor

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

- Number: US 2004/0001627 A1
- Document ID: US20040001627A1
- Status: Published application
- Kind: A1
- Application number: 10/186,388
- Filed: 2002-06-28
- Published: 2004-01-01
- Earliest claimed: 2002-06-28
- Assignees: Microsoft Corporation
- Inventors: Alex J. Simmons; Kentaro Urata; Peter Loren Engrav; Christopher H. Pratley; Owen C. Braun; Stuart J. Stuple
- Web page: https://patentgrep.com/patent/US20040001627A1

## CPC

- G06F 40/171: by use of digital ink
- G06V 30/18095: {Summing image-intensity values; Projection and histogram analysis}
- G06V 30/36: {Matching; Classification}
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Displaying a writing guide for a free-form document editor by detecting electronic ink, classifying the detected ink as corresponding to handwriting or a drawing, and displaying a handwriting guide or a drawing guide in response to classifying the detected ink as handwriting or a drawing, respectively. The writing guides can provide feedback regarding the classification of the detected ink and can be resized as additional ink is detected. The handwriting guide can comprise a writing area, writing guide portion, bullet guide, indent marker, character notches, gesture guide, or sacrificial guide to create meaningful structure within an outline object of an electronic document.

## Claims

### Claim 1

A computer-implemented method for displaying a writing guide for a free-form document editor, comprising the steps of:
detecting electronic ink comprising an ink stroke;
classifying the detected ink as corresponding to one of handwriting and a drawing; and
displaying a handwriting writing guide in response to classifying the detected ink as handwriting.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said classifying step comprises the steps of:
setting a threshold aspect ratio indicating whether the detected ink comprises handwriting or a drawing;
determining a length and height of the detected ink;
computing an ink aspect ratio for the detected ink based on the determined length and height;
determining whether the ink aspect ratio is greater than the threshold aspect ratio; and
classifying the detected ink as handwriting in response to a determination that the ink aspect ratio is greater than the threshold aspect ratio.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising the steps of:
setting a minimum stroke threshold corresponding to a predetermined number of ink strokes to detect in said detecting step before classifying the detected ink as handwriting or a drawing;
determining a detected number of ink strokes for the detected ink; and
determining whether the detected number of ink strokes is greater than the minimum stroke threshold,
wherein said classifying step is performed in response to a determination that the detected number of ink strokes is greater than the minimum stroke threshold.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the minimum stroke threshold comprises a predetermined number of ink strokes for classifying the detected ink as handwriting and a different predetermined number of ink strokes for classifying the detected ink as a drawing.

### Claim 5 (depends on 1)

The method according to claim 1, wherein said handwriting writing guide comprises a writing area into which a user inputs the electronic ink.

### Claim 6 (depends on 5)

The method according to claim 5, wherein said displaying step comprises the step of determining dimensions of the writing area based on a bounding rectangle that encompasses the detected ink.

### Claim 7 (depends on 6)

The method according to claim 6, wherein said step of determining dimensions comprises the step of determining a right, left, top, and baseline dimension of the writing area based on the bounding rectangle that encompasses the detected ink.

### Claim 8 (depends on 7)

The method according to claim 7, wherein said step of determining dimensions further comprises the step of increasing the writing area by adding predetermined spacings to one of the top and baseline dimensions.

### Claim 9 (depends on 6)

The method according to claim 6, wherein said step of determining dimensions comprises the steps of:
creating a histogram representing a distribution of the detected ink on a line; and
calculating the baseline dimension of the writing area based on the histogram.

### Claim 10 (depends on 9)

The method according to claim 9, wherein said creating step comprises the steps of:
dividing the line into a plurality of segments;
measuring an amount of the detected ink in each segment; and
creating the histogram based on the amount of detected ink in each segment.

### Claim 11 (depends on 10)

The method according to claim 10, wherein said calculating step comprises the steps of:
setting an ink removal threshold corresponding to an amount of ink below which a segment is removed from the writing area;
determining whether the amount of detected ink in a segment is less than the ink removal threshold; and
removing the segment from the writing area to establish the baseline dimension of the writing area in response to a determination that the amount of detected ink in the segment is less that the ink removal threshold.

### Claim 12 (depends on 6)

The method according to claim 6, wherein said step of determining dimensions comprises the steps of:
converting a portion of the detected ink to text; and
calculating a baseline dimension of the writing area based on the ink-to-text conversion of said converting step.

### Claim 13 (depends on 6)

The method according to claim 6, further comprising the steps of:
setting a resizing threshold corresponding to an amount of ink outside the writing area for resizing the dimensions of the writing area;
detecting an amount of ink outside the writing area;
determining whether the amount of ink outside the writing area is greater than the resizing threshold; and
resizing the writing area dimensions in response to a determination that the amount of ink outside the writing area is greater than the resizing threshold.

### Claim 14 (depends on 6)

The method according to claim 6, further comprising the steps of:
setting a resizing threshold corresponding to an amount of ink outside the writing area for resizing the dimensions of the writing area;
establishing a plurality of segments inside and outside the writing area;
detecting an amount of ink in each segment;
determining whether the amount of ink in segments outside the writing area is greater than the resizing threshold; and
increasing the writing area dimensions in response to a determination that the amount of ink outside the writing area is greater than the resizing threshold.

### Claim 15

A computer-implemented method for displaying a writing guide for a free-form document editor, comprising the steps of:
detecting electronic ink;
classifying the detected ink as corresponding to one of handwriting and a drawing; and
displaying a handwriting writing guide comprising a writing area into which a user inputs the electronic ink, in response to classifying the detected ink as handwriting.

### Claim 16 (depends on 15)

The method according to claim 15, wherein said displaying step comprises displaying the handwriting writing guide further comprising a next level indent indicator dividing the writing area into a first level region and a second level region, the first and second level regions corresponding to different levels of a structured outline.

### Claim 17 (depends on 16)

The method according to claim 16, wherein said displaying step comprises displaying the handwriting writing guide further comprising a bullet region corresponding to bullet outline of the structured outline.

### Claim 18 (depends on 17)

The method according to claim 17, further comprising the step of activating the bullet region to display the bullet outline.

### Claim 19 (depends on 15)

The method according to claim 15, wherein said displaying step comprises displaying the handwriting writing guide further comprising character notches that divide the writing area into character boxes for individual characters of a language.

### Claim 20 (depends on 15)

The method according to claim 15, wherein said handwriting writing guide comprises a gesture handwriting writing guide.

### Claim 21 (depends on 15)

The method according to claim 15, wherein said handwriting writing guide comprises a sacrificial handwriting writing guide.

### Claim 22 (depends on 15)

The method according to claim 15, wherein said handwriting writing guide comprises a nested heading handwriting writing guide.

### Claim 23

A computer-implemented method for displaying a writing guide for a free-form document editor, comprising the steps of:
detecting electronic ink;
classifying the detected ink as corresponding to one of handwriting and a drawing; and
displaying a drawing guide in response to classifying the detected ink as a drawing.

### Claim 24 (depends on 23)

The method according to claim 23, wherein said displaying step comprises the steps of:
determining dimensions of an original bounding rectangle that encompasses the detected ink; and
establishing dimensions of the drawing guide based on the original bounding rectangle dimensions.

### Claim 25 (depends on 24)

The method according to claim 24, further comprising the steps of:
detecting ink outside the original bounding rectangle;
determining dimensions of a new bounding rectangle that encompasses the ink detected outside the original bounding rectangle; and
reestablishing the dimensions of the drawing guide based on the new bounding rectangle dimensions.

### Claim 26 (depends on 24)

The method according to claim 24, wherein said displaying step further comprises determining dimensions of a hot zone around the original bounding rectangle, and
wherein said establishing step comprises establishing the dimensions of the drawing guide based on the bounding rectangle and hot zone dimensions.

### Claim 27 (depends on 24)

The method according to claim 24, further comprising the step of displaying a handwriting writing guide in response to classifying the detected ink as handwriting.
