Language-sensitive whitespace adjustment in a software engineering tool
First Claim
1. A software engineering tool that recognizes language tokens and computes for display whitespace amounts between adjacent instances thereof according to language-specific style rules, the software engineering tool further providing, for at least a grouping of those language tokens displayed, dynamic adjustment of the computed whitespace amounts in accordance with an operative scaling factor therefor.
2 Assignments
0 Petitions
Accused Products
Abstract
An editor or software engineering tool may be configured to render whitespace between adjacent tokens, wherein the amount of whitespace between any two adjacent tokens is determined according to language-specific style rules and scaled in accordance with display considerations. In some realizations, the operative scaling is selected or defined by a user according to the user'"'"'s visual preferences. In some realizations, the operative scaling relates to requirements or constraints of an automated layout mechanism. For example, a particular scaling may be calculated to adjust line length in conformance with a desired margin alignment or to optimize layout when long lines are automatically wrapped (or folded) in some automatic way.
-
Citations
28 Claims
- 1. A software engineering tool that recognizes language tokens and computes for display whitespace amounts between adjacent instances thereof according to language-specific style rules, the software engineering tool further providing, for at least a grouping of those language tokens displayed, dynamic adjustment of the computed whitespace amounts in accordance with an operative scaling factor therefor.
-
10. A method of presenting textual content that includes a sequence of tokens recognizable in accordance with a predefined language model, the method comprising:
-
calculating whitespace amounts for visual presentation between adjacent pairs of recognized tokens, wherein the calculated whitespace amount for visual presentation between a first pair of the tokens differs from that between a second pair of the tokens, each in accordance with language-specific style rules; and
for at least a subset of the token sequence, applying an operative scaling factor in the calculating of respective ones of the whitespace amounts. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A process for visual whitespace representation and cursor behavior in a software engineering tool configured to represent a computer program as a sequence of tokens, the process comprising:
-
displaying each line of the computer program as it is entered by a user, wherein a displayed line includes a portion of the sequence of tokens and visual whitespace separating adjacent ones thereof, and wherein width of a particular instance of visual whitespace is based on (i) lexical type of at least one respective token adjacent thereto and (ii) an operative scaling factor, such that, for a given view, the width of each instance of visual whitespace is language sensitive and modulated in accordance with the operative scaling factor; and
displaying a cursor in the displayed line of the computer program, the cursor having a cursor position corresponding to an insertion point in the sequence. - View Dependent Claims (20, 21, 22, 23)
-
-
24. A computer program product including instructions encoded at least one computer readable medium and executable on a processor, the computer program product comprising:
-
a first functional sequence of the instructions directing the processor to calculate a sizing for a particular instance of whitespace to be displayed adjacent to a particular display element corresponding to a language token recognized in a sequence thereof, the calculated sizing being at least a function of the recognized language token; and
a second functional sequence of the instructions directing the processor to calculate an adjustment to the sizing, the adjustment being in accordance with an operative scaling factor. - View Dependent Claims (25, 26, 27)
-
-
28. An apparatus comprising:
-
storage for a computer readable encoding of information represented as a sequence of tokens;
means for preparing a visual representation of the token sequence as display elements separated by whitespace, wherein sizing of a particular instance of the whitespace is in accordance with (i) the tokens adjacent thereto and (ii) an operative scaling factor; and
means for adjusting the operative scaling factor.
-
Specification