Claims
- 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.
- 2. 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.
- 3. 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.
- 4. 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.
- 5. The method according to claim 1, wherein said handwriting writing guide comprises a writing area into which a user inputs the electronic ink.
- 6. 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.
- 7. 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.
- 8. 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.
- 9. 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.
- 10. 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.
- 11. 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.
- 12. 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.
- 13. 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.
- 14. 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.
- 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.
- 16. 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.
- 17. 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.
- 18. The method according to claim 17, further comprising the step of activating the bullet region to display the bullet outline.
- 19. 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.
- 20. The method according to claim 15, wherein said handwriting writing guide comprises a gesture handwriting writing guide.
- 21. The method according to claim 15, wherein said handwriting writing guide comprises a sacrificial handwriting writing guide.
- 22. The method according to claim 15, wherein said handwriting writing guide comprises a nested heading handwriting writing guide.
- 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.
- 24. 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.
- 25. 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.
- 26. 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.
- 27. 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.
RELATED PATENT APPLICATIONS
[0001] This patent application is related to the following co-pending, non-provisional patent applications: U.S. patent application Ser. No. 09/852,799 filed on May 11, 2001, entitled “Serial Storage of Ink and Its Properties” and U.S. patent application Ser. No. 09/430,150 filed on Oct. 29, 1999, entitled “Universal File Format for Digital Rich Ink Data.” Both related applications are assigned to the Microsoft Corporation.
[0002] This patent application also is related to the following non-provisional patent applications: U.S. patent application Ser. No. ______, entitled “Method and System for Editing Electronic Ink,” having attorney docket number 06576.105074; U.S. patent application Ser. No. ______, entitled “Method and System for Selecting Objects on a Display Device,” having attorney docket number 06576.105075; U.S. patent application Ser. No. ______, entitled “Resolving Document Object Collisions,” having attorney docket number 06576.105076; U.S. patent application Ser. No. _______, entitled “Space Management for Electronic Documents,” having attorney docket number 06576.105077; U.S. patent application Ser. No. _______, entitled “System and Method for Automatically Recognizing Electronic Handwriting in an Electronic Document and Converting to Text,” having attorney docket number 06576.105078; U.S. patent application Ser. No. ______, entitled “Method and System for Designating Data Objects with Designation Tools,” having attorney docket number 06576.105079; and U.S. patent application Ser. No. ______, entitled “Method and System for Displaying and Linking Ink Objects with Recognized Text and Objects,” having attorney docket number 06576.105080. Those applications and the application herein are all being filed on the same date, Jun. 28, 2002, and are assigned to the Microsoft Corporation.
[0003] The subject matter of each related application identified above is fully incorporated herein by reference.