ADVANCED TEXT COMPLETION, SUCH AS FOR MARKUP LANGUAGES
First Claim
1. A computer-implemented method for providing text completion shortcuts within a document, the method comprising:
- receiving a notification that an editing application has loaded a document, wherein the document is associated with a particular programming language;
scanning one or more stored patterns to identify a shortcut word or characters that trigger each pattern and the type of text represented by the pattern;
loading the identified shortcuts into a completion list of the editing application that specifies shortcuts that a user can type to insert target text of the one or more patterns;
for each shortcut in the completion list, determining whether target text of a pattern associated with the shortcut is valid at a current insertion position based on the programming language associated with the document; and
filtering the patterns in the completion list based on whether the pattern is valid at the current insertion point, wherein the preceding steps are performed by at least one processor.
2 Assignments
0 Petitions
Accused Products
Abstract
A text completion system is described herein that completes text at a tag and/or attribute level based on a syntactic understanding of software program code. The system includes sets of elements and associated attribute-value pairs that represent interesting, common, and repeated patterns. As a user is editing a web page or other document in an editing tool that implements the system, the user can retrieve, select, and insert these patterns using simple commands. The system receives a selected pattern from the user, and inserts target text associated with the pattern. In addition, users can fill in instance-specific data within the larger pattern to allow a single pattern to cover several common and closely related scenarios. Thus, the text completion system increases user productivity by providing more intelligent text completion through a syntactic understanding of the language in which a document is written.
23 Citations
20 Claims
-
1. A computer-implemented method for providing text completion shortcuts within a document, the method comprising:
-
receiving a notification that an editing application has loaded a document, wherein the document is associated with a particular programming language; scanning one or more stored patterns to identify a shortcut word or characters that trigger each pattern and the type of text represented by the pattern; loading the identified shortcuts into a completion list of the editing application that specifies shortcuts that a user can type to insert target text of the one or more patterns; for each shortcut in the completion list, determining whether target text of a pattern associated with the shortcut is valid at a current insertion position based on the programming language associated with the document; and filtering the patterns in the completion list based on whether the pattern is valid at the current insertion point, wherein the preceding steps are performed by at least one processor. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer system for reducing the amount of text typed by a user to compose a document, the system comprising:
-
a processor and memory configured to execute software instructions; a scan patterns component configured to load one or more stored patterns from a data store; a load patterns component configured to receive enumerated patterns from the scan pattern component and load one or more shortcuts associated with each pattern into a collection of words or characters that a user can type to cause the system to insert additional text into the document; a detect trigger component configured to determine that the user has invoked a pattern by selecting the pattern'"'"'s shortcut; and an insert target component configured to insert target text of a pattern in response to the detect trigger component detecting that a user has invoked the pattern. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer-readable storage medium comprising instructions for controlling a computer system to complete text in a document, wherein the instructions, when executed, cause a processor to perform actions comprising:
-
receiving an indication that a user has selected a pattern that specifies target text to replace shortcut text entered by the user; inserting the target text associated with the selected pattern into a displayed text buffer, wherein the displayed text buffer represents the contents of the document, and wherein the document is a markup language document; post-processes the inserted text to conform to one or more preferences set by the user; and highlighting one or more fields that the user can replace in the inserted text, wherein the highlighted fields represent one or more values in the inserted text that may change based on a particular use of the pattern. - View Dependent Claims (19, 20)
-
Specification